Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 #ifndef TRACKBASEHISTORIC_SVTXTRACKSEED_V2_H
0002 #define TRACKBASEHISTORIC_SVTXTRACKSEED_V2_H
0003 
0004 #include <phool/PHObject.h>
0005 
0006 #include "TrackSeed.h"
0007 
0008 #include <climits>
0009 #include <cmath>
0010 #include <iostream>
0011 
0012 class SvtxTrackSeed_v2 : public TrackSeed
0013 {
0014  public:
0015   SvtxTrackSeed_v2();
0016   ~SvtxTrackSeed_v2() override;
0017 
0018   SvtxTrackSeed_v2(const SvtxTrackSeed_v2&);
0019   SvtxTrackSeed_v2& operator=(const SvtxTrackSeed_v2& seed);
0020 
0021   void identify(std::ostream& os = std::cout) const override;
0022   void Reset() override { *this = SvtxTrackSeed_v2(); }
0023   int isValid() const override { return 1; }
0024   void CopyFrom(const TrackSeed&) override;
0025   void CopyFrom(TrackSeed* seed) override { CopyFrom(*seed); }
0026   PHObject* CloneMe() const override { return new SvtxTrackSeed_v2(*this); }
0027 
0028   unsigned int get_silicon_seed_index() const override { return m_silicon_seed; }
0029   unsigned int get_tpc_seed_index() const override { return m_tpc_seed; }
0030   short int get_crossing_estimate() const override { return m_crossing_estimate; }
0031   void set_silicon_seed_index(const unsigned int index) override { m_silicon_seed = index; }
0032   void set_tpc_seed_index(const unsigned int index) override { m_tpc_seed = index; }
0033   void set_crossing_estimate(const short int cross) override { m_crossing_estimate = cross; }
0034 
0035  private:
0036   unsigned int m_silicon_seed = std::numeric_limits<unsigned int>::max();
0037   unsigned int m_tpc_seed = std::numeric_limits<unsigned int>::max();
0038   short int m_crossing_estimate = SHRT_MAX;
0039 
0040   ClassDefOverride(SvtxTrackSeed_v2, 1);
0041 };
0042 
0043 #endif