Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:48

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("myana")
0004 
0005 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(100))
0006 
0007 from Configuration.EventContent.EventContent_cff import *
0008 process.source = cms.Source("PoolSource",
0009     fileNames = cms.untracked.vstring(
0010         '/store/relval/CMSSW_3_6_1/RelValQCD_Pt_80_120/GEN-SIM-RECO/START36_V7-v1/0020/B22217FE-455D-DF11-A958-0026189438FC.root',
0011     ),
0012     #secondaryFileNames = cms.untracked.vstring(
0013     #    '/store/relval/CMSSW_3_6_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/START36_V7-v1/0020/94F66BA6-425D-DF11-9798-0018F3D096AE.root',
0014     #    '/store/relval/CMSSW_3_6_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/START36_V7-v1/0020/8622F5DD-455D-DF11-9BFF-001A92971B8E.root',
0015     #    '/store/relval/CMSSW_3_6_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/START36_V7-v1/0020/70404F50-3F5D-DF11-8041-002618943843.root',
0016     #    '/store/relval/CMSSW_3_6_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/START36_V7-v1/0020/50656520-455D-DF11-8754-001A92971BC8.root',
0017     #    '/store/relval/CMSSW_3_6_1/RelValQCD_Pt_80_120/GEN-SIM-DIGI-RAW-HLTDEBUG/START36_V7-v1/0020/24F0268F-515D-DF11-AAF5-001A92810AA8.root',
0018     #)
0019 )
0020 
0021 # MessageLogger
0022 process.load("FWCore.MessageService.MessageLogger_cfi")
0023 
0024 process.MessageLogger.muonAssociatorByHitsHelper = dict()
0025 process.MessageLogger.cout = cms.untracked.PSet(
0026     noTimeStamps = cms.untracked.bool(True),
0027     threshold = cms.untracked.string('INFO'),
0028     INFO = cms.untracked.PSet(limit = cms.untracked.int32(0)),
0029     default = cms.untracked.PSet(limit = cms.untracked.int32(0)),
0030     testAssociatorRecoMuon = cms.untracked.PSet(limit = cms.untracked.int32(10000000))
0031 )
0032 process.MessageLogger.cerr = cms.untracked.PSet(enable = cms.untracked.bool(False))
0033 
0034 # Mixing Module
0035 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
0036 
0037 # Standard Sequences
0038 process.load("Configuration.StandardSequences.Geometry_cff")
0039 process.load("Configuration.StandardSequences.MagneticField_cff")
0040 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0041 #process.load("SimGeneral.TrackingAnalysis.trackingParticles_cfi")            # On RAW+RECO
0042 process.load("SimGeneral.TrackingAnalysis.trackingParticlesNoSimHits_cfi")    # On RECO
0043 process.load("SimMuon.MCTruth.muonAssociatorByHitsNoSimHitsHelper_cfi")  # On RECO
0044 
0045 process.GlobalTag.globaltag = cms.string('START37_V3::All')
0046 process.options = cms.untracked.PSet(wantSummary = cms.untracked.bool(True))
0047 
0048 # --- example Analyzer running MuonAssociatorByHits 
0049 process.testanalyzer = cms.EDAnalyzer("testAssociatorRecoMuon",
0050     muonsTag  = cms.InputTag("muons"),
0051     trackType = cms.string("segments"),  # or 'inner','outer','global'
0052     #tpTag    = cms.InputTag("mix"),                          # RAW+RECO
0053     #associatorLabel = cms.string("muonAssociatorByHits"),            # RAW+RECO
0054     tpTag    = cms.InputTag("mergedtruthNoSimHits"),                # RECO Only
0055     associatorLabel = cms.string("muonAssociatorByHitsNoSimHitsHelper"), # RECO Only
0056 ) 
0057 
0058 process.skim = cms.EDFilter("CandViewCountFilter", src = cms.InputTag("muons"), minNumber = cms.uint32(1))
0059 process.test = cms.Path(process.skim+process.mix * process.trackingParticlesNoSimHits * process.muonAssociatorByHitsNoSimHitsHelper * process.testanalyzer) # RECO
0060 #process.test = cms.Path(process.skim+process.mix * process.trackingParticles       * process.testanalyzer) # RAW+RECO
0061