CMS 3D CMS Logo

PixelDigiAddTempInfo.h
Go to the documentation of this file.
1 #ifndef PixelDigiAddTempInfo_h
2 #define PixelDigiAddTempInfo_h
3 
5 
7 public:
8  PixelDigiAddTempInfo(unsigned int ch,
9  size_t Hindex,
10  const Local3DPoint& entryP,
11  const Local3DPoint& exitP,
12  int PType,
13  int PartID,
14  uint32_t detID,
15  float InitCharge) {
16  chan_ = ch;
17  index_ = Hindex;
18  theEntryPoint_ = entryP;
19  theExitPoint_ = exitP;
20  theProcessType_ = PType;
23  charge_ = InitCharge;
24  };
25  PixelDigiAddTempInfo() = default;
26  ~PixelDigiAddTempInfo() = default;
27  const unsigned int channel() const { return chan_; };
28  const size_t hitIndex() const { return index_; };
29  const Local3DPoint& entryPoint() const { return theEntryPoint_; };
30  const Local3DPoint& exitPoint() const { return theExitPoint_; }
31  const int processType() const { return theProcessType_; };
32  const int trackID() const { return thePartID_; };
33  const uint32_t detID() const { return detectorID_; };
34  const float getCharge() const { return charge_; };
35  void addCharge(float charge_to_be_added) { charge_ += charge_to_be_added; };
36 
37  inline bool operator<(const PixelDigiAddTempInfo& other) const { return channel() < other.channel(); }
38 
39 private:
40  unsigned int chan_;
41  size_t index_;
46  uint32_t detectorID_;
47  float charge_;
48 };
49 #endif
void addCharge(float charge_to_be_added)
PixelDigiAddTempInfo()=default
PixelDigiAddTempInfo(unsigned int ch, size_t Hindex, const Local3DPoint &entryP, const Local3DPoint &exitP, int PType, int PartID, uint32_t detID, float InitCharge)
const int processType() const
~PixelDigiAddTempInfo()=default
const float getCharge() const
const size_t hitIndex() const
bool operator<(const PixelDigiAddTempInfo &other) const
const uint32_t detID() const
const Local3DPoint & exitPoint() const
const Local3DPoint & entryPoint() const
const unsigned int channel() const
const int trackID() const