LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
TrackTrajectoryAlg.h
Go to the documentation of this file.
1 #ifndef TRACKTRAJECTORYALG_H
11 #define TRACKTRAJECTORYALG_H
12 
13 #include <math.h>
14 #include <algorithm>
15 #include <vector>
16 
23 
24 #include "TVectorD.h"
25 
26 namespace trkf {
27 
29  public:
30 
32 
33  virtual ~TrackTrajectoryAlg();
34 
35  void TrackTrajectory(std::array<std::vector<geo::WireID>,3> trkWID,
36  std::array<std::vector<double>,3> trkX,
37  std::array<std::vector<double>,3> trkXErr,
38  std::vector<TVector3>& TrajPos, std::vector<TVector3>& TrajDir);
39 
40  private:
41 
43 
44  double minX;
45  unsigned short minXPln;
46  double maxX;
47  unsigned short maxXPln;
48  bool prt;
49 
50  unsigned short fMaxTrajPoints; // maximum number of trajectory points
51  double fHitWidthFactor; // scales the number of trajectory points to the hit rms
52 
53 
55 
56  void ShortTrackTrajectory(std::array<std::vector<geo::WireID>,3> trkWID,
57  std::array<std::vector<double>,3> trkX,
58  std::array<std::vector<double>,3> trkXErr,
59  std::vector<TVector3>& TrajPos, std::vector<TVector3>& TrajDir);
60 
61  }; // class TrackTrajectoryAlg
62 
63 } // namespace trkf
64 
65 #endif // ifndef TRACKTRAJECTORYALG_H
art::ServiceHandle< geo::Geometry > geom
TrackLineFitAlg fTrackLineFitAlg
auto array(Array const &a)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:228
void TrackTrajectory(std::array< std::vector< geo::WireID >, 3 > trkWID, std::array< std::vector< double >, 3 > trkX, std::array< std::vector< double >, 3 > trkXErr, std::vector< TVector3 > &TrajPos, std::vector< TVector3 > &TrajDir)
void ShortTrackTrajectory(std::array< std::vector< geo::WireID >, 3 > trkWID, std::array< std::vector< double >, 3 > trkX, std::array< std::vector< double >, 3 > trkXErr, std::vector< TVector3 > &TrajPos, std::vector< TVector3 > &TrajDir)
Encapsulate the geometry of a wire.
Encapsulate the construction of a single detector plane.
art framework interface to geometry description
Encapsulate the construction of a single detector plane.