Public Member Functions | Protected Attributes | List of all members
rb::FitSum Class Reference

A container for kinematic information. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/RecoBase/FitSum.h"

Public Member Functions

 FitSum ()
 
 ~FitSum ()
 
 FitSum (TVector3 dir, double momentum, double mass, int pdg=0, double chi2_hit1=0.0, double chi2_hit2=0.0, double chi2_angle1=0.0, double chi2_angle2=0.0, int Ndof_hit1=1, int Ndof_hit2=1, int Ndof_angle1=1, int Ndof_angle2=1)
 
void SetKin (TVector3 dir, double momentum, double mass)
 
void SetPDG (int pdg)
 
void SetChi2 (double chi2_hit1, double chi2_hit2, double chi2_angle1, double chi2_angle2, int Ndof_hit1, int Ndof_hit2, int Ndof_angle1, int Ndof_angle2)
 
const double Chi2 (int index) const
 
const int Ndof (int index) const
 
const TLorentzVector FourMom () const
 
const int PDG () const
 

Protected Attributes

TLorentzVector fFourMom
 four momentum More...
 
int fPDG
 pdg code for particle type More...
 
double fChi2 [8]
 provide user with a chi-squared for track fit parameters More...
 
int fNdof [8]
 provide user with N degrees of freedom for track fit parameters More...
 

Detailed Description

A container for kinematic information.

The rb::FitSum object is a simple container that holds simple kinematic information. It is intended to be an object produced in association with either a prong or a track.

Definition at line 22 of file FitSum.h.

Constructor & Destructor Documentation

rb::FitSum::FitSum ( )

Definition at line 12 of file FitSum.cxx.

References fChi2, fFourMom, and fNdof.

Referenced by ~FitSum().

12  :
13  fPDG(0)
14  {
15  fChi2[0]=0;
16  fChi2[1]=0;
17  fChi2[2]=0;
18  fChi2[3]=0;
19  fNdof[0]=0;
20  fNdof[1]=0;
21  fNdof[2]=0;
22  fNdof[3]=0;
23  fFourMom.SetPxPyPzE(0.0,0.0,0.0,0.0);
24  }
TLorentzVector fFourMom
four momentum
Definition: FitSum.h:78
double fChi2[8]
provide user with a chi-squared for track fit parameters
Definition: FitSum.h:80
int fPDG
pdg code for particle type
Definition: FitSum.h:79
int fNdof[8]
provide user with N degrees of freedom for track fit parameters
Definition: FitSum.h:81
rb::FitSum::~FitSum ( )
inline

Definition at line 27 of file FitSum.h.

References dir, FitSum(), make_training::momentum, make_root_from_grid_output::pdg, and SetKin().

27 {};
rb::FitSum::FitSum ( TVector3  dir,
double  momentum,
double  mass,
int  pdg = 0,
double  chi2_hit1 = 0.0,
double  chi2_hit2 = 0.0,
double  chi2_angle1 = 0.0,
double  chi2_angle2 = 0.0,
int  Ndof_hit1 = 1,
int  Ndof_hit2 = 1,
int  Ndof_angle1 = 1,
int  Ndof_angle2 = 1 
)

Definition at line 26 of file FitSum.cxx.

References fChi2, fNdof, and SetKin().

30  :
31  fPDG(pdg)
32  {
33  fChi2[0]=chi2_hit1;
34  fChi2[1]=chi2_hit2;
35  fChi2[2]=chi2_angle1;
36  fChi2[3]=chi2_angle2;
37  fNdof[0]=ndof_hit1;
38  fNdof[1]=ndof_hit2;
39  fNdof[2]=ndof_angle1;
40  fNdof[3]=ndof_angle2;
41  this->SetKin(dir,p,m);
42  }
const char * p
Definition: xmltok.h:285
double fChi2[8]
provide user with a chi-squared for track fit parameters
Definition: FitSum.h:80
int fPDG
pdg code for particle type
Definition: FitSum.h:79
int fNdof[8]
provide user with N degrees of freedom for track fit parameters
Definition: FitSum.h:81
TDirectory * dir
Definition: macro.C:5
void SetKin(TVector3 dir, double momentum, double mass)
Definition: FitSum.cxx:48

Member Function Documentation

const double rb::FitSum::Chi2 ( int  index) const
inline

Definition at line 61 of file FitSum.h.

References fChi2, and allTimeWatchdog::index.

Referenced by bpfit::BreakPointProtonAna::analyze(), and caf::FillTrackVarsBpfFitSum().

61  {
62  return fChi2[index];
63  }
double fChi2[8]
provide user with a chi-squared for track fit parameters
Definition: FitSum.h:80
const TLorentzVector rb::FitSum::FourMom ( ) const
inline

Definition at line 72 of file FitSum.h.

References fFourMom.

Referenced by bpfit::BreakPointProtonAna::analyze(), red::EWCosmics::analyze(), caf::FillTrackVarsBpfFitSum(), and LSTME::ProngBPFVars::getBPFVars().

72 { return fFourMom; }
TLorentzVector fFourMom
four momentum
Definition: FitSum.h:78
const int rb::FitSum::Ndof ( int  index) const
inline

Definition at line 68 of file FitSum.h.

References fNdof, and allTimeWatchdog::index.

Referenced by bpfit::BreakPointProtonAna::analyze(), and caf::FillTrackVarsBpfFitSum().

68  {
69  return fNdof[index];
70  }
int fNdof[8]
provide user with N degrees of freedom for track fit parameters
Definition: FitSum.h:81
const int rb::FitSum::PDG ( ) const
inline

Definition at line 73 of file FitSum.h.

References fPDG.

Referenced by bpfit::BreakPointProtonAna::analyze(), and caf::FillTrackVarsBpfFitSum().

73 { return fPDG; }
int fPDG
pdg code for particle type
Definition: FitSum.h:79
void rb::FitSum::SetChi2 ( double  chi2_hit1,
double  chi2_hit2,
double  chi2_angle1,
double  chi2_angle2,
int  Ndof_hit1,
int  Ndof_hit2,
int  Ndof_angle1,
int  Ndof_angle2 
)
inline

Definition at line 43 of file FitSum.h.

References fChi2, and fNdof.

Referenced by bpfit::BreakPoint::FitTracks().

47  {
48  fChi2[0] = chi2_hit1; // chi squared for hits in XZ view.
49  fChi2[1] = chi2_hit2; // chi squared for hits in YZ view.
50  fChi2[2] = chi2_angle1; // chi squared for kink angle in XZ view.
51  fChi2[3] = chi2_angle2; // chi squared for kink angle in YZ view.
52  fNdof[0] = Ndof_hit1; // Degrees of freedom (nhits) in XZ view.
53  fNdof[1] = Ndof_hit2; // Degrees of freedom (nhits) in YZ view.
54  fNdof[2] = Ndof_angle1; // Degrees of freedom for fit angle (1) in XZ view.
55  fNdof[3] = Ndof_angle2; // Degrees of freedom for fit angle (1) in YZ view.
56  }
double fChi2[8]
provide user with a chi-squared for track fit parameters
Definition: FitSum.h:80
int fNdof[8]
provide user with N degrees of freedom for track fit parameters
Definition: FitSum.h:81
void rb::FitSum::SetKin ( TVector3  dir,
double  momentum,
double  mass 
)

Definition at line 48 of file FitSum.cxx.

References fFourMom, and std::sqrt().

Referenced by FitSum(), bpfit::BreakPoint::FitTracks(), and ~FitSum().

49  {
50  fFourMom.SetPxPyPzE(dir.X()*p,dir.Y()*p,dir.Z()*p,sqrt(p*p+m*m));
51  }
TLorentzVector fFourMom
four momentum
Definition: FitSum.h:78
const char * p
Definition: xmltok.h:285
T sqrt(T number)
Definition: d0nt_math.hpp:156
TDirectory * dir
Definition: macro.C:5
void rb::FitSum::SetPDG ( int  pdg)
inline

Definition at line 38 of file FitSum.h.

References fPDG, and make_root_from_grid_output::pdg.

Referenced by bpfit::BreakPoint::FitTracks().

38 { fPDG = pdg; }
int fPDG
pdg code for particle type
Definition: FitSum.h:79

Member Data Documentation

double rb::FitSum::fChi2[8]
protected

provide user with a chi-squared for track fit parameters

Definition at line 80 of file FitSum.h.

Referenced by Chi2(), FitSum(), and SetChi2().

TLorentzVector rb::FitSum::fFourMom
protected

four momentum

Definition at line 78 of file FitSum.h.

Referenced by FitSum(), FourMom(), and SetKin().

int rb::FitSum::fNdof[8]
protected

provide user with N degrees of freedom for track fit parameters

Definition at line 81 of file FitSum.h.

Referenced by FitSum(), Ndof(), and SetChi2().

int rb::FitSum::fPDG
protected

pdg code for particle type

Definition at line 79 of file FitSum.h.

Referenced by PDG(), and SetPDG().


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