CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GlobalTriggerRecord.h
Go to the documentation of this file.
1 #ifndef L1GlobalTrigger_L1GlobalTriggerRecord_h
2 #define L1GlobalTrigger_L1GlobalTriggerRecord_h
3 
20 // system include files
21 #include <vector>
22 #include <iosfwd>
23 
24 // user include files
26 
27 // forward declarations
28 namespace edm
29 {
30 template <typename T> class Handle;
31 }
32 
33 // class interface
34 
36 {
37 
38 public:
39 
42 
43  L1GlobalTriggerRecord(const unsigned int numberPhysTriggers,
44  const unsigned int numberTechnicalTriggers);
45 
48 
50  virtual ~L1GlobalTriggerRecord();
51 
54 
56  bool operator==(const L1GlobalTriggerRecord&) const;
57 
59  bool operator!=(const L1GlobalTriggerRecord&) const;
60 
61 public:
62 
65  inline const bool decision() const {
66  return m_gtGlobalDecision;
67  }
68 
69  inline const DecisionWord decisionWord() const {
70  return m_gtDecisionWord;
71  }
72 
75  }
76 
77  inline const DecisionWord decisionWordBeforeMask() const {
79  }
80 
83  }
84 
87  void setDecision(const bool& dValue);
88  void setDecisionWord(const DecisionWord& dWordValue);
89  void setTechnicalTriggerWord(const TechnicalTriggerWord& ttWordValue);
90 
91  void setDecisionWordBeforeMask(const DecisionWord& dWordValue);
93  const TechnicalTriggerWord& ttWordValue);
94 
96 
97  inline const unsigned int gtPrescaleFactorIndexTech() const {
99  }
100 
102  const unsigned int& gtPrescaleFactorIndexTechValue) {
103  m_gtPrescaleFactorIndexTech = gtPrescaleFactorIndexTechValue;
104  }
105 
106  inline const unsigned int gtPrescaleFactorIndexAlgo() const {
108  }
109 
111  const unsigned int& gtPrescaleFactorIndexAlgoValue) {
112  m_gtPrescaleFactorIndexAlgo = gtPrescaleFactorIndexAlgoValue;
113  }
114 
116  void printGtDecision(std::ostream& myCout) const;
117 
119  void printTechnicalTrigger(std::ostream& myCout) const;
120 
121  // other methods
122 
124  void reset();
125 
127  void print(std::ostream& myCout) const;
128 
130  friend std::ostream
131  & operator<<(std::ostream&, const L1GlobalTriggerRecord&);
132 
133 private:
134 
137 
140 
143 
146 
149 
154 
155 };
156 
157 #endif
TechnicalTriggerWord m_gtTechnicalTriggerWord
technical trigger word for L1A bunch cross
void setDecisionWordBeforeMask(const DecisionWord &dWordValue)
L1GlobalTriggerRecord & operator=(const L1GlobalTriggerRecord &)
assignment operator
void setDecision(const bool &dValue)
void setTechnicalTriggerWord(const TechnicalTriggerWord &ttWordValue)
const DecisionWord decisionWordBeforeMask() const
void setDecisionWord(const DecisionWord &dWordValue)
bool m_gtGlobalDecision
global decision for L1A bunch cross
unsigned int m_gtPrescaleFactorIndexAlgo
DecisionWord m_gtDecisionWordBeforeMask
algorithm decision word for L1A bunch cross before applying the masks
bool operator!=(const L1GlobalTriggerRecord &) const
unequal operator
TechnicalTriggerWord m_gtTechnicalTriggerWordBeforeMask
technical trigger word for L1A bunch cross before applying the masks
const TechnicalTriggerWord technicalTriggerWord() const
const bool decision() const
std::vector< bool > DecisionWord
typedefs
void print(std::ostream &myCout) const
pretty print the content of a L1GlobalTriggerRecord
std::vector< bool > TechnicalTriggerWord
technical trigger bits (64 bits)
const DecisionWord decisionWord() const
const unsigned int gtPrescaleFactorIndexAlgo() const
void reset()
clear the record
void setGtPrescaleFactorIndexTech(const unsigned int &gtPrescaleFactorIndexTechValue)
DecisionWord m_gtDecisionWord
algorithm decision word for L1A bunch cross
void setTechnicalTriggerWordBeforeMask(const TechnicalTriggerWord &ttWordValue)
unsigned int m_gtPrescaleFactorIndexTech
virtual ~L1GlobalTriggerRecord()
destructor
const TechnicalTriggerWord technicalTriggerWordBeforeMask() const
void printTechnicalTrigger(std::ostream &myCout) const
print technical triggers
void setGtPrescaleFactorIndexAlgo(const unsigned int &gtPrescaleFactorIndexAlgoValue)
friend std::ostream & operator<<(std::ostream &, const L1GlobalTriggerRecord &)
output stream operator
const unsigned int gtPrescaleFactorIndexTech() const
get/set index of the set of prescale factors
void printGtDecision(std::ostream &myCout) const
print global decision and algorithm decision word
bool operator==(const L1GlobalTriggerRecord &) const
equal operator
L1GlobalTriggerRecord()
constructors