Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-11-18 03:07:28

0001 # This config can be used for tests of XML files containing mappings.
0002 # Since data in CondDB has same labels ESPrefer is needed.
0003 # For internal and testing purposes only
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 from Configuration.Eras.Era_Run3_cff import Run3
0007 
0008 process = cms.Process('RECODQM', Run3)
0009 
0010 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10000) )
0011 process.verbosity = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0012 
0013 # minimum of logs
0014 process.MessageLogger = cms.Service("MessageLogger",
0015     cerr = cms.untracked.PSet(
0016         threshold = cms.untracked.string('WARNING')
0017     )
0018 )
0019 
0020 # import of standard configurations
0021 process.load('Configuration.StandardSequences.Services_cff')
0022 process.load('FWCore.MessageService.MessageLogger_cfi')
0023 process.load('Configuration.EventContent.EventContent_cff')
0024 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0025 
0026 # load DQM framework
0027 process.load("DQM.Integration.config.environment_cfi")
0028 process.dqmEnv.subSystemFolder = "CTPPS"
0029 process.dqmEnv.eventInfoFolder = "EventInfo"
0030 process.dqmSaver.path = ""
0031 process.dqmSaver.tag = "CTPPS"
0032 
0033 # data source
0034 process.source = cms.Source("NewEventStreamFileReader",
0035   fileNames = cms.untracked.vstring(
0036          'file:/eos/cms/store/t0streamer/Data/PhysicsZeroBias2/000/369/585/run369585_ls0044_streamPhysicsZeroBias2_StorageManager.dat'
0037   ),
0038 )
0039 
0040 from Configuration.AlCa.GlobalTag import GlobalTag
0041 from Configuration.AlCa.autoCond import autoCond
0042 process.GlobalTag = GlobalTag(process.GlobalTag, autoCond['run3_data_prompt'], '')
0043 
0044 # raw-to-digi conversion
0045 process.load("EventFilter.CTPPSRawToDigi.ctppsRawToDigi_xml_cff")
0046 
0047 # prefer mappings from XML files
0048 process.es_prefer_totemTimingMapping = cms.ESPrefer("TotemDAQMappingESSourceXML", "totemDAQMappingESSourceXML_TotemTiming", TotemReadoutRcd=cms.vstring("TotemDAQMapping/TotemTiming"))
0049 process.es_prefer_totemDiamondMapping = cms.ESPrefer("TotemDAQMappingESSourceXML", "totemDAQMappingESSourceXML_TimingDiamond", TotemReadoutRcd=cms.vstring("TotemDAQMapping/TimingDiamond"))
0050 process.es_prefer_totemT2Mapping = cms.ESPrefer("TotemDAQMappingESSourceXML", "totemDAQMappingESSourceXML_TotemT2", TotemReadoutRcd=cms.vstring("TotemDAQMapping/TotemT2"))
0051 process.es_prefer_TrackingStripMapping = cms.ESPrefer("TotemDAQMappingESSourceXML", "totemDAQMappingESSourceXML_TrackingStrip", TotemReadoutRcd=cms.vstring("TotemDAQMapping/TrackingStrip"))
0052 
0053 # local RP reconstruction chain with standard settings
0054 process.load("RecoPPS.Configuration.recoCTPPS_cff")
0055 process.load('Geometry.VeryForwardGeometry.geometryRPFromDD_2021_cfi')
0056 # CTPPS DQM modules
0057 process.load("DQM.CTPPS.ctppsDQM_cff")
0058 process.ctppsDiamondDQMSource.excludeMultipleHits = cms.bool(True)
0059 process.ctppsDiamondDQMSource.plotOnline = cms.untracked.bool(True)
0060 process.ctppsDiamondDQMSource.plotOffline = cms.untracked.bool(False)
0061 process.path = cms.Path(
0062     process.ctppsRawToDigi*
0063     process.recoCTPPS*
0064     process.ctppsDQMCalibrationSource*
0065     process.ctppsDQMCalibrationHarvest
0066 )
0067 
0068 process.end_path = cms.EndPath(
0069     process.dqmEnv +
0070     process.dqmSaver
0071 )
0072 
0073 process.schedule = cms.Schedule(
0074     process.path,
0075     process.end_path
0076 )