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_RAWHIT_H
0008 #define TRACKBASE_RAWHIT_H
0009 
0010 #include "TrkrDefs.h"
0011 
0012 #include <phool/PHObject.h>
0013 
0014 #include <climits>
0015 #include <cmath>
0016 #include <iostream>
0017 
0018 /**
0019  * @brief Base class for hit object
0020  *
0021  * This is the empty virtual base class for a hit object.
0022  * Each subsystem should implement an inherited version
0023  * which contains the actual storage information.
0024  */
0025 class RawHit : public PHObject
0026 {
0027  public:
0028   //! dtor
0029   ~RawHit() override {}
0030   // PHObject virtual overloads
0031   void identify(std::ostream& os = std::cout) const override
0032   {
0033     os << "RawHit base class" << std::endl;
0034   }
0035   void Reset() override {}
0036   int isValid() const override { return 0; }
0037 
0038   // after digitization, these are the adc values
0039   virtual void setAdc(const unsigned int) {}
0040   virtual unsigned int getAdc() { return 0; }
0041 
0042   virtual void setPhiBin(const unsigned int) {}
0043   virtual unsigned int getPhiBin() { return 0; }
0044 
0045   virtual void setTBin(const unsigned int) {}
0046   virtual unsigned int getTBin() { return 0; }
0047 
0048   /*
0049   virtual void setCrossing(const short int) {}
0050   virtual short int getCrossing() { return 0;}
0051   */
0052 
0053  protected:
0054   ClassDefOverride(RawHit, 1);
0055 };
0056 
0057 #endif  // TRACKBASE_RAWHIT_H