CMS 3D CMS Logo

HcalLaserDigi.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_HCALDIGI_HCALLASERDIGI_H
2 #define DATAFORMATS_HCALDIGI_HCALLASERDIGI_H 1
3 
4 #include <cstddef>
5 #include <cstdint>
6 #include <vector>
7 
8 class HcalLaserDigi {
9 public:
10  HcalLaserDigi();
11  void setQADC(const std::vector<uint16_t>& values);
12  uint16_t qadc(int i) const { return ((i >= 0 && i < 32) ? (qadcraw_[i]) : (0)); }
13  void addTDCHit(int channel, int hittime);
14  size_t tdcHits() const { return tdcraw_.size(); }
15  int hitChannel(size_t ihit) const;
16  int hitRaw(size_t ihit) const;
17  double hitNS(size_t ihit) const;
18  void setLaserControl(int att1, int att2, int select);
19  int attenuator1() const { return attenuator1_; }
20  int attenuator2() const { return attenuator2_; }
21  int selector() const { return selector_; }
22 
23 private:
24  uint16_t qadcraw_[32];
25  std::vector<uint32_t> tdcraw_;
27  int32_t selector_;
28 };
29 
30 #endif // DATAFORMATS_HCALDIGI_HCALLASERDIGI_H
mps_fire.i
i
Definition: mps_fire.py:428
HcalLaserDigi::attenuator2
int attenuator2() const
Definition: HcalLaserDigi.h:20
HcalLaserDigi::hitChannel
int hitChannel(size_t ihit) const
Definition: HcalLaserDigi.cc:21
HcalLaserDigi::attenuator1_
int32_t attenuator1_
Definition: HcalLaserDigi.h:26
HcalLaserDigi::qadc
uint16_t qadc(int i) const
Definition: HcalLaserDigi.h:12
singleTopDQM_cfi.select
select
Definition: singleTopDQM_cfi.py:50
HcalLaserDigi::HcalLaserDigi
HcalLaserDigi()
Definition: HcalLaserDigi.cc:3
HcalLaserDigi::addTDCHit
void addTDCHit(int channel, int hittime)
Definition: HcalLaserDigi.cc:16
HcalLaserDigi::qadcraw_
uint16_t qadcraw_[32]
Definition: HcalLaserDigi.h:24
HcalLaserDigi::tdcHits
size_t tdcHits() const
Definition: HcalLaserDigi.h:14
contentValuesCheck.values
values
Definition: contentValuesCheck.py:38
HcalLaserDigi::selector
int selector() const
Definition: HcalLaserDigi.h:21
HcalLaserDigi::attenuator2_
int32_t attenuator2_
Definition: HcalLaserDigi.h:26
HcalLaserDigi::setQADC
void setQADC(const std::vector< uint16_t > &values)
Definition: HcalLaserDigi.cc:11
HcalLaserDigi::hitRaw
int hitRaw(size_t ihit) const
Definition: HcalLaserDigi.cc:28
HcalLaserDigi::setLaserControl
void setLaserControl(int att1, int att2, int select)
Definition: HcalLaserDigi.cc:37
HcalLaserDigi::tdcraw_
std::vector< uint32_t > tdcraw_
Definition: HcalLaserDigi.h:25
HcalLaserDigi::attenuator1
int attenuator1() const
Definition: HcalLaserDigi.h:19
HcalLaserDigi
Definition: HcalLaserDigi.h:8
HcalLaserDigi::hitNS
double hitNS(size_t ihit) const
Definition: HcalLaserDigi.cc:35
HcalLaserDigi::selector_
int32_t selector_
Definition: HcalLaserDigi.h:27