CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 public:
8  typedef int key_type; // For the sorted collection
9 
10  ESKCHIPBlock();
11  ESKCHIPBlock(const int& kId);
12 
13  const int& id() const { return kId_; }
14  void setId(const int& kId) { kId_ = kId; };
15 
16  const int dccdId() const { return dccId_; }
17  void setDccId(const int& dccId) { dccId_ = dccId; };
18 
19  const int fedId() const { return fedId_; }
20  void setFedId(const int& fedId) { fedId_ = fedId; };
21 
22  const int fiberId() const { return fiberId_; }
23  void setFiberId(const int& fiberId) { fiberId_ = fiberId; };
24 
25  void setBC(const int& BC) { BC_ = BC; }
26  void setEC(const int& EC) { EC_ = EC; }
27  void setOptoBC(const int& OptoBC) { OptoBC_ = BC_; }
28  void setOptoEC(const int& OptoEC) { OptoEC_ = EC_; }
29  void setFlag1(const int& flag1) { flag1_ = flag1; };
30  void setFlag2(const int& flag2) { flag2_ = flag2; };
31  void setCRC(const int& CRC) { CRC_ = CRC; }
32 
33  int getBC() const { return BC_; }
34  int getEC() const { return EC_; }
35  int getOptoBC() const { return OptoBC_; }
36  int getOptoEC() const { return OptoEC_; }
37  int getFlag1() const { return flag1_; }
38  int getFlag2() const { return flag2_; }
39  int getCRC() const { return CRC_; }
40 
41 private:
42  int kId_;
43  int dccId_;
44  int fedId_;
45  int fiberId_;
46  int BC_;
47  int EC_;
48  int OptoBC_;
49  int OptoEC_;
50  int flag1_;
51  int flag2_;
52  int CRC_;
53 };
54 
55 #endif
const int & id() const
Definition: ESKCHIPBlock.h:13
void setOptoBC(const int &OptoBC)
Definition: ESKCHIPBlock.h:27
void setId(const int &kId)
Definition: ESKCHIPBlock.h:14
int getEC() const
Definition: ESKCHIPBlock.h:34
const int dccdId() const
Definition: ESKCHIPBlock.h:16
int getFlag1() const
Definition: ESKCHIPBlock.h:37
int getBC() const
Definition: ESKCHIPBlock.h:33
void setEC(const int &EC)
Definition: ESKCHIPBlock.h:26
void setFedId(const int &fedId)
Definition: ESKCHIPBlock.h:20
void setFlag1(const int &flag1)
Definition: ESKCHIPBlock.h:29
void setDccId(const int &dccId)
Definition: ESKCHIPBlock.h:17
int getFlag2() const
Definition: ESKCHIPBlock.h:38
unsigned dccId(DetId const &, EcalElectronicsMapping const *)
void setFiberId(const int &fiberId)
Definition: ESKCHIPBlock.h:23
int getOptoEC() const
Definition: ESKCHIPBlock.h:36
void setOptoEC(const int &OptoEC)
Definition: ESKCHIPBlock.h:28
void setFlag2(const int &flag2)
Definition: ESKCHIPBlock.h:30
const int fiberId() const
Definition: ESKCHIPBlock.h:22
int getCRC() const
Definition: ESKCHIPBlock.h:39
const int fedId() const
Definition: ESKCHIPBlock.h:19
void setBC(const int &BC)
Definition: ESKCHIPBlock.h:25
int getOptoBC() const
Definition: ESKCHIPBlock.h:35
void setCRC(const int &CRC)
Definition: ESKCHIPBlock.h:31