CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCCFEBStatusDigi.h
Go to the documentation of this file.
1 #ifndef CSCCFEBStatusDigi_CSCCFEBStatusDigi_h
2 #define CSCCFEBStatusDigi_CSCCFEBStatusDigi_h
3 
15 #include <vector>
16 #include <iosfwd>
17 #include <stdint.h>
18 
20 
21 public:
22 
24  CSCCFEBStatusDigi (int cfebnmb) {cfebnmb_ = cfebnmb;}
25 
26 
28  CSCCFEBStatusDigi (int cfebnmb, std::vector<uint16_t> crcWords,
29  std::vector<uint16_t> contrWords, std::vector<uint16_t> bWords) {
30  cfebnmb_ = cfebnmb;
31  crcWords_ = crcWords;
32  contrWords_ = contrWords;
33  bWords_ = bWords;
34 }
35 
36 
39 
41  void setCRC (std::vector<uint16_t> crc) {crcWords_ = crc;}
42 
44  void setSCAC (std::vector<uint16_t> scac) {contrWords_ = scac;}
45 
47  int getCFEBNmb() const {return cfebnmb_;}
48 
50  std::vector<uint16_t> getSCAFullCond() const;
51 
53  std::vector<uint16_t> getCRC() const {return crcWords_;}
54 
56  int ShiftSel(int nmb,int nshift,int nsel) const;
57 
59  std::vector<int> getTS_FLAG() const;
60 
62  std::vector<int> getSCA_FULL() const;
63 
65  std::vector<int> getLCT_PHASE() const;
66 
68  std::vector<int> getL1A_PHASE() const;
69 
71  std::vector<int> getSCA_BLK() const;
72 
74  std::vector<int> getTRIG_TIME() const;
75 
77  void print() const;
78 
79 private:
80 
81  uint16_t cfebnmb_;
82  std::vector<uint16_t> crcWords_;
83  std::vector<uint16_t> contrWords_;
84  std::vector<uint16_t> bWords_;
85 
86 };
87 
88 std::ostream & operator<<(std::ostream & o, const CSCCFEBStatusDigi& digi);
89 
90 #endif
CSCCFEBStatusDigi(int cfebnmb, std::vector< uint16_t > crcWords, std::vector< uint16_t > contrWords, std::vector< uint16_t > bWords)
Constructor for all variables.
std::vector< int > getTS_FLAG() const
Get TS_FLAG bit from SCA Controller data per each time slice.
std::vector< int > getSCA_BLK() const
Get SCA_BLK 4 bit word from SCA Controller data per each time slice.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
CSCCFEBStatusDigi()
Default construction.
std::vector< int > getL1A_PHASE() const
Get L1A_PHASE bit from SCA Controller data per each time slice.
CSCCFEBStatusDigi(int cfebnmb)
Construct from the CFEB number (1-5).
std::vector< int > getLCT_PHASE() const
Get LCT_PHASE bit from SCA Controller data per each time slice.
int getCFEBNmb() const
Get the CFEB number.
std::vector< uint16_t > getSCAFullCond() const
Get SCA Full Condition.
void setCRC(std::vector< uint16_t > crc)
Set CRC vector.
std::vector< int > getSCA_FULL() const
Get SCA_FULL bit from SCA Controller data per each time slice.
void setSCAC(std::vector< uint16_t > scac)
Set SCAC (SCA Controller) vector.
std::vector< uint16_t > getCRC() const
Get CRC per each time sample.
int ShiftSel(int nmb, int nshift, int nsel) const
Shift and select.
std::vector< int > getTRIG_TIME() const
Get TRIG_TIME 8 bit word from SCA Controller data per each time slice.
std::vector< uint16_t > crcWords_
std::vector< uint16_t > contrWords_
std::vector< uint16_t > bWords_
void print() const
Print content of digi.