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 
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 
73  }
74 
75  inline const DecisionWord decisionWordBeforeMask() const {
77  }
78 
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);
91  const TechnicalTriggerWord& ttWordValue);
92 
94 
95  inline const unsigned int gtPrescaleFactorIndexTech() const {
97  }
98 
100  const unsigned int& gtPrescaleFactorIndexTechValue) {
101  m_gtPrescaleFactorIndexTech = gtPrescaleFactorIndexTechValue;
102  }
103 
104  inline const unsigned int gtPrescaleFactorIndexAlgo() const {
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
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