File indexing completed on 2024-04-06 12:22:48
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("PATMuon")
0004
0005 process.load("FWCore.MessageService.MessageLogger_cfi")
0006 process.MessageLogger.cerr.FwkReport.reportEvery = 100
0007
0008 process.load('Configuration.StandardSequences.Services_cff')
0009 process.load("Configuration.StandardSequences.GeometryDB_cff")
0010 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0011 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0012 process.GlobalTag.globaltag = 'PRE_ST62_V8::All'
0013
0014 process.source = cms.Source("PoolSource",
0015 fileNames = cms.untracked.vstring(
0016 '/store/relval/CMSSW_6_2_0/RelValTTbar/GEN-SIM-RECO/PU_PRE_ST62_V8-v2/00000/E03F79C5-A7EC-E211-A92E-003048F00520.root',
0017 ),
0018 secondaryFileNames = cms.untracked.vstring(
0019 '/store/relval/CMSSW_6_2_0/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/PU_PRE_ST62_V8-v2/00000/DE640769-94EC-E211-ACE9-003048F23D8C.root',
0020 '/store/relval/CMSSW_6_2_0/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/PU_PRE_ST62_V8-v2/00000/D21DB243-94EC-E211-AEED-003048D2BC36.root',
0021 '/store/relval/CMSSW_6_2_0/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/PU_PRE_ST62_V8-v2/00000/BC74017C-94EC-E211-9F4A-BCAEC532971D.root',
0022 '/store/relval/CMSSW_6_2_0/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/PU_PRE_ST62_V8-v2/00000/90485044-94EC-E211-8BC7-003048F0111A.root',
0023 '/store/relval/CMSSW_6_2_0/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/PU_PRE_ST62_V8-v2/00000/88F032AD-94EC-E211-BA22-0030486730E8.root',
0024 '/store/relval/CMSSW_6_2_0/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/PU_PRE_ST62_V8-v2/00000/78F4633D-94EC-E211-A1FE-003048F11D46.root',
0025 '/store/relval/CMSSW_6_2_0/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/PU_PRE_ST62_V8-v2/00000/68ED2290-94EC-E211-A08E-003048F16B8E.root',
0026 '/store/relval/CMSSW_6_2_0/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/PU_PRE_ST62_V8-v2/00000/2EDDA656-94EC-E211-A208-003048F16F46.root',
0027 '/store/relval/CMSSW_6_2_0/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/PU_PRE_ST62_V8-v2/00000/2C1CD01D-94EC-E211-AA58-001E673982E1.root',
0028 '/store/relval/CMSSW_6_2_0/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/PU_PRE_ST62_V8-v2/00000/18B87680-9EEC-E211-AD34-003048F1C410.root',
0029 '/store/relval/CMSSW_6_2_0/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/PU_PRE_ST62_V8-v2/00000/16040F35-94EC-E211-A460-003048F1DBB6.root',
0030 '/store/relval/CMSSW_6_2_0/RelValTTbar/GEN-SIM-DIGI-RAW-HLTDEBUG/PU_PRE_ST62_V8-v2/00000/04E987D4-94EC-E211-9AA2-003048C9CC70.root',
0031 ),
0032 )
0033
0034
0035
0036
0037 twoFileSolution = False
0038
0039 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0040 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0041
0042 process.selMuons = cms.EDFilter("MuonSelector",
0043 src = cms.InputTag("muons"),
0044 cut = cms.string("pt > 15 && isGlobalMuon"),
0045 filter = cms.bool(True),
0046 )
0047
0048 process.load("MuonAnalysis.MuonAssociators.muonClassificationByHits_cfi")
0049
0050 process.classByHits = process.classByHitsGlb.clone(muons = "selMuons", muonPreselection = "")
0051
0052 if twoFileSolution:
0053 process.classByHits.trackingParticles = cms.InputTag("mix","MergedTrackTruth")
0054 process.go = cms.Path(
0055 process.selMuons +
0056 process.classByHits
0057 )
0058 else:
0059 del process.source.secondaryFileNames
0060 process.go = cms.Path(
0061 process.selMuons +
0062 process.trackingParticlesNoSimHits +
0063 process.classByHits
0064 )
0065
0066
0067 process.MessageLogger.cerr.MuonMCClassifier = cms.untracked.PSet(
0068 limit = cms.untracked.int32(10000000)
0069 )
0070