Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SvtxTrack_FastSim.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SvtxTrack_FastSim.h
1 /*
2  * SvtxTrack_FastSim.h
3  *
4  * Created on: Jul 28, 2016
5  * Author: yuhw
6  */
7 
8 #ifndef TRACKBASEHISTORIC_SVTXTRACKFASTSIM_H
9 #define TRACKBASEHISTORIC_SVTXTRACKFASTSIM_H
10 
11 #include "SvtxTrack_v1.h"
12 
13 #include <iostream> // for cout, ostream
14 
16 {
17  public:
18 
19  //* constructor
20  SvtxTrack_FastSim() = default;
21 
22  //* destructor
23  ~SvtxTrack_FastSim() override = default;
24 
25  //* base class copy constructor
26  SvtxTrack_FastSim( const SvtxTrack& );
27 
28  // copy content from base class
29  using PHObject::CopyFrom; // avoid warning for not implemented CopyFrom methods
30  void CopyFrom( const SvtxTrack& ) override;
31  void CopyFrom( SvtxTrack* source ) override
32  { CopyFrom( *source ); }
33 
34  // The "standard PHObject response" functions...
35  void identify(std::ostream& os = std::cout) const override;
36  void Reset() override { *this = SvtxTrack_FastSim(); }
37  int isValid() const override;
38  PHObject* CloneMe() const override { return new SvtxTrack_FastSim(*this); }
39 
41 
42 
43  unsigned int get_truth_track_id() const override
44  { return _truth_track_id; }
45 
46  unsigned int get_num_measurements() const override
47  { return _nmeas; }
48 
50 
52 
53 
54  void set_truth_track_id(unsigned int truthTrackId) override
55  { _truth_track_id = truthTrackId; }
56 
57  void set_num_measurements(int nmeas) override
58  { _nmeas = nmeas; }
59 
61 
62  private:
63  unsigned int _truth_track_id = UINT_MAX;
64  unsigned int _nmeas = 0;
65 
67 };
68 
69 #endif /* __SVTXTRACK_FAST_SIM_H__ */