Back to home page

sPhenix code displayed by LXR

 
 

    


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

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