EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrkrHitv2.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrkrHitv2.h
1 
7 #ifndef TRACKBASE_TRKRHITV2_H
8 #define TRACKBASE_TRKRHITV2_H
9 
10 #include "TrkrDefs.h"
11 #include "TrkrHit.h"
12 
13 #include <phool/PHObject.h>
14 
15 #include <iostream>
16 
24 class TrkrHitv2 : public TrkrHit
25 {
26  public:
28  TrkrHitv2();
29 
31  ~TrkrHitv2() override {}
32  // PHObject virtual overloads
33  void identify(std::ostream& os = std::cout) const override
34  {
35  os << "TrkrHitv2 class with adc = " << m_adc << std::endl;
36  }
37  void Reset() override {}
38  int isValid() const override { return 0; }
39 
40  // these set and get the energy before digitization
41  void addEnergy(const double edep) override;
42  double getEnergy() override;
43 
44  // after digitization, these are the adc values
45  void setAdc(const unsigned int adc) override;
46  unsigned int getAdc() override ;
47 
48  protected:
49 
50  unsigned short m_adc = 0;
52 };
53 
54 #endif //TRACKBASE_TRKRHITV2_H