Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-03-08 02:27:16

0001 from __future__ import print_function
0002 # L1 Trigger DQM sequence (L1T)
0003 #
0004 #   authors previous versions - see CVS
0005 #
0006 #   V.M. Ghete 2011-05-25 revised version of L1 Trigger DQM
0007 
0008 
0009 import FWCore.ParameterSet.Config as cms
0010 
0011 from Configuration.Eras.Era_Run3_cff import Run3
0012 process = cms.Process("DQM", Run3)
0013 
0014 
0015 #----------------------------
0016 # Event Source
0017 #
0018 # for live online DQM in P5
0019 process.load("DQM.Integration.config.inputsource_cfi")
0020 from DQM.Integration.config.inputsource_cfi import options
0021 #
0022 # for testing in lxplus
0023 #process.load("DQM.Integration.config.fileinputsource_cfi")
0024 #from DQM.Integration.config.fileinputsource_cfi import options
0025 
0026 #----------------------------
0027 # DQM Environment
0028  
0029 process.load("DQM.Integration.config.environment_cfi")
0030 process.dqmEnv.subSystemFolder = 'L1T'
0031 process.dqmSaver.tag = 'L1T'
0032 process.dqmSaver.runNumber = options.runNumber
0033 process.dqmSaverPB.tag = 'L1T'
0034 process.dqmSaverPB.runNumber = options.runNumber
0035 
0036 #
0037 # references needed
0038 
0039 # Condition for P5 cluster
0040 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0041 process.GlobalTag.RefreshEachRun = True
0042 # Condition for lxplus: change and possibly customise the GT
0043 #from Configuration.AlCa.GlobalTag import GlobalTag as gtCustomise
0044 #process.GlobalTag = gtCustomise(process.GlobalTag, 'auto:run2_data', '')
0045 
0046 #process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0047 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0048 
0049 #-------------------------------------
0050 # sequences needed for L1 trigger DQM
0051 #
0052 
0053 # standard unpacking sequence 
0054 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")    
0055 
0056 # L1 Trigger sequences 
0057 
0058 # l1tMonitor and l1tMonitorEndPathSeq
0059 process.load("DQM.L1TMonitor.L1TMonitor_cff")    
0060 
0061 # L1 trigger synchronization module - it uses also HltHighLevel filter
0062 process.load("DQM.L1TMonitor.L1TSync_cff")    
0063 
0064 
0065 # l1tMonitorClient and l1tMonitorClientEndPathSeq
0066 process.load("DQM.L1TMonitorClient.L1TMonitorClient_cff")    
0067 
0068 #-------------------------------------
0069 # paths & schedule for L1 Trigger DQM
0070 #
0071 
0072 # TODO define a L1 trigger L1TriggerRawToDigi in the standard sequence 
0073 # to avoid all these remove
0074 process.rawToDigiPath = cms.Path(process.RawToDigi)
0075 #
0076 process.RawToDigi.remove("siPixelDigis")
0077 process.RawToDigi.remove("siStripDigis")
0078 process.RawToDigi.remove("scalersRawToDigi")
0079 process.RawToDigi.remove("castorDigis")
0080 # for GCT, unpack all five samples
0081 process.gctDigis.numberOfGctSamplesToUnpack = 5
0082 
0083 #if ( process.runType.getRunType() == process.runType.pp_run_stage1 or process.runType.getRunType() == process.runType.cosmic_run_stage1):
0084 process.gtDigis.DaqGtFedId = 809
0085 #else:
0086 #    process.gtDigis.DaqGtFedId = cms.untracked.int32(813)
0087 # 
0088 process.l1tMonitorPath = cms.Path(process.l1tMonitorOnline)
0089 
0090 # separate L1TSync path due to the use of the HltHighLevel filter
0091 process.l1tSyncPath = cms.Path(process.l1tSyncHltFilter+process.l1tSync)
0092 
0093 #
0094 process.l1tMonitorClientPath = cms.Path(process.l1tMonitorClient)
0095 
0096 #
0097 process.l1tMonitorEndPath = cms.EndPath(process.l1tMonitorEndPathSeq)
0098 
0099 #
0100 process.l1tMonitorClientEndPath = cms.EndPath(process.l1tMonitorClientEndPathSeq)
0101 
0102 #
0103 process.dqmEndPath = cms.EndPath(
0104                                  process.dqmEnv *
0105                                  process.dqmSaver *
0106                                  process.dqmSaverPB
0107                                  )
0108 
0109 #
0110 process.schedule = cms.Schedule(process.rawToDigiPath,
0111                                 process.l1tMonitorPath,
0112                                 process.l1tSyncPath,
0113                                 #process.l1tMonitorClientPath,
0114                                 #process.l1tMonitorEndPath,
0115                                 #process.l1tMonitorClientEndPath,
0116                                 process.dqmEndPath
0117                                 )
0118 
0119 #---------------------------------------------
0120 
0121 # examples for quick fixes in case of troubles 
0122 #    please do not modify the commented lines
0123 #
0124 
0125 
0126 #
0127 # turn on verbosity in L1TEventInfoClient
0128 #
0129 # process.l1tEventInfoClient.verbose = cms.untracked.bool(True)
0130 
0131 
0132 # remove module(s) or system sequence from l1tMonitorPath
0133 #        quality test disabled also
0134 #
0135 process.l1tMonitorOnline.remove(process.bxTiming)
0136 process.l1tMonitorOnline.remove(process.l1tBPTX)
0137 
0138 #process.l1tMonitorOnline.remove(process.l1tLtc)
0139 
0140 process.l1tMonitorOnline.remove(process.l1tDttf)
0141 
0142 process.l1tMonitorOnline.remove(process.l1tCsctf) 
0143 
0144 process.l1tMonitorOnline.remove(process.l1tRpctf)
0145 
0146 process.l1tMonitorOnline.remove(process.l1tGmt)
0147 
0148 #process.l1tMonitorOnline.remove(process.l1tGt) 
0149 process.l1tGt.HistFolder = "L1T/L1TGTTestCrate"
0150 
0151 #process.l1tMonitorOnline.remove(process.l1ExtraDqmSeq)
0152 
0153 process.l1tMonitorOnline.remove(process.l1tRate)
0154 
0155 process.l1tMonitorOnline.remove(process.l1tRctRun1)
0156 
0157 #process.l1tMonitorOnline.remove(process.l1tGctSeq)
0158 
0159 
0160 # remove module(s) or system sequence from l1tMonitorEndPath
0161 #
0162 process.l1tMonitorEndPathSeq.remove(process.l1s)
0163 process.l1tMonitorEndPathSeq.remove(process.l1tscalers)
0164 
0165 #
0166 process.schedule.remove(process.l1tSyncPath)
0167 
0168 #--------------------------------------------------
0169 # Heavy Ion Specific Fed Raw Data Collection Label
0170 #--------------------------------------------------
0171 
0172 print("Running with run type = ", process.runType.getRunType())
0173 process.castorDigis.InputLabel = "rawDataCollector"
0174 process.csctfDigis.producer = "rawDataCollector"
0175 process.dttfDigis.DTTF_FED_Source = "rawDataCollector"
0176 process.ecalDigis.cpu.InputLabel = "rawDataCollector"
0177 process.ecalPreshowerDigis.sourceTag = "rawDataCollector"
0178 process.gctDigis.inputLabel = "rawDataCollector"
0179 process.gtDigis.DaqGtInputTag = "rawDataCollector"
0180 process.gtEvmDigis.EvmGtInputTag = "rawDataCollector"
0181 process.hcalDigis.InputLabel = "rawDataCollector"
0182 process.muonCSCDigis.InputObjects = "rawDataCollector"
0183 process.muonDTDigis.inputLabel = "rawDataCollector"
0184 process.muonRPCDigis.InputLabel = "rawDataCollector"
0185 process.scalersRawToDigi.scalersInputTag = "rawDataCollector"
0186 process.siPixelDigis.cpu.InputLabel = "rawDataCollector"
0187 process.siStripDigis.ProductLabel = "rawDataCollector"
0188 process.bxTiming.FedSource = "rawDataCollector"
0189 process.l1s.fedRawData = "rawDataCollector"
0190     
0191 if (process.runType.getRunType() == process.runType.hi_run):
0192     process.castorDigis.InputLabel = "rawDataRepacker"
0193     process.csctfDigis.producer = "rawDataRepacker"
0194     process.dttfDigis.DTTF_FED_Source = "rawDataRepacker"
0195     process.ecalDigis.cpu.InputLabel = "rawDataRepacker"
0196     process.ecalPreshowerDigis.sourceTag = "rawDataRepacker"
0197     process.gctDigis.inputLabel = "rawDataRepacker"
0198     process.gtDigis.DaqGtInputTag = "rawDataRepacker"
0199     process.gtEvmDigis.EvmGtInputTag = "rawDataRepacker"
0200     process.hcalDigis.InputLabel = "rawDataRepacker"
0201     process.muonCSCDigis.InputObjects = "rawDataRepacker"
0202     process.muonDTDigis.inputLabel = "rawDataRepacker"
0203     process.muonRPCDigis.InputLabel = "rawDataRepacker"
0204     process.scalersRawToDigi.scalersInputTag = "rawDataRepacker"
0205     process.siPixelDigis.cpu.InputLabel = "rawDataRepacker"
0206     process.siStripDigis.ProductLabel = "rawDataRepacker"
0207     process.bxTiming.FedSource = "rawDataRepacker"
0208     process.l1s.fedRawData = "rawDataRepacker"
0209 
0210 ### process customizations included here
0211 from DQM.Integration.config.online_customizations_cfi import *
0212 process = customise(process)