Analysis Software
Documentation for sPHENIX simulation 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  using PHObject::CopyFrom; // avoid warning for not implemented CopyFrom methods
26  void CopyFrom( const SvtxTrack& ) override;
27  void CopyFrom( SvtxTrack* source ) override
28  { CopyFrom( *source ); }
29 
30  // The "standard PHObject response" functions...
31  void identify(std::ostream& os = std::cout) const override;
32  void Reset() override
33  { *this = SvtxTrack_FastSim_v1(); }
34 
35  int isValid() const override;
36 
37  PHObject* CloneMe() const override
38  { return new SvtxTrack_FastSim_v1(*this); }
39 
40 
42 
43 
44  const HitIdMap& g4hit_ids() const override
45  { return _g4hit_ids; }
46 
47  bool empty_g4hit_id() const override
48  { return _g4hit_ids.empty(); }
49 
50  size_t size_g4hit_id() const override
51  { return _g4hit_ids.size(); }
52 
54  { return _g4hit_ids.begin(); }
55 
57  { return _g4hit_ids.end(); }
58 
59  SvtxTrack::HitIdConstIter find_g4hit_id(int volume) const override
60  { return _g4hit_ids.find(volume); }
61 
63 
64 
66 
67 
68  void add_g4hit_id(int volume, PHG4HitDefs::keytype id) override
69  { _g4hit_ids[volume].insert(id); }
70 
71  size_t remove_g4hit_id(int volume, PHG4HitDefs::keytype id) override
72  { return _g4hit_ids[volume].erase(id); }
73 
74  size_t remove_g4hit_volume(int volume) override
75  { return _g4hit_ids.erase(volume); }
76 
78  { return _g4hit_ids.begin(); }
79 
81  { return _g4hit_ids.end(); }
82 
83  SvtxTrack::HitIdIter find_g4hit_id(int volume) override
84  { return _g4hit_ids.find(volume); }
85 
86  void clear_g4hit_id() override
87  { return _g4hit_ids.clear(); }
88 
90 
91  private:
92 
94 
96 };
97 
98 #endif /* __SVTXTRACK_FAST_SIMV1_H__ */