~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to src/common_cpp/DataStructure/Global/Track.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:
107
107
 
108
108
  /// Get the associated track points, as a vector of const pointers,
109
109
  /// ensuring they are unchanged.
110
 
  std::vector<const MAUS::DataStructure::Global::TrackPoint*> GetTrackPoints();
 
110
  std::vector<const MAUS::DataStructure::Global::TrackPoint*> GetTrackPoints()
 
111
      const;
111
112
 
112
113
  /// Set the list of associated TrackPoints, #_track_points, from a
113
114
  /// TRefArray.  The Track takes ownership of this pointer, deleting
130
131
 
131
132
  /// Check whether the input bit is set in #_detectorpoints (via
132
133
  /// bitmask and enumerator value).
133
 
  bool HasDetector(MAUS::DataStructure::Global::DetectorPoint detector);
 
134
  bool HasDetector(MAUS::DataStructure::Global::DetectorPoint detector) const;
134
135
 
135
136
  /// Set #_detectorpoints = 0, clearing all detector bits.
136
137
  void ClearDetectors();
137
138
 
138
139
  /// Provides a list of detector points associated with the track
139
140
  /// object.
140
 
  std::vector<MAUS::DataStructure::Global::DetectorPoint> GetDetectorPoints();
 
141
  std::vector<MAUS::DataStructure::Global::DetectorPoint> GetDetectorPoints()
 
142
      const;
141
143
 
142
144
  /// Directly set the #_detectorpoints value.
143
145
  void set_detectorpoints(unsigned int detectorpoints);
154
156
  void RemoveGeometryPath(std::string geometry_path);
155
157
 
156
158
  /// Search for a geometry path in #_geometry_paths.
157
 
  bool HasGeometryPath(std::string geometry_path);
 
159
  bool HasGeometryPath(std::string geometry_path) const;
158
160
 
159
161
  /// Clear the std::vector #_geometry_paths.
160
162
  void ClearGeometryPaths();
174
176
  void RemoveTrack(Track* track);
175
177
 
176
178
  /// Check for a historical track in the #_constituent_tracks TRefArray.
177
 
  bool HasTrack(Track* track);
 
179
  bool HasTrack(Track* track) const;
178
180
 
179
181
  /// Empty the book-keeping track TRefArray, #_constituent_tracks.
180
182
  void ClearTracks();
181
183
 
182
184
  /// User method for accessing the constituent tracks.  These are
183
185
  /// returned as const, so that they can't be changed.
184
 
  std::vector<const MAUS::DataStructure::Global::Track*> GetConstituentTracks();
 
186
  std::vector<const MAUS::DataStructure::Global::Track*> GetConstituentTracks()
 
187
      const;
185
188
 
186
189
  /// Directly set the #_constituent_tracks TRefArray.  This passes
187
190
  /// ownership of the pointer to the Track, and is mostly for use by
246
249
  MAUS_VERSIONED_CLASS_DEF(Track);
247
250
}; // ~class Track
248
251
 
 
252
typedef std::vector<MAUS::DataStructure::Global::Track> TrackArray;
 
253
typedef std::vector<MAUS::DataStructure::Global::Track *> TrackPArray;
 
254
typedef
 
255
std::vector<const MAUS::DataStructure::Global::Track *> ConstTrackPArray;
249
256
} // ~namespace Global
250
257
} // ~namespace DataStructure
251
258
} // ~namespace MAUS