Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:18:10

0001 /**
0002  * @file trackbase/RawHit.h
0003  * @author D. McGlinchey
0004  * @date 4 June 2018
0005  * @brief Base class for hit object
0006  */
0007 #ifndef TRACKBASE_RAWHITTPC_H
0008 #define TRACKBASE_RAWHITTPC_H
0009 
0010 #include "RawHit.h"
0011 #include "TrkrDefs.h"
0012 
0013 #include <phool/PHObject.h>
0014 
0015 #include <iostream>
0016 
0017 /**
0018  * @brief Base class for hit object
0019  *
0020  * This is the empyt virtual base class for a hit object.
0021  * Each subsystem should implement an inherited version
0022  * which contains the actual storage information.
0023  */
0024 class RawHitTpc : public RawHit
0025 {
0026  public:
0027   //! ctor
0028   RawHitTpc();
0029 
0030   //! dtor
0031   ~RawHitTpc() override {}
0032   // PHObject virtual overloads
0033   void identify(std::ostream& os = std::cout) const override
0034   {
0035     os << "RawHitTpc class with adc = " << m_adc << std::endl;
0036   }
0037   void Reset() override {}
0038   int isValid() const override { return 0; }
0039 
0040   // after digitization, these are the adc values
0041   void setAdc(const unsigned int adc) override;
0042   unsigned int getAdc() override;
0043 
0044   void setPhiBin(const unsigned int phibin) override;
0045   unsigned int getPhiBin() override;
0046 
0047   void setTBin(const unsigned int tbin) override;
0048   unsigned int getTBin() override;
0049 
0050   unsigned short m_adc = 0;
0051   unsigned short m_tbin = 0;
0052 
0053  protected:
0054   ClassDefOverride(RawHitTpc, 1);
0055 };
0056 
0057 #endif  // TRACKBASE_RAWHITTPC_H