Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19035 from dmitrijus/dt4ml
Online DQM fix for ML applications.
- Loading branch information
Showing
4 changed files
with
187 additions
and
61 deletions.
There are no files selected for viewing
111 changes: 111 additions & 0 deletions
111
DQM/Integration/python/clients/dt4ml_dqm_sourceclient-live_cfg.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
import os | ||
|
||
process = cms.Process("DTDQM") | ||
|
||
#---------------------------- | ||
#### Event Source | ||
#---------------------------- | ||
# for live online DQM in P5 | ||
process.load("DQM.Integration.config.inputsource_cfi") | ||
|
||
# for testing in lxplus | ||
#process.load("DQM.Integration.config.fileinputsource_cfi") | ||
|
||
#---------------------------- | ||
#### DQM Environment | ||
#---------------------------- | ||
process.load("DQM.Integration.config.environment_cfi") | ||
process.DQMStore.referenceFileName = '/dqmdata/dqm/reference/dt_reference.root' | ||
#process.DQMStore.referenceFileName = "DT_reference.root" | ||
|
||
#---------------------------- | ||
#### DQM Live Environment | ||
#---------------------------- | ||
process.dqmEnv.subSystemFolder = 'DT' | ||
process.dqmSaver.tag = "DT" | ||
#----------------------------- | ||
|
||
### CUSTOMIZE FOR ML | ||
|
||
# prepare the output directory | ||
filePath = "/globalscratch/dqm4ml_" + process.dqmRunConfig.type.value() | ||
try: | ||
os.makedirs(filePath) | ||
except: | ||
pass | ||
|
||
process.dqmSaver.backupLumiCount = 10 | ||
process.dqmSaver.keepBackupLumi = True | ||
process.dqmSaver.path = filePath | ||
|
||
# disable DQM gui | ||
print "old:",process.DQM.collectorHost | ||
process.DQM.collectorHost = cms.untracked.string('dqm-blackhole.cms') | ||
print "new:",process.DQM.collectorHost | ||
### END OF CUSTOMIZE FOR ML | ||
|
||
# DT reco and DQM sequences | ||
process.load("Configuration.StandardSequences.GeometryRecoDB_cff") | ||
process.load("Configuration/StandardSequences/MagneticField_cff") | ||
process.load("DQM.DTMonitorModule.dt_dqm_sourceclient_common_cff") | ||
#---- for P5 (online) DB access | ||
process.load("DQM.Integration.config.FrontierCondition_GT_cfi") | ||
#---- for offline DB: change and possibly customise the GT | ||
#from Configuration.AlCa.GlobalTag import GlobalTag as gtCustomise | ||
#process.GlobalTag = gtCustomise(process.GlobalTag, 'auto:run2_data', '') | ||
|
||
# message logger | ||
process.MessageLogger = cms.Service("MessageLogger", | ||
destinations = cms.untracked.vstring('cout'), | ||
cout = cms.untracked.PSet(threshold = cms.untracked.string('WARNING')) | ||
) | ||
|
||
process.dqmmodules = cms.Sequence(process.dqmEnv + process.dqmSaver) | ||
|
||
process.dtDQMPathPhys = cms.Path(process.unpackers + process.dqmmodules + process.physicsEventsFilter * process.dtDQMPhysSequence) | ||
|
||
#process.dtDQMPathCalib = cms.Path(process.unpackers + process.dqmmodules + process.calibrationEventsFilter * process.dtDQMCalib) | ||
|
||
process.twinMuxStage2Digis.DTTM7_FED_Source = cms.InputTag("rawDataCollector") | ||
process.dtunpacker.inputLabel = cms.InputTag("rawDataCollector") | ||
process.gtDigis.DaqGtInputTag = cms.InputTag("rawDataCollector") | ||
process.scalersRawToDigi.scalersInputTag = cms.InputTag("rawDataCollector") | ||
|
||
print "Running with run type = ", process.runType.getRunType() | ||
|
||
#---------------------------- | ||
#### pp run settings | ||
#---------------------------- | ||
|
||
if (process.runType.getRunType() == process.runType.pp_run): | ||
process.DQMStore.referenceFileName = '/dqmdata/dqm/reference/dt_reference_pp.root' | ||
|
||
|
||
#---------------------------- | ||
#### cosmic run settings | ||
#---------------------------- | ||
|
||
if (process.runType.getRunType() == process.runType.cosmic_run): | ||
process.DQMStore.referenceFileName = '/dqmdata/dqm/reference/dt_reference_cosmic.root' | ||
|
||
|
||
#---------------------------- | ||
#### HI run settings | ||
#---------------------------- | ||
|
||
if (process.runType.getRunType() == process.runType.hi_run): | ||
process.dtunpacker.fedbyType = cms.bool(False) | ||
process.twinMuxStage2Digis.DTTM7_FED_Source = cms.InputTag("rawDataRepacker") | ||
process.dtunpacker.inputLabel = cms.InputTag("rawDataRepacker") | ||
process.gtDigis.DaqGtInputTag = cms.InputTag("rawDataRepacker") | ||
process.scalersRawToDigi.scalersInputTag = cms.InputTag("rawDataRepacker") | ||
|
||
process.dtDigiMonitor.ResetCycle = cms.untracked.int32(9999) | ||
|
||
process.DQMStore.referenceFileName = '/dqmdata/dqm/reference/dt_reference_hi.root' | ||
|
||
|
||
### process customizations included here | ||
from DQM.Integration.config.online_customizations_cfi import * | ||
process = customise(process) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters