Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-26 02:34:08

0001 # L1 Emulator DQM sequence
0002 #
0003 #   authors previous versions - see CVS
0004 #
0005 #   V.M. Ghete 2010-10-22 revised version of L1 emulator DQM
0006 
0007 
0008 import FWCore.ParameterSet.Config as cms
0009 
0010 from Configuration.Eras.Era_Run3_cff import Run3
0011 process = cms.Process("L1TEmuDQMlive", Run3)
0012 
0013 
0014 #----------------------------
0015 # Event Source
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 
0030 #
0031 process.load("DQM.Integration.config.environment_cfi")
0032 # for local test
0033 process.dqmEnv.subSystemFolder = 'L1TEMU'
0034 process.dqmSaver.tag = 'L1TEMU'
0035 process.dqmSaver.runNumber = options.runNumber
0036 # process.dqmSaverPB.tag = 'L1TEMU'
0037 # process.dqmSaverPB.runNumber = options.runNumber
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 
0063 #-------------------------------------
0064 # paths & schedule for L1 emulator DQM
0065 #
0066 
0067 # TODO define a L1 trigger L1TriggerRawToDigi in the standard sequence 
0068 # to avoid all these remove
0069 process.rawToDigiPath = cms.Path(process.RawToDigi)
0070 #
0071 process.RawToDigi.remove("siPixelDigis")
0072 process.RawToDigi.remove("siStripDigis")
0073 process.RawToDigi.remove("scalersRawToDigi")
0074 process.RawToDigi.remove("castorDigis")
0075 
0076 #if ( process.runType.getRunType() == process.runType.pp_run_stage1 or process.runType.getRunType() == process.runType.cosmic_run_stage1):
0077 process.gtDigis.DaqGtFedId = 809
0078 #else:
0079 #    process.gtDigis.DaqGtFedId = cms.untracked.int32(813)
0080 
0081 # L1HvVal + emulator monitoring path
0082 process.l1HwValEmulatorMonitorPath = cms.Path(process.l1HwValEmulatorMonitor)
0083 
0084 if (process.runType.getRunType() == process.runType.pp_run_stage1 or process.runType.getRunType() == process.runType.cosmic_run_stage1):
0085     process.gtDigis.DaqGtFedId = 809
0086 else:
0087     process.gtDigis.DaqGtFedId = 813
0088 # for RCT at P5, read FED vector from OMDS
0089 #process.load("L1TriggerConfig.RCTConfigProducers.l1RCTOmdsFedVectorProducer_cfi")
0090 #process.valRctDigis.getFedsFromOmds = cms.bool(True)
0091 
0092 #
0093 process.l1EmulatorMonitorClientPath = cms.Path(process.l1EmulatorMonitorClient)
0094 
0095 #
0096 process.l1EmulatorMonitorEndPath = cms.EndPath(process.dqmEnv*process.dqmSaver)#*process.dqmSaverPB)
0097 
0098 #
0099 process.valCscTriggerPrimitiveDigis.gangedME1a = False
0100 
0101 process.valCsctfTrackDigis.SectorProcessor.gangedME1a = False
0102 #
0103 process.schedule = cms.Schedule(process.rawToDigiPath,
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.l1HwValEmulatorMonitorPath.remove(process.l1TdeCSCTF)
0117 #
0118 process.L1HardwareValidation.remove(process.deDt)
0119 
0120 process.l1HwValEmulatorMonitorPath.remove(process.l1TdeRCTRun1)
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 process.l1compare.COMPARE_COLLS = [0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]
0127 
0128 process.l1demon.COMPARE_COLLS = [0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]
0129 
0130 process.l1demon.HistFolder = 'L1TEMU/Legacy'
0131 
0132 process.l1TdeGCT.HistFolder = 'L1TEMU/Legacy/GCTexpert'
0133 
0134 process.l1GtHwValidation.DirName = "L1TEMU/Legacy/GTexpert"
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.l1ExpertDataVsEmulator.remove(process.l1TdeCSCTF)
0144 
0145 #
0146 # remove a module / sequence from l1EmulatorMonitorClient
0147 # cff file: DQM.L1TMonitorClient.L1TEmulatorMonitorClient_cff
0148 #
0149 # process.l1EmulatorMonitorClient.remove(process.l1EmulatorErrorFlagClient)
0150 #
0151 
0152 
0153 #
0154 # fast over-mask a system in L1TEMUEventInfoClient: 
0155 #   if the name of the system is in the list, the system will be masked
0156 #   (the default mask value is given in L1Systems VPSet)             
0157 #
0158 # names are case sensitive, order is irrelevant
0159 # "ECAL", "HCAL", "RCT", "GCT", "DTTF", "DTTPG", "CSCTF", "CSCTPG", "RPC", "GMT", "GT"
0160 #
0161 # process.l1temuEventInfoClient.DisableL1Systems = cms.vstring("ECAL")
0162 #
0163 
0164 
0165 #
0166 # fast over-mask an object in L1TEMUEventInfoClient:
0167 #   if the name of the object is in the list, the object will be masked
0168 #   (the default mask value is given in L1Objects VPSet)             
0169 #
0170 # names are case sensitive, order is irrelevant
0171 # 
0172 # "Mu", "NoIsoEG", "IsoEG", "CenJet", "ForJet", "TauJet", "ETM", "ETT", "HTT", "HTM", 
0173 # "HfBitCounts", "HfRingEtSums", "TechTrig", "GtExternal
0174 #
0175 # process.l1temuEventInfoClient.DisableL1Objects =  cms.vstring("ETM")   
0176 #
0177 
0178 
0179 #
0180 # turn on verbosity in L1TEMUEventInfoClient
0181 #
0182 # process.l1EmulatorEventInfoClient.verbose = cms.untracked.bool(True)
0183 
0184 print("Running with run type = ", process.runType.getRunType())
0185 process.castorDigis.InputLabel = "rawDataCollector"
0186 process.csctfDigis.producer = "rawDataCollector"
0187 process.dttfDigis.DTTF_FED_Source = "rawDataCollector"
0188 process.ecalDigisCPU.InputLabel = "rawDataCollector"
0189 process.ecalPreshowerDigis.sourceTag = "rawDataCollector"
0190 process.gctDigis.inputLabel = "rawDataCollector"
0191 process.gtDigis.DaqGtInputTag = "rawDataCollector"
0192 process.gtEvmDigis.EvmGtInputTag = "rawDataCollector"
0193 process.hcalDigis.InputLabel = "rawDataCollector"
0194 process.l1compare.FEDsourceEmul = "rawDataCollector"
0195 process.l1compare.FEDsourceData = "rawDataCollector"
0196 process.muonCSCDigis.InputObjects = "rawDataCollector"
0197 process.muonDTDigis.inputLabel = "rawDataCollector"
0198 process.muonRPCDigis.InputLabel = "rawDataCollector"
0199 process.scalersRawToDigi.scalersInputTag = "rawDataCollector"
0200 process.siPixelDigis.cpu.InputLabel = "rawDataCollector"
0201 process.siStripDigis.ProductLabel = "rawDataCollector"
0202 
0203 #--------------------------------------------------
0204 # Heavy Ion Specific Fed Raw Data Collection Label
0205 #--------------------------------------------------
0206 if (process.runType.getRunType() == process.runType.hi_run):
0207     process.castorDigis.InputLabel = "rawDataRepacker"
0208     process.csctfDigis.producer = "rawDataRepacker"
0209     process.dttfDigis.DTTF_FED_Source = "rawDataRepacker"
0210     process.ecalDigisCPU.InputLabel = "rawDataRepacker"
0211     process.ecalPreshowerDigis.sourceTag = "rawDataRepacker"
0212     process.gctDigis.inputLabel = "rawDataRepacker"
0213     process.gtDigis.DaqGtInputTag = "rawDataRepacker"
0214     process.gtEvmDigis.EvmGtInputTag = "rawDataRepacker"
0215     process.hcalDigis.InputLabel = "rawDataRepacker"
0216     process.l1compare.FEDsourceEmul = "rawDataRepacker"
0217     process.l1compare.FEDsourceData = "rawDataRepacker"
0218     process.muonCSCDigis.InputObjects = "rawDataRepacker"
0219     process.muonDTDigis.inputLabel = "rawDataRepacker"
0220     process.muonRPCDigis.InputLabel = "rawDataRepacker"
0221     process.scalersRawToDigi.scalersInputTag = "rawDataRepacker"
0222     process.siPixelDigis.cpu.InputLabel = "rawDataRepacker"
0223     process.siStripDigis.ProductLabel = "rawDataRepacker"
0224 
0225 
0226 
0227 ### process customizations included here
0228 from DQM.Integration.config.online_customizations_cfi import *
0229 process = customise(process)