All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackStoppingChi2Alg.h
Go to the documentation of this file.
1 #ifndef TRACK_STOPPING_CHI2_ALG_H_SEEN
2 #define TRACK_STOPPING_CHI2_ALG_H_SEEN
3 
4 ///////////////////////////////////////////////////////////////////////////////
5 //
6 // TrackStoppingChi2Alg.h
7 //
8 // Algorithm that performs an exponential and a 0-order polynomial fit
9 // to stopping tracks in order to identify Bragg peaks
10 //
11 ///////////////////////////////////////////////////////////////////////////////
12 
13 #include "fhiclcpp/ParameterSet.h"
17 
18 #include <vector>
19 
20 namespace sbn {
21 
23 
24  public:
25 
26  TrackStoppingChi2Alg(fhicl::ParameterSet const& p);
27 
28  StoppingChi2Fit RunFit(const std::vector<float> &dEdxVec, const std::vector<float> &resRangeVec) const;
29 
30  // Prepare dE/dx and residual range vectors for fitting assuming pandora's track direction
32 
33  // Prepare dE/dx and residual range vectors for fitting assuming incoming cosmic hypothesis
35 
36  private:
37 
38  const float fFitRange, fMaxdEdx;
39  const unsigned int fMinHits;
40 
42 
43  };
44 }
45 
46 #endif
pdgs p
Definition: selectors.fcl:22
process_name can override from command line with o or output calo
Definition: pid.fcl:40
TrackStoppingChi2Alg(fhicl::ParameterSet const &p)
StoppingChi2Fit RunFitForCosmicID(const anab::Calorimetry &calo) const
StoppingChi2Fit RunFit(const std::vector< float > &dEdxVec, const std::vector< float > &resRangeVec) const