Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:42:28

0001 from __future__ import print_function
0002 # $Id: physics_dqm_sourceclient-live_cfg.py,v 1.11 2012/02/13 15:09:30 lilopera Exp $
0003 
0004 import FWCore.ParameterSet.Config as cms
0005 
0006 if 'runkey=hi_run' in sys.argv:
0007   from Configuration.Eras.Era_Run3_pp_on_PbPb_approxSiStripClusters_cff import Run3_pp_on_PbPb_approxSiStripClusters
0008   process = cms.Process("Physics", Run3_pp_on_PbPb_approxSiStripClusters)
0009 else:
0010   from Configuration.Eras.Era_Run3_cff import Run3
0011   process = cms.Process("Physics", Run3)
0012 
0013 #----------------------------
0014 # Event Source
0015 #-----------------------------
0016 
0017 # for live online DQM in P5
0018 process.load("DQM.Integration.config.inputsource_cfi")
0019 from DQM.Integration.config.inputsource_cfi import options
0020 
0021 # for testing in lxplus
0022 #process.load("DQM.Integration.config.fileinputsource_cfi")
0023 #from DQM.Integration.config.fileinputsource_cfi import options
0024 
0025 #----------------------------
0026 # DQM Environment
0027 #-----------------------------
0028 
0029 process.load("DQM.Integration.config.environment_cfi")
0030 process.dqmEnv.subSystemFolder = 'Physics'
0031 process.dqmSaver.tag = 'Physics'
0032 process.dqmSaver.runNumber = options.runNumber
0033 process.dqmSaverPB.tag = 'Physics'
0034 process.dqmSaverPB.runNumber = options.runNumber
0035 
0036 # 0=random, 1=physics, 2=calibration, 3=technical
0037 process.hltTriggerTypeFilter = cms.EDFilter("HLTTriggerTypeFilter",
0038     SelectedTriggerType = cms.int32(1)
0039 )
0040 
0041 #---- for P5 (online) DB access
0042 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0043 # Condition for lxplus: change and possibly customise the GT
0044 #from Configuration.AlCa.GlobalTag import GlobalTag as gtCustomise
0045 #process.GlobalTag = gtCustomise(process.GlobalTag, 'auto:run3_data', '')
0046 
0047 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0048 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
0049 process.load('DQM/Physics/qcdLowPtDQM_cfi')
0050 
0051 #process.dump = cms.EDAnalyzer('EventContentAnalyzer')
0052 
0053 process.p = cms.Path(
0054     process.hltTriggerTypeFilter *
0055     process.myRecoSeq1  *
0056     process.myRecoSeq2  *
0057 #    process.dump *
0058     process.qcdLowPtDQM *
0059     process.dqmEnv *
0060     process.dqmSaver *
0061     process.dqmSaverPB
0062 )
0063 
0064 process.siPixelDigis.cpu.InputLabel = "rawDataCollector"
0065 
0066 ### process customizations included here
0067 from DQM.Integration.config.online_customizations_cfi import *
0068 process = customise(process)
0069 
0070 #--------------------------------------------------
0071 # Heavy Ion Specific Fed Raw Data Collection Label
0072 #--------------------------------------------------
0073 
0074 print("Running with run type = ", process.runType.getRunType())
0075 
0076 if (process.runType.getRunType() == process.runType.hi_run):
0077     process.siPixelDigis.cpu.InputLabel = "rawDataRepacker"