CosmicTrackAlg.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////
2 /// \file CosmicTrackAlg.h
3 /// \brief Track finder for cosmic rays
4 /// \author brebel@fnal.gov, gsdavies@iastate.edu
5 /// \date
6 ///////////////////////////////////////////////////////////////////////
7 #ifndef TRACKFIT_COSMICTRACKALG_H
8 #define TRACKFIT_COSMICTRACKALG_H
9 
10 // C++ includes
11 #include <vector>
12 
13 // ART includes
15 
16 #include "TrackFit/TrackAlg.h"
17 
18 namespace fhicl { class ParameterSet; }
19 namespace rb {
20  class Track;
21  class Cluster;
22 }
23 
24 namespace trk {
25 
26  /// An algorithm to perform cosmic ray track fitting
27  class CosmicTrackAlg : public TrackAlg {
28  public:
29  explicit CosmicTrackAlg(fhicl::ParameterSet const &pset);
30  virtual ~CosmicTrackAlg();
31 
32  // Take a slice and return a track
33  std::vector<rb::Track> MakeTrack( const rb::Cluster* slice );
34 
35  private:
36  unsigned int FitView(std::vector<double> &x,
37  std::vector<double> &y,
38  std::vector<double> &w,
39  double &chiSqr,
40  double *start,
41  double *end);
42 
43  bool IsTrackDownstreamFromTiming( const rb::Cluster* slice) const;
44 
45  double fDHitGood; ///< Maximum distance from the line for a hit to be considered part of it
46 
47  };
48 
49 }
50 
51 #endif // TRACKFIT_COSMICTRACKALG_H
52 ///////////////////////////////////////////////////////////////////////
An algorithm to perform cosmic ray track fitting.
Definition: TrackAlg.h:25
double fDHitGood
Maximum distance from the line for a hit to be considered part of it.
A collection of associated CellHits.
Definition: Cluster.h:47
An algorithm to perform cosmic ray track fitting.
Track finder for cosmic rays.
Track finder for cosmic rays.
Perform a "2 point" Hough transform on a collection of hits.
Float_t w
Definition: plot.C:20