ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SvtxTrack_FastSim_v1.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SvtxTrack_FastSim_v1.h
1 /*
2  * SvtxTrack_FastSim_v1.h
3  */
4 
5 #ifndef TRACKBASEHISTORIC_SVTXTRACKFASTSIMV1_H
6 #define TRACKBASEHISTORIC_SVTXTRACKFASTSIMV1_H
7 
8 #include "SvtxTrack_FastSim.h"
9 
10 // SvtxTrack_FastSim with recording of associated G4hits
12 {
13  public:
14 
15  //* constructor
16  SvtxTrack_FastSim_v1() = default;
17 
18  //* base class copy constructor
20 
21  //* destructor
22  ~SvtxTrack_FastSim_v1() override = default;
23 
24  // copy content from base class
25  void CopyFrom( const SvtxTrack& ) override;
26  void CopyFrom( SvtxTrack* source ) override
27  { CopyFrom( *source ); }
28 
29  // The "standard PHObject response" functions...
30  void identify(std::ostream& os = std::cout) const override;
31  void Reset() override
32  { *this = SvtxTrack_FastSim_v1(); }
33 
34  int isValid() const override;
35 
36  PHObject* CloneMe() const override
37  { return new SvtxTrack_FastSim_v1(*this); }
38 
39 
41 
42 
43  const HitIdMap& g4hit_ids() const override
44  { return _g4hit_ids; }
45 
46  bool empty_g4hit_id() const override
47  { return _g4hit_ids.empty(); }
48 
49  size_t size_g4hit_id() const override
50  { return _g4hit_ids.size(); }
51 
53  { return _g4hit_ids.begin(); }
54 
56  { return _g4hit_ids.end(); }
57 
59  { return _g4hit_ids.find(volume); }
60 
62 
63 
65 
66 
67  void add_g4hit_id(int volume, PHG4HitDefs::keytype id) override
68  { _g4hit_ids[volume].insert(id); }
69 
70  size_t remove_g4hit_id(int volume, PHG4HitDefs::keytype id) override
71  { return _g4hit_ids[volume].erase(id); }
72 
73  size_t remove_g4hit_volume(int volume) override
74  { return _g4hit_ids.erase(volume); }
75 
77  { return _g4hit_ids.begin(); }
78 
80  { return _g4hit_ids.end(); }
81 
83  { return _g4hit_ids.find(volume); }
84 
85  void clear_g4hit_id() override
86  { return _g4hit_ids.clear(); }
87 
89 
90  private:
91 
93 
95 };
96 
97 #endif /* __SVTXTRACK_FAST_SIMV1_H__ */