CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GlobalExtBlk.h
Go to the documentation of this file.
1 #ifndef L1Trigger_GlobalExtBlk_h
2 #define L1Trigger_GlobalExtBlk_h
3 
18 // system include files
19 #include <vector>
20 #include <iostream>
21 #include <iomanip>
22 
23 // user include files
27 
28 // forward declarations
29 
32 
33 // class interface
34 
36 {
37 
38 public:
40  GlobalExtBlk(); // empty constructor, all members set to zero;
41 
42  GlobalExtBlk(int orbitNr, int bxNr, int bxInEvent);
43 
45  virtual ~GlobalExtBlk();
46 
47 
48 public:
49 
51  void setOrbitNr(int orbNr) { m_orbitNr = orbNr; }
52  void setbxNr(int bxNr) { m_bxNr = bxNr; }
53  void setbxInEventNr(int bxNr) { m_bxInEvent = bxNr; }
54  void setFinalOR(int fOR) { m_finalOR = fOR; }
55 
57  inline const int getOrbitNr() const { return m_orbitNr; }
58  inline const int getbxNr() const { return m_bxNr; }
59  inline const int getbxInEventNr() const { return m_bxInEvent; }
60  inline const int getFinalOR() const { return m_finalOR; }
61 
63  void setExternalDecision(int bit, bool val);
64 
66  bool getExternalDecision(unsigned int bit) const;
67 
69  void reset();
70 
72  void print(std::ostream& myCout) const;
73 
74 
75 private:
76 
78  int m_orbitNr;
79 
81  int m_bxNr;
82 
85 
86  // finalOR
87  int m_finalOR;
88 
89 
90  std::vector<bool> m_extDecision;
91 
92 
93 };
94 
95 #endif /*L1Trigger_GlobalExtBlk_h*/
BXVector< GlobalExtBlk > GlobalExtBlkBxCollection
Definition: GlobalExtBlk.h:30
void print(std::ostream &myCout) const
pretty print the content of a GlobalExtBlk
void reset()
reset the content of a GlobalExtBlk
Definition: GlobalExtBlk.cc:92
const int getbxNr() const
Definition: GlobalExtBlk.h:58
const int getbxInEventNr() const
Definition: GlobalExtBlk.h:59
void setbxInEventNr(int bxNr)
Definition: GlobalExtBlk.h:53
const int getOrbitNr() const
get simple members
Definition: GlobalExtBlk.h:57
virtual ~GlobalExtBlk()
destructor
Definition: GlobalExtBlk.cc:63
void setFinalOR(int fOR)
Definition: GlobalExtBlk.h:54
int m_bxInEvent
bunch cross in the GT event record (E,F,0,1,2)
Definition: GlobalExtBlk.h:84
void setExternalDecision(int bit, bool val)
Set decision bits.
Definition: GlobalExtBlk.cc:71
void setOrbitNr(int orbNr)
set simple members
Definition: GlobalExtBlk.h:51
bool getExternalDecision(unsigned int bit) const
Get decision bits.
Definition: GlobalExtBlk.cc:84
int m_bxNr
bunch cross number of the actual bx
Definition: GlobalExtBlk.h:81
GlobalExtBlk()
constructors
Definition: GlobalExtBlk.cc:45
std::vector< bool > m_extDecision
Definition: GlobalExtBlk.h:90
const int getFinalOR() const
Definition: GlobalExtBlk.h:60
int m_orbitNr
orbit number
Definition: GlobalExtBlk.h:78
void setbxNr(int bxNr)
Definition: GlobalExtBlk.h:52