Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:07:01

0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.Eras.Era_Run3_cff import Run3
0003 
0004 process = cms.Process('RECODQM', Run3)
0005 
0006 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0007 process.verbosity = cms.untracked.PSet( input = cms.untracked.int32(10) ) 
0008 
0009 # minimum of logs
0010 process.MessageLogger = cms.Service("MessageLogger",
0011     cerr = cms.untracked.PSet(
0012         threshold = cms.untracked.string('INFO')
0013     ) 
0014 )
0015 
0016 # import of standard configurations
0017 process.load('Configuration.StandardSequences.Services_cff')
0018 process.load('FWCore.MessageService.MessageLogger_cfi')
0019 process.load('Configuration.EventContent.EventContent_cff')
0020 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0021 
0022 # load DQM framework
0023 process.load("DQM.Integration.config.environment_cfi")
0024 process.dqmEnv.subSystemFolder = "CTPPS"
0025 process.dqmEnv.eventInfoFolder = "EventInfo"
0026 process.dqmSaver.path = ""
0027 process.dqmSaver.tag = "CTPPS"
0028 #process.dqmSaver.runNumber = 999999
0029 
0030 
0031 # raw data source
0032 process.source = cms.Source("PoolSource",
0033     fileNames = cms.untracked.vstring(
0034 #'file:/eos/cms/store/data/Run2022B/AlCaPPS/RAW/v1/000/355/207/00000/c23440f4-49c0-44aa-b8f6-f40598fb4705.root',
0035 #'file:/eos/cms/store/group/dpg_ctpps/comm_ctpps/ALCAPPS-RAW/000/355/988/00000/7728d214-b404-4578-b781-b0c207cfb875.root',
0036 #'/store/data/Run2022D/AlCaPPSPrompt/ALCARECO/PPSCalMaxTracks-PromptReco-v2/000/357/900/00000/0434a2eb-2cea-4d83-8b21-fe91b755e62e.root',
0037 'file:/eos/cms/store/express/Run2022D/StreamALCAPPSExpress/ALCARECO/PPSCalMaxTracks-Express-v2/000/357/900/00000/4e3126cd-3dae-48b2-a2e5-b14542500030.root'
0038     ),
0039 )
0040 
0041 
0042 
0043 from Configuration.AlCa.GlobalTag import GlobalTag
0044 from Configuration.AlCa.autoCond import autoCond
0045 process.GlobalTag = GlobalTag(process.GlobalTag, autoCond['run3_data_prompt'], '')
0046 process.GlobalTag.toGet = cms.VPSet()
0047 process.GlobalTag.toGet.append(
0048   cms.PSet(record = cms.string("PPSTimingCalibrationRcd"),
0049            tag =  cms.string("PPSDiamondTimingCalibration_Run3_recovered_v1"),
0050            label = cms.untracked.string('PPSTestCalibration'),
0051            connect = cms.string("frontier://FrontierPrep/CMS_CONDITIONS")
0052     )
0053 )
0054 
0055 
0056 # raw-to-digi conversion
0057 process.load("EventFilter.CTPPSRawToDigi.ctppsRawToDigi_cff")
0058 
0059 process.ctppsPixelDigis.inputLabel = "hltPPSCalibrationRaw"
0060 process.ctppsDiamondRawToDigi.rawDataTag = "hltPPSCalibrationRaw"
0061 process.totemRPRawToDigi.rawDataTag = "hltPPSCalibrationRaw"
0062 process.totemTimingRawToDigi.rawDataTag = "hltPPSCalibrationRaw"
0063 
0064 
0065 # local RP reconstruction chain with standard settings
0066 process.load("RecoPPS.Configuration.recoCTPPS_cff")
0067 process.ctppsDiamondRecHits.digiTag='ctppsDiamondRawToDigiAlCaRecoProducer:TimingDiamond'
0068 process.ctppsDiamondRecHits.timingCalibrationTag="GlobalTag:PPSTestCalibration"
0069 
0070 #process.load('CondCore.CondDB.CondDB_cfi')
0071 #process.CondDB.connect = 'sqlite_file:ppsDiamondTiming_calibration.sqlite' # SQLite input
0072 #process.PoolDBESSource = cms.ESSource('PoolDBESSource',
0073 #        process.CondDB,
0074 #        DumpStats = cms.untracked.bool(True),
0075 #        toGet = cms.VPSet(
0076 #            cms.PSet(
0077 #                record = cms.string('PPSTimingCalibrationRcd'),
0078 #                tag = cms.string('DiamondTimingCalibration') 
0079 #            )
0080 #        )
0081 #    )
0082 
0083 #process.load('Geometry.VeryForwardGeometry.geometryRPFromDD_2021_cfi')
0084 # CTPPS DQM modules
0085 process.load("DQM.CTPPS.ctppsDQM_cff")
0086 process.ctppsDiamondDQMSource.tagDigi='ctppsDiamondRawToDigiAlCaRecoProducer:TimingDiamond'
0087 process.ctppsDiamondDQMSource.tagFEDInfo='ctppsDiamondRawToDigiAlCaRecoProducer:TimingDiamond'
0088 process.ctppsDiamondDQMSource.tagStatus='ctppsDiamondRawToDigiAlCaRecoProducer:TimingDiamond'
0089 process.ctppsDiamondDQMSource.tagPixelLocalTracks='ctppsPixelLocalTracksAlCaRecoProducer'
0090 #process.ctppsDiamondDQMSource.excludeMultipleHits = True
0091 process.ctppsDiamondDQMSource.plotOnline = True
0092 process.ctppsDiamondDQMSource.plotOffline = False
0093 
0094 process.content = cms.EDAnalyzer("EventContentAnalyzer")
0095 
0096 process.path = cms.Path(
0097     
0098     #process.content*
0099     process.ctppsDiamondRecHits *
0100     process.ctppsDiamondLocalTracks *
0101     #process.ctppsLocalTrackLiteProducer *
0102     #process.ctppsProtons *
0103     process.ctppsDiamondDQMSource*
0104     process.ctppsDQMOnlineHarvest
0105 )
0106 
0107 process.output = cms.OutputModule("PoolOutputModule",
0108     fileName = cms.untracked.string("file:test.root"),
0109     outputCommands = cms.untracked.vstring(
0110         'drop *',
0111         'keep *_ctpps*_*_*',
0112     ),
0113 )
0114 
0115 
0116 process.end_path = cms.EndPath(
0117     #process.output
0118     process.dqmEnv +
0119     process.dqmSaver
0120 )
0121 
0122 process.schedule = cms.Schedule(
0123     process.path,
0124     process.end_path
0125 ) 
0126 
0127 #process.output = cms.OutputModule("PoolOutputModule",
0128 #    fileName = cms.untracked.string("AOD.root"),
0129 #    outputCommands = cms.untracked.vstring(
0130 #        'drop *',
0131 #        'keep *_ctpps*_*_*',
0132 #    ),
0133 #)  
0134 #process.outpath = cms.EndPath(process.output)