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
26 //#include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutSetup.h"
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 setFinalORVeto(bool fOR) { m_finalORVeto = fOR; }
58  void setFinalORPreVeto(bool fOR){ m_finalORPreVeto = fOR; }
59  void setFinalOR(bool fOR) { m_finalOR = fOR; }
60  void setPreScColumn(int psC) { m_preScColumn = psC; }
61 
63  inline const int getOrbitNr() const { return m_orbitNr; }
64  inline const int getbxNr() const { return m_bxNr; }
65  inline const int getbxInEventNr() const { return m_bxInEvent; }
66  inline const bool getFinalOR() const { return m_finalOR; }
67  inline const bool getFinalORPreVeto() const { return m_finalORPreVeto; };
68  inline const bool getFinalORVeto() const { return m_finalORVeto; }
69  inline const int getPreScColumn() const { return m_preScColumn; }
70 
74 
76  void setAlgoDecisionInitial(unsigned int bit, bool val);
77  void setAlgoDecisionPreScaled(unsigned int bit, bool val);
78  void setAlgoDecisionFinal(unsigned int bit, bool val);
79 
81  bool getAlgoDecisionInitial(unsigned int bit) const;
82  bool getAlgoDecisionPreScaled(unsigned int bit) const;
83  bool getAlgoDecisionFinal(unsigned int bit) const;
84 
86  void reset();
87 
89  void print(std::ostream& myCout) const;
90 
91 
92 private:
93 
95  int m_orbitNr;
96 
98  int m_bxNr;
99 
102 
103  // finalOR
104  bool m_finalOR;
107 
108  //Prescale Column
110 
111 
112  std::vector<bool> m_algoDecisionInitial;
113  std::vector<bool> m_algoDecisionPreScaled;
114  std::vector<bool> m_algoDecisionFinal;
115 
116 
117 
118 };
119 
120 #endif /*L1Trigger_GlobalAlgBlk_h*/
const int getbxInEventNr() const
Definition: GlobalAlgBlk.h:65
const int getOrbitNr() const
get simple members
Definition: GlobalAlgBlk.h:63
std::vector< bool > m_algoDecisionInitial
Definition: GlobalAlgBlk.h:112
void setFinalORPreVeto(bool fOR)
Definition: GlobalAlgBlk.h:58
void setAlgoDecisionInitial(unsigned int bit, bool val)
Set decision bits.
Definition: GlobalAlgBlk.cc:89
void setbxInEventNr(int bxNr)
Definition: GlobalAlgBlk.h:56
GlobalAlgBlk()
constructors
Definition: GlobalAlgBlk.cc:54
bool m_finalORPreVeto
Definition: GlobalAlgBlk.h:105
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:98
const bool getFinalORVeto() const
Definition: GlobalAlgBlk.h:68
bool getAlgoDecisionInitial(unsigned int bit) const
Get decision bits.
const bool getFinalORPreVeto() const
Definition: GlobalAlgBlk.h:67
void setAlgoDecisionPreScaled(unsigned int bit, bool val)
const bool getFinalOR() const
Definition: GlobalAlgBlk.h:66
void print(std::ostream &myCout) const
pretty print the content of a GlobalAlgBlk
void copyPrescaledToFinal()
Definition: GlobalAlgBlk.h:73
void reset()
reset the content of a GlobalAlgBlk
const int getPreScColumn() const
Definition: GlobalAlgBlk.h:69
virtual ~GlobalAlgBlk()
destructor
Definition: GlobalAlgBlk.cc:81
const int getbxNr() const
Definition: GlobalAlgBlk.h:64
void copyInitialToPrescaled()
Copy vectors words.
Definition: GlobalAlgBlk.h:72
void setFinalOR(bool fOR)
Definition: GlobalAlgBlk.h:59
void setFinalORVeto(bool fOR)
Definition: GlobalAlgBlk.h:57
int m_orbitNr
orbit number
Definition: GlobalAlgBlk.h:95
std::vector< bool > m_algoDecisionFinal
Definition: GlobalAlgBlk.h:114
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:101
std::vector< bool > m_algoDecisionPreScaled
Definition: GlobalAlgBlk.h:113
void setPreScColumn(int psC)
Definition: GlobalAlgBlk.h:60
void setOrbitNr(int orbNr)
set simple members
Definition: GlobalAlgBlk.h:54
bool m_finalORVeto
Definition: GlobalAlgBlk.h:106
void setAlgoDecisionFinal(unsigned int bit, bool val)
bool getAlgoDecisionPreScaled(unsigned int bit) const