Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:31:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("myproc")
0004 
0005 process.maxEvents = cms.untracked.PSet(
0006     input = cms.untracked.int32(10)
0007 )
0008 
0009 process.source = cms.Source("PoolSource",
0010     fileNames = cms.untracked.vstring(
0011     '/store/relval/CMSSW_3_6_0_pre6/RelValSingleMuPt1000/GEN-SIM-RECO/MC_36Y_V4-v1/0011/72C9B32C-4F45-DF11-AD4A-0026189438F9.root',
0012     '/store/relval/CMSSW_3_6_0_pre6/RelValSingleMuPt1000/GEN-SIM-RECO/MC_36Y_V4-v1/0010/2E552464-A144-DF11-AD9F-00248C55CC3C.root',
0013     '/store/relval/CMSSW_3_6_0_pre6/RelValSingleMuPt1000/GEN-SIM-RECO/MC_36Y_V4-v1/0010/2A6E92E9-A244-DF11-BAF2-001A92810AE4.root'
0014     ),
0015     secondaryFileNames = cms.untracked.vstring(
0016     '/store/relval/CMSSW_3_6_0_pre6/RelValSingleMuPt1000/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_36Y_V4-v1/0011/9E50692D-4F45-DF11-83CA-0030486792AC.root',
0017     '/store/relval/CMSSW_3_6_0_pre6/RelValSingleMuPt1000/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_36Y_V4-v1/0011/502CE389-A544-DF11-97B4-00304867902C.root',
0018     '/store/relval/CMSSW_3_6_0_pre6/RelValSingleMuPt1000/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_36Y_V4-v1/0010/CA650C70-A144-DF11-8A19-003048D25B68.root',
0019     '/store/relval/CMSSW_3_6_0_pre6/RelValSingleMuPt1000/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_36Y_V4-v1/0010/BCEF716B-A144-DF11-9F01-0018F3D096E8.root',
0020     '/store/relval/CMSSW_3_6_0_pre6/RelValSingleMuPt1000/GEN-SIM-DIGI-RAW-HLTDEBUG/MC_36Y_V4-v1/0010/54C1A18F-A244-DF11-AF35-0026189438B0.root'
0021     )
0022 )
0023 
0024 # MessageLogger
0025 process.load("FWCore.MessageService.MessageLogger_cfi")
0026 
0027 #process.MessageLogger.debugModules = cms.untracked.vstring("testanalyzer","muonAssociatorByHits","process.muonTrackProducer")
0028 
0029 process.MessageLogger.cerr = cms.untracked.PSet(
0030     noTimeStamps = cms.untracked.bool(True),
0031 
0032     threshold = cms.untracked.string('WARNING'),
0033 
0034     testReader = cms.untracked.PSet(
0035         limit = cms.untracked.int32(0)
0036     ),
0037     MuonAssociatorEDProducer = cms.untracked.PSet(
0038         limit = cms.untracked.int32(0)
0039     ),
0040     MuonTrackProducer = cms.untracked.PSet(
0041         limit = cms.untracked.int32(0)
0042     ),
0043     MuonAssociatorByHits = cms.untracked.PSet(
0044         limit = cms.untracked.int32(0)
0045     ),
0046     DTHitAssociator = cms.untracked.PSet(
0047         limit = cms.untracked.int32(0)
0048     ),
0049     RPCHitAssociator = cms.untracked.PSet(
0050         limit = cms.untracked.int32(0)
0051     ),
0052     MuonTruth = cms.untracked.PSet(
0053         limit = cms.untracked.int32(0)
0054     )
0055 )
0056 
0057 process.MessageLogger.cout = cms.untracked.PSet(
0058     enable = cms.untracked.bool(True),
0059     noTimeStamps = cms.untracked.bool(True),
0060     
0061 #    threshold = cms.untracked.string('DEBUG'),
0062     threshold = cms.untracked.string('INFO'),
0063     
0064     default = cms.untracked.PSet(
0065         limit = cms.untracked.int32(0)
0066     ),
0067     testReader = cms.untracked.PSet(
0068         limit = cms.untracked.int32(10000000)
0069     ),
0070     MuonAssociatorEDProducer = cms.untracked.PSet(
0071         limit = cms.untracked.int32(10000000)
0072     ),
0073     MuonTrackProducer = cms.untracked.PSet(
0074         limit = cms.untracked.int32(10000000)
0075     ),
0076     MuonAssociatorByHits = cms.untracked.PSet(
0077         limit = cms.untracked.int32(10000000)
0078     ),
0079     DTHitAssociator = cms.untracked.PSet(
0080         limit = cms.untracked.int32(10000000)
0081     ),
0082     RPCHitAssociator = cms.untracked.PSet(
0083         limit = cms.untracked.int32(10000000)
0084     ),
0085     MuonTruth = cms.untracked.PSet(
0086         limit = cms.untracked.int32(10000000)
0087     ),
0088     FwkReport = cms.untracked.PSet(
0089         reportEvery = cms.untracked.int32(1),
0090         limit = cms.untracked.int32(10000000)
0091     ),
0092     FwkSummary = cms.untracked.PSet(
0093         reportEvery = cms.untracked.int32(1),
0094         limit = cms.untracked.int32(10000000)
0095     ),
0096     FwkJob = cms.untracked.PSet(
0097         limit = cms.untracked.int32(0)
0098     ),
0099     Root_NoDictionary = cms.untracked.PSet(
0100         limit = cms.untracked.int32(0)
0101     )
0102 )
0103 
0104 #process.MessageLogger.cout.enableStatistics = cms.untracked.bool(True)
0105 
0106 #process.Tracer = cms.Service("Tracer")
0107 
0108 # Standard Sequences
0109 process.load('Configuration.StandardSequences.GeometryExtended_cff')
0110 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0111 process.GlobalTag.globaltag = cms.string('MC_36Y_V4::All')
0112 
0113 # MuonAssociatorByHits
0114 process.load("SimMuon.MCTruth.MuonAssociatorByHits_cfi")
0115 process.muonAssociatorByHits.tracksTag = cms.InputTag("standAloneMuons")
0116 process.muonAssociatorByHits.UseTracker = cms.bool(False)
0117 process.muonAssociatorByHits.UseMuon = cms.bool(True)
0118 
0119 # test analysis
0120 process.testanalyzer = cms.EDAnalyzer("testReader",
0121     tracksTag = cms.InputTag("standAloneMuons"),
0122     tpTag = cms.InputTag("mix","MergedTrackTruth"),
0123     assoMapsTag = cms.InputTag("muonAssociatorByHits")
0124 )
0125 
0126 # example output
0127 process.MyOut = cms.OutputModule("PoolOutputModule",
0128     outputCommands = cms.untracked.vstring('drop *', 
0129         'keep recoTracks_standAloneMuons_*_*', 
0130         'keep recoTracks_globalMuons_*_*', 
0131         'keep TrackingParticles_mergedtruth_MergedTrackTruth_*',
0132         'keep *_muonAssociatorByHits_*_*'),
0133     fileName = cms.untracked.string('test.root')
0134 )
0135 
0136 # paths and schedule
0137 process.muonAssociator = cms.Path(process.muonAssociatorByHits)
0138 process.test = cms.Path(process.testanalyzer)
0139 process.output = cms.EndPath(process.MyOut)
0140 
0141 process.schedule = cms.Schedule(process.muonAssociator, process.test, process.output)