CMS 3D CMS Logo

L1GtUtils.h
Go to the documentation of this file.
1 #ifndef GlobalTriggerAnalyzer_L1GtUtils_h
2 #define GlobalTriggerAnalyzer_L1GtUtils_h
3 
18 // system include files
19 #include <memory>
20 #include <string>
21 #include <utility>
22 
23 // user include files
26 
30 
36 
39 
41 
46 
50 
52 
54 
55 // forward declarations
58 class L1GtTriggerMask;
59 class L1GtTriggerMenu;
60 
63 
64 // class declaration
65 
66 class L1GtUtils {
67 public:
68  // Use this enum to tell the EventSetup whether it should prefetch
69  // data when processing beginRun or an Event or both. (This
70  // depends on when retrieveL1EventSetup is called which can
71  // be a direct call or also indirectly through a call to one
72  // or both versions of getL1GtRunCache. Also note that getL1GtRunCache
73  // has an argument that disables EventSetup calls and if the Run
74  // version of the function is called then the Event version of the
75  // function does not get EventSetup data)
77 
78  // Using this constructor will require InputTags to be specified in the configuration
83 
88 
89  // Using this constructor will cause it to look for valid InputTags in
90  // the following ways in the specified order until they are found.
91  // 1. The configuration
92  // 2. Search all products from the preferred input tags for the required type
93  // 3. Search all products from any other process for the required type
94  template <typename T>
98  T& module,
100 
101  template <typename T>
105  T& module,
107 
108  // Using this constructor will cause it to look for valid InputTags in
109  // the following ways in the specified order until they are found.
110  // 1. The constructor arguments
111  // 2. The configuration
112  // 3. Search all products from the preferred input tags for the required type
113  // 4. Search all products from any other process for the required type
114  template <typename T>
118  T& module,
123 
124  template <typename T>
128  T& module,
133 
135  virtual ~L1GtUtils();
136 
138 
139 public:
141 
158  public:
160 
163 
166 
167  public:
169  inline bool isValid() { return m_validLogicalExpression; }
170 
173  const int logicalExpressionRunUpdate(const edm::Run&, const edm::EventSetup&, const std::string&);
174  //
176  const int logicalExpressionRunUpdate(const edm::Run&, const edm::EventSetup&);
177 
179 
180  inline const std::vector<L1GtLogicParser::OperandToken>& expL1Triggers() { return m_expL1Triggers; }
181  const std::vector<std::pair<std::string, bool> >& decisionsBeforeMask();
182  const std::vector<std::pair<std::string, bool> >& decisionsAfterMask();
183  const std::vector<std::pair<std::string, int> >& prescaleFactors();
184  const std::vector<std::pair<std::string, int> >& triggerMasks();
185 
186  const std::vector<std::pair<std::string, int> >& errorCodes(const edm::Event&);
187 
188  private:
191  bool initialize();
192 
194  void reset(const std::vector<std::pair<std::string, bool> >&) const;
195  void reset(const std::vector<std::pair<std::string, int> >&) const;
196 
197  void l1Results(const edm::Event& iEvent);
198 
199  private:
201 
204 
206 
207  private:
208  // private members
209 
212 
215 
218 
221 
222  std::vector<L1GtLogicParser::OperandToken> m_expL1Triggers;
224 
226  std::vector<L1GtUtils::TriggerCategory> m_expTriggerCategory;
227 
230 
233  std::vector<bool> m_expTriggerInMenu;
234 
236  std::vector<std::pair<std::string, bool> > m_decisionsBeforeMask;
237  std::vector<std::pair<std::string, bool> > m_decisionsAfterMask;
238  std::vector<std::pair<std::string, int> > m_prescaleFactors;
239  std::vector<std::pair<std::string, int> > m_triggerMasks;
240  std::vector<std::pair<std::string, int> > m_errorCodes;
241  };
242 
243 public:
245 
246  // enum to string for TriggerCategory
247  const std::string triggerCategory(const TriggerCategory&) const;
248 
250  void retrieveL1EventSetup(const edm::EventSetup&, bool isRun = true);
251 
253 
256 
258 
260  void getL1GtRunCache(const edm::Run&, const edm::EventSetup&, const bool, const bool);
261 
263  void getL1GtRunCache(const edm::Event&, const edm::EventSetup&, const bool, const bool);
264 
273 
274  const bool l1AlgoTechTrigBitNumber(const std::string& nameAlgoTechTrig,
275  TriggerCategory& trigCategory,
276  int& bitNumber) const;
277 
283 
284  const bool l1TriggerNameFromBit(const int& bitNumber,
285  const TriggerCategory& trigCategory,
286  std::string& aliasL1Trigger,
287  std::string& nameL1Trigger) const;
288 
299 
300  const int l1Results(const edm::Event& iEvent,
301  const std::string& nameAlgoTechTrig,
302  bool& decisionBeforeMask,
303  bool& decisionAfterMask,
304  int& prescaleFactor,
305  int& triggerMask) const;
306 
316 
318  const bool decisionBeforeMask(const edm::Event& iEvent, const std::string& nameAlgoTechTrig, int& errorCode) const;
319 
321  const bool decisionAfterMask(const edm::Event& iEvent, const std::string& nameAlgoTechTrig, int& errorCode) const;
322 
325  const bool decision(const edm::Event& iEvent, const std::string& nameAlgoTechTrig, int& errorCode) const;
326 
328  const int prescaleFactor(const edm::Event& iEvent, const std::string& nameAlgoTechTrig, int& errorCode) const;
329 
331  const int triggerMask(const edm::Event& iEvent, const std::string& nameAlgoTechTrig, int& errorCode) const;
332 
335  const int triggerMask(const std::string& nameAlgoTechTrig, int& errorCode) const;
336 
341 
342  const int prescaleFactorSetIndex(const edm::Event& iEvent, const TriggerCategory& trigCategory, int& errorCode) const;
343 
347 
348  const std::vector<int>& prescaleFactorSet(const edm::Event& iEvent,
349  const TriggerCategory& trigCategory,
350  int& errorCode);
351 
354  const std::vector<unsigned int>& triggerMaskSet(const TriggerCategory& trigCategory, int& errorCode);
355 
357  const std::string& l1TriggerMenu() const;
358 
361 
363  const L1GtTriggerMenu* ptrL1TriggerMenuEventSetup(int& errorCode);
364 
366  const L1GtTriggerMenuLite* ptrL1GtTriggerMenuLite(int& errorCode);
367 
370  const bool availableL1Configuration(int& errorCode, int& l1ConfCode) const;
371 
372 private:
373  static const std::string EmptyString;
374  static const int L1GtNotValidError;
375 
379  const bool trigResult(const DecisionWord& decWord,
380  const int bitNumber,
381  const std::string& nameAlgoTechTrig,
382  const TriggerCategory& trigCategory,
383  int& errorCode) const;
384 
385 private:
387 
389 
392  unsigned long long m_l1GtStableParCacheID;
393 
396 
399 
402  unsigned long long m_l1GtPfAlgoCacheID;
403 
405  unsigned long long m_l1GtPfTechCacheID;
406 
407  const std::vector<std::vector<int> >* m_prescaleFactorsAlgoTrig;
408  const std::vector<std::vector<int> >* m_prescaleFactorsTechTrig;
409 
412  unsigned long long m_l1GtTmAlgoCacheID;
413 
415  unsigned long long m_l1GtTmTechCacheID;
416 
418  unsigned long long m_l1GtTmVetoAlgoCacheID;
419 
421  unsigned long long m_l1GtTmVetoTechCacheID;
422 
423  const std::vector<unsigned int>* m_triggerMaskAlgoTrig;
424  const std::vector<unsigned int>* m_triggerMaskTechTrig;
425 
426  const std::vector<unsigned int>* m_triggerMaskVetoAlgoTrig;
427  const std::vector<unsigned int>* m_triggerMaskVetoTechTrig;
428 
429  // trigger menu
431  unsigned long long m_l1GtMenuCacheID;
432 
436 
438 
440 
443 
447 
448  const std::vector<unsigned int>* m_triggerMaskAlgoTrigLite;
449  const std::vector<unsigned int>* m_triggerMaskTechTrigLite;
450 
451  const std::vector<std::vector<int> >* m_prescaleFactorsAlgoTrigLite;
452  const std::vector<std::vector<int> >* m_prescaleFactorsTechTrigLite;
453 
455 
458 
461 
462 private:
464  unsigned int m_physicsDaqPartition;
465 
466  std::vector<unsigned int> m_triggerMaskSet;
467  std::vector<int> m_prescaleFactorSet;
468 
472 
473  std::unique_ptr<L1GtUtilsHelper> m_l1GtUtilsHelper;
474 
475  // beginRun EventSetup tokens
484 
485  // event transition EventSetup tokens (same as run tokens except a different name)
494 };
495 
496 template <typename T>
500  T& module,
501  UseEventSetupIn useEventSetupIn)
502  : L1GtUtils(pset, iC, useL1GtTriggerMenuLite, module, useEventSetupIn) {}
503 
504 template <typename T>
508  T& module,
509  UseEventSetupIn useEventSetupIn)
510  : L1GtUtils(iC, useEventSetupIn) {
512 }
513 
514 template <typename T>
518  T& module,
522  UseEventSetupIn useEventSetupIn)
523  : L1GtUtils(pset,
524  iC,
526  module,
530  useEventSetupIn) {}
531 
532 template <typename T>
536  T& module,
540  UseEventSetupIn useEventSetupIn)
541  : L1GtUtils(iC, useEventSetupIn) {
543  iC,
545  module,
549 }
550 
551 #endif /*GlobalTriggerAnalyzer_L1GtUtils_h*/
L1GtTriggerMenu.h
l1MenuTree_cfi.l1GtTriggerMenuLiteInputTag
l1GtTriggerMenuLiteInputTag
Definition: l1MenuTree_cfi.py:6
L1GtUtils::m_l1GtPfAlgoCacheID
unsigned long long m_l1GtPfAlgoCacheID
Definition: L1GtUtils.h:402
L1GtUtils::UseEventSetupIn
UseEventSetupIn
Definition: L1GtUtils.h:76
L1GtUtils::LogicalExpressionL1Results::decisionsAfterMask
const std::vector< std::pair< std::string, bool > > & decisionsAfterMask()
Definition: L1GtUtils.cc:2011
L1GtUtils::prescaleFactorSet
const std::vector< int > & prescaleFactorSet(const edm::Event &iEvent, const TriggerCategory &trigCategory, int &errorCode)
Definition: L1GtUtils.cc:1441
L1GtUtils::triggerMaskSet
const std::vector< unsigned int > & triggerMaskSet(const TriggerCategory &trigCategory, int &errorCode)
Definition: L1GtUtils.cc:1497
L1GtPrescaleFactors
Definition: L1GtPrescaleFactors.h:32
L1GtUtils::m_triggerMaskSet
std::vector< unsigned int > m_triggerMaskSet
Definition: L1GtUtils.h:466
L1GtTriggerMaskAlgoTrigRcd.h
L1GtUtils::LogicalExpressionL1Results::triggerMasks
const std::vector< std::pair< std::string, int > > & triggerMasks()
Definition: L1GtUtils.cc:2035
L1GtUtils::UseEventSetupIn::RunAndEvent
L1GtTriggerMask.h
L1GtUtils::LogicalExpressionL1Results::m_logicalExpression
std::string m_logicalExpression
private members as input parameters
Definition: L1GtUtils.h:203
edm::RunID
Definition: RunID.h:28
L1GtUtils::UseEventSetupIn::Event
L1GtUtils::m_L1GtTriggerMaskVetoAlgoTrigRunToken
edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskVetoAlgoTrigRcd > m_L1GtTriggerMaskVetoAlgoTrigRunToken
Definition: L1GtUtils.h:481
L1GtUtils::LogicalExpressionL1Results::prescaleFactors
const std::vector< std::pair< std::string, int > > & prescaleFactors()
Definition: L1GtUtils.cc:2023
L1GtUtils::ptrL1GtTriggerMenuLite
const L1GtTriggerMenuLite * ptrL1GtTriggerMenuLite(int &errorCode)
return a pointer to the L1GtTriggerMenuLite product
Definition: L1GtUtils.cc:1645
L1GtUtils::m_L1GtStableParametersRunToken
edm::ESGetToken< L1GtStableParameters, L1GtStableParametersRcd > m_L1GtStableParametersRunToken
Definition: L1GtUtils.h:476
L1GtUtils::UseEventSetupIn::Nothing
L1GtUtils::l1TriggerMenuImplementation
const std::string & l1TriggerMenuImplementation() const
return the L1 trigger menu implementation
Definition: L1GtUtils.cc:1598
L1GtUtils::m_beginRunCache
bool m_beginRunCache
flag for call of getL1GtRunCache in beginRun
Definition: L1GtUtils.h:457
edm::Run
Definition: Run.h:45
L1GtUtils::LogicalExpressionL1Results::m_l1GtUtils
L1GtUtils & m_l1GtUtils
Definition: L1GtUtils.h:205
L1GtTriggerMenuRcd.h
L1GtUtils::m_l1GtTmAlgoCacheID
unsigned long long m_l1GtTmAlgoCacheID
Definition: L1GtUtils.h:412
L1GtUtils::getL1GtRunCache
void getL1GtRunCache(const edm::Run &, const edm::EventSetup &, const bool, const bool)
get all the run-constant quantities for L1 trigger and cache them
Definition: L1GtUtils.cc:314
L1GtUtils::m_l1GtMenuLiteValid
bool m_l1GtMenuLiteValid
Definition: L1GtUtils.h:454
L1GtUtils::m_physicsDaqPartition
unsigned int m_physicsDaqPartition
index of physics DAQ partition
Definition: L1GtUtils.h:464
L1GtUtils::decisionBeforeMask
const bool decisionBeforeMask(const edm::Event &iEvent, const std::string &nameAlgoTechTrig, int &errorCode) const
return decision before trigger mask for a given algorithm or technical trigger
Definition: L1GtUtils.cc:1038
L1GtUtils::LogicalExpressionL1Results::logicalExpressionRunUpdate
const int logicalExpressionRunUpdate(const edm::Run &, const edm::EventSetup &, const std::string &)
Definition: L1GtUtils.cc:1895
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
L1GtUtils::m_triggerMaskVetoTechTrig
const std::vector< unsigned int > * m_triggerMaskVetoTechTrig
Definition: L1GtUtils.h:427
L1GtUtilsHelper
Definition: L1GtUtilsHelper.h:37
L1GtTriggerMaskTechTrigRcd.h
L1GtStableParametersRcd.h
L1GtUtils::LogicalExpressionL1Results::expL1Triggers
const std::vector< L1GtLogicParser::OperandToken > & expL1Triggers()
list of triggers in the logical expression, trigger decisions, prescale factors and masks,...
Definition: L1GtUtils.h:180
L1GtUtils::LogicalExpressionL1Results::m_decisionsBeforeMask
std::vector< std::pair< std::string, bool > > m_decisionsBeforeMask
Definition: L1GtUtils.h:236
L1GtUtils::m_L1GtTriggerMaskAlgoTrigRunToken
edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskAlgoTrigRcd > m_L1GtTriggerMaskAlgoTrigRunToken
Definition: L1GtUtils.h:479
L1GtUtils::~L1GtUtils
virtual ~L1GtUtils()
destructor
Definition: L1GtUtils.cc:108
L1GtUtils::m_runIDCache
edm::RunID m_runIDCache
run cache ID
Definition: L1GtUtils.h:460
L1GtUtils::decision
const bool decision(const edm::Event &iEvent, const std::string &nameAlgoTechTrig, int &errorCode) const
Definition: L1GtUtils.cc:1066
L1GtUtils::EmptyString
static const std::string EmptyString
Definition: L1GtUtils.h:373
L1GtUtils::m_L1GtTriggerMaskVetoAlgoTrigEventToken
edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskVetoAlgoTrigRcd > m_L1GtTriggerMaskVetoAlgoTrigEventToken
Definition: L1GtUtils.h:491
L1GtUtils::m_algorithmMap
const AlgorithmMap * m_algorithmMap
Definition: L1GtUtils.h:433
L1GtUtils::m_l1GtPfTechCacheID
unsigned long long m_l1GtPfTechCacheID
Definition: L1GtUtils.h:405
L1GtUtils::m_prescaleFactorsAlgoTrig
const std::vector< std::vector< int > > * m_prescaleFactorsAlgoTrig
Definition: L1GtUtils.h:407
L1GtTriggerMenuLite.h
ESGetToken.h
L1GtUtils::L1GtNotValidError
static const int L1GtNotValidError
Definition: L1GtUtils.h:374
L1GlobalTriggerReadoutRecord
Definition: L1GlobalTriggerReadoutRecord.h:46
L1GtUtils::m_l1GtUtilsHelper
std::unique_ptr< L1GtUtilsHelper > m_l1GtUtilsHelper
Definition: L1GtUtils.h:473
L1GtUtils::LogicalExpressionL1Results::m_triggerMasks
std::vector< std::pair< std::string, int > > m_triggerMasks
Definition: L1GtUtils.h:239
L1GtUtils::TechnicalTrigger
Definition: L1GtUtils.h:140
L1GtUtils::m_L1GtTriggerMaskAlgoTrigEventToken
edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskAlgoTrigRcd > m_L1GtTriggerMaskAlgoTrigEventToken
Definition: L1GtUtils.h:489
L1GtUtils::m_retrieveL1EventSetup
bool m_retrieveL1EventSetup
flags to check which method was used to retrieve L1 trigger configuration
Definition: L1GtUtils.h:470
L1GtUtils::m_triggerMaskTechTrig
const std::vector< unsigned int > * m_triggerMaskTechTrig
Definition: L1GtUtils.h:424
L1GtUtils::m_L1GtPrescaleFactorsAlgoTrigRunToken
edm::ESGetToken< L1GtPrescaleFactors, L1GtPrescaleFactorsAlgoTrigRcd > m_L1GtPrescaleFactorsAlgoTrigRunToken
Definition: L1GtUtils.h:477
L1GtUtils::LogicalExpressionL1Results::m_expTriggerInMenu
std::vector< bool > m_expTriggerInMenu
Definition: L1GtUtils.h:233
L1GtUtils::LogicalExpressionL1Results::m_expL1Triggers
std::vector< L1GtLogicParser::OperandToken > m_expL1Triggers
Definition: L1GtUtils.h:222
L1GtUtils::m_L1GtTriggerMenuEventToken
edm::ESGetToken< L1GtTriggerMenu, L1GtTriggerMenuRcd > m_L1GtTriggerMenuEventToken
Definition: L1GtUtils.h:493
L1GtUtils::TriggerCategory
TriggerCategory
Definition: L1GtUtils.h:140
L1GtUtils::m_algorithmAliasMap
const AlgorithmMap * m_algorithmAliasMap
Definition: L1GtUtils.h:434
L1GtUtils::trigResult
const bool trigResult(const DecisionWord &decWord, const int bitNumber, const std::string &nameAlgoTechTrig, const TriggerCategory &trigCategory, int &errorCode) const
Definition: L1GtUtils.cc:1764
Run.h
AlgorithmMap
std::map< std::string, L1GtAlgorithm > AlgorithmMap
map containing the algorithms
Definition: L1GtTriggerMenuFwd.h:31
L1GtUtils::LogicalExpressionL1Results::l1Results
void l1Results(const edm::Event &iEvent)
Definition: L1GtUtils.cc:2084
L1GtUtils
Definition: L1GtUtils.h:66
L1GtTriggerMask
Definition: L1GtTriggerMask.h:33
L1GtUtilsHelper.h
L1GtUtils::LogicalExpressionL1Results::m_prescaleFactors
std::vector< std::pair< std::string, int > > m_prescaleFactors
Definition: L1GtUtils.h:238
L1GtUtils::LogicalExpressionL1Results::m_l1ResultsAlreadyCalled
bool m_l1ResultsAlreadyCalled
set to true if the method l1Results was called once
Definition: L1GtUtils.h:220
L1GtStableParameters
Definition: L1GtStableParameters.h:33
L1GtUtils::triggerCategory
const std::string triggerCategory(const TriggerCategory &) const
public methods
Definition: L1GtUtils.cc:112
L1GtUtils::availableL1Configuration
const bool availableL1Configuration(int &errorCode, int &l1ConfCode) const
Definition: L1GtUtils.cc:1679
useL1GtTriggerMenuLite
static const bool useL1GtTriggerMenuLite(true)
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1GtUtils::LogicalExpressionL1Results::m_l1ConfCode
int m_l1ConfCode
code for L1 trigger configuration
Definition: L1GtUtils.h:211
L1GtTriggerMaskVetoTechTrigRcd.h
L1GtUtils::l1TriggerMenu
const std::string & l1TriggerMenu() const
return the L1 trigger menu name
Definition: L1GtUtils.cc:1577
L1GtUtils::LogicalExpressionL1Results::m_errorCodes
std::vector< std::pair< std::string, int > > m_errorCodes
Definition: L1GtUtils.h:240
L1GtUtils::m_triggerMaskTechTrigLite
const std::vector< unsigned int > * m_triggerMaskTechTrigLite
Definition: L1GtUtils.h:449
L1GtUtils::LogicalExpressionL1Results::isValid
bool isValid()
return true if the logical expression is syntactically correct
Definition: L1GtUtils.h:169
L1GtUtils::m_L1GtTriggerMaskTechTrigEventToken
edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskTechTrigRcd > m_L1GtTriggerMaskTechTrigEventToken
Definition: L1GtUtils.h:490
L1GtUtils::m_numberTechnicalTriggers
unsigned int m_numberTechnicalTriggers
number of technical triggers
Definition: L1GtUtils.h:398
edm::ParameterSet
Definition: ParameterSet.h:47
L1GtTriggerMenu
Definition: L1GtTriggerMenu.h:48
Event.h
L1GtUtils::LogicalExpressionL1Results::m_expL1TriggersSize
size_t m_expL1TriggersSize
Definition: L1GtUtils.h:223
L1GtUtils::UseEventSetupIn::Run
L1GtUtils::LogicalExpressionL1Results::initialize
bool initialize()
Definition: L1GtUtils.cc:1811
L1GtUtils::LogicalExpressionL1Results::reset
void reset(const std::vector< std::pair< std::string, bool > > &) const
reset for each L1 trigger the value from pair.second
Definition: L1GtUtils.cc:2070
L1GtUtils::m_l1GtStablePar
const L1GtStableParameters * m_l1GtStablePar
event setup cached stuff
Definition: L1GtUtils.h:391
L1GtUtilsHelper::fillDescription
static void fillDescription(edm::ParameterSetDescription &desc)
Definition: L1GtUtilsHelper.cc:27
L1GtUtils::l1Results
const int l1Results(const edm::Event &iEvent, const std::string &nameAlgoTechTrig, bool &decisionBeforeMask, bool &decisionAfterMask, int &prescaleFactor, int &triggerMask) const
Definition: L1GtUtils.cc:666
L1GtUtils::m_L1GtPrescaleFactorsAlgoTrigEventToken
edm::ESGetToken< L1GtPrescaleFactors, L1GtPrescaleFactorsAlgoTrigRcd > m_L1GtPrescaleFactorsAlgoTrigEventToken
Definition: L1GtUtils.h:487
iEvent
int iEvent
Definition: GenABIO.cc:224
L1GtUtils::decisionAfterMask
const bool decisionAfterMask(const edm::Event &iEvent, const std::string &nameAlgoTechTrig, int &errorCode) const
return decision after trigger mask for a given algorithm or technical trigger
Definition: L1GtUtils.cc:1052
L1GtPrescaleFactorsAlgoTrigRcd.h
L1GtUtils::retrieveL1EventSetup
void retrieveL1EventSetup(const edm::EventSetup &, bool isRun=true)
retrieve all the relevant L1 trigger event setup records and cache them to improve the speed
Definition: L1GtUtils.cc:128
L1GtUtils::LogicalExpressionL1Results::errorCodes
const std::vector< std::pair< std::string, int > > & errorCodes(const edm::Event &)
Definition: L1GtUtils.cc:2047
L1GtUtils::m_l1GtMenu
const L1GtTriggerMenu * m_l1GtMenu
Definition: L1GtUtils.h:430
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
L1GtUtils::m_l1GtMenuLite
const L1GtTriggerMenuLite * m_l1GtMenuLite
L1GtTriggerMenuLite cached stuff.
Definition: L1GtUtils.h:442
L1GtUtils::retrieveL1GtTriggerMenuLite
void retrieveL1GtTriggerMenuLite(const edm::Run &)
retrieve L1GtTriggerMenuLite (per run product) and cache it to improve the speed
Definition: L1GtUtils.cc:281
l1MenuTree_cfi.l1GtRecordInputTag
l1GtRecordInputTag
Definition: l1MenuTree_cfi.py:4
edm::EventSetup
Definition: EventSetup.h:58
L1GtUtils::l1AlgoTechTrigBitNumber
const bool l1AlgoTechTrigBitNumber(const std::string &nameAlgoTechTrig, TriggerCategory &trigCategory, int &bitNumber) const
Definition: L1GtUtils.cc:371
l1MenuTree_cfi.l1GtReadoutRecordInputTag
l1GtReadoutRecordInputTag
Definition: l1MenuTree_cfi.py:5
L1GtUtils::m_algorithmAliasMapLite
const L1GtTriggerMenuLite::L1TriggerMap * m_algorithmAliasMapLite
Definition: L1GtUtils.h:445
L1GtUtils::m_l1GtPfTech
const L1GtPrescaleFactors * m_l1GtPfTech
Definition: L1GtUtils.h:404
L1GtUtils::m_prescaleFactorsTechTrigLite
const std::vector< std::vector< int > > * m_prescaleFactorsTechTrigLite
Definition: L1GtUtils.h:452
L1GtUtils::m_L1GtStableParametersEventToken
edm::ESGetToken< L1GtStableParameters, L1GtStableParametersRcd > m_L1GtStableParametersEventToken
Definition: L1GtUtils.h:486
edm::ESGetToken< L1GtStableParameters, L1GtStableParametersRcd >
L1GtUtils::LogicalExpressionL1Results::~LogicalExpressionL1Results
~LogicalExpressionL1Results()
destructor
Definition: L1GtUtils.cc:1807
L1GtUtils::LogicalExpressionL1Results::m_validLogicalExpression
bool m_validLogicalExpression
true if the logical expression uses accepted L1GtLogicParser operators
Definition: L1GtUtils.h:217
InputTag.h
DecisionWord
std::vector< bool > DecisionWord
typedefs
Definition: L1GlobalTriggerReadoutSetupFwd.h:34
L1GtUtils::m_algorithmMapLite
const L1GtTriggerMenuLite::L1TriggerMap * m_algorithmMapLite
Definition: L1GtUtils.h:444
L1GtTriggerMenuLite
Definition: L1GtTriggerMenuLite.h:39
L1GtUtils::AlgorithmTrigger
Definition: L1GtUtils.h:140
L1GtUtils::m_technicalTriggerMapLite
const L1GtTriggerMenuLite::L1TriggerMap * m_technicalTriggerMapLite
Definition: L1GtUtils.h:446
L1GtUtils::m_technicalTriggerMap
const AlgorithmMap * m_technicalTriggerMap
Definition: L1GtUtils.h:435
L1GtUtils::m_triggerMaskAlgoTrig
const std::vector< unsigned int > * m_triggerMaskAlgoTrig
Definition: L1GtUtils.h:423
L1GtUtils::LogicalExpressionL1Results::m_expBitsTechTrigger
bool m_expBitsTechTrigger
flag true, if the logical expression is built from technical trigger bits
Definition: L1GtUtils.h:229
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
L1GtUtils::LogicalExpressionL1Results::m_expTriggerCategory
std::vector< L1GtUtils::TriggerCategory > m_expTriggerCategory
trigger category for each L1 trigger in the logical expression
Definition: L1GtUtils.h:226
L1GtUtils::l1TriggerNameFromBit
const bool l1TriggerNameFromBit(const int &bitNumber, const TriggerCategory &trigCategory, std::string &aliasL1Trigger, std::string &nameL1Trigger) const
Definition: L1GtUtils.cc:483
L1GtUtils::L1GtUtils
L1GtUtils(edm::ParameterSet const &pset, edm::ConsumesCollector &&iC, bool useL1GtTriggerMenuLite, UseEventSetupIn use=UseEventSetupIn::Run)
Definition: L1GtUtils.cc:93
L1GtUtils::m_L1GtTriggerMenuRunToken
edm::ESGetToken< L1GtTriggerMenu, L1GtTriggerMenuRcd > m_L1GtTriggerMenuRunToken
Definition: L1GtUtils.h:483
L1GtUtils::LogicalExpressionL1Results::decisionsBeforeMask
const std::vector< std::pair< std::string, bool > > & decisionsBeforeMask()
Definition: L1GtUtils.cc:1999
L1GtUtils::triggerMask
const int triggerMask(const edm::Event &iEvent, const std::string &nameAlgoTechTrig, int &errorCode) const
return trigger mask for a given algorithm or technical trigger
Definition: L1GtUtils.cc:1092
L1GtUtils::prescaleFactorSetIndex
const int prescaleFactorSetIndex(const edm::Event &iEvent, const TriggerCategory &trigCategory, int &errorCode) const
Definition: L1GtUtils.cc:1269
L1GtUtils::m_retrieveL1GtTriggerMenuLite
bool m_retrieveL1GtTriggerMenuLite
Definition: L1GtUtils.h:471
T
long double T
Definition: Basic3DVectorLD.h:48
L1GtUtils::m_numberAlgorithmTriggers
unsigned int m_numberAlgorithmTriggers
number of algorithm triggers
Definition: L1GtUtils.h:395
L1GtUtils::m_triggerMaskAlgoTrigLite
const std::vector< unsigned int > * m_triggerMaskAlgoTrigLite
Definition: L1GtUtils.h:448
L1GtUtils::m_L1GtTriggerMaskTechTrigRunToken
edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskTechTrigRcd > m_L1GtTriggerMaskTechTrigRunToken
Definition: L1GtUtils.h:480
EventSetup.h
L1GtUtils::m_l1GtMenuCacheID
unsigned long long m_l1GtMenuCacheID
Definition: L1GtUtils.h:431
L1GtUtils::m_l1GtTmTech
const L1GtTriggerMask * m_l1GtTmTech
Definition: L1GtUtils.h:414
L1GtUtils::m_l1EventSetupValid
bool m_l1EventSetupValid
Definition: L1GtUtils.h:437
L1GtUtils::m_prescaleFactorsAlgoTrigLite
const std::vector< std::vector< int > > * m_prescaleFactorsAlgoTrigLite
Definition: L1GtUtils.h:451
L1TBPTX_cfi.bitNumber
bitNumber
Definition: L1TBPTX_cfi.py:26
L1GtUtils::m_prescaleFactorSet
std::vector< int > m_prescaleFactorSet
Definition: L1GtUtils.h:467
ConsumesCollector.h
L1GtTriggerMenuFwd.h
ParameterSet.h
L1GtUtils::LogicalExpressionL1Results::m_validL1Configuration
bool m_validL1Configuration
true if valid L1 configuration - if not, reset all quantities and return
Definition: L1GtUtils.h:214
L1GtUtils::m_prescaleFactorsTechTrig
const std::vector< std::vector< int > > * m_prescaleFactorsTechTrig
Definition: L1GtUtils.h:408
L1GtUtils::m_l1GtTmTechCacheID
unsigned long long m_l1GtTmTechCacheID
Definition: L1GtUtils.h:415
L1GtUtils::LogicalExpressionL1Results
Definition: L1GtUtils.h:157
L1GtUtils::m_L1GtTriggerMaskVetoTechTrigEventToken
edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskVetoTechTrigRcd > m_L1GtTriggerMaskVetoTechTrigEventToken
Definition: L1GtUtils.h:492
L1GtUtils::fillDescription
static void fillDescription(edm::ParameterSetDescription &desc)
Definition: L1GtUtils.h:137
L1GlobalTriggerRecord
Definition: L1GlobalTriggerRecord.h:33
L1GtTriggerMaskVetoAlgoTrigRcd.h
L1GtUtils::m_l1GtTmVetoAlgoCacheID
unsigned long long m_l1GtTmVetoAlgoCacheID
Definition: L1GtUtils.h:418
L1GtUtils::m_l1GtTmVetoTechCacheID
unsigned long long m_l1GtTmVetoTechCacheID
Definition: L1GtUtils.h:421
L1GtTriggerMenuLite::L1TriggerMap
std::map< unsigned int, std::string > L1TriggerMap
map containing the physics algorithms or the technical triggers
Definition: L1GtTriggerMenuLite.h:42
L1GtUtils::m_triggerMaskVetoAlgoTrig
const std::vector< unsigned int > * m_triggerMaskVetoAlgoTrig
Definition: L1GtUtils.h:426
edm::Event
Definition: Event.h:73
L1GtUtils::LogicalExpressionL1Results::LogicalExpressionL1Results
LogicalExpressionL1Results(const std::string &, L1GtUtils &)
constructor(s)
Definition: L1GtUtils.cc:1785
L1GtUtils::m_l1GtTmVetoTech
const L1GtTriggerMask * m_l1GtTmVetoTech
Definition: L1GtUtils.h:420
L1GtUtils::m_L1GtPrescaleFactorsTechTrigRunToken
edm::ESGetToken< L1GtPrescaleFactors, L1GtPrescaleFactorsTechTrigRcd > m_L1GtPrescaleFactorsTechTrigRunToken
Definition: L1GtUtils.h:478
L1GtUtils::ptrL1TriggerMenuEventSetup
const L1GtTriggerMenu * ptrL1TriggerMenuEventSetup(int &errorCode)
return a pointer to the L1 trigger menu from event setup
Definition: L1GtUtils.cc:1619
L1GtUtils::prescaleFactor
const int prescaleFactor(const edm::Event &iEvent, const std::string &nameAlgoTechTrig, int &errorCode) const
return prescale factor for a given algorithm or technical trigger
Definition: L1GtUtils.cc:1078
L1GtStableParameters.h
edm::InputTag
Definition: InputTag.h:15
L1GtUtils::m_l1GtPfAlgo
const L1GtPrescaleFactors * m_l1GtPfAlgo
prescale factors
Definition: L1GtUtils.h:401
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
L1GtUtils::m_l1GtStableParCacheID
unsigned long long m_l1GtStableParCacheID
Definition: L1GtUtils.h:392
L1GtPrescaleFactors.h
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
L1GtUtils::LogicalExpressionL1Results::m_decisionsAfterMask
std::vector< std::pair< std::string, bool > > m_decisionsAfterMask
Definition: L1GtUtils.h:237
L1GtUtils::m_L1GtPrescaleFactorsTechTrigEventToken
edm::ESGetToken< L1GtPrescaleFactors, L1GtPrescaleFactorsTechTrigRcd > m_L1GtPrescaleFactorsTechTrigEventToken
Definition: L1GtUtils.h:488
L1GtUtils::m_L1GtTriggerMaskVetoTechTrigRunToken
edm::ESGetToken< L1GtTriggerMask, L1GtTriggerMaskVetoTechTrigRcd > m_L1GtTriggerMaskVetoTechTrigRunToken
Definition: L1GtUtils.h:482
L1GtPrescaleFactorsTechTrigRcd.h
L1GtUtils::m_l1GtTmVetoAlgo
const L1GtTriggerMask * m_l1GtTmVetoAlgo
Definition: L1GtUtils.h:417
L1GtUtils::m_l1GtTmAlgo
const L1GtTriggerMask * m_l1GtTmAlgo
trigger masks & veto masks
Definition: L1GtUtils.h:411