Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrkrHitv1.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrkrHitv1.h
1 
6 #ifndef TRACKBASE_TRKRHITV1_H
7 #define TRACKBASE_TRKRHITV1_H
8 
9 #include "TrkrHit.h"
10 
11 #include <phool/PHObject.h>
12 
13 #include <iostream>
14 
19 class TrkrHitv1 : public TrkrHit
20 {
21  public:
23  TrkrHitv1();
24 
26  ~TrkrHitv1() override {}
27  // PHObject virtual overloads
28  void identify(std::ostream& os = std::cout) const override
29  {
30  os << "TrkrHitV1 class with adc = " << m_adc << std::endl;
31  }
32  void Reset() override {}
33  int isValid() const override { return 0; }
34 
35  void addEnergy(const double edep) override {m_edep += edep;}
36  double getEnergy() override {return m_edep;}
37  void setAdc(const unsigned int adc) override {m_adc = adc;}
38  unsigned int getAdc() override;
39 
40  protected:
41  double m_edep = 0;
42  unsigned int m_adc = 0;
44 };
45 
46 #endif //TRACKBASE_TRKRHITV1_H