Created
September 1, 2022 07:17
-
-
Save mmusich/da2a879062569370c898facff4c93fda to your computer and use it in GitHub Desktop.
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
from __future__ import print_function | |
import FWCore.ParameterSet.Config as cms | |
import sys | |
from Configuration.Eras.Era_Run3_cff import Run3 | |
process = cms.Process("BeamMonitor", Run3) | |
# Read streamer files from https://github.com/cms-data/DQM-Integration | |
import os | |
dqm_integration_data = [os.path.join(dir,'DQM/Integration/data') for dir in os.getenv('CMSSW_SEARCH_PATH','').split(":") if os.path.exists(os.path.join(dir,'DQM/Integration/data'))][0] | |
# Set the process source | |
process.source = cms.Source("DQMStreamerReader", | |
runNumber = cms.untracked.uint32(356383), | |
runInputDir = cms.untracked.string(dqm_integration_data), | |
SelectEvents = cms.untracked.vstring('*'), | |
streamLabel = cms.untracked.string('streamDQMOnlineBeamspot'), | |
scanOnce = cms.untracked.bool(True), | |
minEventsPerLumi = cms.untracked.int32(1000), | |
delayMillis = cms.untracked.uint32(500), | |
nextLumiTimeoutMillis = cms.untracked.int32(0), | |
skipFirstLumis = cms.untracked.bool(False), | |
deleteDatFiles = cms.untracked.bool(False), | |
endOfRunKills = cms.untracked.bool(False), | |
inputFileTransitionsEachEvent = cms.untracked.bool(False) | |
) | |
process.load('EventFilter.OnlineMetaDataRawToDigi.onlineMetaDataRawToDigi_cfi') | |
process.onlineMetaDataDigis = cms.EDProducer('OnlineMetaDataRawToDigi') | |
process.onlineMetaDataDigis.onlineMetaDataInputLabel = cms.InputTag("hltFEDSelectorTCDS") | |
process.pixelTrackerHVOn = cms.EDFilter( "DetectorStateFilter", | |
DCSRecordLabel = cms.untracked.InputTag( "onlineMetaDataDigis" ), | |
DcsStatusLabel = cms.untracked.InputTag( "scalersRawToDigi" ), | |
DebugOn = cms.untracked.bool( True ), | |
DetectorType = cms.untracked.string( "pixel" ) | |
) | |
process.p = cms.Path(process.onlineMetaDataDigis * process.pixelTrackerHVOn) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment