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 <vector>
5 #include <cstdint>
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
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
select
when omitted electron plots will be filled w/o cut on electronId electronId = cms.PSet( src = cms.InputTag("mvaTrigV0"), cutValue = cms.double(0.5) ), when omitted electron plots will be filled w/o additional pre- selection of the electron candidates
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