LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
ParticleID.h
Go to the documentation of this file.
1 // \version
3 //
4 // \brief Definition of data product to hold ParticleID information
5 //
6 // \author brebel@fnal.gov, tjyang@fnal.gov
7 //
9 #ifndef ANAB_PARTICLEID_H
10 #define ANAB_PARTICLEID_H
11 
12 #include <vector>
13 #include <iosfwd>
14 #include <iostream>
15 #include <iomanip>
17 
18 namespace anab {
19 
20  class ParticleID{
21  public:
22 
23  ParticleID();
24 
25  int fPdg;
26  int fNdf;
27  double fMinChi2;
28  double fDeltaChi2;
29  double fChi2Proton;
30  double fChi2Kaon;
31  double fChi2Pion;
32  double fChi2Muon;
33  double fMissingE;
34  double fMissingEavg;
35  double fPIDA;
37 
38  public:
39 
40  ParticleID(int Pdg,
41  int Ndf,
42  double MinChi2,
43  double DeltaChi2,
44  double Chi2Proton,
45  double Chi2Kaon,
46  double Chi2Pion,
47  double Chi2Muon,
48  double MissingE,
49  double MissingEavg,
50  double PIDA,
51  geo::PlaneID planeID);
52 
53  friend std::ostream& operator << (std::ostream &o, ParticleID const& a);
54 
55  const int& Pdg() const;
56  const int& Ndf() const;
57  const double& MinChi2() const;
58  const double& DeltaChi2() const;
59  const double& Chi2Proton() const;
60  const double& Chi2Kaon() const;
61  const double& Chi2Pion() const;
62  const double& Chi2Muon() const;
63  const double& MissingE() const;
64  const double& MissingEavg() const;
65  const double& PIDA() const;
66  const geo::PlaneID& PlaneID() const;
67  };
68 
69 }
70 
71 
72 inline const int& anab::ParticleID::Pdg() const { return fPdg; }
73 inline const int& anab::ParticleID::Ndf() const { return fNdf; }
74 inline const double& anab::ParticleID::MinChi2() const { return fMinChi2; }
75 inline const double& anab::ParticleID::DeltaChi2() const { return fDeltaChi2; }
76 inline const double& anab::ParticleID::Chi2Proton() const { return fChi2Proton; }
77 inline const double& anab::ParticleID::Chi2Kaon() const { return fChi2Kaon; }
78 inline const double& anab::ParticleID::Chi2Pion() const { return fChi2Pion; }
79 inline const double& anab::ParticleID::Chi2Muon() const { return fChi2Muon; }
80 inline const double& anab::ParticleID::MissingE() const { return fMissingE; }
81 inline const double& anab::ParticleID::MissingEavg() const { return fMissingEavg; }
82 inline const double& anab::ParticleID::PIDA() const { return fPIDA; }
83 inline const geo::PlaneID& anab::ParticleID::PlaneID() const { return fPlaneID; }
84 
85 #endif //ANAB_PARTICLEID_H
const geo::PlaneID & PlaneID() const
Definition: ParticleID.h:83
friend std::ostream & operator<<(std::ostream &o, ParticleID const &a)
Definition: ParticleID.cxx:60
const double & Chi2Pion() const
Definition: ParticleID.h:78
const int & Pdg() const
Definition: ParticleID.h:72
double fMissingEavg
missing energy from dead wires using average dEdx
Definition: ParticleID.h:34
The data type to uniquely identify a Plane.
Definition: geo_types.h:250
double fMinChi2
Minimum reduced chi2.
Definition: ParticleID.h:27
double fChi2Muon
reduced chi2 using muon template
Definition: ParticleID.h:32
const double & MissingEavg() const
Definition: ParticleID.h:81
int fNdf
ndf for chi2 test
Definition: ParticleID.h:26
const double & Chi2Kaon() const
Definition: ParticleID.h:77
double fDeltaChi2
difference between two lowest reduced chi2&#39;s
Definition: ParticleID.h:28
const double & MinChi2() const
Definition: ParticleID.h:74
const double & DeltaChi2() const
Definition: ParticleID.h:75
const double & Chi2Proton() const
Definition: ParticleID.h:76
Definition of data types for geometry description.
double fChi2Kaon
reduced chi2 using kaon template
Definition: ParticleID.h:30
int fPdg
determined particle ID
Definition: ParticleID.h:25
double fChi2Proton
reduced chi2 using proton template
Definition: ParticleID.h:29
double fPIDA
PID developed by Bruce Baller.
Definition: ParticleID.h:35
const double & MissingE() const
Definition: ParticleID.h:80
geo::PlaneID fPlaneID
Definition: ParticleID.h:36
double fChi2Pion
reduced chi2 using pion template
Definition: ParticleID.h:31
const double & PIDA() const
Definition: ParticleID.h:82
const double & Chi2Muon() const
Definition: ParticleID.h:79
double fMissingE
missing energy from dead wires for contained particle
Definition: ParticleID.h:33
const int & Ndf() const
Definition: ParticleID.h:73