Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RawHitv1.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file RawHitv1.h
1 
7 #ifndef TRACKBASE_RAWHITV1_H
8 #define TRACKBASE_RAWHITV1_H
9 
10 #include "TrkrDefs.h"
11 #include "RawHit.h"
12 
13 #include <phool/PHObject.h>
14 
15 #include <iostream>
16 
24 class RawHitv1 : public RawHit
25 {
26  public:
28  RawHitv1();
29 
31  ~RawHitv1() override {}
32  // PHObject virtual overloads
33  void identify(std::ostream& os = std::cout) const override
34  {
35  os << "RawHitv1 class with adc = " << m_adc << std::endl;
36  }
37  void Reset() override {}
38  int isValid() const override { return 0; }
39 
40  // after digitization, these are the adc values
41  void setAdc(const unsigned int adc) override;
42  unsigned int getAdc() override ;
43 
44  void setPhiBin(const unsigned int phibin) override;
45  unsigned int getPhiBin() override;
46 
47  void setTBin(const unsigned int tbin ) override;
48  unsigned int getTBin() override;
49 
50  unsigned short m_adc = 0;
51  unsigned short m_tbin = 0;
52  unsigned short m_phibin = 0;
53 
54  protected:
55 
57 };
58 
59 #endif //TRACKBASE_RAWHITV1_H