~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to src/common_cpp/DataStructure/Global/TrackPoint.hh

  • Committer: Chris Rogers
  • Date: 2014-04-16 11:48:45 UTC
  • mfrom: (707 merge)
  • mto: This revision was merged to the branch mainline in revision 711.
  • Revision ID: chris.rogers@stfc.ac.uk-20140416114845-h3u3q7pdcxkxvovs
Update to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
  /// Copy constructor - any pointers are deep copied
69
69
  TrackPoint(const TrackPoint &track_point);
70
70
 
 
71
  /// Trackpoint from spacepoint
 
72
  explicit TrackPoint(SpacePoint *space_point);
 
73
 
71
74
  /// Destructor
72
75
  virtual ~TrackPoint();
73
76
 
81
84
 
82
85
  // Getters and Setters for the member variables
83
86
 
 
87
  /// Set the index of the particle event that created this track point.
 
88
  void set_particle_event(const int particle_event);
 
89
 
 
90
  /// Get the name for the mapper which produced the track, #_mapper_name.
 
91
  int get_particle_event() const;
 
92
 
84
93
  /// Set the name for the mapper which produced the track, #_mapper_name.
85
94
  void set_mapper_name(std::string mapper_name);
86
95
 
114
123
 
115
124
  /// Set the component MAUS::DataStructure::Global::SpacePoint, the detector
116
125
  /// measurement matching this reconstructed position.
117
 
  void set_space_point_tref(TRef space_point);
 
126
  void set_space_point_tref(TObject *space_point);
118
127
 
119
128
  /// Get the component MAUS::DataStructure::Global::SpacePoint, the detector
120
129
  /// measurement matching this reconstructed position.
121
 
  TRef get_space_point_tref() const;
 
130
  TObject* get_space_point_tref() const;
122
131
 
123
132
  /// Set the component MAUS::DataStructure::Global::SpacePoint, the detector
124
133
  /// measurement matching this reconstructed position.
130
139
 
131
140
 private:
132
141
 
 
142
  /// The index of the particle event that produced this track point. If
 
143
  /// creation of the TrackPoint was not due to a particle event the value
 
144
  /// should remain at the default value of -1.
 
145
  int _particle_event;
 
146
 
133
147
  /// The name of the mapper which produced this track.
134
148
  std::string    _mapper_name;
135
149
 
153
167
  MAUS_VERSIONED_CLASS_DEF(TrackPoint);
154
168
}; // ~class TrackPoint
155
169
 
 
170
typedef std::vector<MAUS::DataStructure::Global::TrackPoint> TrackPointArray;
 
171
typedef std::vector<MAUS::DataStructure::Global::TrackPoint *>
 
172
  TrackPointPArray;
 
173
typedef std::vector<const MAUS::DataStructure::Global::TrackPoint *>
 
174
  TrackPointCPArray;
 
175
typedef std::vector<const MAUS::DataStructure::Global::TrackPoint *>
 
176
  ConstTrackPointPArray;
156
177
} // ~namespace Global
157
178
} // ~namespace DataStructure
158
179
} // ~namespace MAUS