CMS 3D CMS Logo

EcalPhiSymRecHit.h
Go to the documentation of this file.
1 #ifndef Calibration_EcalCalibAlgos_EcalPhiSymRecHit_h
2 #define Calibration_EcalCalibAlgos_EcalPhiSymRecHit_h
3 
16 #include <vector>
17 #include <cassert>
18 
23 
25 public:
26  //---ctors---
28  EcalPhiSymRecHit(uint32_t id, unsigned int nMisCalibV, unsigned int status = 0);
29  EcalPhiSymRecHit(uint32_t id, std::vector<float>& etValues, unsigned int status = 0);
30 
31  //---dtor---
32  ~EcalPhiSymRecHit() = default;
33 
34  //---getters---
35  inline uint32_t rawId() const { return id_; };
36  inline int8_t eeRing() const { return eeRing_; };
37  inline unsigned int statusCode() const { return chStatus_; };
38  inline uint32_t nHits() const { return nHits_; };
39  inline unsigned int nSumEt() const { return etSum_.size(); };
40  inline float sumEt(int i = 0) const { return etSum_[i]; };
41  inline float sumEt2() const { return et2Sum_; };
42  inline float lcSum() const { return lcSum_; };
43  inline float lc2Sum() const { return lc2Sum_; };
44 
45  //---setters---
46  void setEERing(const int8_t& eering) { eeRing_ = eering; };
47 
48  //---utils---
49  void addHit(const std::vector<float>& etValues, const float laserCorr = 0);
50  void reset();
51 
52  //---operators---
54 
55 private:
56  uint32_t id_;
57  int8_t eeRing_;
58  unsigned int chStatus_;
59  uint32_t nHits_;
60  std::vector<float> etSum_;
61  float et2Sum_;
62  float lcSum_;
63  float lc2Sum_;
64 };
65 
66 typedef std::vector<EcalPhiSymRecHit> EcalPhiSymRecHitCollection;
67 
68 #endif
std::vector< float > etSum_
unsigned int nSumEt() const
int8_t eeRing() const
~EcalPhiSymRecHit()=default
uint32_t rawId() const
float sumEt2() const
uint32_t nHits() const
float sumEt(int i=0) const
float lc2Sum() const
unsigned int chStatus_
unsigned int statusCode() const
std::vector< EcalPhiSymRecHit > EcalPhiSymRecHitCollection
float lcSum() const
void setEERing(const int8_t &eering)
EcalPhiSymRecHit & operator+=(const EcalPhiSymRecHit &rhs)
void addHit(const std::vector< float > &etValues, const float laserCorr=0)