CMS 3D CMS Logo

L1GlobalTriggerReadoutRecord.h
Go to the documentation of this file.
1 #ifndef L1GlobalTrigger_L1GlobalTriggerReadoutRecord_h
2 #define L1GlobalTrigger_L1GlobalTriggerReadoutRecord_h
3 
19 // system include files
20 #include <string>
21 #include <vector>
22 #include <iosfwd>
23 
24 // user include files
27 
29 
33 
35 
37 
38 // forward declarations
39 namespace edm
40 {
41 template <typename T>
42 class Handle;
43 }
44 
45 // class interface
46 
48 {
49 
50 public:
51 
54 
55  L1GlobalTriggerReadoutRecord(int NumberBxInEvent);
56 
58  const int numberBxInEvent,
59  const int numberFdlBoards,
60  const int numberPsbBoards);
61 
62 
65 
68 
71 
73  bool operator==(const L1GlobalTriggerReadoutRecord&) const;
74 
76  bool operator!=(const L1GlobalTriggerReadoutRecord&) const;
77 
78 public:
79 
83  const bool decision(int bxInEventValue) const;
84  const bool decision() const;
85 
86  const cms_uint16_t finalOR(int bxInEventValue) const;
87  const cms_uint16_t finalOR() const;
88 
89  const DecisionWord & decisionWord(int bxInEventValue) const;
90  const DecisionWord & decisionWord() const;
91 
92  const TechnicalTriggerWord & technicalTriggerWord(int bxInEventValue) const;
93  const TechnicalTriggerWord & technicalTriggerWord() const;
94 
96  void setDecision(const bool& t, int bxInEventValue);
97  void setDecision(const bool& t);
98 
99  void setDecisionWord(const DecisionWord& decisionWordValue, int bxInEventValue);
100  void setDecisionWord(const DecisionWord& decisionWordValue);
101 
102  void setTechnicalTriggerWord(const TechnicalTriggerWord& ttWordValue, int bxInEventValue);
103  void setTechnicalTriggerWord(const TechnicalTriggerWord& ttWordValue);
104 
106  void printGtDecision(std::ostream& myCout, int bxInEventValue) const;
107  void printGtDecision(std::ostream& myCout) const;
108 
110  void printTechnicalTrigger(std::ostream& myCout, int bxInEventValue) const;
111  void printTechnicalTrigger(std::ostream& myCout) const;
112 
113 
115  const edm::RefProd<L1MuGMTReadoutCollection> muCollectionRefProd() const;
116  void setMuCollectionRefProd(edm::Handle<L1MuGMTReadoutCollection>&);
117  void setMuCollectionRefProd(const edm::RefProd<L1MuGMTReadoutCollection>&);
118 
119 
120 
121  //**************************************************************************
122  // get/set hardware-related words
123  //
124  //**************************************************************************
125 
126 
128  const L1GtfeWord gtfeWord() const;
129  void setGtfeWord(const L1GtfeWord&);
130 
132  const std::vector<L1GtFdlWord> gtFdlVector() const
133  {
134  return m_gtFdlWord;
135  }
136 
137  std::vector<L1GtFdlWord>& gtFdlVector()
138  {
139  return m_gtFdlWord;
140  }
141 
143  const L1GtFdlWord gtFdlWord(int bxInEventValue) const;
144  const L1GtFdlWord gtFdlWord() const;
145 
146  void setGtFdlWord(const L1GtFdlWord&, int bxInEventValue);
147  void setGtFdlWord(const L1GtFdlWord&);
148 
150  const std::vector<L1GtPsbWord> gtPsbVector() const
151  {
152  return m_gtPsbWord;
153  }
154 
155  std::vector<L1GtPsbWord>& gtPsbVector()
156  {
157  return m_gtPsbWord;
158  }
159 
161  const L1GtPsbWord gtPsbWord(cms_uint16_t boardIdValue, int bxInEventValue) const;
162  const L1GtPsbWord gtPsbWord(cms_uint16_t boardIdValue) const;
163 
164  void setGtPsbWord(const L1GtPsbWord&, cms_uint16_t boardIdValue, int bxInEventValue);
165  void setGtPsbWord(const L1GtPsbWord&, cms_uint16_t boardIdValue);
166  void setGtPsbWord(const L1GtPsbWord& gtPsbWordValue);
167 
168  // other methods
169 
171  void reset();
172 
174  void print(std::ostream& myCout) const;
175 
177  friend std::ostream& operator<<(std::ostream&, const L1GlobalTriggerReadoutRecord&);
178 
179 
180 private:
181 
183 
184  std::vector<L1GtFdlWord> m_gtFdlWord;
185 
186  std::vector<L1GtPsbWord> m_gtPsbWord;
187 
189 
190 };
191 
192 
193 #endif
const std::vector< L1GtFdlWord > gtFdlVector() const
get the vector of L1GtFdlWord
const std::vector< L1GtPsbWord > gtPsbVector() const
get the vector of L1GtPsbWord
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
bool operator==(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
std::vector< L1GtPsbWord > m_gtPsbWord
std::vector< bool > DecisionWord
typedefs
std::vector< L1GtFdlWord > & gtFdlVector()
std::vector< bool > TechnicalTriggerWord
technical trigger bits (64 bits)
unsigned short cms_uint16_t
Definition: typedefs.h:13
edm::RefProd< L1MuGMTReadoutCollection > m_muCollRefProd
std::vector< L1GtFdlWord > m_gtFdlWord
std::vector< L1GtPsbWord > & gtPsbVector()
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &) noexcept
HLT enums.
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
void reset(double vett[256])
Definition: TPedValues.cc:11