Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackSeed_FastSim_v1.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrackSeed_FastSim_v1.h
1 #ifndef TRACKBASEHISTORIC_TRACKSEED_FASTSIM_V1_H
2 #define TRACKBASEHISTORIC_TRACKSEED_FASTSIM_V1_H
3 
4 
5 #include "TrackSeed_v1.h"
6 
7 
9 {
10 
11 
12  public:
13  TrackSeed_FastSim_v1() = default;
15  ~TrackSeed_FastSim_v1() = default;
16 
17  void identify(std::ostream& os = std::cout) const override;
18  void Reset() override { *this = TrackSeed_FastSim_v1(); }
19  int isValid() const override { return 1; }
20  void CopyFrom(const TrackSeed& ) override;
21  void CopyFrom(TrackSeed* seed ) override { CopyFrom(*seed); }
22 
23  PHObject* CloneMe() const override { return new TrackSeed_FastSim_v1(*this); }
24 
25  unsigned int get_truth_track_id() const override
26  { return m_truth_track_id; }
27 
28  unsigned int get_num_measurements() const override
29  { return m_nmeas; }
30 
31  const HitIdMap& g4hit_ids() const override
32  { return m_g4hit_ids; }
33 
34  bool empty_g4hit_id() const override
35  { return m_g4hit_ids.empty(); }
36 
37  size_t size_g4hit_id() const override
38  { return m_g4hit_ids.size(); }
39 
41  { return m_g4hit_ids.begin(); }
42 
44  { return m_g4hit_ids.end(); }
45 
46  TrackSeed::HitIdConstIter find_g4hit_id(int volume) const override
47  { return m_g4hit_ids.find(volume); }
48 
52  ActsGeometry *tGeometry) const override;
53 
54  void set_truth_track_id(unsigned int truthTrackId) override
55  { m_truth_track_id = truthTrackId; }
56 
57  void set_num_measurements(int nmeas) override
58  { m_nmeas = nmeas; }
59 
60  void add_g4hit_id(int volume, PHG4HitDefs::keytype id) override
61  { m_g4hit_ids[volume].insert(id); }
62 
63  size_t remove_g4hit_id(int volume, PHG4HitDefs::keytype id) override
64  { return m_g4hit_ids[volume].erase(id); }
65 
66  size_t remove_g4hit_volume(int volume) override
67  { return m_g4hit_ids.erase(volume); }
68 
70  { return m_g4hit_ids.begin(); }
71 
73  { return m_g4hit_ids.end(); }
74 
75  TrackSeed::HitIdIter find_g4hit_id(int volume) override
76  { return m_g4hit_ids.find(volume); }
77 
78  void clear_g4hit_id() override
79  { return m_g4hit_ids.clear(); }
80 
81 
82  private:
83  unsigned int m_truth_track_id = std::numeric_limits<unsigned int>::max();
84  unsigned int m_nmeas = 0;
86 
88 
89 };
90 
91 
92 #endif