LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
KFitTrack.h
Go to the documentation of this file.
1 
29 #ifndef KFITTRACK_H
30 #define KFITTRACK_H
31 
33 
34 namespace trkf {
35 
36  class KFitTrack : public KETrack
37  {
38  public:
39 
41  enum FitStatus {
42  INVALID, // No valid fit information.
43  UNKNOWN, // Unknown.
44  FORWARD, // Fit based on past measurements, including current surface.
45  FORWARD_PREDICTED, // Fit based on past measurements, not including current surface.
46  BACKWARD, // Fit based on future measurements, including current surface.
47  BACKWARD_PREDICTED, // Fit based on future measurements, not including current surface.
48  OPTIMAL, // Fit based on all measurements, including current surface.
49  OPTIMAL_PREDICTED // Fit based on all measurements, except current surface.
50  };
51 
53  KFitTrack();
54 
56  KFitTrack(const KETrack& tre,
57  double s = 0.,
58  double chisq = 0.,
59  FitStatus stat = INVALID);
60 
62  virtual ~KFitTrack();
63 
64  // Accessors.
65 
66  double getPath() const {return fPath;}
67  double getChisq() const {return fChisq;}
68  FitStatus getStat() const {return fStat;}
69 
70  // Modifiers.
71 
72  void setPath(double path) {fPath = path;}
73  void setChisq(double chisq) {fChisq = chisq;}
74  void setStat(FitStatus stat) {fStat = stat;}
75 
77  bool combineFit(const KFitTrack& trf);
78 
80  virtual std::ostream& Print(std::ostream& out, bool doTitle = true) const;
81 
82  private:
83 
84  // Attributes.
85 
86  double fPath;
87  double fChisq;
89  };
90 }
91 
92 #endif
Float_t s
Definition: plot.C:23
FitStatus
Fit status enum.
Definition: KFitTrack.h:41
void setChisq(double chisq)
Set chisquare.
Definition: KFitTrack.h:73
FitStatus fStat
Fit status.
Definition: KFitTrack.h:88
double getPath() const
Propagation distance.
Definition: KFitTrack.h:66
virtual std::ostream & Print(std::ostream &out, bool doTitle=true) const
Printout.
Definition: KFitTrack.cxx:124
void setStat(FitStatus stat)
Set fit status.
Definition: KFitTrack.h:74
double fChisq
Fit chisquare.
Definition: KFitTrack.h:87
KFitTrack()
Default constructor.
Definition: KFitTrack.cxx:17
virtual ~KFitTrack()
Destructor.
Definition: KFitTrack.cxx:43
bool combineFit(const KFitTrack &trf)
Combine two tracks.
Definition: KFitTrack.cxx:76
double fPath
Propagation distance.
Definition: KFitTrack.h:86
void setPath(double path)
Set propagation distance.
Definition: KFitTrack.h:72
Basic Kalman filter track class, with error.
double getChisq() const
Fit chisquare.
Definition: KFitTrack.h:67
FitStatus getStat() const
Fit status.
Definition: KFitTrack.h:68