CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GlobalTriggerEvmReadoutRecord.h
Go to the documentation of this file.
1 #ifndef L1GlobalTrigger_L1GlobalTriggerEvmReadoutRecord_h
2 #define L1GlobalTrigger_L1GlobalTriggerEvmReadoutRecord_h
3 
20 // system include files
21 #include <string>
22 #include <vector>
23 #include <iosfwd>
24 
25 // user include files
28 
33 
34 // forward declarations
35 
36 // class interface
37 
39 {
40 
41 public:
42 
45 
46  L1GlobalTriggerEvmReadoutRecord(int NumberBxInEvent);
47 
48  L1GlobalTriggerEvmReadoutRecord(const int numberBxInEvent, const int numberFdlBoards);
49 
52 
55 
58 
61 
64 
65 public:
66 
70  const bool decision(int bxInEvent) const;
71  const DecisionWord decisionWord(int bxInEvent) const;
72 
73  const bool decision() const;
74  const DecisionWord decisionWord() const;
75 
77  void setDecision(bool t, int bxInEvent);
78  void setDecisionWord(const DecisionWord& decisionWordValue, int bxInEvent);
79 
80  void setDecision(bool t);
81  void setDecisionWord(const DecisionWord& decisionWordValue);
82 
84  void printGtDecision(std::ostream& myCout, int bxInEventValue) const;
85  void printGtDecision(std::ostream& myCout) const;
86 
88  void printTechnicalTrigger(std::ostream& myCout, int bxInEventValue) const;
89  void printTechnicalTrigger(std::ostream& myCout) const;
90 
91  //**************************************************************************
92  // get/set hardware-related words
93  //
94  // Board description: file GlobalTriggerBoardsMapper.dat // TODO xml file instead?
95  //**************************************************************************
96 
97 
99  const L1GtfeExtWord gtfeWord() const;
100  void setGtfeWord(const L1GtfeExtWord&);
101 
103  const L1TcsWord tcsWord() const;
104  void setTcsWord(const L1TcsWord&);
105 
107  const std::vector<L1GtFdlWord> gtFdlVector() const
108  {
109  return m_gtFdlWord;
110  }
111 
112  std::vector<L1GtFdlWord>& gtFdlVector()
113  {
114  return m_gtFdlWord;
115  }
116 
118  const L1GtFdlWord gtFdlWord(int bxInEvent) const;
119  const L1GtFdlWord gtFdlWord() const;
120 
121  void setGtFdlWord(const L1GtFdlWord&, int bxInEvent);
122  void setGtFdlWord(const L1GtFdlWord&);
123 
124  // other methods
125 
127  void reset();
128 
130  void print(std::ostream& myCout) const;
131 
132 
134  friend std::ostream& operator<<(std::ostream&, const L1GlobalTriggerEvmReadoutRecord&);
135 
136 
137 private:
138 
141 
142  std::vector<L1GtFdlWord> m_gtFdlWord;
143 
144 };
145 
146 
147 #endif
std::vector< L1GtFdlWord > & gtFdlVector()
void printTechnicalTrigger(std::ostream &myCout, int bxInEventValue) const
print technical triggers
const L1GtfeExtWord gtfeWord() const
get / set GTFE word (record) in the GT readout record
const L1TcsWord tcsWord() const
get / set TCS word (record) in the GT readout record
bool operator==(const L1GlobalTriggerEvmReadoutRecord &) const
equal operator
void print(std::ostream &myCout) const
pretty print the content of a L1GlobalTriggerEvmReadoutRecord
void setDecisionWord(const DecisionWord &decisionWordValue, int bxInEvent)
bool operator!=(const L1GlobalTriggerEvmReadoutRecord &) const
unequal operator
L1GlobalTriggerEvmReadoutRecord & operator=(const L1GlobalTriggerEvmReadoutRecord &)
assignment operator
std::vector< bool > DecisionWord
typedefs
void setDecision(bool t, int bxInEvent)
set global decision and the decision word
void setGtFdlWord(const L1GtFdlWord &, int bxInEvent)
void printGtDecision(std::ostream &myCout, int bxInEventValue) const
print global decision and algorithm decision word
friend std::ostream & operator<<(std::ostream &, const L1GlobalTriggerEvmReadoutRecord &)
output stream operator
const std::vector< L1GtFdlWord > gtFdlVector() const
get the vector of L1GtFdlWord