Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:44

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TestL1MatcherExtended")
0004 
0005 process.load('Configuration.StandardSequences.Services_cff')
0006 process.load('Configuration.StandardSequences.Geometry_cff')
0007 process.load('Configuration.StandardSequences.MagneticField_cff')
0008 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0009 process.load("Configuration.StandardSequences.Reconstruction_cff")
0010 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0011 process.GlobalTag.globaltag = 'GR_R_36X_V12::All'
0012 
0013 
0014 process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0015 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) )
0016 
0017 process.source = cms.Source("PoolSource", 
0018      fileNames = cms.untracked.vstring(
0019         'root://pcmssd12.cern.ch//data/gpetrucc/7TeV/jpsi/CS_Onia-Jun14thSkim_v1_RAW-RECO_run136082_443584C2-B27E-DF11-9E13-0017A477001C.root'
0020     )
0021 )
0022 
0023 process.arbMuons = cms.EDFilter("MuonSelector",
0024     src = cms.InputTag("muons"),
0025     cut = cms.string("isTrackerMuon && track.numberOfValidHits >= 12 && numberOfMatches > 0"),
0026 )
0027 
0028 process.load("MuonAnalysis.MuonAssociators.muonL1MatchExtended_cfi")
0029 process.muonL1MatchExtended.muons = "arbMuons"
0030 
0031 import PhysicsTools.PatAlgos.producersLayer1.muonProducer_cfi
0032 process.patMuons = PhysicsTools.PatAlgos.producersLayer1.muonProducer_cfi.patMuons.clone(
0033     muonSource = 'arbMuons',
0034     embedTrack          = True,
0035     embedCombinedMuon   = True,
0036     embedStandAloneMuon = True,
0037     embedPickyMuon = False,
0038     embedTpfmsMuon = False, 
0039     userIsolation = cms.PSet(), # no extra isolation
0040     isoDeposits = cms.PSet(),   # no isodeposits
0041     addGenMatch = False,        # no mc
0042 )
0043 
0044 from MuonAnalysis.MuonAssociators.muonL1MatchExtended_cfi import addUserData as addMuonL1MatchExtended
0045 addMuonL1MatchExtended(process.patMuons, addExtraInfo=True)
0046 
0047 process.s = cms.Sequence(
0048     process.arbMuons +
0049     process.csctfDigis +
0050     process.muonL1MatchExtended +
0051     process.patMuons
0052 )
0053 
0054 process.p = cms.Path(
0055     process.s
0056 )
0057 
0058 process.o = cms.OutputModule("PoolOutputModule",
0059     fileName = cms.untracked.string("patMuons_L1MatcherExtended.root"),
0060     outputCommands = cms.untracked.vstring("drop *", "keep *_patMuons__*", "keep l1extraL1MuonParticles_l1extraParticles__*")
0061 )
0062 process.e = cms.EndPath(process.o)
0063