Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-07-14 22:55:44

0001 from __future__ import print_function
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 from Configuration.Eras.Era_Run3_cff import Run3
0005 process = cms.Process( "sistriplaserDQMLive", Run3 )
0006 process.MessageLogger = cms.Service( "MessageLogger",
0007   cout = cms.untracked.PSet(threshold = cms.untracked.string( 'ERROR' )),
0008   destinations = cms.untracked.vstring( 'cout')
0009 )
0010 #----------------------------
0011 # Event Source
0012 #-----------------------------
0013 # for live online DQM in P5
0014 #process.load("DQM.Integration.config.inputsource_cfi")
0015 #from DQM.Integration.config.inputsource_cfi import options
0016 
0017 # for testing in lxplus
0018 process.load("DQM.Integration.config.fileinputsource_cfi")
0019 from DQM.Integration.config.fileinputsource_cfi import options
0020 
0021 process.maxEvents = cms.untracked.PSet(
0022   input = cms.untracked.int32( -1 )
0023 )
0024 
0025 process.load( "EventFilter.SiStripRawToDigi.SiStripDigis_cfi" )
0026 process.siStripDigis.ProductLabel = "source"#"hltCalibrationRaw"
0027 #--------------------------
0028 # Calibration
0029 #--------------------------
0030 # Condition for P5 cluster
0031 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0032 # Condition for lxplus: change and possibly customise the GT
0033 #from Configuration.AlCa.GlobalTag import GlobalTag as gtCustomise
0034 #process.GlobalTag = gtCustomise(process.GlobalTag, 'auto:run3_data', '')
0035 
0036 #----------------------------
0037 # DQM Live Environment
0038 #-----------------------------
0039 process.load("DQM.Integration.config.environment_cfi")
0040 process.dqmEnv.subSystemFolder    = "SiStripLAS"
0041 process.dqmSaver.tag = "SiStripLAS"
0042 process.dqmSaver.runNumber = options.runNumber
0043 process.dqmSaverPB.tag = "SiStripLAS"
0044 process.dqmSaverPB.runNumber = options.runNumber
0045 #----------------------------
0046 # DQM Alignment Software
0047 #----------------------------
0048 process.load( "DQM.SiStripLASMonitor.LaserAlignmentProducerDQM_cfi" )
0049 process.LaserAlignmentProducerDQM.DigiProducerList = cms.VPSet(
0050   cms.PSet(
0051     DigiLabel = cms.string( 'ZeroSuppressed' ),
0052     DigiType = cms.string( 'Processed' ),
0053     DigiProducer = cms.string( 'siStripDigis' )
0054   )
0055 )
0056 process.LaserAlignmentProducerDQM.FolderName = "SiStripLAS"
0057 process.LaserAlignmentProducerDQM.UpperAdcThreshold = 280 
0058 
0059 process.seqDigitization = cms.Path( process.siStripDigis )
0060 process.DQMCommon   = cms.Sequence(process.dqmEnv*process.dqmSaver*process.dqmSaverPB)
0061 
0062 process.seqAnalysis = cms.Path( process.LaserAlignmentProducerDQM*process.DQMCommon)
0063 process.siStripDigis.ProductLabel = "hltTrackerCalibrationRaw"
0064 #--------------------------------------------------
0065 # Heavy Ion Specific Fed Raw Data Collection Label
0066 #--------------------------------------------------
0067 
0068 print("Running with run type = ", process.runType.getRunType())
0069 
0070 if (process.runType.getRunType() == process.runType.hi_run):
0071     process.siStripDigis.ProductLabel = "rawDataRepacker"
0072 
0073 
0074 ### process customizations included here
0075 from DQM.Integration.config.online_customizations_cfi import *
0076 process = customise(process)