Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:27:03

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 MC_flag = False
0004 GLOBAL_TAG = 'GR_R_52_V8::All'
0005 if MC_flag:
0006     GLOBAL_TAG = 'START52_V5::All'
0007 
0008 process = cms.Process("TEST")
0009 
0010 process.load("Configuration.StandardSequences.RawToDigi_cff")
0011 process.load("Configuration.StandardSequences.MagneticField_cff")
0012 process.load("Configuration.StandardSequences.GeometryDB_cff")
0013 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0014 process.load("Configuration.StandardSequences.Reconstruction_cff")
0015 process.GlobalTag.globaltag = GLOBAL_TAG
0016 
0017 process.maxEvents = cms.untracked.PSet(
0018     input = cms.untracked.int32(100)
0019 )   
0020 
0021 process.source = cms.Source("PoolSource",
0022     fileNames = cms.untracked.vstring(
0023         'file:/afs/cern.ch/work/m/mskim/public/rpc/temp/00AD4245-A5B5-E111-A1E8-001EC9D8B54A.root',
0024         'file:/afs/cern.ch/work/m/mskim/public/rpc/temp/0215F1C2-BBAE-E111-A01F-485B39800B69.root',
0025     ),
0026     inputCommands = cms.untracked.vstring(
0027     ),
0028 )
0029 
0030 process.out = cms.OutputModule("PoolOutputModule",
0031     fileName = cms.untracked.string('out.root'),
0032     outputCommands = cms.untracked.vstring('drop *',),
0033 )
0034 
0035 from Configuration.EventContent.EventContent_cff import RECOSIMEventContent
0036 process.out.outputCommands += RECOSIMEventContent.outputCommands
0037 
0038 process.p = cms.Path(
0039     process.RawToDigi
0040   * process.localreco * process.globalreco
0041   + process.egammaHighLevelRecoPrePF + process.particleFlowReco
0042   + process.regionalCosmicTracksSeq * process.muoncosmichighlevelreco * process.muonshighlevelreco
0043 #  * process.particleFlowLinks
0044 #  * process.jetHighLevelReco * process.tautagging
0045 #  + process.metrecoPlusHCALNoise + process.btagging * process.recoPFMET + process.PFTau
0046 #  * process.reducedRecHits
0047 #  * process.reconstruction
0048 )
0049 
0050 process.outPath = cms.EndPath(process.out)
0051 
0052 ### User analysis
0053 
0054 process.TFileService = cms.Service("TFileService",
0055     fileName = cms.string('hist.root'),
0056 )
0057 
0058 process.rpcMuAna = cms.EDAnalyzer("RPCMuonAnalyzer",
0059     muon = cms.untracked.InputTag("muons"),
0060     minPtTrk = cms.untracked.double(20),
0061     maxEtaTrk = cms.untracked.double(1.8),
0062 )
0063 
0064 process.p += process.rpcMuAna