CMS 3D CMS Logo

ESKCHIPBlock.h
Go to the documentation of this file.
1 #ifndef RAWECAL_ESKCHIPBLOCK_H
2 #define RAWECAL_ESKCHIPBLOCK_H
3 
4 #include <vector>
5 
6 class ESKCHIPBlock {
7 
8  public :
9 
10  typedef int key_type; // For the sorted collection
11 
12  ESKCHIPBlock();
13  ESKCHIPBlock(const int& kId);
14 
15  const int& id() const { return kId_; }
16  void setId(const int& kId) { kId_ = kId; };
17 
18  const int dccdId() const { return dccId_; }
19  void setDccId(const int& dccId) { dccId_ = dccId; };
20 
21  const int fedId() const { return fedId_; }
22  void setFedId(const int& fedId) { fedId_ = fedId; };
23 
24  const int fiberId() const { return fiberId_; }
25  void setFiberId(const int& fiberId) { fiberId_ = fiberId; };
26 
27  void setBC(const int& BC) { BC_ = BC; }
28  void setEC(const int& EC) { EC_ = EC; }
29  void setOptoBC(const int & OptoBC) { OptoBC_ = BC_; }
30  void setOptoEC(const int & OptoEC) { OptoEC_ = EC_; }
31  void setFlag1(const int& flag1) { flag1_ = flag1; };
32  void setFlag2(const int& flag2) { flag2_ = flag2; };
33  void setCRC(const int& CRC) { CRC_ = CRC; }
34 
35  int getBC() const { return BC_; }
36  int getEC() const { return EC_; }
37  int getOptoBC() const { return OptoBC_; }
38  int getOptoEC() const { return OptoEC_; }
39  int getFlag1() const { return flag1_; }
40  int getFlag2() const { return flag2_; }
41  int getCRC() const { return CRC_; }
42 
43  private :
44 
45  int kId_;
46  int dccId_;
47  int fedId_;
48  int fiberId_;
49  int BC_;
50  int EC_;
51  int OptoBC_;
52  int OptoEC_;
53  int flag1_;
54  int flag2_;
55  int CRC_;
56 
57 };
58 
59 #endif
60 
61 
const int & id() const
Definition: ESKCHIPBlock.h:15
void setOptoBC(const int &OptoBC)
Definition: ESKCHIPBlock.h:29
void setId(const int &kId)
Definition: ESKCHIPBlock.h:16
int getEC() const
Definition: ESKCHIPBlock.h:36
const int dccdId() const
Definition: ESKCHIPBlock.h:18
int getFlag1() const
Definition: ESKCHIPBlock.h:39
int getBC() const
Definition: ESKCHIPBlock.h:35
void setEC(const int &EC)
Definition: ESKCHIPBlock.h:28
void setFedId(const int &fedId)
Definition: ESKCHIPBlock.h:22
void setFlag1(const int &flag1)
Definition: ESKCHIPBlock.h:31
void setDccId(const int &dccId)
Definition: ESKCHIPBlock.h:19
int getFlag2() const
Definition: ESKCHIPBlock.h:40
void setFiberId(const int &fiberId)
Definition: ESKCHIPBlock.h:25
int getOptoEC() const
Definition: ESKCHIPBlock.h:38
void setOptoEC(const int &OptoEC)
Definition: ESKCHIPBlock.h:30
void setFlag2(const int &flag2)
Definition: ESKCHIPBlock.h:32
const int fiberId() const
Definition: ESKCHIPBlock.h:24
int getCRC() const
Definition: ESKCHIPBlock.h:41
const int fedId() const
Definition: ESKCHIPBlock.h:21
void setBC(const int &BC)
Definition: ESKCHIPBlock.h:27
int getOptoBC() const
Definition: ESKCHIPBlock.h:37
void setCRC(const int &CRC)
Definition: ESKCHIPBlock.h:33
unsigned dccId(DetId const &)