Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:34:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("RPCRecHitValidation")
0004 
0005 ### standard includes
0006 process.load("FWCore.MessageService.MessageLogger_cfi")
0007 process.load("Configuration.EventContent.EventContent_cff")
0008 process.load("Configuration.StandardSequences.Services_cff")
0009 #process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0010 process.load('Configuration.StandardSequences.GeometryDB_cff')
0011 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0012 process.load("Configuration.StandardSequences.RawToDigi_cff")
0013 
0014 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0015 
0016 ### conditions
0017 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0018 from Configuration.AlCa.autoCond import autoCond
0019 process.GlobalTag.globaltag = autoCond['startup']
0020 
0021 process.options = cms.untracked.PSet(
0022     wantSummary = cms.untracked.bool(True)
0023 )
0024 
0025 process.source = cms.Source("PoolSource",
0026     fileNames = cms.untracked.vstring(),
0027     secondaryFileNames = cms.untracked.vstring()
0028 )
0029 
0030 ### validation-specific includes
0031 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0032 process.load("DQMServices.Components.EDMtoMEConverter_cff")
0033 
0034 process.dqmSaver.convention = 'Offline'
0035 #process.DQMStore.verbose = 100
0036 process.dqmSaver.saveByRun = cms.untracked.int32(-1)
0037 process.dqmSaver.saveAtJobEnd = cms.untracked.bool(True)
0038 process.dqmSaver.forceRunNumber = cms.untracked.int32(1)
0039 
0040 process.options = cms.untracked.PSet(
0041     fileMode = cms.untracked.string('FULLMERGE')
0042 )
0043 #process.endjob_step = cms.Path(process.endOfProcess)
0044 #process.MEtoEDMConverter_step = cms.Sequence(process.MEtoEDMConverter)
0045 
0046 ### User analyzers
0047 #### RPC Offline DQM
0048 process.load("DQMOffline.Configuration.DQMOfflineMC_cff")
0049 process.dqmSaver.workflow = '/RPC/MC/Validation'
0050 
0051 #### Sim-Reco validation
0052 process.load("Validation.RPCRecHits.rpcRecHitValidation_cfi")
0053 
0054 #### RPCPorintProducer-Reco validation
0055 process.load("RecoLocalMuon.RPCRecHit.rpcPointProducer_cff")
0056 process.load("Validation.RPCRecHits.rpcPointValidation_cfi")
0057 
0058 process.rpcPointProducerPlusValidation_step = cms.Sequence(
0059     process.rpcPointProducer*
0060     process.rpcPointVsRecHitValidation_step+
0061     process.simVsRPCPointValidation_step
0062 )
0063 
0064 #### Post validation steps
0065 process.load("Validation.RPCRecHits.postValidation_cfi")
0066 
0067 ### Path
0068 process.postValidation_step = cms.Sequence(
0069     process.rpcRecHitPostValidation_step+
0070     process.rpcPointVsRecHitPostValidation_step*
0071     process.dqmSaver
0072 )
0073 
0074 #process.out = cms.OutputModule("PoolOutputModule",
0075 #                               outputCommands = cms.untracked.vstring('drop *', "keep *_*_*_RPCRecHitValidation", 
0076 #                                                                      "keep *_MEtoEDMConverter_*_*"),
0077 #                               fileName = cms.untracked.string('output.SAMPLE.root')
0078 #)
0079 
0080 process.p = cms.Path(
0081     process.RawToDigi*
0082     process.rpcTier0Source+
0083     process.rpcRecHitValidation_step+
0084     process.rpcPointProducerPlusValidation_step*
0085     process.postValidation_step
0086 )
0087 #process.outPath = cms.EndPath(process.out)
0088