LArSoft  v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
TrackTrajectoryAlg.h
Go to the documentation of this file.
1 #ifndef TRACKTRAJECTORYALG_H
11 #define TRACKTRAJECTORYALG_H
12 
13 #include <array>
14 #include <vector>
15 
17 
21 
22 #include "TVector3.h"
23 
24 namespace trkf {
25 
27  public:
28  void TrackTrajectory(std::array<std::vector<geo::WireID>, 3> trkWID,
29  std::array<std::vector<double>, 3> trkX,
30  std::array<std::vector<double>, 3> trkXErr,
31  std::vector<TVector3>& TrajPos,
32  std::vector<TVector3>& TrajDir);
33 
34  private:
36 
37  double minX;
38  unsigned short minXPln;
39  double maxX;
40  unsigned short maxXPln;
41  bool prt;
42 
43  unsigned short fMaxTrajPoints; // maximum number of trajectory points
44  double fHitWidthFactor; // scales the number of trajectory points to the hit rms
45 
47 
48  void ShortTrackTrajectory(std::array<std::vector<geo::WireID>, 3> trkWID,
49  std::array<std::vector<double>, 3> trkX,
50  std::array<std::vector<double>, 3> trkXErr,
51  std::vector<TVector3>& TrajPos,
52  std::vector<TVector3>& TrajDir);
53 
54  }; // class TrackTrajectoryAlg
55 
56 } // namespace trkf
57 
58 #endif // ifndef TRACKTRAJECTORYALG_H
TrackLineFitAlg fTrackLineFitAlg
cout<< "Opened file "<< fin<< " ixs= "<< ixs<< endl;if(ixs==0) hhh=(TH1F *) fff-> Get("h1")
Definition: AddMC.C:8
auto array(Array const &a)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:250
Interface for a class providing readout channel mapping to geometry.
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)
Definition of data types for geometry description.
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)
geo::WireReadoutGeom const * wireReadoutGeom