~jan.greis/maus/1811

« back to all changes in this revision

Viewing changes to src/common_cpp/DataStructure/SciFiTrack.hh

  • Committer: Durga Rajaram
  • Date: 2015-08-01 21:40:31 UTC
  • mfrom: (659.2.5 release-candidate)
  • Revision ID: durga@fnal.gov-20150801214031-p78xo2w46lxo0xi2
Tags: MAUS-v1.0, MAUS-v1.0.0
MAUS-v1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
// MAUS headers
27
27
#include "src/common_cpp/DataStructure/SciFiTrackPoint.hh"
 
28
#include "src/common_cpp/DataStructure/SciFiBasePRTrack.hh"
 
29
#include "src/common_cpp/DataStructure/SciFiStraightPRTrack.hh"
 
30
#include "src/common_cpp/DataStructure/SciFiHelicalPRTrack.hh"
28
31
 
29
32
namespace MAUS {
30
33
 
70
73
   */
71
74
  void set_scifitrackpoints(SciFiTrackPointPArray points) { _trackpoints = points; }
72
75
 
 
76
  /** @brief  Returns the mother pr_tracks as a TRef*.
 
77
   */
 
78
  void set_pr_track(TRef* const pr_track) { _pr_track = pr_track; }
 
79
 
 
80
  /** @brief  Returns the mother pr_track as a TObject pointer
 
81
   */
 
82
  void set_pr_track_tobject(TObject* const pr_track) { *_pr_track = pr_track; }
 
83
 
 
84
  /** @brief  Returns the mother pr_tracks as an array of pointers.
 
85
   */
 
86
  void set_pr_track_pointer(SciFiBasePRTrack* const pr_track) { *_pr_track = pr_track; }
 
87
 
 
88
 
73
89
  /** @brief Returns the tracker number.
74
90
   */
75
91
  int tracker() const      { return _tracker; }
98
114
   */
99
115
  void add_scifitrackpoint(SciFiTrackPoint* trackpoint) { _trackpoints.push_back(trackpoint); }
100
116
 
 
117
  /** @brief  Returns the mother pr_track as a TRef*.
 
118
   */
 
119
  TRef* pr_track()                const { return _pr_track; }
 
120
 
 
121
  /** @brief  Returns the mother pr_track as a TObject pointer
 
122
   */
 
123
  TObject* pr_track_tobject()     const { return _pr_track->GetObject(); }
 
124
 
 
125
  /** @brief  Returns the mother pr_track as a pointer
 
126
   */
 
127
  SciFiBasePRTrack* pr_track_pointer() const
 
128
                                 { return static_cast<SciFiBasePRTrack*>(_pr_track->GetObject()); }
 
129
 
 
130
  /** @brief  Returns the mother pr_trackas a helical pointer
 
131
   */
 
132
  SciFiHelicalPRTrack* pr_track_pointer_helical() const
 
133
                              { return static_cast<SciFiHelicalPRTrack*>(_pr_track->GetObject()); }
 
134
 
 
135
  /** @brief  Returns the mother pr_tracks as a straight pointer
 
136
   */
 
137
  SciFiStraightPRTrack* pr_track_pointer_straight() const
 
138
                             { return static_cast<SciFiStraightPRTrack*>(_pr_track->GetObject()); }
 
139
 
101
140
  /** @brief Enumeration of the possible types of SciFi tracks.
102
141
   */
103
142
  enum AlgorithmUsed { kalman_straight, kalman_helical };
140
179
  ThreeVector _seed_momentum;
141
180
  std::vector<double> _seed_covariance_matrix;
142
181
 
 
182
  // Pointer to the seed track. This does not assume memory
 
183
  TRef* _pr_track;
 
184
 
143
185
  MAUS_VERSIONED_CLASS_DEF(SciFiTrack)
144
186
};
145
187