CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1aInfo.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_TCDS_L1AINFO_H
2 #define DATAFORMATS_TCDS_L1AINFO_H
3 
4 //---------------------------------------------------------------------------
9 //---------------------------------------------------------------------------
10 
11 #include <cstdint>
12 #include <ostream>
13 
15 
16 class L1aInfo {
17 public:
18  L1aInfo();
19 
20  L1aInfo(const tcds::L1aInfo_v1&);
21 
22  L1aInfo(int16_t index, uint64_t orbitNr, uint16_t bxid, uint8_t eventtype) {
23  index_ = index;
24  orbitNr_ = orbitNr;
25  bxid_ = bxid;
26  eventType_ = eventtype;
27  };
28 
29  // The history index, where -1 means the previous L1 accept, -2 the one before that, etc.
30  int16_t getIndex() const { return index_; }
31 
32  // The orbit number when the L1 accept occured
33  uint64_t getOrbitNr() const { return orbitNr_; }
34 
35  // The bunch-crossing counter for the L1 accept
36  uint16_t getBXID() const { return bxid_; }
37 
38  // The event type of the L1 accept corresponding to edm::EventAuxiliary::ExperimentType
39  uint8_t getEventType() const { return eventType_; }
40 
41 private:
43  uint16_t bxid_;
44  int16_t index_;
45  uint8_t eventType_;
46 };
47 
49 std::ostream& operator<<(std::ostream&, const L1aInfo&);
50 
51 #endif // DATAFORMATS_TCDS_L1AINFO_H
uint8_t eventType_
Definition: L1aInfo.h:45
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
Class to contain L1 accept history information from TCDS FED.
Definition: L1aInfo.h:16
uint64_t orbitNr_
Definition: L1aInfo.h:42
uint16_t getBXID() const
Definition: L1aInfo.h:36
uint8_t getEventType() const
Definition: L1aInfo.h:39
L1aInfo()
Definition: L1aInfo.cc:4
L1aInfo(int16_t index, uint64_t orbitNr, uint16_t bxid, uint8_t eventtype)
Definition: L1aInfo.h:22
unsigned long long uint64_t
Definition: Time.h:13
int16_t index_
Definition: L1aInfo.h:44
uint16_t bxid_
Definition: L1aInfo.h:43
int16_t getIndex() const
Definition: L1aInfo.h:30
uint64_t getOrbitNr() const
Definition: L1aInfo.h:33