CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 <boost/cstdint.hpp>
5 #include <vector>
6 
7 class HcalLaserDigi {
8 public:
10  void setQADC(const std::vector<uint16_t>& values);
11  uint16_t qadc(int i) const { return ((i>=0 && i<32)?(qadcraw_[i]):(0)); }
12  void addTDCHit(int channel, int hittime);
13  size_t tdcHits() const { return tdcraw_.size(); }
14  int hitChannel(size_t ihit) const;
15  int hitRaw(size_t ihit) const;
16  double hitNS(size_t ihit) const;
17  void setLaserControl(int att1, int att2, int select);
18  int attenuator1() const { return attenuator1_; }
19  int attenuator2() const { return attenuator2_; }
20  int selector() const { return selector_; }
21 
22 private:
23  uint16_t qadcraw_[32];
24  std::vector<uint32_t> tdcraw_;
26  int32_t selector_;
27 };
28 
29 #endif // DATAFORMATS_HCALDIGI_HCALLASERDIGI_H
int i
Definition: DBlmapReader.cc:9
void setLaserControl(int att1, int att2, int select)
int32_t attenuator2_
Definition: HcalLaserDigi.h:25
void addTDCHit(int channel, int hittime)
uint16_t qadcraw_[32]
Definition: HcalLaserDigi.h:23
size_t tdcHits() const
Definition: HcalLaserDigi.h:13
void setQADC(const std::vector< uint16_t > &values)
int selector() const
Definition: HcalLaserDigi.h:20
int attenuator2() const
Definition: HcalLaserDigi.h:19
std::vector< uint32_t > tdcraw_
Definition: HcalLaserDigi.h:24
uint16_t qadc(int i) const
Definition: HcalLaserDigi.h:11
int attenuator1() const
Definition: HcalLaserDigi.h:18
int hitRaw(size_t ihit) const
double hitNS(size_t ihit) const
int32_t selector_
Definition: HcalLaserDigi.h:26
int hitChannel(size_t ihit) const
int32_t attenuator1_
Definition: HcalLaserDigi.h:25