Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 
0005 from Configuration.Eras.Era_Run2_25ns_cff import Run2_25ns
0006 process = cms.Process('CTPPS2',Run2_25ns)
0007 
0008 # import of standard configurations
0009 process.load('Configuration.StandardSequences.Services_cff')
0010 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0011 process.load('FWCore.MessageService.MessageLogger_cfi')
0012 process.load('Configuration.EventContent.EventContent_cff')
0013 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0014 #process.load("CondFormats.PPSObjects.CTPPSPixelDAQMappingESSourceXML_cfi")
0015 
0016 process.maxEvents = cms.untracked.PSet(
0017         input = cms.untracked.int32(1000)
0018         )
0019 
0020 process.MessageLogger = cms.Service("MessageLogger",
0021     cerr = cms.untracked.PSet(
0022         enable = cms.untracked.bool(False)
0023     ),
0024     cout = cms.untracked.PSet(
0025         enable = cms.untracked.bool(True),
0026         threshold = cms.untracked.string('ERROR')
0027     )
0028 )
0029 process.source = cms.Source("EmptyIOVSource",
0030     timetype = cms.string('runnumber'),
0031     firstValue = cms.uint64(1),
0032     lastValue = cms.uint64(1),
0033     interval = cms.uint64(1)
0034 )
0035 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",ignoreTotal = cms.untracked.int32(1) )
0036 
0037 process.source = cms.Source("NewEventStreamFileReader",
0038     fileNames = cms.untracked.vstring(
0039 #'root://cms-xrd-global.cern.ch//store/data/Run2017A/ZeroBias2/AOD/PromptReco-v1/000/294/736/00000/44589413-F73F-E711-9E8D-02163E014337.root'
0040 #'root://cms-xrd-global.cern.ch//store/data/Run2017B/ZeroBias/RAW/v1/000/299/065/00000/08980FD0-2D69-E711-98BC-02163E011B2D.root'
0041 #'root://eoscms.cern.ch//eos/cms/store/t0streamer/Data/HLTMonitor/000/300/742/run300742_ls0124_streamHLTMonitor_StorageManager.dat'
0042 'root://eoscms.cern.ch//eos/cms/store/t0streamer/Data/HLTMonitor/000/300/811/run300811_ls0024_streamHLTMonitor_StorageManager.dat'
0043 ),
0044 #duplicateCheckMode = cms.untracked.string("checkEachFile")
0045 firstEvent = cms.untracked.uint64(1)
0046 #141309767)
0047 )
0048 
0049 
0050 
0051 from Configuration.AlCa.GlobalTag import GlobalTag
0052 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_hlt_relval', '')
0053 
0054 # raw-to-digi conversion
0055 process.load("EventFilter.CTPPSRawToDigi.ctppsRawToDigi_cff")
0056 
0057 process.load("RecoPPS.Configuration.recoCTPPS_cff")
0058 
0059 
0060 ############
0061 process.o1 = cms.OutputModule("PoolOutputModule",
0062         outputCommands = cms.untracked.vstring('drop *',
0063                                                'keep *_totemRP*_*_*',
0064                                                'keep *_ctpps*_*_*'
0065 
0066 ),
0067         fileName = cms.untracked.string('simevent_CTPPS_CLU_REC_real_mem_testDB_300811.root')
0068         )
0069 
0070 
0071 process.mixedigi_step = cms.Path(
0072 process.ctppsRawToDigi
0073 *process.recoCTPPS
0074 
0075 )
0076 
0077 process.outpath = cms.EndPath(process.o1)
0078 
0079 process.schedule = cms.Schedule(process.mixedigi_step,process.outpath)
0080 
0081 # filter all path with the production filter sequence
0082 for path in process.paths:
0083   #  getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq
0084     getattr(process,path)._seq =  getattr(process,path)._seq
0085 
0086