CMS 3D CMS Logo

L1GlobalTriggerRecord.h
Go to the documentation of this file.
1 #ifndef L1GlobalTrigger_L1GlobalTriggerRecord_h
2 #define L1GlobalTrigger_L1GlobalTriggerRecord_h
3 
18 // system include files
19 #include <vector>
20 #include <iosfwd>
21 
22 // user include files
24 
25 // forward declarations
26 namespace edm
27 {
28 template <typename T> class Handle;
29 }
30 
31 // class interface
32 
34 {
35 
36 public:
37 
40 
41  L1GlobalTriggerRecord(const unsigned int numberPhysTriggers,
42  const unsigned int numberTechnicalTriggers);
43 
46 
48  virtual ~L1GlobalTriggerRecord();
49 
52 
54  bool operator==(const L1GlobalTriggerRecord&) const;
55 
57  bool operator!=(const L1GlobalTriggerRecord&) const;
58 
59 public:
60 
63  inline const bool decision() const {
64  return m_gtGlobalDecision;
65  }
66 
67  inline const DecisionWord decisionWord() const {
68  return m_gtDecisionWord;
69  }
70 
72  return m_gtTechnicalTriggerWord;
73  }
74 
75  inline const DecisionWord decisionWordBeforeMask() const {
76  return m_gtDecisionWordBeforeMask;
77  }
78 
80  return m_gtTechnicalTriggerWordBeforeMask;
81  }
82 
85  void setDecision(const bool& dValue);
86  void setDecisionWord(const DecisionWord& dWordValue);
87  void setTechnicalTriggerWord(const TechnicalTriggerWord& ttWordValue);
88 
89  void setDecisionWordBeforeMask(const DecisionWord& dWordValue);
90  void setTechnicalTriggerWordBeforeMask(
91  const TechnicalTriggerWord& ttWordValue);
92 
94 
95  inline const unsigned int gtPrescaleFactorIndexTech() const {
96  return m_gtPrescaleFactorIndexTech;
97  }
98 
100  const unsigned int& gtPrescaleFactorIndexTechValue) {
101  m_gtPrescaleFactorIndexTech = gtPrescaleFactorIndexTechValue;
102  }
103 
104  inline const unsigned int gtPrescaleFactorIndexAlgo() const {
105  return m_gtPrescaleFactorIndexAlgo;
106  }
107 
109  const unsigned int& gtPrescaleFactorIndexAlgoValue) {
110  m_gtPrescaleFactorIndexAlgo = gtPrescaleFactorIndexAlgoValue;
111  }
112 
114  void printGtDecision(std::ostream& myCout) const;
115 
117  void printTechnicalTrigger(std::ostream& myCout) const;
118 
119  // other methods
120 
122  void reset();
123 
125  void print(std::ostream& myCout) const;
126 
128  friend std::ostream
129  & operator<<(std::ostream&, const L1GlobalTriggerRecord&);
130 
131 private:
132 
135 
138 
141 
144 
147 
152 
153 };
154 
155 #endif
TechnicalTriggerWord m_gtTechnicalTriggerWord
technical trigger word for L1A bunch cross
const DecisionWord decisionWordBeforeMask() const
bool m_gtGlobalDecision
global decision for L1A bunch cross
unsigned int m_gtPrescaleFactorIndexAlgo
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
DecisionWord m_gtDecisionWordBeforeMask
algorithm decision word for L1A bunch cross before applying the masks
TechnicalTriggerWord m_gtTechnicalTriggerWordBeforeMask
technical trigger word for L1A bunch cross before applying the masks
const TechnicalTriggerWord technicalTriggerWord() const
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
const bool decision() const
std::vector< bool > DecisionWord
typedefs
std::vector< bool > TechnicalTriggerWord
technical trigger bits (64 bits)
const DecisionWord decisionWord() const
const unsigned int gtPrescaleFactorIndexAlgo() const
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
void setGtPrescaleFactorIndexTech(const unsigned int &gtPrescaleFactorIndexTechValue)
DecisionWord m_gtDecisionWord
algorithm decision word for L1A bunch cross
HLT enums.
unsigned int m_gtPrescaleFactorIndexTech
const TechnicalTriggerWord technicalTriggerWordBeforeMask() const
void setGtPrescaleFactorIndexAlgo(const unsigned int &gtPrescaleFactorIndexAlgoValue)
const unsigned int gtPrescaleFactorIndexTech() const
get/set index of the set of prescale factors
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
void reset(double vett[256])
Definition: TPedValues.cc:11