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 
18 // system include files
19 #include <string>
20 #include <vector>
21 #include <iosfwd>
22 
23 // user include files
26 
31 
32 // forward declarations
33 
34 // class interface
35 
37 {
38 
39 public:
40 
43 
44  L1GlobalTriggerEvmReadoutRecord(int NumberBxInEvent);
45 
46  L1GlobalTriggerEvmReadoutRecord(const int numberBxInEvent, const int numberFdlBoards);
47 
50 
53 
56 
59 
62 
63 public:
64 
68  const bool decision(int bxInEvent) const;
69  const DecisionWord decisionWord(int bxInEvent) const;
70 
71  const bool decision() const;
72  const DecisionWord decisionWord() const;
73 
75  void setDecision(bool t, int bxInEvent);
76  void setDecisionWord(const DecisionWord& decisionWordValue, int bxInEvent);
77 
78  void setDecision(bool t);
79  void setDecisionWord(const DecisionWord& decisionWordValue);
80 
82  void printGtDecision(std::ostream& myCout, int bxInEventValue) const;
83  void printGtDecision(std::ostream& myCout) const;
84 
86  void printTechnicalTrigger(std::ostream& myCout, int bxInEventValue) const;
87  void printTechnicalTrigger(std::ostream& myCout) const;
88 
89  //**************************************************************************
90  // get/set hardware-related words
91  //
92  // Board description: file GlobalTriggerBoardsMapper.dat // TODO xml file instead?
93  //**************************************************************************
94 
95 
97  const L1GtfeExtWord gtfeWord() const;
98  void setGtfeWord(const L1GtfeExtWord&);
99 
101  const L1TcsWord tcsWord() const;
102  void setTcsWord(const L1TcsWord&);
103 
105  const std::vector<L1GtFdlWord> gtFdlVector() const
106  {
107  return m_gtFdlWord;
108  }
109 
110  std::vector<L1GtFdlWord>& gtFdlVector()
111  {
112  return m_gtFdlWord;
113  }
114 
116  const L1GtFdlWord gtFdlWord(int bxInEvent) const;
117  const L1GtFdlWord gtFdlWord() const;
118 
119  void setGtFdlWord(const L1GtFdlWord&, int bxInEvent);
120  void setGtFdlWord(const L1GtFdlWord&);
121 
122  // other methods
123 
125  void reset();
126 
128  void print(std::ostream& myCout) const;
129 
130 
132  friend std::ostream& operator<<(std::ostream&, const L1GlobalTriggerEvmReadoutRecord&);
133 
134 
135 private:
136 
139 
140  std::vector<L1GtFdlWord> m_gtFdlWord;
141 
142 };
143 
144 
145 #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