Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:07:41

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:run3_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 
0091 #
0092 process.l1EmulatorMonitorClientPath = cms.Path(process.l1EmulatorMonitorClient)
0093 
0094 #
0095 process.l1EmulatorMonitorEndPath = cms.EndPath(process.dqmEnv*process.dqmSaver*process.dqmSaverPB)
0096 
0097 #
0098 
0099 #
0100 process.schedule = cms.Schedule(process.rawToDigiPath,
0101                                 process.stage1UnpackerPath,
0102                                 process.l1HwValEmulatorMonitorPath,
0103                                 process.l1EmulatorMonitorClientPath,
0104                                 process.l1EmulatorMonitorEndPath)
0105 
0106 #---------------------------------------------
0107 
0108 # examples for quick fixes in case of troubles 
0109 #    please do not modify the commented lines
0110 #
0111 # remove a module from hardware validation
0112 # cff file: L1Trigger.HardwareValidation.L1HardwareValidation_cff
0113 #
0114 # process.L1HardwareValidation.remove(process.deCsctf)
0115 #
0116 process.L1HardwareValidation.remove(process.deDt)
0117 
0118 
0119 #
0120 # remove a L1 trigger system from the comparator integrated in hardware validation
0121 # cfi file: L1Trigger.HardwareValidation.L1Comparator_cfi
0122 #
0123 #process.l1compare.COMPARE_COLLS = [0, 0, 1, 1,  0, 1, 0, 0, 1, 0, 1, 0]
0124 #
0125 
0126 #process.l1compareforstage1.COMPARE_COLLS = [
0127 #        0,  0,  0,  1,   0,  0,  0,  0,  0,  0,  0, 0
0128 #        ]
0129 
0130 #process.l1demonstage1.COMPARE_COLLS = [
0131 #        0,  0,  0,  1,   0,  0,  0,  0,  0,  0,  0, 0
0132 #        ]
0133       #ETP,HTP,RCT,GCT, DTP,DTF,CTP,CTF,RPC,LTC,GMT,GT
0134 
0135 
0136 #
0137 # remove an expert module for L1 trigger system
0138 # cff file: DQM.L1TMonitor.L1TEmulatorMonitor_cff
0139 #
0140 # process.l1ExpertDataVsEmulator.remove(process.l1GtHwValidation)
0141 #
0142 
0143 #process.l1ExpertDataVsEmulatorStage1.remove(process.l1TdeCSCTF)
0144 
0145 #process.l1ExpertDataVsEmulatorStage1.remove(process.l1TdeRCT)
0146 
0147 process.l1demonstage1.HistFolder = 'L1TEMU'
0148 
0149 process.l1TdeStage1Layer2.HistFolder = 'L1TEMU/Stage1Layer2expert'
0150 
0151 process.l1Stage1GtHwValidation.DirName = "L1TEMU/GTexpert"
0152 
0153 #
0154 # remove a module / sequence from l1EmulatorMonitorClient
0155 # cff file: DQM.L1TMonitorClient.L1TEmulatorMonitorClient_cff
0156 #
0157 # process.l1EmulatorMonitorClient.remove(process.l1EmulatorErrorFlagClient)
0158 #
0159 
0160 
0161 #
0162 # fast over-mask a system in L1TEMUEventInfoClient: 
0163 #   if the name of the system is in the list, the system will be masked
0164 #   (the default mask value is given in L1Systems VPSet)             
0165 #
0166 # names are case sensitive, order is irrelevant
0167 # "ECAL", "HCAL", "RCT", "GCT", "DTTF", "DTTPG", "CSCTF", "CSCTPG", "RPC", "GMT", "GT"
0168 #
0169 # process.l1temuEventInfoClient.DisableL1Systems = cms.vstring("ECAL")
0170 #
0171 
0172 
0173 #
0174 # fast over-mask an object in L1TEMUEventInfoClient:
0175 #   if the name of the object is in the list, the object will be masked
0176 #   (the default mask value is given in L1Objects VPSet)             
0177 #
0178 # names are case sensitive, order is irrelevant
0179 # 
0180 # "Mu", "NoIsoEG", "IsoEG", "CenJet", "ForJet", "TauJet", "ETM", "ETT", "HTT", "HTM", 
0181 # "HfBitCounts", "HfRingEtSums", "TechTrig", "GtExternal
0182 #
0183 # process.l1temuEventInfoClient.DisableL1Objects =  cms.vstring("ETM")   
0184 #
0185 
0186 
0187 #
0188 # turn on verbosity in L1TEMUEventInfoClient
0189 #
0190 # process.l1EmulatorEventInfoClient.verbose = cms.untracked.bool(True)
0191 
0192 print("Running with run type = ", process.runType.getRunType())
0193 process.castorDigis.InputLabel = "rawDataCollector"
0194 process.csctfDigis.producer = "rawDataCollector"
0195 process.dttfDigis.DTTF_FED_Source = "rawDataCollector"
0196 process.ecalDigisCPU.InputLabel = "rawDataCollector"
0197 process.ecalPreshowerDigis.sourceTag = "rawDataCollector"
0198 process.gctDigis.inputLabel = "rawDataCollector"
0199 process.gtDigis.DaqGtInputTag = "rawDataCollector"
0200 process.gtEvmDigis.EvmGtInputTag = "rawDataCollector"
0201 process.hcalDigis.InputLabel = "rawDataCollector"
0202 process.l1compare.FEDsourceEmul = "rawDataCollector"
0203 process.l1compare.FEDsourceData = "rawDataCollector"
0204 process.muonCSCDigis.InputObjects = "rawDataCollector"
0205 process.muonDTDigis.inputLabel = "rawDataCollector"
0206 process.muonRPCDigis.InputLabel = "rawDataCollector"
0207 process.scalersRawToDigi.scalersInputTag = "rawDataCollector"
0208 process.siPixelDigis.cpu.InputLabel = "rawDataCollector"
0209 process.siStripDigis.ProductLabel = "rawDataCollector"
0210 
0211 #--------------------------------------------------
0212 # Heavy Ion Specific Fed Raw Data Collection Label
0213 #--------------------------------------------------
0214 if (process.runType.getRunType() == process.runType.hi_run):
0215     process.castorDigis.InputLabel = "rawDataRepacker"
0216     process.csctfDigis.producer = "rawDataRepacker"
0217     process.dttfDigis.DTTF_FED_Source = "rawDataRepacker"
0218     process.ecalDigisCPU.InputLabel = "rawDataRepacker"
0219     process.ecalPreshowerDigis.sourceTag = "rawDataRepacker"
0220     process.gctDigis.inputLabel = "rawDataRepacker"
0221     process.gtDigis.DaqGtInputTag = "rawDataRepacker"
0222     process.gtEvmDigis.EvmGtInputTag = "rawDataRepacker"
0223     process.hcalDigis.InputLabel = "rawDataRepacker"
0224     process.l1compare.FEDsourceEmul = "rawDataRepacker"
0225     process.l1compare.FEDsourceData = "rawDataRepacker"
0226     process.muonCSCDigis.InputObjects = "rawDataRepacker"
0227     process.muonDTDigis.inputLabel = "rawDataRepacker"
0228     process.muonRPCDigis.InputLabel = "rawDataRepacker"
0229     process.scalersRawToDigi.scalersInputTag = "rawDataRepacker"
0230     process.siPixelDigis.cpu.InputLabel = "rawDataRepacker"
0231     process.siStripDigis.ProductLabel = "rawDataRepacker"
0232 
0233 
0234 
0235 ### process customizations included here
0236 from DQM.Integration.config.online_customizations_cfi import *
0237 process = customise(process)