CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
L1TGlobalProducer Class Reference

#include <L1TGlobalProducer.h>

Inheritance diagram for L1TGlobalProducer:
edm::stream::EDProducer<>

Public Member Functions

 L1TGlobalProducer (const edm::ParameterSet &)
 
void produce (edm::Event &, const edm::EventSetup &) override
 
 ~L1TGlobalProducer () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Attributes

uint16_t m_activeBoardsGtDaq
 active boards in L1 GT DAQ record More...
 
edm::InputTag m_algoblkInputTag
 
edm::EDGetToken m_algoblkInputToken
 
bool m_algorithmTriggersUnmasked
 
bool m_algorithmTriggersUnprescaled
 
unsigned int m_alternativeNrBxBoardDaq
 
unsigned int m_bstLengthBytes
 length of BST record (in bytes) from event setup More...
 
edm::InputTag m_CICADAInputTag
 
edm::EDGetTokenT< BXVector< float > > m_CICADAInputToken
 
uint m_currentLumi
 
edm::InputTag m_egInputTag
 input tag for calorimeter collections from Calo Layer 2 (GCT) or Zero Degree Calorimeter (ZDC) More...
 
edm::EDGetTokenT< BXVector< l1t::EGamma > > m_egInputToken
 
int m_emulateBxInEvent
 
edm::InputTag m_extInputTag
 input tag for external conditions More...
 
edm::EDGetTokenT< BXVector< GlobalExtBlk > > m_extInputToken
 
bool m_getPrescaleColumnFromData
 
int m_ifCaloEtaNumberBits
 
int m_ifMuEtaNumberBits
 
std::vector< std::vector< double > > m_initialPrescaleFactorsAlgoTrig
 
std::vector< unsigned int > m_initialTriggerMaskAlgoTrig
 
std::vector< int > m_initialTriggerMaskVetoAlgoTrig
 
bool m_isDebugEnabled
 
edm::InputTag m_jetInputTag
 
edm::EDGetTokenT< BXVector< l1t::Jet > > m_jetInputToken
 
int m_L1DataBxInEvent
 Bx expected in Data coming to GT. More...
 
const L1GtBoardMapsm_l1GtBM
 board maps - cache only the record More...
 
unsigned long long m_l1GtBMCacheID
 
std::unique_ptr< TriggerMenum_l1GtMenu
 
unsigned long long m_l1GtMenuCacheID
 
edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcdm_l1GtMenuToken
 
unsigned long long m_l1GtParCacheID
 
unsigned long long m_l1GtPfAlgoCacheID
 
const l1t::PrescalesVetosFractHelperm_l1GtPrescalesVetosFract
 prescale factors More...
 
edm::ESGetToken< L1TGlobalPrescalesVetosFract, L1TGlobalPrescalesVetosFractRcdm_l1GtPrescaleVetosToken
 
const L1TGlobalParametersm_l1GtStablePar
 cached stuff More...
 
edm::ESGetToken< L1TGlobalParameters, L1TGlobalParametersRcdm_l1GtStableParToken
 
const L1GtTriggerMaskm_l1GtTmAlgo
 trigger masks & veto masks More...
 
unsigned long long m_l1GtTmAlgoCacheID
 
const L1GtTriggerMaskm_l1GtTmVetoAlgo
 
unsigned long long m_l1GtTmVetoAlgoCacheID
 
edm::InputTag m_muInputTag
 input tag for muon collection from the Global Muon Trigger (GMT) More...
 
edm::EDGetTokenT< BXVector< l1t::Muon > > m_muInputToken
 
edm::InputTag m_muShowerInputTag
 
edm::EDGetTokenT< BXVector< l1t::MuonShower > > m_muShowerInputToken
 
int m_nrL1EG
 
int m_nrL1Jet
 
int m_nrL1Mu
 
int m_nrL1MuShower
 
int m_nrL1Tau
 
unsigned int m_numberDaqPartitions
 
unsigned int m_numberPhysTriggers
 
const std::vector< std::vector< double > > * m_prescaleFactorsAlgoTrig
 
unsigned int m_prescaleSet
 prescale set used More...
 
bool m_printL1Menu
 
bool m_produceAXOL1TLScore
 
bool m_produceL1GtDaqRecord
 logical flag to produce the L1 GT DAQ readout record More...
 
bool m_produceL1GtObjectMapRecord
 logical flag to produce the L1 GT object map record More...
 
int m_psBstLengthBytes
 length of BST record (in bytes) from parameter set More...
 
bool m_requireMenuToMatchAlgoBlkInput
 
bool m_resetPSCountersEachLumiSec
 
bool m_semiRandomInitialPSCounters
 
edm::InputTag m_sumInputTag
 
edm::EDGetTokenT< BXVector< l1t::EtSum > > m_sumInputToken
 
edm::InputTag m_sumZdcInputTag
 
edm::EDGetTokenT< BXVector< l1t::EtSum > > m_sumZdcInputToken
 
edm::InputTag m_tauInputTag
 
edm::EDGetTokenT< BXVector< l1t::Tau > > m_tauInputToken
 
int m_totalBxInEvent
 total number of Bx's in the event coming from EventSetup More...
 
const std::vector< unsigned int > * m_triggerMaskAlgoTrig
 
const std::vector< int > * m_triggerMaskVetoAlgoTrig
 
std::unique_ptr< l1t::GlobalBoardm_uGtBrd
 
bool m_useMuonShowers
 
int m_verbosity
 verbosity level More...
 
bool m_writePsbL1GtDaqRecord
 logical flag to write the PSB content in the L1 GT DAQ record More...
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

Definition at line 43 of file L1TGlobalProducer.h.

Constructor & Destructor Documentation

◆ L1TGlobalProducer()

L1TGlobalProducer::L1TGlobalProducer ( const edm::ParameterSet parSet)
explicit

Definition at line 107 of file L1TGlobalProducer.cc.

References LogTrace, m_activeBoardsGtDaq, m_algoblkInputTag, m_algoblkInputToken, m_algorithmTriggersUnmasked, m_algorithmTriggersUnprescaled, m_alternativeNrBxBoardDaq, m_bstLengthBytes, m_CICADAInputTag, m_CICADAInputToken, m_currentLumi, m_egInputTag, m_egInputToken, m_emulateBxInEvent, m_extInputTag, m_extInputToken, m_getPrescaleColumnFromData, m_ifCaloEtaNumberBits, m_ifMuEtaNumberBits, m_initialPrescaleFactorsAlgoTrig, m_jetInputTag, m_jetInputToken, m_L1DataBxInEvent, m_l1GtBMCacheID, m_l1GtMenuCacheID, m_l1GtMenuToken, m_l1GtParCacheID, m_l1GtPfAlgoCacheID, m_l1GtPrescaleVetosToken, m_l1GtStableParToken, m_l1GtTmAlgoCacheID, m_l1GtTmVetoAlgoCacheID, m_muInputTag, m_muInputToken, m_muShowerInputTag, m_muShowerInputToken, m_nrL1EG, m_nrL1Jet, m_nrL1Mu, m_nrL1MuShower, m_nrL1Tau, m_numberDaqPartitions, m_numberPhysTriggers, m_produceAXOL1TLScore, m_produceL1GtDaqRecord, m_produceL1GtObjectMapRecord, m_requireMenuToMatchAlgoBlkInput, m_resetPSCountersEachLumiSec, m_semiRandomInitialPSCounters, m_sumInputTag, m_sumInputToken, m_sumZdcInputTag, m_sumZdcInputToken, m_tauInputTag, m_tauInputToken, m_totalBxInEvent, m_uGtBrd, m_useMuonShowers, and m_verbosity.

108  : m_muInputTag(parSet.getParameter<edm::InputTag>("MuonInputTag")),
109  m_muShowerInputTag(parSet.getParameter<edm::InputTag>("MuonShowerInputTag")),
110  m_egInputTag(parSet.getParameter<edm::InputTag>("EGammaInputTag")),
111  m_tauInputTag(parSet.getParameter<edm::InputTag>("TauInputTag")),
112  m_jetInputTag(parSet.getParameter<edm::InputTag>("JetInputTag")),
113  m_sumInputTag(parSet.getParameter<edm::InputTag>("EtSumInputTag")),
114  m_sumZdcInputTag(parSet.getParameter<edm::InputTag>("EtSumZdcInputTag")),
115  m_CICADAInputTag(parSet.getParameter<edm::InputTag>("CICADAInputTag")),
116  m_extInputTag(parSet.getParameter<edm::InputTag>("ExtInputTag")),
117 
118  m_produceL1GtDaqRecord(parSet.getParameter<bool>("ProduceL1GtDaqRecord")),
119  m_produceL1GtObjectMapRecord(parSet.getParameter<bool>("ProduceL1GtObjectMapRecord")),
120 
121  m_emulateBxInEvent(parSet.getParameter<int>("EmulateBxInEvent")),
122  m_L1DataBxInEvent(parSet.getParameter<int>("L1DataBxInEvent")),
123 
124  m_alternativeNrBxBoardDaq(parSet.getParameter<unsigned int>("AlternativeNrBxBoardDaq")),
125  m_psBstLengthBytes(parSet.getParameter<int>("BstLengthBytes")),
126 
127  m_prescaleSet(parSet.getParameter<unsigned int>("PrescaleSet")),
128 
129  m_algorithmTriggersUnprescaled(parSet.getParameter<bool>("AlgorithmTriggersUnprescaled")),
130  m_algorithmTriggersUnmasked(parSet.getParameter<bool>("AlgorithmTriggersUnmasked")),
131 
132  m_verbosity(parSet.getUntrackedParameter<int>("Verbosity")),
133  m_printL1Menu(parSet.getUntrackedParameter<bool>("PrintL1Menu")),
135  m_getPrescaleColumnFromData(parSet.getParameter<bool>("GetPrescaleColumnFromData")),
136  m_requireMenuToMatchAlgoBlkInput(parSet.getParameter<bool>("RequireMenuToMatchAlgoBlkInput")),
137  m_algoblkInputTag(parSet.getParameter<edm::InputTag>("AlgoBlkInputTag")),
138  m_resetPSCountersEachLumiSec(parSet.getParameter<bool>("resetPSCountersEachLumiSec")),
139  m_semiRandomInitialPSCounters(parSet.getParameter<bool>("semiRandomInitialPSCounters")),
140  m_useMuonShowers(parSet.getParameter<bool>("useMuonShowers")),
141  m_produceAXOL1TLScore(parSet.getParameter<bool>("produceAXOL1TLScore")) {
142  m_egInputToken = consumes<BXVector<EGamma>>(m_egInputTag);
143  m_tauInputToken = consumes<BXVector<Tau>>(m_tauInputTag);
144  m_jetInputToken = consumes<BXVector<Jet>>(m_jetInputTag);
145  m_sumInputToken = consumes<BXVector<EtSum>>(m_sumInputTag);
146  m_sumZdcInputToken = consumes<BXVector<EtSum>>(m_sumZdcInputTag);
147  m_CICADAInputToken = consumes<BXVector<float>>(m_CICADAInputTag);
148  m_muInputToken = consumes<BXVector<Muon>>(m_muInputTag);
149  if (m_useMuonShowers)
150  m_muShowerInputToken = consumes<BXVector<MuonShower>>(m_muShowerInputTag);
151  m_extInputToken = consumes<BXVector<GlobalExtBlk>>(m_extInputTag);
152  m_l1GtStableParToken = esConsumes<L1TGlobalParameters, L1TGlobalParametersRcd>();
153  m_l1GtMenuToken = esConsumes<L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd>();
155  m_l1GtPrescaleVetosToken = esConsumes<L1TGlobalPrescalesVetosFract, L1TGlobalPrescalesVetosFractRcd>();
156  }
158  m_algoblkInputToken = consumes<BXVector<GlobalAlgBlk>>(m_algoblkInputTag);
159  }
160 
161  if (m_verbosity) {
162  LogTrace("L1TGlobalProducer") << "\nInput tag for muon collection from uGMT: " << m_muInputTag
163  << "\nInput tag for calorimeter jet collections from Cal: " << m_jetInputTag
164  << "\nInput tag for external conditions : " << m_extInputTag << std::endl;
165 
166  LogTrace("L1TGlobalProducer") << "\nProduce the L1 uGT DAQ readout record: " << m_produceL1GtDaqRecord
167  << "\nProduce the L1 uGT Object Map record: "
168  << m_produceL1GtObjectMapRecord << " \n"
169  << "\nNumber of BxInEvent to be emulated: " << m_emulateBxInEvent << " \n"
170  << "\nAlternative for number of BX in GT DAQ record: 0x" << std::hex
171  << m_alternativeNrBxBoardDaq << " \n"
172  << "\nRun algorithm triggers unprescaled: "
174  << "\nRun algorithm triggers unmasked (all enabled): " << m_algorithmTriggersUnmasked
175  << "\n"
176  << std::endl;
177  }
178 
179  if ((m_emulateBxInEvent > 0) && ((m_emulateBxInEvent % 2) == 0)) {
181 
182  if (m_verbosity) {
183  edm::LogWarning("L1TGlobalProducer")
184  << "\nWARNING: Number of bunch crossing to be emulated rounded to: " << m_emulateBxInEvent
185  << "\n The number must be an odd number!\n"
186  << std::endl;
187  }
188  }
189 
190  if ((m_L1DataBxInEvent > 0) && ((m_L1DataBxInEvent % 2) == 0)) {
192 
193  if (m_verbosity) {
194  edm::LogWarning("L1TGlobalProducer")
195  << "\nWARNING: Number of bunch crossing for incoming L1 Data rounded to: " << m_L1DataBxInEvent
196  << "\n The number must be an odd number!\n"
197  << std::endl;
198  }
199  } else if (m_L1DataBxInEvent < 0) {
200  m_L1DataBxInEvent = 1;
201 
202  if (m_verbosity) {
203  edm::LogWarning("L1TGlobalProducer")
204  << "\nWARNING: Number of bunch crossing for incoming L1 Data was changed to: " << m_L1DataBxInEvent
205  << "\n The number must be an odd positive number!\n"
206  << std::endl;
207  }
208  }
209 
210  // register products
212  produces<GlobalAlgBlkBxCollection>();
213  //blwEXT produces<GlobalExtBlkBxCollection>();
214  }
215 
217  produces<GlobalObjectMapRecord>();
218  }
219 
220  if (m_produceAXOL1TLScore) {
221  produces<AXOL1TLScoreBxCollection>("AXOScore");
222  }
223 
224  // create new uGt Board
225  m_uGtBrd = std::make_unique<GlobalBoard>();
226  m_uGtBrd->setVerbosity(m_verbosity);
227  m_uGtBrd->setResetPSCountersEachLumiSec(m_resetPSCountersEachLumiSec);
228  m_uGtBrd->setSemiRandomInitialPSCounters(m_semiRandomInitialPSCounters);
229 
230  // initialize cached IDs
231 
232  //
233  m_l1GtParCacheID = 0ULL;
234  m_l1GtMenuCacheID = 0ULL;
235 
238 
239  m_nrL1Mu = 0;
240  m_nrL1MuShower = 0;
241  m_nrL1EG = 0;
242  m_nrL1Tau = 0;
243 
244  m_nrL1Jet = 0;
245 
248 
249  //
250  m_l1GtParCacheID = 0ULL;
251 
252  m_totalBxInEvent = 0;
253 
255  m_bstLengthBytes = 0;
256 
257  //
258  m_l1GtBMCacheID = 0ULL;
259 
260  //
261  m_l1GtPfAlgoCacheID = 0ULL;
262 
263  m_l1GtTmAlgoCacheID = 0ULL;
264 
266 
267  m_currentLumi = 0;
268 
269  // Set default, initial, dummy prescale factor table
270  std::vector<std::vector<double>> temp_prescaleTable;
271 
272  temp_prescaleTable.push_back(std::vector<double>());
273  m_initialPrescaleFactorsAlgoTrig = temp_prescaleTable;
274 }
edm::EDGetTokenT< BXVector< float > > m_CICADAInputToken
bool isDebugEnabled()
edm::InputTag m_jetInputTag
unsigned int m_numberDaqPartitions
edm::InputTag m_algoblkInputTag
unsigned long long m_l1GtParCacheID
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
unsigned long long m_l1GtTmVetoAlgoCacheID
int m_verbosity
verbosity level
uint16_t m_activeBoardsGtDaq
active boards in L1 GT DAQ record
edm::InputTag m_egInputTag
input tag for calorimeter collections from Calo Layer 2 (GCT) or Zero Degree Calorimeter (ZDC) ...
edm::EDGetTokenT< BXVector< l1t::Tau > > m_tauInputToken
int m_psBstLengthBytes
length of BST record (in bytes) from parameter set
bool m_produceL1GtObjectMapRecord
logical flag to produce the L1 GT object map record
int m_totalBxInEvent
total number of Bx&#39;s in the event coming from EventSetup
unsigned int m_numberPhysTriggers
edm::EDGetTokenT< BXVector< GlobalExtBlk > > m_extInputToken
edm::ESGetToken< L1TGlobalParameters, L1TGlobalParametersRcd > m_l1GtStableParToken
unsigned long long m_l1GtTmAlgoCacheID
std::vector< std::vector< double > > m_initialPrescaleFactorsAlgoTrig
edm::InputTag m_sumZdcInputTag
edm::ESGetToken< L1TGlobalPrescalesVetosFract, L1TGlobalPrescalesVetosFractRcd > m_l1GtPrescaleVetosToken
unsigned int m_alternativeNrBxBoardDaq
#define LogTrace(id)
edm::InputTag m_sumInputTag
T getUntrackedParameter(std::string const &, T const &) const
edm::InputTag m_muInputTag
input tag for muon collection from the Global Muon Trigger (GMT)
edm::InputTag m_extInputTag
input tag for external conditions
unsigned long long m_l1GtMenuCacheID
edm::InputTag m_tauInputTag
edm::InputTag m_muShowerInputTag
bool m_produceL1GtDaqRecord
logical flag to produce the L1 GT DAQ readout record
edm::EDGetTokenT< BXVector< l1t::Muon > > m_muInputToken
unsigned int m_prescaleSet
prescale set used
edm::EDGetTokenT< BXVector< l1t::EtSum > > m_sumInputToken
int m_L1DataBxInEvent
Bx expected in Data coming to GT.
unsigned long long m_l1GtBMCacheID
edm::InputTag m_CICADAInputTag
edm::EDGetToken m_algoblkInputToken
unsigned int m_bstLengthBytes
length of BST record (in bytes) from event setup
edm::EDGetTokenT< BXVector< l1t::EtSum > > m_sumZdcInputToken
edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd > m_l1GtMenuToken
unsigned long long m_l1GtPfAlgoCacheID
std::unique_ptr< l1t::GlobalBoard > m_uGtBrd
Log< level::Warning, false > LogWarning
edm::EDGetTokenT< BXVector< l1t::MuonShower > > m_muShowerInputToken
edm::EDGetTokenT< BXVector< l1t::Jet > > m_jetInputToken
edm::EDGetTokenT< BXVector< l1t::EGamma > > m_egInputToken

◆ ~L1TGlobalProducer()

L1TGlobalProducer::~L1TGlobalProducer ( )
override

Definition at line 277 of file L1TGlobalProducer.cc.

277 {}

Member Function Documentation

◆ fillDescriptions()

void L1TGlobalProducer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 38 of file L1TGlobalProducer.cc.

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, ProducerED_cfi::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

38  {
40  // These parameters are part of the L1T/HLT interface, avoid changing if possible::
41  desc.add<edm::InputTag>("MuonInputTag", edm::InputTag(""))
42  ->setComment("InputTag for Global Muon Trigger (required parameter: default value is invalid)");
43  desc.add<edm::InputTag>("MuonShowerInputTag", edm::InputTag(""))
44  ->setComment("InputTag for Global Muon Shower Trigger (required parameter: default value is invalid)");
45  desc.add<edm::InputTag>("EGammaInputTag", edm::InputTag(""))
46  ->setComment("InputTag for Calo Trigger EGamma (required parameter: default value is invalid)");
47  desc.add<edm::InputTag>("TauInputTag", edm::InputTag(""))
48  ->setComment("InputTag for Calo Trigger Tau (required parameter: default value is invalid)");
49  desc.add<edm::InputTag>("JetInputTag", edm::InputTag(""))
50  ->setComment("InputTag for Calo Trigger Jet (required parameter: default value is invalid)");
51  desc.add<edm::InputTag>("EtSumInputTag", edm::InputTag(""))
52  ->setComment("InputTag for Calo Trigger EtSum (required parameter: default value is invalid)");
53  desc.add<edm::InputTag>("EtSumZdcInputTag", edm::InputTag(""))
54  ->setComment("InputTag for ZDC EtSums Plus and Minus (required parameter: default value is invalid)");
55  desc.add<edm::InputTag>("CICADAInputTag", edm::InputTag(""))
56  ->setComment("InputTag for CICADA Anomaly Detection (required parameter: default value is invalid)");
57  desc.add<edm::InputTag>("ExtInputTag", edm::InputTag(""))
58  ->setComment("InputTag for external conditions (not required, but recommend to specify explicitly in config)");
59  desc.add<edm::InputTag>("AlgoBlkInputTag", edm::InputTag("hltGtStage2Digis"))
60  ->setComment(
61  "InputTag for unpacked Algblk (required only if GetPrescaleColumnFromData orRequireMenuToMatchAlgoBlkInput "
62  "set to true)");
63  desc.add<bool>("GetPrescaleColumnFromData", false)
64  ->setComment("Get prescale column from unpacked GlobalAlgBck. Otherwise use value specified in PrescaleSet");
65  desc.add<bool>("AlgorithmTriggersUnprescaled", false)
66  ->setComment("not required, but recommend to specify explicitly in config");
67  desc.add<bool>("RequireMenuToMatchAlgoBlkInput", true)
68  ->setComment(
69  "This requires that the L1 menu record to match the menu used to produce the inputed L1 results, should be "
70  "true when used by the HLT to produce the object map");
71  desc.add<bool>("AlgorithmTriggersUnmasked", false)
72  ->setComment("not required, but recommend to specify explicitly in config");
73 
74  // switch for muon showers in Run-3
75  desc.add<bool>("useMuonShowers", false);
76 
77  //switch for saving AXO score
78  desc.add<bool>("produceAXOL1TLScore", false);
79 
80  // disables resetting the prescale counters each lumisection (needed for offline)
81  // originally, the L1T firmware applied the reset of prescale counters at the end of every LS;
82  // this reset was disabled in the L1T firmware starting from run-362658 (November 25th, 2022), see
83  // https://github.com/cms-sw/cmssw/pull/37395#issuecomment-1323437044
84  desc.add<bool>("resetPSCountersEachLumiSec", false);
85 
86  // initialise prescale counters with a semi-random value in the range [0, prescale*10^precision - 1];
87  // if false, the prescale counters are initialised to zero
88  desc.add<bool>("semiRandomInitialPSCounters", false);
89 
90  // These parameters have well defined default values and are not currently
91  // part of the L1T/HLT interface. They can be cleaned up or updated at will:
92  desc.add<bool>("ProduceL1GtDaqRecord", true);
93  desc.add<bool>("ProduceL1GtObjectMapRecord", true);
94  desc.add<int>("EmulateBxInEvent", 1);
95  desc.add<int>("L1DataBxInEvent", 5);
96  desc.add<unsigned int>("AlternativeNrBxBoardDaq", 0);
97  desc.add<int>("BstLengthBytes", -1);
98  desc.add<unsigned int>("PrescaleSet", 1);
99  desc.addUntracked<int>("Verbosity", 0);
100  desc.addUntracked<bool>("PrintL1Menu", false);
101  desc.add<std::string>("TriggerMenuLuminosity", "startup");
102  descriptions.add("L1TGlobalProducer", desc);
103 }
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ produce()

void L1TGlobalProducer::produce ( edm::Event iEvent,
const edm::EventSetup evSetup 
)
override

Needs error checking that something exists at this bx.

Definition at line 282 of file L1TGlobalProducer.cc.

References nano_mu_digi_cff::bx, l1t::TriggerMenuParser::corCaloTemplate(), l1t::TriggerMenuParser::corEnergySumTemplate(), l1t::TriggerMenuParser::corMuonTemplate(), gather_cfg::cout, data, TauDecayModes::dec, Exception, edm::EventSetup::get(), L1TUtmTriggerMenu::getFirmwareUuidHashed(), edm::EventSetup::getHandle(), l1t::TriggerMenuParser::gtAlgorithmAliasMap(), l1t::TriggerMenuParser::gtAlgorithmMap(), l1t::TriggerMenuParser::gtScaleDbKey(), l1t::TriggerMenuParser::gtScales(), l1t::TriggerMenuParser::gtTriggerMenuImplementation(), l1t::TriggerMenuParser::gtTriggerMenuInterface(), l1t::TriggerMenuParser::gtTriggerMenuName(), l1t::TriggerMenuParser::gtTriggerMenuUUID(), iEvent, edm::HandleBase::isValid(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, LogDebug, LogTrace, m_algoblkInputToken, m_algorithmTriggersUnmasked, m_algorithmTriggersUnprescaled, m_CICADAInputToken, m_currentLumi, m_egInputToken, m_emulateBxInEvent, m_extInputToken, m_getPrescaleColumnFromData, m_initialPrescaleFactorsAlgoTrig, m_initialTriggerMaskAlgoTrig, m_initialTriggerMaskVetoAlgoTrig, m_isDebugEnabled, m_jetInputToken, m_L1DataBxInEvent, m_l1GtMenu, m_l1GtMenuCacheID, m_l1GtMenuToken, m_l1GtParCacheID, m_l1GtPfAlgoCacheID, m_l1GtPrescalesVetosFract, m_l1GtPrescaleVetosToken, m_l1GtStablePar, m_l1GtStableParToken, m_muInputToken, m_muShowerInputToken, m_nrL1EG, m_nrL1Jet, m_nrL1Mu, m_nrL1MuShower, m_nrL1Tau, m_numberPhysTriggers, m_prescaleFactorsAlgoTrig, m_prescaleSet, m_printL1Menu, m_produceAXOL1TLScore, m_produceL1GtDaqRecord, m_produceL1GtObjectMapRecord, m_requireMenuToMatchAlgoBlkInput, m_sumInputToken, m_sumZdcInputToken, m_tauInputToken, m_totalBxInEvent, m_triggerMaskAlgoTrig, m_triggerMaskVetoAlgoTrig, m_uGtBrd, m_useMuonShowers, m_verbosity, SiStripPI::max, eostools::move(), l1t::TriggerMenuParser::parseCondFormats(), l1t::PrescalesVetosFractHelper::prescaleTable(), print(), edm::ESHandle< T >::product(), l1t::TriggerMenuParser::setGtNumberConditionChips(), l1t::TriggerMenuParser::setGtNumberPhysTriggers(), l1t::TriggerMenuParser::setGtOrderConditionChip(), l1t::TriggerMenuParser::setGtPinsOnConditionChip(), l1t::PrescalesVetosFractHelper::triggerMaskVeto(), l1t::TriggerMenuParser::vecAXOL1TLTemplate(), l1t::TriggerMenuParser::vecCaloTemplate(), l1t::TriggerMenuParser::vecCICADATemplate(), l1t::TriggerMenuParser::vecCorrelationTemplate(), l1t::TriggerMenuParser::vecCorrelationThreeBodyTemplate(), l1t::TriggerMenuParser::vecCorrelationWithOverlapRemovalTemplate(), l1t::TriggerMenuParser::vecEnergySumTemplate(), l1t::TriggerMenuParser::vecEnergySumZdcTemplate(), l1t::TriggerMenuParser::vecExternalTemplate(), l1t::TriggerMenuParser::vecMuonShowerTemplate(), and l1t::TriggerMenuParser::vecMuonTemplate().

282  {
283  // process event iEvent
284  // get / update the stable parameters from the EventSetup
285  // local cache & check on cacheIdentifier
286 
287  unsigned long long l1GtParCacheID = evSetup.get<L1TGlobalParametersRcd>().cacheIdentifier();
288 
289  if (m_l1GtParCacheID != l1GtParCacheID) {
291  m_l1GtStablePar = l1GtStablePar.product();
292  const GlobalParamsHelper* data = GlobalParamsHelper::readFromEventSetup(m_l1GtStablePar);
293 
294  // number of bx
295  m_totalBxInEvent = data->totalBxInEvent();
296 
297  // number of physics triggers
298  m_numberPhysTriggers = data->numberPhysTriggers();
299 
300  // number of objects of each type
301  m_nrL1Mu = data->numberL1Mu();
302 
303  // There should be at most 1 muon shower object per BX
304  // This object contains information for the in-time
305  // showers and out-of-time showers
306  if (m_useMuonShowers)
307  m_nrL1MuShower = 1;
308 
309  // EG
310  m_nrL1EG = data->numberL1EG();
311 
312  // jets
313  m_nrL1Jet = data->numberL1Jet();
314 
315  // taus
316  m_nrL1Tau = data->numberL1Tau();
317 
318  if (m_L1DataBxInEvent < 1)
319  m_L1DataBxInEvent = 1;
320  int minL1DataBxInEvent = (m_L1DataBxInEvent + 1) / 2 - m_L1DataBxInEvent;
321  int maxL1DataBxInEvent = (m_L1DataBxInEvent + 1) / 2 - 1;
322 
323  // Initialize Board
325  m_nrL1Mu,
327  m_nrL1EG,
328  m_nrL1Tau,
329  m_nrL1Jet,
330  minL1DataBxInEvent,
331  maxL1DataBxInEvent);
332 
333  //
334  m_l1GtParCacheID = l1GtParCacheID;
335  }
336 
337  if (m_emulateBxInEvent < 0) {
339  }
340 
341  if (m_emulateBxInEvent < 1)
342  m_emulateBxInEvent = 1;
343  int minEmulBxInEvent = (m_emulateBxInEvent + 1) / 2 - m_emulateBxInEvent;
344  int maxEmulBxInEvent = (m_emulateBxInEvent + 1) / 2 - 1;
345 
346  // get / update the trigger menu from the EventSetup
347  // local cache & check on cacheIdentifier
348  unsigned long long l1GtMenuCacheID = evSetup.get<L1TUtmTriggerMenuRcd>().cacheIdentifier();
349 
350  if (m_l1GtMenuCacheID != l1GtMenuCacheID) {
351  const GlobalParamsHelper* data = GlobalParamsHelper::readFromEventSetup(m_l1GtStablePar);
352 
354  const L1TUtmTriggerMenu* utml1GtMenu = l1GtMenu.product();
355 
358  iEvent.getByToken(m_algoblkInputToken, m_uGtAlgBlk);
359  if (m_uGtAlgBlk->size() >= 1) {
360  if ((*m_uGtAlgBlk)[0].getL1FirmwareUUID() != static_cast<int>(utml1GtMenu->getFirmwareUuidHashed())) {
361  throw cms::Exception("ConditionsError")
362  << " Error L1 menu loaded in via conditions does not match the L1 actually run "
363  << (*m_uGtAlgBlk)[0].getL1FirmwareUUID() << " vs " << utml1GtMenu->getFirmwareUuidHashed()
364  << ". This means that the mapping of the names to the bits may be incorrect. Please check the "
365  "L1TUtmTriggerMenuRcd record supplied. Unless you know what you are doing, do not simply disable this "
366  "check via the config as this a major error and the indication of something very wrong";
367  }
368  }
369  }
370 
371  // Instantiate Parser
373 
374  gtParser.setGtNumberConditionChips(data->numberChips());
375  gtParser.setGtPinsOnConditionChip(data->pinsOnChip());
376  gtParser.setGtOrderConditionChip(data->orderOfChip());
377  gtParser.setGtNumberPhysTriggers(data->numberPhysTriggers());
378 
379  //Parse menu into emulator classes
380  gtParser.parseCondFormats(utml1GtMenu);
381 
382  // transfer the condition map and algorithm map from parser to L1uGtTriggerMenu
383  m_l1GtMenu = std::make_unique<TriggerMenu>(gtParser.gtTriggerMenuName(),
384  data->numberChips(),
385  gtParser.vecMuonTemplate(),
386  gtParser.vecMuonShowerTemplate(),
387  gtParser.vecCaloTemplate(),
388  gtParser.vecEnergySumTemplate(),
389  gtParser.vecEnergySumZdcTemplate(),
390  gtParser.vecAXOL1TLTemplate(),
391  gtParser.vecCICADATemplate(),
392  gtParser.vecExternalTemplate(),
393  gtParser.vecCorrelationTemplate(),
396  gtParser.corMuonTemplate(),
397  gtParser.corCaloTemplate(),
398  gtParser.corEnergySumTemplate());
399 
400  m_l1GtMenu->setGtTriggerMenuInterface(gtParser.gtTriggerMenuInterface());
401  m_l1GtMenu->setGtTriggerMenuImplementation(gtParser.gtTriggerMenuImplementation());
402  m_l1GtMenu->setGtScaleDbKey(gtParser.gtScaleDbKey());
403  m_l1GtMenu->setGtScales(gtParser.gtScales());
404  m_l1GtMenu->setGtTriggerMenuUUID(gtParser.gtTriggerMenuUUID());
405 
406  m_l1GtMenu->setGtAlgorithmMap(gtParser.gtAlgorithmMap());
407  m_l1GtMenu->setGtAlgorithmAliasMap(gtParser.gtAlgorithmAliasMap());
408 
409  m_l1GtMenu->buildGtConditionMap();
410 
411  int printV = 2;
412  if (m_printL1Menu)
413  m_l1GtMenu->print(std::cout, printV);
414 
415  m_l1GtMenuCacheID = l1GtMenuCacheID;
416  }
417 
418  // get / update the board maps from the EventSetup
419  // local cache & check on cacheIdentifier
420 
421  /* *** Drop L1GtBoard Maps for now
422  typedef std::vector<L1GtBoard>::const_iterator CItBoardMaps;
423 
424  unsigned long long l1GtBMCacheID = evSetup.get<L1GtBoardMapsRcd>().cacheIdentifier();
425 */
426 
427  /* ** Drop board mapping for now
428  if (m_l1GtBMCacheID != l1GtBMCacheID) {
429 
430  edm::ESHandle< L1GtBoardMaps > l1GtBM;
431  evSetup.get< L1GtBoardMapsRcd >().get( l1GtBM );
432  m_l1GtBM = l1GtBM.product();
433 
434  m_l1GtBMCacheID = l1GtBMCacheID;
435 
436  }
437 
438 
439  // TODO need changes in CondFormats to cache the maps
440  const std::vector<L1GtBoard>& boardMaps = m_l1GtBM->gtBoardMaps();
441 */
442  // get / update the prescale factors from the EventSetup
443  // local cache & check on cacheIdentifier
444 
445  // Only get event record if not unprescaled and not unmasked
447  unsigned long long l1GtPfAlgoCacheID = evSetup.get<L1TGlobalPrescalesVetosFractRcd>().cacheIdentifier();
448 
449  if (m_l1GtPfAlgoCacheID != l1GtPfAlgoCacheID) {
450  edm::ESHandle<L1TGlobalPrescalesVetosFract> l1GtPrescalesFractVetoes =
452  const L1TGlobalPrescalesVetosFract* es = l1GtPrescalesFractVetoes.product();
453  m_l1GtPrescalesVetosFract = PrescalesVetosFractHelper::readFromEventSetup(es);
454 
457 
458  m_l1GtPfAlgoCacheID = l1GtPfAlgoCacheID;
459  }
461  (m_currentLumi != iEvent.luminosityBlock())) { // get prescale column from unpacked data
462 
463  m_currentLumi = iEvent.luminosityBlock();
464 
466  iEvent.getByToken(m_algoblkInputToken, m_uGtAlgBlk);
467 
468  if (m_uGtAlgBlk.isValid() && !m_uGtAlgBlk->isEmpty(0)) {
469  std::vector<GlobalAlgBlk>::const_iterator algBlk = m_uGtAlgBlk->begin(0);
470  m_prescaleSet = static_cast<unsigned int>(algBlk->getPreScColumn());
471  } else {
472  m_prescaleSet = 1;
473  edm::LogError("L1TGlobalProduce")
474  << "Could not find valid algo block. Setting prescale column to 1" << std::endl;
475  }
476  }
477  } else {
478  // Set Prescale factors to initial dummy values
479  m_prescaleSet = 0;
483  }
484 
485  // get / update the trigger mask from the EventSetup
486  // local cache & check on cacheIdentifier
487 
488  /* **** For now Leave out Masks *****
489  unsigned long long l1GtTmAlgoCacheID =
490  evSetup.get<L1GtTriggerMaskAlgoTrigRcd>().cacheIdentifier();
491 
492  if (m_l1GtTmAlgoCacheID != l1GtTmAlgoCacheID) {
493 
494  edm::ESHandle< L1GtTriggerMask > l1GtTmAlgo;
495  evSetup.get< L1GtTriggerMaskAlgoTrigRcd >().get( l1GtTmAlgo );
496  m_l1GtTmAlgo = l1GtTmAlgo.product();
497 
498  m_triggerMaskAlgoTrig = m_l1GtTmAlgo->gtTriggerMask();
499 
500  m_l1GtTmAlgoCacheID = l1GtTmAlgoCacheID;
501 
502  }
503 */
504 
505  /* **** For now Leave out Veto Masks *****
506  unsigned long long l1GtTmVetoAlgoCacheID =
507  evSetup.get<L1GtTriggerMaskVetoAlgoTrigRcd>().cacheIdentifier();
508 
509  if (m_l1GtTmVetoAlgoCacheID != l1GtTmVetoAlgoCacheID) {
510 
511  edm::ESHandle< L1GtTriggerMask > l1GtTmVetoAlgo;
512  evSetup.get< L1GtTriggerMaskVetoAlgoTrigRcd >().get( l1GtTmVetoAlgo );
513  m_l1GtTmVetoAlgo = l1GtTmVetoAlgo.product();
514 
515  m_triggerMaskVetoAlgoTrig = m_l1GtTmVetoAlgo->gtTriggerMask();
516 
517  m_l1GtTmVetoAlgoCacheID = l1GtTmVetoAlgoCacheID;
518 
519  }
520 */
521 
522  // ****** Board Maps Need to be redone....hard code for now ******
523  // loop over blocks in the GT DAQ record receiving data, count them if they are active
524  // all board type are defined in CondFormats/L1TObjects/L1GtFwd
525  // &
526  // set the active flag for each object type received from GMT and GCT
527  // all objects in the GT system
528 
529  //
530  bool receiveMu = true;
531  bool receiveMuShower = true;
532  bool receiveEG = true;
533  bool receiveTau = true;
534  bool receiveJet = true;
535  bool receiveEtSums = true;
536  bool receiveEtSumsZdc = true;
537  bool receiveCICADA = true;
538  bool receiveExt = true;
539 
540  /* *** Boards need redefining *****
541  for (CItBoardMaps
542  itBoard = boardMaps.begin();
543  itBoard != boardMaps.end(); ++itBoard) {
544 
545  int iPosition = itBoard->gtPositionDaqRecord();
546  if (iPosition > 0) {
547 
548  int iActiveBit = itBoard->gtBitDaqActiveBoards();
549  bool activeBoard = false;
550 
551  if (iActiveBit >= 0) {
552  activeBoard = m_activeBoardsGtDaq & (1 << iActiveBit);
553  }
554 
555  // use board if: in the record, but not in ActiveBoardsMap (iActiveBit < 0)
556  // in the record and ActiveBoardsMap, and active
557  if ((iActiveBit < 0) || activeBoard) {
558 
559 // ****** Decide what board manipulation (if any we want here)
560 
561  }
562  }
563 
564  }
565 */
566 
567  // Produce the Output Records for the GT
568  std::unique_ptr<GlobalAlgBlkBxCollection> uGtAlgRecord(
569  new GlobalAlgBlkBxCollection(0, minEmulBxInEvent, maxEmulBxInEvent));
570 
571  // * produce the GlobalObjectMapRecord
572  std::unique_ptr<GlobalObjectMapRecord> gtObjectMapRecord(new GlobalObjectMapRecord());
573 
574  std::unique_ptr<AXOL1TLScoreBxCollection> uGtAXOScoreRecord(nullptr);
575  if (m_produceAXOL1TLScore) {
576  uGtAXOScoreRecord = std::make_unique<AXOL1TLScoreBxCollection>();
577  }
578 
579  // fill the boards not depending on the BxInEvent in the L1 GT DAQ record
580  // GMT, PSB and FDL depend on BxInEvent
581 
582  // fill in emulator the same bunch crossing (12 bits - hardwired number of bits...)
583  // and the same local bunch crossing for all boards
584  int bxCross = iEvent.bunchCrossing();
585  uint16_t bxCrossHw = 0;
586  if ((bxCross & 0xFFF) == bxCross) {
587  bxCrossHw = static_cast<uint16_t>(bxCross);
588  } else {
589  bxCrossHw = 0; // Bx number too large, set to 0!
590  if (m_verbosity) {
591  LogDebug("L1TGlobalProducer") << "\nBunch cross number [hex] = " << std::hex << bxCross
592  << "\n larger than 12 bits. Set to 0! \n"
593  << std::dec << std::endl;
594  }
595  }
596  LogDebug("L1TGlobalProducer") << "HW BxCross " << bxCrossHw << std::endl;
597 
598  // get the prescale factor from the configuration for now
599  // prescale set index counts from zero
600  unsigned int pfAlgoSetIndex = m_prescaleSet;
601 
602  auto max = (*m_prescaleFactorsAlgoTrig).size() - 1;
603  if (pfAlgoSetIndex > max) {
604  edm::LogWarning("L1TGlobalProducer") << "\nAttempting to access prescale algo set: " << m_prescaleSet
605  << "\nNumber of prescale algo sets available: 0.." << max
606  << "Setting former to latter." << std::endl;
607  pfAlgoSetIndex = max;
608  }
609 
610  const std::vector<double>& prescaleFactorsAlgoTrig = (*m_prescaleFactorsAlgoTrig).at(pfAlgoSetIndex);
611 
612  // For now, set masks according to prescale value of 0
614  for (unsigned int iAlgo = 0; iAlgo < prescaleFactorsAlgoTrig.size(); iAlgo++) {
615  unsigned int value = prescaleFactorsAlgoTrig[iAlgo];
616  value = (value == 0) ? 0 : 1;
618  }
620 
621  const std::vector<unsigned int>& triggerMaskAlgoTrig = *m_triggerMaskAlgoTrig;
622  const std::vector<int>& triggerMaskVetoAlgoTrig = *m_triggerMaskVetoAlgoTrig;
623 
624  LogDebug("L1TGlobalProducer") << "Size of prescale vector" << prescaleFactorsAlgoTrig.size() << std::endl;
625 
626  // Load the calorimeter input onto the uGt Board
627  m_uGtBrd->receiveCaloObjectData(iEvent,
634  receiveEG,
635  m_nrL1EG,
636  receiveTau,
637  m_nrL1Tau,
638  receiveJet,
639  m_nrL1Jet,
640  receiveEtSums,
641  receiveEtSumsZdc,
642  receiveCICADA);
643 
644  m_uGtBrd->receiveMuonObjectData(iEvent, m_muInputToken, receiveMu, m_nrL1Mu);
645 
646  if (m_useMuonShowers)
647  m_uGtBrd->receiveMuonShowerObjectData(iEvent, m_muShowerInputToken, receiveMuShower, m_nrL1MuShower);
648 
649  //tell board to save axo scores when running GTL
650  m_uGtBrd->enableAXOScoreSaving(m_produceAXOL1TLScore);
651 
652  m_uGtBrd->receiveExternalData(iEvent, m_extInputToken, receiveExt);
653 
654  // loop over BxInEvent
655  for (int iBxInEvent = minEmulBxInEvent; iBxInEvent <= maxEmulBxInEvent; ++iBxInEvent) {
656  // run GTL
657  LogDebug("L1TGlobalProducer") << "\nL1TGlobalProducer : running GTL for bx = " << iBxInEvent << "\n" << std::endl;
658 
659  // Run the GTL for this BX
660  m_uGtBrd->runGTL(iEvent,
661  evSetup,
662  m_l1GtMenu.get(),
664  iBxInEvent,
665  gtObjectMapRecord,
667  m_nrL1Mu,
669  m_nrL1EG,
670  m_nrL1Tau,
671  m_nrL1Jet);
672 
673  // run FDL
674  LogDebug("L1TGlobalProducer") << "\nL1TGlobalProducer : running FDL for bx = " << iBxInEvent << "\n" << std::endl;
675 
676  // Run the Final Decision Logic for this BX
677  m_uGtBrd->runFDL(iEvent,
678  iBxInEvent,
681  prescaleFactorsAlgoTrig,
682  triggerMaskAlgoTrig,
683  triggerMaskVetoAlgoTrig,
686 
687  // Fill in the DAQ Records
689  m_uGtBrd->fillAlgRecord(iBxInEvent,
690  uGtAlgRecord,
692  m_l1GtMenu->gtTriggerMenuUUID(),
693  m_l1GtMenu->gtTriggerMenuImplementation());
694  }
695 
696  //save scores to score collection
697  if (m_produceAXOL1TLScore) {
698  m_uGtBrd->fillAXOScore(iBxInEvent, uGtAXOScoreRecord);
699  }
700 
701  } //End Loop over Bx
702 
703  // Add explicit reset of Board
704  m_uGtBrd->reset();
705 
706  if (m_verbosity && m_isDebugEnabled) {
707  std::ostringstream myCoutStream;
708 
709  for (int bx = minEmulBxInEvent; bx < maxEmulBxInEvent; bx++) {
711  (uGtAlgRecord->at(bx, 0)).print(myCoutStream);
712  }
713 
714  LogTrace("L1TGlobalProducer") << "\n The following L1 GT DAQ readout record was produced:\n"
715  << myCoutStream.str() << "\n"
716  << std::endl;
717 
718  myCoutStream.str("");
719  myCoutStream.clear();
720 
721  const std::vector<GlobalObjectMap> objMapVec = gtObjectMapRecord->gtObjectMap();
722 
723  for (std::vector<GlobalObjectMap>::const_iterator it = objMapVec.begin(); it != objMapVec.end(); ++it) {
724  (*it).print(myCoutStream);
725  }
726 
727  LogDebug("L1TGlobalProducer") << "Test gtObjectMapRecord in L1TGlobalProducer \n\n"
728  << myCoutStream.str() << "\n\n"
729  << std::endl;
730 
731  myCoutStream.str("");
732  myCoutStream.clear();
733  }
734 
735  // register products
737  iEvent.put(std::move(uGtAlgRecord));
738  }
739 
741  iEvent.put(std::move(gtObjectMapRecord));
742  }
743 
744  if (m_produceAXOL1TLScore) {
745  iEvent.put(std::move(uGtAXOScoreRecord), "AXOScore");
746  }
747 }
edm::EDGetTokenT< BXVector< float > > m_CICADAInputToken
const std::vector< std::vector< CorrelationTemplate > > & vecCorrelationTemplate() const
const std::vector< std::vector< MuonTemplate > > & vecMuonTemplate() const
get / set the vectors containing the conditions
unsigned long long m_l1GtParCacheID
void setGtOrderConditionChip(const std::vector< int > &)
const std::vector< unsigned int > * m_triggerMaskAlgoTrig
int m_verbosity
verbosity level
const GlobalScales & gtScales() const
menu associated scales
edm::EDGetTokenT< BXVector< l1t::Tau > > m_tauInputToken
const l1t::PrescalesVetosFractHelper * m_l1GtPrescalesVetosFract
prescale factors
bool m_produceL1GtObjectMapRecord
logical flag to produce the L1 GT object map record
int m_totalBxInEvent
total number of Bx&#39;s in the event coming from EventSetup
const std::string & gtTriggerMenuName() const
unsigned int m_numberPhysTriggers
const L1TGlobalParameters * m_l1GtStablePar
cached stuff
edm::EDGetTokenT< BXVector< GlobalExtBlk > > m_extInputToken
edm::ESGetToken< L1TGlobalParameters, L1TGlobalParametersRcd > m_l1GtStableParToken
BXVector< GlobalAlgBlk > GlobalAlgBlkBxCollection
Definition: GlobalAlgBlk.h:31
std::vector< std::vector< double > > m_initialPrescaleFactorsAlgoTrig
Log< level::Error, false > LogError
std::vector< unsigned int > m_initialTriggerMaskAlgoTrig
edm::ESGetToken< L1TGlobalPrescalesVetosFract, L1TGlobalPrescalesVetosFractRcd > m_l1GtPrescaleVetosToken
const std::vector< std::vector< CorrelationThreeBodyTemplate > > & vecCorrelationThreeBodyTemplate() const
const std::vector< int > * m_triggerMaskVetoAlgoTrig
#define LogTrace(id)
const std::vector< std::vector< CaloTemplate > > & vecCaloTemplate() const
int iEvent
Definition: GenABIO.cc:224
T const * product() const
Definition: ESHandle.h:86
void setGtPinsOnConditionChip(const unsigned int &)
unsigned long long m_l1GtMenuCacheID
void parseCondFormats(const L1TUtmTriggerMenu *utmMenu)
std::unique_ptr< TriggerMenu > m_l1GtMenu
const int gtTriggerMenuUUID() const
std::vector< int > m_initialTriggerMaskVetoAlgoTrig
bool m_produceL1GtDaqRecord
logical flag to produce the L1 GT DAQ readout record
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
T get() const
Definition: EventSetup.h:79
edm::EDGetTokenT< BXVector< l1t::Muon > > m_muInputToken
const std::vector< std::vector< EnergySumTemplate > > & vecEnergySumTemplate() const
const AlgorithmMap & gtAlgorithmAliasMap() const
get / set the algorithm map (by alias)
const std::string & gtScaleDbKey() const
menu associated scale key
Definition: value.py:1
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:130
const std::vector< std::vector< EnergySumZdcTemplate > > & vecEnergySumZdcTemplate() const
unsigned int m_prescaleSet
prescale set used
const std::vector< std::vector< EnergySumTemplate > > & corEnergySumTemplate() const
const std::vector< std::vector< MuonTemplate > > & corMuonTemplate() const
edm::EDGetTokenT< BXVector< l1t::EtSum > > m_sumInputToken
int m_L1DataBxInEvent
Bx expected in Data coming to GT.
const unsigned long gtTriggerMenuImplementation() const
const std::vector< int > & triggerMaskVeto() const
void setGtNumberConditionChips(const unsigned int &)
bool isValid() const
Definition: HandleBase.h:70
const std::vector< std::vector< CaloTemplate > > & corCaloTemplate() const
edm::EDGetToken m_algoblkInputToken
const std::string & gtTriggerMenuInterface() const
get / set the trigger menu names
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
edm::EDGetTokenT< BXVector< l1t::EtSum > > m_sumZdcInputToken
const unsigned long getFirmwareUuidHashed() const
const std::vector< std::vector< MuonShowerTemplate > > & vecMuonShowerTemplate() const
const std::vector< std::vector< ExternalTemplate > > & vecExternalTemplate() const
const std::vector< std::vector< CorrelationWithOverlapRemovalTemplate > > & vecCorrelationWithOverlapRemovalTemplate() const
edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd > m_l1GtMenuToken
unsigned long long m_l1GtPfAlgoCacheID
std::unique_ptr< l1t::GlobalBoard > m_uGtBrd
Log< level::Warning, false > LogWarning
const std::vector< std::vector< CICADATemplate > > & vecCICADATemplate() const
const std::vector< std::vector< double > > * m_prescaleFactorsAlgoTrig
const std::vector< std::vector< AXOL1TLTemplate > > & vecAXOL1TLTemplate() const
edm::EDGetTokenT< BXVector< l1t::MuonShower > > m_muShowerInputToken
const std::vector< std::vector< double > > & prescaleTable() const
def move(src, dest)
Definition: eostools.py:511
edm::EDGetTokenT< BXVector< l1t::Jet > > m_jetInputToken
const AlgorithmMap & gtAlgorithmMap() const
get / set the algorithm map (by name)
edm::EDGetTokenT< BXVector< l1t::EGamma > > m_egInputToken
void setGtNumberPhysTriggers(const unsigned int &)
#define LogDebug(id)

Member Data Documentation

◆ m_activeBoardsGtDaq

uint16_t L1TGlobalProducer::m_activeBoardsGtDaq
private

active boards in L1 GT DAQ record

Definition at line 85 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_algoblkInputTag

edm::InputTag L1TGlobalProducer::m_algoblkInputTag
private

Definition at line 186 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_algoblkInputToken

edm::EDGetToken L1TGlobalProducer::m_algoblkInputToken
private

Definition at line 187 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_algorithmTriggersUnmasked

bool L1TGlobalProducer::m_algorithmTriggersUnmasked
private

if true, unmasked - all enabled (all trigger masks set to 0) will overwrite the event setup

Definition at line 177 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_algorithmTriggersUnprescaled

bool L1TGlobalProducer::m_algorithmTriggersUnprescaled
private

run algorithm triggers if true, unprescaled (all prescale factors 1) will overwrite the event setup

Definition at line 173 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_alternativeNrBxBoardDaq

unsigned int L1TGlobalProducer::m_alternativeNrBxBoardDaq
private

alternative for number of BX per active board in GT DAQ record: 0 or 1 the position is identical with the active board bit

Definition at line 162 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_bstLengthBytes

unsigned int L1TGlobalProducer::m_bstLengthBytes
private

length of BST record (in bytes) from event setup

Definition at line 88 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_CICADAInputTag

edm::InputTag L1TGlobalProducer::m_CICADAInputTag
private

Definition at line 130 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_CICADAInputToken

edm::EDGetTokenT<BXVector<float> > L1TGlobalProducer::m_CICADAInputToken
private

Definition at line 136 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_currentLumi

uint L1TGlobalProducer::m_currentLumi
private

Definition at line 101 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_egInputTag

edm::InputTag L1TGlobalProducer::m_egInputTag
private

input tag for calorimeter collections from Calo Layer 2 (GCT) or Zero Degree Calorimeter (ZDC)

Definition at line 125 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_egInputToken

edm::EDGetTokenT<BXVector<l1t::EGamma> > L1TGlobalProducer::m_egInputToken
private

Definition at line 131 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_emulateBxInEvent

int L1TGlobalProducer::m_emulateBxInEvent
private

number of "bunch crossing in the event" (BxInEvent) to be emulated symmetric around L1Accept (BxInEvent = 0): 1 (BxInEvent = 0); 3 (F 0 1) (standard record); 5 (E F 0 1 2) (debug record) even numbers (except 0) "rounded" to the nearest lower odd number

Definition at line 155 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_extInputTag

edm::InputTag L1TGlobalProducer::m_extInputTag
private

input tag for external conditions

Definition at line 139 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_extInputToken

edm::EDGetTokenT<BXVector<GlobalExtBlk> > L1TGlobalProducer::m_extInputToken
private

Definition at line 140 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_getPrescaleColumnFromData

bool L1TGlobalProducer::m_getPrescaleColumnFromData
private

Definition at line 184 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_ifCaloEtaNumberBits

int L1TGlobalProducer::m_ifCaloEtaNumberBits
private

Definition at line 79 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_ifMuEtaNumberBits

int L1TGlobalProducer::m_ifMuEtaNumberBits
private

Definition at line 78 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_initialPrescaleFactorsAlgoTrig

std::vector<std::vector<double> > L1TGlobalProducer::m_initialPrescaleFactorsAlgoTrig
private

Definition at line 99 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_initialTriggerMaskAlgoTrig

std::vector<unsigned int> L1TGlobalProducer::m_initialTriggerMaskAlgoTrig
private

Definition at line 111 of file L1TGlobalProducer.h.

Referenced by produce().

◆ m_initialTriggerMaskVetoAlgoTrig

std::vector<int> L1TGlobalProducer::m_initialTriggerMaskVetoAlgoTrig
private

Definition at line 114 of file L1TGlobalProducer.h.

Referenced by produce().

◆ m_isDebugEnabled

bool L1TGlobalProducer::m_isDebugEnabled
private

Definition at line 182 of file L1TGlobalProducer.h.

Referenced by produce().

◆ m_jetInputTag

edm::InputTag L1TGlobalProducer::m_jetInputTag
private

Definition at line 127 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_jetInputToken

edm::EDGetTokenT<BXVector<l1t::Jet> > L1TGlobalProducer::m_jetInputToken
private

Definition at line 133 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_L1DataBxInEvent

int L1TGlobalProducer::m_L1DataBxInEvent
private

Bx expected in Data coming to GT.

Definition at line 158 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_l1GtBM

const L1GtBoardMaps* L1TGlobalProducer::m_l1GtBM
private

board maps - cache only the record

Definition at line 91 of file L1TGlobalProducer.h.

◆ m_l1GtBMCacheID

unsigned long long L1TGlobalProducer::m_l1GtBMCacheID
private

Definition at line 92 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_l1GtMenu

std::unique_ptr<TriggerMenu> L1TGlobalProducer::m_l1GtMenu
private

Definition at line 60 of file L1TGlobalProducer.h.

Referenced by produce().

◆ m_l1GtMenuCacheID

unsigned long long L1TGlobalProducer::m_l1GtMenuCacheID
private

Definition at line 61 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_l1GtMenuToken

edm::ESGetToken<L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd> L1TGlobalProducer::m_l1GtMenuToken
private

Definition at line 190 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_l1GtParCacheID

unsigned long long L1TGlobalProducer::m_l1GtParCacheID
private

Definition at line 57 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_l1GtPfAlgoCacheID

unsigned long long L1TGlobalProducer::m_l1GtPfAlgoCacheID
private

Definition at line 96 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_l1GtPrescalesVetosFract

const l1t::PrescalesVetosFractHelper* L1TGlobalProducer::m_l1GtPrescalesVetosFract
private

prescale factors

Definition at line 95 of file L1TGlobalProducer.h.

Referenced by produce().

◆ m_l1GtPrescaleVetosToken

edm::ESGetToken<L1TGlobalPrescalesVetosFract, L1TGlobalPrescalesVetosFractRcd> L1TGlobalProducer::m_l1GtPrescaleVetosToken
private

Definition at line 191 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_l1GtStablePar

const L1TGlobalParameters* L1TGlobalProducer::m_l1GtStablePar
private

cached stuff

stable parameters

Definition at line 56 of file L1TGlobalProducer.h.

Referenced by produce().

◆ m_l1GtStableParToken

edm::ESGetToken<L1TGlobalParameters, L1TGlobalParametersRcd> L1TGlobalProducer::m_l1GtStableParToken
private

Definition at line 189 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_l1GtTmAlgo

const L1GtTriggerMask* L1TGlobalProducer::m_l1GtTmAlgo
private

trigger masks & veto masks

Definition at line 104 of file L1TGlobalProducer.h.

◆ m_l1GtTmAlgoCacheID

unsigned long long L1TGlobalProducer::m_l1GtTmAlgoCacheID
private

Definition at line 105 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_l1GtTmVetoAlgo

const L1GtTriggerMask* L1TGlobalProducer::m_l1GtTmVetoAlgo
private

Definition at line 107 of file L1TGlobalProducer.h.

◆ m_l1GtTmVetoAlgoCacheID

unsigned long long L1TGlobalProducer::m_l1GtTmVetoAlgoCacheID
private

Definition at line 108 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_muInputTag

edm::InputTag L1TGlobalProducer::m_muInputTag
private

input tag for muon collection from the Global Muon Trigger (GMT)

Definition at line 119 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_muInputToken

edm::EDGetTokenT<BXVector<l1t::Muon> > L1TGlobalProducer::m_muInputToken
private

Definition at line 121 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_muShowerInputTag

edm::InputTag L1TGlobalProducer::m_muShowerInputTag
private

Definition at line 120 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_muShowerInputToken

edm::EDGetTokenT<BXVector<l1t::MuonShower> > L1TGlobalProducer::m_muShowerInputToken
private

Definition at line 122 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_nrL1EG

int L1TGlobalProducer::m_nrL1EG
private

Definition at line 72 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_nrL1Jet

int L1TGlobalProducer::m_nrL1Jet
private

Definition at line 75 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_nrL1Mu

int L1TGlobalProducer::m_nrL1Mu
private

Definition at line 70 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_nrL1MuShower

int L1TGlobalProducer::m_nrL1MuShower
private

Definition at line 71 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_nrL1Tau

int L1TGlobalProducer::m_nrL1Tau
private

Definition at line 73 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_numberDaqPartitions

unsigned int L1TGlobalProducer::m_numberDaqPartitions
private

Definition at line 67 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_numberPhysTriggers

unsigned int L1TGlobalProducer::m_numberPhysTriggers
private

Definition at line 64 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_prescaleFactorsAlgoTrig

const std::vector<std::vector<double> >* L1TGlobalProducer::m_prescaleFactorsAlgoTrig
private

Definition at line 98 of file L1TGlobalProducer.h.

Referenced by produce().

◆ m_prescaleSet

unsigned int L1TGlobalProducer::m_prescaleSet
private

prescale set used

Definition at line 168 of file L1TGlobalProducer.h.

Referenced by produce().

◆ m_printL1Menu

bool L1TGlobalProducer::m_printL1Menu
private

Definition at line 181 of file L1TGlobalProducer.h.

Referenced by produce().

◆ m_produceAXOL1TLScore

bool L1TGlobalProducer::m_produceAXOL1TLScore
private

Definition at line 204 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_produceL1GtDaqRecord

bool L1TGlobalProducer::m_produceL1GtDaqRecord
private

logical flag to produce the L1 GT DAQ readout record

Definition at line 143 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_produceL1GtObjectMapRecord

bool L1TGlobalProducer::m_produceL1GtObjectMapRecord
private

logical flag to produce the L1 GT object map record

Definition at line 146 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_psBstLengthBytes

int L1TGlobalProducer::m_psBstLengthBytes
private

length of BST record (in bytes) from parameter set

Definition at line 165 of file L1TGlobalProducer.h.

◆ m_requireMenuToMatchAlgoBlkInput

bool L1TGlobalProducer::m_requireMenuToMatchAlgoBlkInput
private

Definition at line 185 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_resetPSCountersEachLumiSec

bool L1TGlobalProducer::m_resetPSCountersEachLumiSec
private

Definition at line 194 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_semiRandomInitialPSCounters

bool L1TGlobalProducer::m_semiRandomInitialPSCounters
private

Definition at line 198 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_sumInputTag

edm::InputTag L1TGlobalProducer::m_sumInputTag
private

Definition at line 128 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_sumInputToken

edm::EDGetTokenT<BXVector<l1t::EtSum> > L1TGlobalProducer::m_sumInputToken
private

Definition at line 134 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_sumZdcInputTag

edm::InputTag L1TGlobalProducer::m_sumZdcInputTag
private

Definition at line 129 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_sumZdcInputToken

edm::EDGetTokenT<BXVector<l1t::EtSum> > L1TGlobalProducer::m_sumZdcInputToken
private

Definition at line 135 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_tauInputTag

edm::InputTag L1TGlobalProducer::m_tauInputTag
private

Definition at line 126 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer().

◆ m_tauInputToken

edm::EDGetTokenT<BXVector<l1t::Tau> > L1TGlobalProducer::m_tauInputToken
private

Definition at line 132 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_totalBxInEvent

int L1TGlobalProducer::m_totalBxInEvent
private

total number of Bx's in the event coming from EventSetup

Definition at line 82 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_triggerMaskAlgoTrig

const std::vector<unsigned int>* L1TGlobalProducer::m_triggerMaskAlgoTrig
private

Definition at line 110 of file L1TGlobalProducer.h.

Referenced by produce().

◆ m_triggerMaskVetoAlgoTrig

const std::vector<int>* L1TGlobalProducer::m_triggerMaskVetoAlgoTrig
private

Definition at line 113 of file L1TGlobalProducer.h.

Referenced by produce().

◆ m_uGtBrd

std::unique_ptr<l1t::GlobalBoard> L1TGlobalProducer::m_uGtBrd
private

Definition at line 116 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_useMuonShowers

bool L1TGlobalProducer::m_useMuonShowers
private

Definition at line 201 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_verbosity

int L1TGlobalProducer::m_verbosity
private

verbosity level

Definition at line 180 of file L1TGlobalProducer.h.

Referenced by L1TGlobalProducer(), and produce().

◆ m_writePsbL1GtDaqRecord

bool L1TGlobalProducer::m_writePsbL1GtDaqRecord
private

logical flag to write the PSB content in the L1 GT DAQ record

Definition at line 149 of file L1TGlobalProducer.h.