Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-26 02:34:07

0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003 
0004 process = cms.Process("DTDQM")
0005 
0006 #----------------------------
0007 #### Event Source
0008 #----------------------------
0009 # for live online DQM in P5
0010 process.load("DQM.DTMonitorModule.test.inputsource_live_cfi")
0011 
0012 # for testing in lxplus
0013 #process.load("DQM.Integration.config.fileinputsource_cfi")
0014 
0015 #----------------------------
0016 #### DQM Environment
0017 #----------------------------
0018 process.load("DQM.Integration.config.environment_cfi")
0019 process.dqmRunConfig.collectorHost = 'fu-c2f11-23-01.cms'
0020 process.dqmSaver.path = "./"
0021 
0022 #----------------------------
0023 #### DQM Live Environment
0024 #----------------------------
0025 process.dqmEnv.subSystemFolder = 'DT'
0026 process.dqmSaver.tag = "DT"
0027 #-----------------------------
0028 
0029 # Enable HLT*Mu* filtering to monitor on Muon events
0030 # OR HLT_Physics* to monitor FEDs in commissioning runs
0031 # process.source.SelectEvents = cms.untracked.vstring("HLT*Mu*","HLT_*Physics*")
0032 
0033 # DT reco and DQM sequences
0034 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0035 process.load("Configuration/StandardSequences/MagneticField_cff")
0036 process.load("DQM.DTMonitorModule.dt_dqm_sourceclient_common_cff")
0037 #---- for P5 (online) DB access
0038 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0039 #---- for offline DB: change and possibly customise the GT
0040 #from Configuration.AlCa.GlobalTag import GlobalTag as gtCustomise
0041 #process.GlobalTag = gtCustomise(process.GlobalTag, 'auto:run2_data', '')
0042 
0043 # message logger
0044 process.MessageLogger = cms.Service("MessageLogger",
0045                                     destinations = cms.untracked.vstring('cout'),
0046                                     cout = cms.untracked.PSet(threshold = cms.untracked.string('WARNING'))
0047                                     )
0048 
0049 process.dqmmodules = cms.Sequence(process.dqmEnv + process.dqmSaver)
0050 
0051 process.dtDQMPathPhys = cms.Path(process.unpackers + process.dqmmodules + process.physicsEventsFilter *  process.dtDQMPhysSequence)
0052 
0053 #process.dtDQMPathCalib = cms.Path(process.unpackers + process.dqmmodules + process.calibrationEventsFilter * process.dtDQMCalib)
0054 
0055 process.twinMuxStage2Digis.DTTM7_FED_Source = cms.InputTag("rawDataCollector")
0056 process.dtunpacker.inputLabel = cms.InputTag("rawDataCollector")
0057 process.gtDigis.DaqGtInputTag = cms.InputTag("rawDataCollector")
0058 process.scalersRawToDigi.scalersInputTag = cms.InputTag("rawDataCollector")
0059 
0060 print("Running with run type = ", process.runType.getRunType())
0061 
0062 #----------------------------
0063 #### pp run settings 
0064 #----------------------------
0065 
0066 if (process.runType.getRunType() == process.runType.pp_run):
0067     pass
0068 
0069 
0070 #----------------------------
0071 #### cosmic run settings 
0072 #----------------------------
0073 
0074 if (process.runType.getRunType() == process.runType.cosmic_run):
0075     pass
0076 
0077 
0078 #----------------------------
0079 #### HI run settings 
0080 #----------------------------
0081 
0082 if (process.runType.getRunType() == process.runType.hi_run):
0083     process.twinMuxStage2Digis.DTTM7_FED_Source = cms.InputTag("rawDataRepacker")
0084     process.dtunpacker.inputLabel = cms.InputTag("rawDataRepacker")
0085     process.gtDigis.DaqGtInputTag = cms.InputTag("rawDataRepacker")
0086     process.scalersRawToDigi.scalersInputTag = cms.InputTag("rawDataRepacker")
0087     
0088     process.dtDigiMonitor.ResetCycle = cms.untracked.int32(9999)
0089 
0090 
0091 
0092 ### process customisations included here
0093 from DQM.Integration.config.online_customizations_cfi import *
0094 process = customise(process)
0095 
0096 ### DT slice test specific customisations
0097 if (process.dtDqmConfig.getProcessAB7Digis() or \
0098     process.dtDqmConfig.getProcessAB7TPs()) :
0099     from DQM.DTMonitorModule.slice_test_customizations_cff import *
0100     process = customise_for_slice_test(process,
0101                                        process.dtDqmConfig.getProcessAB7Digis(),
0102                                        process.dtDqmConfig.getProcessAB7TPs())
0103 
0104 ### DT digi customisation
0105 if (process.dtDqmConfig.getRunWithLargeTB()) :
0106     process.dtDigiMonitor.maxTTMounts = 6400
0107 
0108 if (process.dtDqmConfig.getProcessAB7Digis()) :
0109     process.dtAB7DigiMonitor.maxTTMounts = 6400
0110     process.dtAB7DigiMonitor.tdcPedestal = process.dtDqmConfig.getTBTDCPedestal()