All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SRTrkChi2PID.cxx
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file SRTrkChi2PID.cxx
3 // \brief An SRTrkChi2PID is a high level track ParticlePID object for
4 // for larana Chi2ParticleID results.
5 ////////////////////////////////////////////////////////////////////////
6 
8 
9 #include <limits>
10 
11 namespace caf
12 {
13 
15  pdg(-999),
16  pid_ndof(-99),
17  chi2_muon(std::numeric_limits<float>::signaling_NaN()),
18  chi2_pion(std::numeric_limits<float>::signaling_NaN()),
19  chi2_kaon(std::numeric_limits<float>::signaling_NaN()),
20  chi2_proton(std::numeric_limits<float>::signaling_NaN()),
21  pida(std::numeric_limits<float>::signaling_NaN())
22  { }
23 
25 
27  {
28  pdg = -5;
29  pid_ndof = -5;
30  chi2_muon = -5.0;
31  chi2_pion = -5.0;
32  chi2_kaon = -5.0;
33  chi2_proton = -5.0;
34  pida = -5;
35  }
36 
37 } // end namespace caf
38 ////////////////////////////////////////////////////////////////////////
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
Definition: UtilFunc.cxx:42
float chi2_kaon
dE/dx v. residual range Chi2 (kaon hypothesis)
Definition: SRTrkChi2PID.h:21
var pdg
Definition: selectors.fcl:14
float chi2_proton
dE/dx v. residual range Chi2 (proton hypothesis)
Definition: SRTrkChi2PID.h:22
float pida
PIDA.
Definition: SRTrkChi2PID.h:24
float chi2_pion
dE/dx v. residual range Chi2 (pion hypothesis)
Definition: SRTrkChi2PID.h:20
int pid_ndof
Number of degress of freedom in Chi2 PID fit.
Definition: SRTrkChi2PID.h:18
virtual ~SRTrkChi2PID()
float chi2_muon
dE/dx v. residual range Chi2 (muon hypothesis)
Definition: SRTrkChi2PID.h:19
int pdg
Min Chi2 pdg.
Definition: SRTrkChi2PID.h:17