Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:16:09

0001 #ifndef FUN4ALLRAW_TPCHITRAWCONTAINERV2_H
0002 #define FUN4ALLRAW_TPCHITRAWCONTAINERV2_H
0003 
0004 #include "TpcRawHitContainer.h"
0005 
0006 class TpcRawHit;
0007 class TClonesArray;
0008 
0009 class TpcRawHitContainerv2 : public TpcRawHitContainer
0010 {
0011  public:
0012   TpcRawHitContainerv2();
0013   ~TpcRawHitContainerv2() override;
0014 
0015   /// Clear Event
0016   void Reset() override;
0017 
0018   /** identify Function from PHObject
0019       @param os Output Stream
0020    */
0021   void identify(std::ostream &os = std::cout) const override;
0022 
0023   /// isValid returns non zero if object contains vailid data
0024   int isValid() const override;
0025 
0026   TpcRawHit *AddHit() override;
0027   TpcRawHit *AddHit(TpcRawHit *tpchit) override;
0028   unsigned int get_nhits() override;
0029   TpcRawHit *get_hit(unsigned int index) override;
0030   void setStatus(const unsigned int i) override { status = i; }
0031   unsigned int getStatus() const override { return status; }
0032   void setBco(const uint64_t i) override { bco = i; }
0033   uint64_t getBco() const override { return bco; }
0034 
0035  private:
0036   TClonesArray *TpcRawHitsTCArray{nullptr};
0037   uint64_t bco{0};
0038   unsigned int status{0};
0039 
0040   ClassDefOverride(TpcRawHitContainerv2, 1)
0041 };
0042 
0043 #endif