LlrUpmu.h
Go to the documentation of this file.
1 #ifndef LLRUPMU_H
2 #define LLRUPMU_H
3 
4 #include <string>
5 #include <vector>
6 
7 // Framework includes
8 //#include <boost/math/special_functions.hpp>
9 #include "Utilities/func/MathUtil.h"
10 
11 // NOVA includes
12 #include "RecoBase/Track.h"
13 #include "RecoBase/RecoHit.h"
14 
15 namespace upmuana
16 {
17  class LlrUpmu{
18  public:
19 
20  LlrUpmu();
21  ~LlrUpmu();
22 
23  inline double getErr(double PE);
24  inline double getDist(double x1, double y1, double z1,
25  double x2, double y2, double z2);
26 
27  void setLLR(std::set< std::pair<rb::CellHit,rb::RecoHit>,
28  bool(*)(std::pair<rb::CellHit,rb::RecoHit>,
29  std::pair<rb::CellHit,rb::RecoHit>)>);
30 
31  double P_up() const { return P_up_; }
32  double P_dn() const { return P_dn_; }
33  double chi2() const { return chi2_; }
34  double slope() const { return slope_; }
35  double llr() const { return llr_; }
36  std::vector<rb::RecoHit> outliers() const { return outliers_; }
37 
38  private:
39 
40  std::vector<rb::RecoHit> outliers_;
41  double P_up_;
42  double P_dn_;
43  double chi2_;
44  double slope_;
45  double llr_;
46 
47  void LLR(std::vector<double>& eT,
48  std::vector<double>& mT,
49  std::vector<double>& mTErr, double& slope, double& chi2,
50  double& P_up, double& P_dn, std::vector<rb::RecoHit> &in,
51  std::vector<rb::RecoHit> &outliers);
52 
53  };
54 }
55 
56 #endif
57 ///////////////////////////////////////////////////////////////////////
double llr() const
Definition: LlrUpmu.h:35
Float_t y1[n_points_granero]
Definition: compare.C:5
Float_t x1[n_points_granero]
Definition: compare.C:5
void setLLR(std::set< std::pair< rb::CellHit, rb::RecoHit >, bool(*)(std::pair< rb::CellHit, rb::RecoHit >, std::pair< rb::CellHit, rb::RecoHit >)>)
Definition: LlrUpmu.cxx:30
double getDist(double x1, double y1, double z1, double x2, double y2, double z2)
Definition: LlrUpmu.cxx:25
double P_dn_
Definition: LlrUpmu.h:42
double chi2() const
Definition: LlrUpmu.h:33
double P_up() const
Definition: LlrUpmu.h:31
double slope() const
Definition: LlrUpmu.h:34
double llr_
Definition: LlrUpmu.h:45
double P_up_
Definition: LlrUpmu.h:41
std::vector< rb::RecoHit > outliers_
Definition: LlrUpmu.h:40
double getErr(double PE)
Definition: LlrUpmu.cxx:20
std::vector< rb::RecoHit > outliers() const
Definition: LlrUpmu.h:36
ifstream in
Definition: comparison.C:7
double P_dn() const
Definition: LlrUpmu.h:32
double chi2_
Definition: LlrUpmu.h:43
double slope_
Definition: LlrUpmu.h:44
void LLR(std::vector< double > &eT, std::vector< double > &mT, std::vector< double > &mTErr, double &slope, double &chi2, double &P_up, double &P_dn, std::vector< rb::RecoHit > &in, std::vector< rb::RecoHit > &outliers)
Definition: LlrUpmu.cxx:90