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 Emulator DQM sequence
0003 #
0004 #   authors previous versions - see CVS
0005 #
0006 #   V.M. Ghete 2010-10-22 revised version of L1 emulator DQM
0007 
0008 
0009 import FWCore.ParameterSet.Config as cms
0010 
0011 from Configuration.Eras.Era_Run3_cff import Run3
0012 process = cms.Process("L1TEmuDQMlive", 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  
0030 process.load("DQM.Integration.config.environment_cfi")
0031 # for local test
0032 process.dqmEnv.subSystemFolder = 'L1TEMUStage1'
0033 process.dqmSaver.tag = 'L1TEMUStage1'
0034 process.dqmSaver.runNumber = options.runNumber
0035 process.dqmSaverPB.tag = 'L1TEMUStage1'
0036 process.dqmSaverPB.runNumber = options.runNumber
0037 
0038 #
0039 # no references needed
0040 
0041 #
0042 # Condition for P5 cluster
0043 process.load("DQM.Integration.config.FrontierCondition_GT_cfi")
0044 process.GlobalTag.RefreshEachRun = True
0045 # Condition for lxplus: change and possibly customise the GT
0046 #from Configuration.AlCa.GlobalTag import GlobalTag as gtCustomise
0047 #process.GlobalTag = gtCustomise(process.GlobalTag, 'auto:run2_data', '')
0048 
0049 #process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0050 
0051 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0052 #-------------------------------------
0053 # sequences needed for L1 emulator DQM
0054 #
0055 
0056 # standard unpacking sequence 
0057 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")    
0058 
0059 # L1 data - emulator sequences 
0060 process.load("DQM.L1TMonitor.L1TEmulatorMonitor_cff")    
0061 process.load("DQM.L1TMonitorClient.L1TEMUMonitorClient_cff")    
0062 #process.load("L1Trigger.L1TCalorimeter.caloStage1Params_cfi")
0063 
0064 #-------------------------------------
0065 # paths & schedule for L1 emulator DQM
0066 #
0067 
0068 # TODO define a L1 trigger L1TriggerRawToDigi in the standard sequence 
0069 # to avoid all these remove
0070 process.rawToDigiPath = cms.Path(process.RawToDigi)
0071 #
0072 process.RawToDigi.remove("siPixelDigis")
0073 process.RawToDigi.remove("siStripDigis")
0074 process.RawToDigi.remove("scalersRawToDigi")
0075 process.RawToDigi.remove("castorDigis")
0076 
0077 #if ( process.runType.getRunType() == process.runType.pp_run_stage1 or process.runType.getRunType() == process.runType.cosmic_run_stage1):
0078 process.gtDigis.DaqGtFedId = 813
0079 #else:
0080 #    process.gtDigis.DaqGtFedId = cms.untracked.int32(809)
0081 
0082 # L1HvVal + emulator monitoring path
0083 process.l1HwValEmulatorMonitorPath = cms.Path(process.l1Stage1HwValEmulatorMonitor)
0084 
0085 # for RCT at P5, read FED vector from OMDS
0086 #process.load("L1TriggerConfig.RCTConfigProducers.l1RCTOmdsFedVectorProducer_cfi")
0087 #process.valRctDigis.getFedsFromOmds = cms.bool(True)
0088 
0089 process.stage1UnpackerPath = cms.Path(process.caloStage1Digis+process.caloStage1LegacyFormatDigis)
0090 process.caloStage1LegacyFormatDigis.bxMin = -2
0091 process.caloStage1LegacyFormatDigis.bxMax = 2
0092 
0093 #
0094 process.l1EmulatorMonitorClientPath = cms.Path(process.l1EmulatorMonitorClient)
0095 
0096 #
0097 process.l1EmulatorMonitorEndPath = cms.EndPath(process.dqmEnv*process.dqmSaver*process.dqmSaverPB)
0098 
0099 #
0100 
0101 #
0102 process.schedule = cms.Schedule(process.rawToDigiPath,
0103                                 process.stage1UnpackerPath,
0104                                 process.l1HwValEmulatorMonitorPath,
0105                                 process.l1EmulatorMonitorClientPath,
0106                                 process.l1EmulatorMonitorEndPath)
0107 
0108 #---------------------------------------------
0109 
0110 # examples for quick fixes in case of troubles 
0111 #    please do not modify the commented lines
0112 #
0113 # remove a module from hardware validation
0114 # cff file: L1Trigger.HardwareValidation.L1HardwareValidation_cff
0115 #
0116 # process.L1HardwareValidation.remove(process.deCsctf)
0117 #
0118 process.L1HardwareValidation.remove(process.deDt)
0119 
0120 
0121 #
0122 # remove a L1 trigger system from the comparator integrated in hardware validation
0123 # cfi file: L1Trigger.HardwareValidation.L1Comparator_cfi
0124 #
0125 #process.l1compare.COMPARE_COLLS = [0, 0, 1, 1,  0, 1, 0, 0, 1, 0, 1, 0]
0126 #
0127 
0128 #process.l1compareforstage1.COMPARE_COLLS = [
0129 #        0,  0,  0,  1,   0,  0,  0,  0,  0,  0,  0, 0
0130 #        ]
0131 
0132 #process.l1demonstage1.COMPARE_COLLS = [
0133 #        0,  0,  0,  1,   0,  0,  0,  0,  0,  0,  0, 0
0134 #        ]
0135       #ETP,HTP,RCT,GCT, DTP,DTF,CTP,CTF,RPC,LTC,GMT,GT
0136 
0137 
0138 #
0139 # remove an expert module for L1 trigger system
0140 # cff file: DQM.L1TMonitor.L1TEmulatorMonitor_cff
0141 #
0142 # process.l1ExpertDataVsEmulator.remove(process.l1GtHwValidation)
0143 #
0144 
0145 #process.l1ExpertDataVsEmulatorStage1.remove(process.l1TdeCSCTF)
0146 
0147 #process.l1ExpertDataVsEmulatorStage1.remove(process.l1TdeRCT)
0148 
0149 process.l1demonstage1.HistFolder = 'L1TEMU'
0150 
0151 process.l1TdeStage1Layer2.HistFolder = 'L1TEMU/Stage1Layer2expert'
0152 
0153 process.l1Stage1GtHwValidation.DirName = "L1TEMU/GTexpert"
0154 
0155 #
0156 # remove a module / sequence from l1EmulatorMonitorClient
0157 # cff file: DQM.L1TMonitorClient.L1TEmulatorMonitorClient_cff
0158 #
0159 # process.l1EmulatorMonitorClient.remove(process.l1EmulatorErrorFlagClient)
0160 #
0161 
0162 
0163 #
0164 # fast over-mask a system in L1TEMUEventInfoClient: 
0165 #   if the name of the system is in the list, the system will be masked
0166 #   (the default mask value is given in L1Systems VPSet)             
0167 #
0168 # names are case sensitive, order is irrelevant
0169 # "ECAL", "HCAL", "RCT", "GCT", "DTTF", "DTTPG", "CSCTF", "CSCTPG", "RPC", "GMT", "GT"
0170 #
0171 # process.l1temuEventInfoClient.DisableL1Systems = cms.vstring("ECAL")
0172 #
0173 
0174 
0175 #
0176 # fast over-mask an object in L1TEMUEventInfoClient:
0177 #   if the name of the object is in the list, the object will be masked
0178 #   (the default mask value is given in L1Objects VPSet)             
0179 #
0180 # names are case sensitive, order is irrelevant
0181 # 
0182 # "Mu", "NoIsoEG", "IsoEG", "CenJet", "ForJet", "TauJet", "ETM", "ETT", "HTT", "HTM", 
0183 # "HfBitCounts", "HfRingEtSums", "TechTrig", "GtExternal
0184 #
0185 # process.l1temuEventInfoClient.DisableL1Objects =  cms.vstring("ETM")   
0186 #
0187 
0188 
0189 #
0190 # turn on verbosity in L1TEMUEventInfoClient
0191 #
0192 # process.l1EmulatorEventInfoClient.verbose = cms.untracked.bool(True)
0193 
0194 print("Running with run type = ", process.runType.getRunType())
0195 process.castorDigis.InputLabel = "rawDataCollector"
0196 process.csctfDigis.producer = "rawDataCollector"
0197 process.dttfDigis.DTTF_FED_Source = "rawDataCollector"
0198 process.ecalDigis.cpu.InputLabel = "rawDataCollector"
0199 process.ecalPreshowerDigis.sourceTag = "rawDataCollector"
0200 process.gctDigis.inputLabel = "rawDataCollector"
0201 process.gtDigis.DaqGtInputTag = "rawDataCollector"
0202 process.gtEvmDigis.EvmGtInputTag = "rawDataCollector"
0203 process.hcalDigis.InputLabel = "rawDataCollector"
0204 process.l1compare.FEDsourceEmul = "rawDataCollector"
0205 process.l1compare.FEDsourceData = "rawDataCollector"
0206 process.muonCSCDigis.InputObjects = "rawDataCollector"
0207 process.muonDTDigis.inputLabel = "rawDataCollector"
0208 process.muonRPCDigis.InputLabel = "rawDataCollector"
0209 process.scalersRawToDigi.scalersInputTag = "rawDataCollector"
0210 process.siPixelDigis.cpu.InputLabel = "rawDataCollector"
0211 process.siStripDigis.ProductLabel = "rawDataCollector"
0212 
0213 #--------------------------------------------------
0214 # Heavy Ion Specific Fed Raw Data Collection Label
0215 #--------------------------------------------------
0216 if (process.runType.getRunType() == process.runType.hi_run):
0217     process.castorDigis.InputLabel = "rawDataRepacker"
0218     process.csctfDigis.producer = "rawDataRepacker"
0219     process.dttfDigis.DTTF_FED_Source = "rawDataRepacker"
0220     process.ecalDigis.cpu.InputLabel = "rawDataRepacker"
0221     process.ecalPreshowerDigis.sourceTag = "rawDataRepacker"
0222     process.gctDigis.inputLabel = "rawDataRepacker"
0223     process.gtDigis.DaqGtInputTag = "rawDataRepacker"
0224     process.gtEvmDigis.EvmGtInputTag = "rawDataRepacker"
0225     process.hcalDigis.InputLabel = "rawDataRepacker"
0226     process.l1compare.FEDsourceEmul = "rawDataRepacker"
0227     process.l1compare.FEDsourceData = "rawDataRepacker"
0228     process.muonCSCDigis.InputObjects = "rawDataRepacker"
0229     process.muonDTDigis.inputLabel = "rawDataRepacker"
0230     process.muonRPCDigis.InputLabel = "rawDataRepacker"
0231     process.scalersRawToDigi.scalersInputTag = "rawDataRepacker"
0232     process.siPixelDigis.cpu.InputLabel = "rawDataRepacker"
0233     process.siStripDigis.ProductLabel = "rawDataRepacker"
0234 
0235 
0236 
0237 ### process customizations included here
0238 from DQM.Integration.config.online_customizations_cfi import *
0239 process = customise(process)