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
0013
0014
0015
0016
0017
0018
0019 )
0020
0021
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
0035 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
0036
0037
0038 process.load("Configuration.StandardSequences.Geometry_cff")
0039 process.load("Configuration.StandardSequences.MagneticField_cff")
0040 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0041
0042 process.load("SimGeneral.TrackingAnalysis.trackingParticlesNoSimHits_cfi")
0043 process.load("SimMuon.MCTruth.muonAssociatorByHitsNoSimHitsHelper_cfi")
0044
0045 process.GlobalTag.globaltag = cms.string('START37_V3::All')
0046 process.options = cms.untracked.PSet(wantSummary = cms.untracked.bool(True))
0047
0048
0049 process.testanalyzer = cms.EDAnalyzer("testAssociatorRecoMuon",
0050 muonsTag = cms.InputTag("muons"),
0051 trackType = cms.string("segments"),
0052
0053
0054 tpTag = cms.InputTag("mergedtruthNoSimHits"),
0055 associatorLabel = cms.string("muonAssociatorByHitsNoSimHitsHelper"),
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)
0060
0061