LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
anab::ParticleID Class Reference

#include "ParticleID.h"

Public Member Functions

 ParticleID ()
 
 ParticleID (int Pdg, int Ndf, double MinChi2, double DeltaChi2, double Chi2Proton, double Chi2Kaon, double Chi2Pion, double Chi2Muon, double MissingE, double MissingEavg, double PIDA, geo::PlaneID planeID)
 
const int & Pdg () const
 
const int & Ndf () const
 
const double & MinChi2 () const
 
const double & DeltaChi2 () const
 
const double & Chi2Proton () const
 
const double & Chi2Kaon () const
 
const double & Chi2Pion () const
 
const double & Chi2Muon () const
 
const double & MissingE () const
 
const double & MissingEavg () const
 
const double & PIDA () const
 
const geo::PlaneIDPlaneID () const
 

Public Attributes

int fPdg
 determined particle ID More...
 
int fNdf
 ndf for chi2 test More...
 
double fMinChi2
 Minimum reduced chi2. More...
 
double fDeltaChi2
 difference between two lowest reduced chi2's More...
 
double fChi2Proton
 reduced chi2 using proton template More...
 
double fChi2Kaon
 reduced chi2 using kaon template More...
 
double fChi2Pion
 reduced chi2 using pion template More...
 
double fChi2Muon
 reduced chi2 using muon template More...
 
double fMissingE
 missing energy from dead wires for contained particle More...
 
double fMissingEavg
 missing energy from dead wires using average dEdx More...
 
double fPIDA
 PID developed by Bruce Baller. More...
 
geo::PlaneID fPlaneID
 

Friends

std::ostream & operator<< (std::ostream &o, ParticleID const &a)
 

Detailed Description

Definition at line 20 of file ParticleID.h.

Constructor & Destructor Documentation

anab::ParticleID::ParticleID ( )

Definition at line 14 of file ParticleID.cxx.

15  : fPdg(0)
16  , fNdf(0)
17  , fMinChi2(0.)
18  , fDeltaChi2(0.)
19  , fChi2Proton(0.)
20  , fChi2Kaon(0.)
21  , fChi2Pion(0.)
22  , fChi2Muon(0.)
23  , fMissingE(0.)
24  , fMissingEavg(0.)
25  , fPIDA(0.)
26  {
27  }
double fMissingEavg
missing energy from dead wires using average dEdx
Definition: ParticleID.h:34
double fMinChi2
Minimum reduced chi2.
Definition: ParticleID.h:27
double fChi2Muon
reduced chi2 using muon template
Definition: ParticleID.h:32
int fNdf
ndf for chi2 test
Definition: ParticleID.h:26
double fDeltaChi2
difference between two lowest reduced chi2&#39;s
Definition: ParticleID.h:28
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
double fChi2Pion
reduced chi2 using pion template
Definition: ParticleID.h:31
double fMissingE
missing energy from dead wires for contained particle
Definition: ParticleID.h:33
anab::ParticleID::ParticleID ( int  Pdg,
int  Ndf,
double  MinChi2,
double  DeltaChi2,
double  Chi2Proton,
double  Chi2Kaon,
double  Chi2Pion,
double  Chi2Muon,
double  MissingE,
double  MissingEavg,
double  PIDA,
geo::PlaneID  planeID 
)

Definition at line 30 of file ParticleID.cxx.

References fPlaneID.

42  : fPdg(Pdg)
43  , fNdf(Ndf)
44  , fMinChi2(MinChi2)
52  , fPIDA(PIDA)
53  {
54  fPlaneID = planeID;
55  }
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
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
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

Member Function Documentation

const double & anab::ParticleID::Chi2Kaon ( ) const
inline

Definition at line 77 of file ParticleID.h.

References fChi2Kaon.

77 { return fChi2Kaon; }
double fChi2Kaon
reduced chi2 using kaon template
Definition: ParticleID.h:30
const double & anab::ParticleID::Chi2Muon ( ) const
inline

Definition at line 79 of file ParticleID.h.

References fChi2Muon.

79 { return fChi2Muon; }
double fChi2Muon
reduced chi2 using muon template
Definition: ParticleID.h:32
const double & anab::ParticleID::Chi2Pion ( ) const
inline

Definition at line 78 of file ParticleID.h.

References fChi2Pion.

78 { return fChi2Pion; }
double fChi2Pion
reduced chi2 using pion template
Definition: ParticleID.h:31
const double & anab::ParticleID::Chi2Proton ( ) const
inline

Definition at line 76 of file ParticleID.h.

References fChi2Proton.

76 { return fChi2Proton; }
double fChi2Proton
reduced chi2 using proton template
Definition: ParticleID.h:29
const double & anab::ParticleID::DeltaChi2 ( ) const
inline

Definition at line 75 of file ParticleID.h.

References fDeltaChi2.

75 { return fDeltaChi2; }
double fDeltaChi2
difference between two lowest reduced chi2&#39;s
Definition: ParticleID.h:28
const double & anab::ParticleID::MinChi2 ( ) const
inline

Definition at line 74 of file ParticleID.h.

References fMinChi2.

74 { return fMinChi2; }
double fMinChi2
Minimum reduced chi2.
Definition: ParticleID.h:27
const double & anab::ParticleID::MissingE ( ) const
inline

Definition at line 80 of file ParticleID.h.

References fMissingE.

80 { return fMissingE; }
double fMissingE
missing energy from dead wires for contained particle
Definition: ParticleID.h:33
const double & anab::ParticleID::MissingEavg ( ) const
inline

Definition at line 81 of file ParticleID.h.

References fMissingEavg.

81 { return fMissingEavg; }
double fMissingEavg
missing energy from dead wires using average dEdx
Definition: ParticleID.h:34
const int & anab::ParticleID::Ndf ( ) const
inline

Definition at line 73 of file ParticleID.h.

References fNdf.

73 { return fNdf; }
int fNdf
ndf for chi2 test
Definition: ParticleID.h:26
const int & anab::ParticleID::Pdg ( ) const
inline

Definition at line 72 of file ParticleID.h.

References fPdg.

72 { return fPdg; }
int fPdg
determined particle ID
Definition: ParticleID.h:25
const double & anab::ParticleID::PIDA ( ) const
inline

Definition at line 82 of file ParticleID.h.

References fPIDA.

82 { return fPIDA; }
double fPIDA
PID developed by Bruce Baller.
Definition: ParticleID.h:35
const geo::PlaneID & anab::ParticleID::PlaneID ( ) const
inline

Definition at line 83 of file ParticleID.h.

References fPlaneID.

83 { return fPlaneID; }
geo::PlaneID fPlaneID
Definition: ParticleID.h:36

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
ParticleID const &  a 
)
friend

Definition at line 60 of file ParticleID.cxx.

61  {
62  o << "Determined particle PDG code: " << a.fPdg
63  << "\n NDF: " << a.fNdf
64  << "\n Minimal chi2: " << a.fMinChi2
65  << "\n Delta chi2: " << a.fDeltaChi2
66  << "\n chi2 with proton template: " << a.fChi2Proton
67  << "\n chi2 with kaon template: " << a.fChi2Kaon
68  << "\n chi2 with pion template: " << a.fChi2Pion
69  << "\n chi2 with muon template: " << a.fChi2Muon
70  << "\n PIDA: " << a.fPIDA
71  << "\n planeID=(" << a.fPlaneID.Cryostat << "," << a.fPlaneID.TPC << "," << a.fPlaneID.Plane << ")"
72  <<std::endl;
73 
74 
75  return o;
76  }

Member Data Documentation

double anab::ParticleID::fChi2Kaon

reduced chi2 using kaon template

Definition at line 30 of file ParticleID.h.

Referenced by Chi2Kaon(), pid::Chi2PIDAlg::DoParticleID(), and anab::operator<<().

double anab::ParticleID::fChi2Muon

reduced chi2 using muon template

Definition at line 32 of file ParticleID.h.

Referenced by Chi2Muon(), pid::Chi2PIDAlg::DoParticleID(), and anab::operator<<().

double anab::ParticleID::fChi2Pion

reduced chi2 using pion template

Definition at line 31 of file ParticleID.h.

Referenced by Chi2Pion(), pid::Chi2PIDAlg::DoParticleID(), and anab::operator<<().

double anab::ParticleID::fChi2Proton

reduced chi2 using proton template

Definition at line 29 of file ParticleID.h.

Referenced by Chi2Proton(), pid::Chi2PIDAlg::DoParticleID(), and anab::operator<<().

double anab::ParticleID::fDeltaChi2

difference between two lowest reduced chi2's

Definition at line 28 of file ParticleID.h.

Referenced by DeltaChi2(), pid::Chi2PIDAlg::DoParticleID(), and anab::operator<<().

double anab::ParticleID::fMinChi2

Minimum reduced chi2.

Definition at line 27 of file ParticleID.h.

Referenced by pid::Chi2PIDAlg::DoParticleID(), MinChi2(), and anab::operator<<().

double anab::ParticleID::fMissingE

missing energy from dead wires for contained particle

Definition at line 33 of file ParticleID.h.

Referenced by pid::Chi2PIDAlg::DoParticleID(), and MissingE().

double anab::ParticleID::fMissingEavg

missing energy from dead wires using average dEdx

Definition at line 34 of file ParticleID.h.

Referenced by pid::Chi2PIDAlg::DoParticleID(), and MissingEavg().

int anab::ParticleID::fNdf

ndf for chi2 test

Definition at line 26 of file ParticleID.h.

Referenced by pid::Chi2PIDAlg::DoParticleID(), Ndf(), and anab::operator<<().

int anab::ParticleID::fPdg

determined particle ID

Definition at line 25 of file ParticleID.h.

Referenced by pid::Chi2PIDAlg::DoParticleID(), anab::operator<<(), and Pdg().

double anab::ParticleID::fPIDA

PID developed by Bruce Baller.

Definition at line 35 of file ParticleID.h.

Referenced by pid::Chi2PIDAlg::DoParticleID(), anab::operator<<(), and PIDA().

geo::PlaneID anab::ParticleID::fPlaneID

Definition at line 36 of file ParticleID.h.

Referenced by pid::Chi2PIDAlg::DoParticleID(), anab::operator<<(), ParticleID(), and PlaneID().


The documentation for this class was generated from the following files: