test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GlobalAlgBlk.h
Go to the documentation of this file.
1 #ifndef L1Trigger_GlobalAlgBlk_h
2 #define L1Trigger_GlobalAlgBlk_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 
30 
33 
34 // class interface
35 
37 {
38 
39 
40 
41 public:
43  GlobalAlgBlk(); // empty constructor, all members set to zero;
44 
45  GlobalAlgBlk(int orbitNr, int bxNr, int bxInEvent);
46 
48  virtual ~GlobalAlgBlk();
49 
50 
51 public:
52 
54  void setOrbitNr(int orbNr) { m_orbitNr = orbNr; }
55  void setbxNr(int bxNr) { m_bxNr = bxNr; }
56  void setbxInEventNr(int bxNr) { m_bxInEvent = bxNr; }
57  void setFinalOR(int fOR) { m_finalOR = fOR; }
58 
60  inline const int getOrbitNr() const { return m_orbitNr; }
61  inline const int getbxNr() const { return m_bxNr; }
62  inline const int getbxInEventNr() const { return m_bxInEvent; }
63  inline const int getFinalOR() const { return m_finalOR; }
64 
68 
70  void setAlgoDecisionInitial(int bit, bool val);
71  void setAlgoDecisionPreScaled(int bit, bool val);
72  void setAlgoDecisionFinal(int bit, bool val);
73 
75  bool getAlgoDecisionInitial(unsigned int bit) const;
76  bool getAlgoDecisionPreScaled(unsigned int bit) const;
77  bool getAlgoDecisionFinal(unsigned int bit) const;
78 
80  void reset();
81 
83  void print(std::ostream& myCout) const;
84 
85 
86 private:
87 
89  int m_orbitNr;
90 
92  int m_bxNr;
93 
96 
97  // finalOR
98  int m_finalOR;
99 
100 
101  std::vector<bool> m_algoDecisionInitial;
102  std::vector<bool> m_algoDecisionPreScaled;
103  std::vector<bool> m_algoDecisionFinal;
104 
105 
106 
107 };
108 
109 #endif /*L1Trigger_GlobalAlgBlk_h*/
const int getbxInEventNr() const
Definition: GlobalAlgBlk.h:62
const int getOrbitNr() const
get simple members
Definition: GlobalAlgBlk.h:60
std::vector< bool > m_algoDecisionInitial
Definition: GlobalAlgBlk.h:101
void setFinalOR(int fOR)
Definition: GlobalAlgBlk.h:57
const int getFinalOR() const
Definition: GlobalAlgBlk.h:63
void setbxInEventNr(int bxNr)
Definition: GlobalAlgBlk.h:56
GlobalAlgBlk()
constructors
Definition: GlobalAlgBlk.cc:51
BXVector< GlobalAlgBlk > GlobalAlgBlkBxCollection
Definition: GlobalAlgBlk.h:31
bool getAlgoDecisionFinal(unsigned int bit) const
int m_bxNr
bunch cross number of the actual bx
Definition: GlobalAlgBlk.h:92
bool getAlgoDecisionInitial(unsigned int bit) const
Get decision bits.
void print(std::ostream &myCout) const
pretty print the content of a GlobalAlgBlk
void copyPrescaledToFinal()
Definition: GlobalAlgBlk.h:67
void reset()
reset the content of a GlobalAlgBlk
virtual ~GlobalAlgBlk()
destructor
Definition: GlobalAlgBlk.cc:75
const int getbxNr() const
Definition: GlobalAlgBlk.h:61
void setAlgoDecisionPreScaled(int bit, bool val)
Definition: GlobalAlgBlk.cc:94
void copyInitialToPrescaled()
Copy vectors words.
Definition: GlobalAlgBlk.h:66
int m_orbitNr
orbit number
Definition: GlobalAlgBlk.h:89
void setAlgoDecisionInitial(int bit, bool val)
Set decision bits.
Definition: GlobalAlgBlk.cc:83
std::vector< bool > m_algoDecisionFinal
Definition: GlobalAlgBlk.h:103
void setbxNr(int bxNr)
Definition: GlobalAlgBlk.h:55
int m_bxInEvent
bunch cross in the GT event record (E,F,0,1,2)
Definition: GlobalAlgBlk.h:95
std::vector< bool > m_algoDecisionPreScaled
Definition: GlobalAlgBlk.h:102
void setAlgoDecisionFinal(int bit, bool val)
Definition: GlobalAlgBlk.cc:98
void setOrbitNr(int orbNr)
set simple members
Definition: GlobalAlgBlk.h:54
bool getAlgoDecisionPreScaled(unsigned int bit) const