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 
13 #include <vector>
14 #include <iosfwd>
15 #include <stdint.h>
16 
18 
19 public:
20 
22  CSCCFEBStatusDigi (int cfebnmb) {cfebnmb_ = cfebnmb;}
23 
24 
26  CSCCFEBStatusDigi (int cfebnmb, const std::vector<uint16_t>& crcWords,
27  const std::vector<uint16_t>& contrWords, const std::vector<uint16_t>& bWords) {
28  cfebnmb_ = cfebnmb;
29  crcWords_ = crcWords;
30  contrWords_ = contrWords;
31  bWords_ = bWords;
32 }
33 
34 
37 
39  void setCRC (const std::vector<uint16_t>& crc) {crcWords_ = crc;}
40 
42  void setSCAC (const std::vector<uint16_t>& scac) {contrWords_ = scac;}
43 
45  int getCFEBNmb() const {return cfebnmb_;}
46 
48  std::vector<uint16_t> getSCAFullCond() const;
49 
51  std::vector<uint16_t> getCRC() const {return crcWords_;}
52 
54  int ShiftSel(int nmb,int nshift,int nsel) const;
55 
57  std::vector<int> getTS_FLAG() const;
58 
60  std::vector<int> getSCA_FULL() const;
61 
63  std::vector<int> getLCT_PHASE() const;
64 
66  std::vector<int> getL1A_PHASE() const;
67 
69  std::vector<int> getSCA_BLK() const;
70 
72  std::vector<int> getTRIG_TIME() const;
73 
75  void print() const;
76 
77 private:
78 
79  uint16_t cfebnmb_;
80  std::vector<uint16_t> crcWords_;
81  std::vector<uint16_t> contrWords_;
82  std::vector<uint16_t> bWords_;
83 
84 };
85 
86 std::ostream & operator<<(std::ostream & o, const CSCCFEBStatusDigi& digi);
87 
88 #endif
CSCCFEBStatusDigi(int cfebnmb, const std::vector< uint16_t > &crcWords, const std::vector< uint16_t > &contrWords, const 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).
void setCRC(const std::vector< uint16_t > &crc)
Set CRC vector.
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.
std::vector< int > getSCA_FULL() const
Get SCA_FULL bit from SCA Controller data per each time slice.
void setSCAC(const 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.