File indexing completed on 2025-08-03 08:17:36
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef TRACKBASEHISTORIC_SVTXTRACKFASTSIM_H
0009 #define TRACKBASEHISTORIC_SVTXTRACKFASTSIM_H
0010
0011 #include "SvtxTrack_v1.h"
0012
0013 #include <iostream> // for cout, ostream
0014
0015 class SvtxTrack_FastSim : public SvtxTrack_v1
0016 {
0017 public:
0018
0019 SvtxTrack_FastSim() = default;
0020
0021
0022 ~SvtxTrack_FastSim() override = default;
0023
0024
0025 SvtxTrack_FastSim(const SvtxTrack&);
0026
0027
0028 using PHObject::CopyFrom;
0029 void CopyFrom(const SvtxTrack&) override;
0030 void CopyFrom(SvtxTrack* source) override
0031 {
0032 CopyFrom(*source);
0033 }
0034
0035
0036 void identify(std::ostream& os = std::cout) const override;
0037 void Reset() override { *this = SvtxTrack_FastSim(); }
0038 int isValid() const override;
0039 PHObject* CloneMe() const override { return new SvtxTrack_FastSim(*this); }
0040
0041
0042
0043
0044 unsigned int get_truth_track_id() const override
0045 {
0046 return _truth_track_id;
0047 }
0048
0049 unsigned int get_num_measurements() const override
0050 {
0051 return _nmeas;
0052 }
0053
0054
0055
0056
0057
0058
0059 void set_truth_track_id(unsigned int truthTrackId) override
0060 {
0061 _truth_track_id = truthTrackId;
0062 }
0063
0064 void set_num_measurements(int nmeas) override
0065 {
0066 _nmeas = nmeas;
0067 }
0068
0069
0070
0071 private:
0072 unsigned int _truth_track_id = UINT_MAX;
0073 unsigned int _nmeas = 0;
0074
0075 ClassDefOverride(SvtxTrack_FastSim, 1)
0076 };
0077
0078 #endif