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 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
ESKCHIPBlock::getCRC
int getCRC() const
Definition: ESKCHIPBlock.h:39
ESKCHIPBlock::setOptoBC
void setOptoBC(const int &OptoBC)
Definition: ESKCHIPBlock.h:27
ESKCHIPBlock::getFlag2
int getFlag2() const
Definition: ESKCHIPBlock.h:38
ESKCHIPBlock::CRC_
int CRC_
Definition: ESKCHIPBlock.h:52
ESKCHIPBlock::getBC
int getBC() const
Definition: ESKCHIPBlock.h:33
ESKCHIPBlock::EC_
int EC_
Definition: ESKCHIPBlock.h:47
ESKCHIPBlock::setOptoEC
void setOptoEC(const int &OptoEC)
Definition: ESKCHIPBlock.h:28
ESKCHIPBlock::dccdId
const int dccdId() const
Definition: ESKCHIPBlock.h:16
ESKCHIPBlock::OptoBC_
int OptoBC_
Definition: ESKCHIPBlock.h:48
ESKCHIPBlock::dccId_
int dccId_
Definition: ESKCHIPBlock.h:43
ESKCHIPBlock::fedId
const int fedId() const
Definition: ESKCHIPBlock.h:19
ESKCHIPBlock::BC_
int BC_
Definition: ESKCHIPBlock.h:46
ESKCHIPBlock::setDccId
void setDccId(const int &dccId)
Definition: ESKCHIPBlock.h:17
ESKCHIPBlock::fiberId
const int fiberId() const
Definition: ESKCHIPBlock.h:22
ESKCHIPBlock::setEC
void setEC(const int &EC)
Definition: ESKCHIPBlock.h:26
ESKCHIPBlock::id
const int & id() const
Definition: ESKCHIPBlock.h:13
ESKCHIPBlock::getEC
int getEC() const
Definition: ESKCHIPBlock.h:34
ESKCHIPBlock::getFlag1
int getFlag1() const
Definition: ESKCHIPBlock.h:37
ESKCHIPBlock::fedId_
int fedId_
Definition: ESKCHIPBlock.h:44
ESKCHIPBlock::setFlag2
void setFlag2(const int &flag2)
Definition: ESKCHIPBlock.h:30
ESKCHIPBlock::flag1_
int flag1_
Definition: ESKCHIPBlock.h:50
ESKCHIPBlock::key_type
int key_type
Definition: ESKCHIPBlock.h:8
ESKCHIPBlock::setBC
void setBC(const int &BC)
Definition: ESKCHIPBlock.h:25
ESKCHIPBlock::setFiberId
void setFiberId(const int &fiberId)
Definition: ESKCHIPBlock.h:23
RawDataTask_cfi.CRC
CRC
Definition: RawDataTask_cfi.py:59
ESKCHIPBlock::setFlag1
void setFlag1(const int &flag1)
Definition: ESKCHIPBlock.h:29
ESKCHIPBlock
Definition: ESKCHIPBlock.h:6
ESKCHIPBlock::setCRC
void setCRC(const int &CRC)
Definition: ESKCHIPBlock.h:31
ESKCHIPBlock::flag2_
int flag2_
Definition: ESKCHIPBlock.h:51
ESKCHIPBlock::OptoEC_
int OptoEC_
Definition: ESKCHIPBlock.h:49
ESKCHIPBlock::kId_
int kId_
Definition: ESKCHIPBlock.h:42
ESKCHIPBlock::getOptoBC
int getOptoBC() const
Definition: ESKCHIPBlock.h:35
ESKCHIPBlock::getOptoEC
int getOptoEC() const
Definition: ESKCHIPBlock.h:36
ESKCHIPBlock::setFedId
void setFedId(const int &fedId)
Definition: ESKCHIPBlock.h:20
ESKCHIPBlock::ESKCHIPBlock
ESKCHIPBlock()
Definition: ESKCHIPBlock.cc:3
ESKCHIPBlock::fiberId_
int fiberId_
Definition: ESKCHIPBlock.h:45
ESKCHIPBlock::setId
void setId(const int &kId)
Definition: ESKCHIPBlock.h:14
ecaldqm::dccId
unsigned dccId(DetId const &)
Definition: EcalDQMCommonUtils.cc:16