LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
recob::MCSFitResult Class Reference

Class storing the result of the Maximum Likelihood fit of Multiple Coulomb Scattering angles between segments within a Track or Trajectory. More...

#include "MCSFitResult.h"

Public Member Functions

 MCSFitResult ()=default
 
 MCSFitResult (int pid, double momFwd, double momFwdUnc, double llhdFwd, double momBwd, double momBwdUnc, double llhdBwd, const std::vector< double > &radlengths, const std::vector< double > &angles)
 
int particleIdHyp () const
 particle id hypothesis used in the fit More...
 
double fwdMomentum () const
 momentum value from fit assuming a forward track direction More...
 
double fwdMomUncertainty () const
 momentum uncertainty from fit assuming a forward track direction More...
 
double fwdLogLikelihood () const
 minimum negative log likelihood value from fit assuming a forward track direction More...
 
double bwdMomentum () const
 momentum value from fit assuming a backward track direction More...
 
double bwdMomUncertainty () const
 momentum uncertainty from fit assuming a backward track direction More...
 
double bwdLogLikelihood () const
 minimum negative log likelihood value from fit assuming a backward track direction More...
 
const std::vector< double > & segmentRadLengths () const
 vector of radiation lengths of the segments used in the fit More...
 
const std::vector< double > & scatterAngles () const
 vector of angles between the segments used in the fit More...
 
bool isBestFwd () const
 determines best fit direction based on minumum log likelihood between forward and backward fit More...
 
double bestMomentum () const
 momentum for best direction fit More...
 
double bestMomUncertainty () const
 momentum uncertainty for best direction fit More...
 
double bestLogLikelihood () const
 negative log likelihood for best direction fit More...
 
double deltaLogLikelihood () const
 difference in log likelihood between forward and backward fit (absolute value) More...
 

Private Attributes

double pid_
 particle id hypothesis used in the fit More...
 
double momFwd_
 momentum value from fit assuming a forward track direction More...
 
double momFwdUnc_
 momentum uncertainty from fit assuming a forward track direction More...
 
double llhdFwd_
 minimum negative log likelihood value from fit assuming a forward track direction More...
 
double momBwd_
 momentum value from fit assuming a backward track direction More...
 
double momBwdUnc_
 momentum uncertainty from fit assuming a backward track direction More...
 
double llhdBwd_
 minimum negative log likelihood value from fit assuming a backward track direction More...
 
std::vector< double > radlengths_
 vector of radiation lengths of the segments used in the fit More...
 
std::vector< double > angles_
 vector of angles between the segments used in the fit More...
 

Detailed Description

Class storing the result of the Maximum Likelihood fit of Multiple Coulomb Scattering angles between segments within a Track or Trajectory.

Class storing the result of the Maximum Likelihood fit of Multiple Coulomb Scattering angles between segments within a Track or Trajectory. It stores: the resulting momentum, momentum uncertainty, and best likelihood value (both for fwd and bwd fit); the vectors of segment (radiation) lengths and of scattering angles; the PID hypothesis used in the fit.

Author
G. Cerati (FNAL, MicroBooNE)
Date
2017
Version
1.0

Definition at line 19 of file MCSFitResult.h.

Constructor & Destructor Documentation

recob::MCSFitResult::MCSFitResult ( )
default
recob::MCSFitResult::MCSFitResult ( int  pid,
double  momFwd,
double  momFwdUnc,
double  llhdFwd,
double  momBwd,
double  momBwdUnc,
double  llhdBwd,
const std::vector< double > &  radlengths,
const std::vector< double > &  angles 
)
inline

Definition at line 22 of file MCSFitResult.h.

23  : pid_(pid), momFwd_(momFwd), momFwdUnc_(momFwdUnc), llhdFwd_(llhdFwd), momBwd_(momBwd), momBwdUnc_(momBwdUnc), llhdBwd_(llhdBwd), radlengths_(radlengths), angles_(angles) {}
double momBwd_
momentum value from fit assuming a backward track direction
Definition: MCSFitResult.h:72
double pid_
particle id hypothesis used in the fit
Definition: MCSFitResult.h:68
double momFwdUnc_
momentum uncertainty from fit assuming a forward track direction
Definition: MCSFitResult.h:70
std::vector< double > angles_
vector of angles between the segments used in the fit
Definition: MCSFitResult.h:76
double llhdBwd_
minimum negative log likelihood value from fit assuming a backward track direction ...
Definition: MCSFitResult.h:74
double llhdFwd_
minimum negative log likelihood value from fit assuming a forward track direction ...
Definition: MCSFitResult.h:71
std::vector< double > radlengths_
vector of radiation lengths of the segments used in the fit
Definition: MCSFitResult.h:75
double momFwd_
momentum value from fit assuming a forward track direction
Definition: MCSFitResult.h:69
double momBwdUnc_
momentum uncertainty from fit assuming a backward track direction
Definition: MCSFitResult.h:73

Member Function Documentation

double recob::MCSFitResult::bestLogLikelihood ( ) const
inline

negative log likelihood for best direction fit

Definition at line 62 of file MCSFitResult.h.

References isBestFwd(), llhdBwd_, and llhdFwd_.

62 { return isBestFwd() ? llhdFwd_ : llhdBwd_; }
bool isBestFwd() const
determines best fit direction based on minumum log likelihood between forward and backward fit ...
Definition: MCSFitResult.h:53
double llhdBwd_
minimum negative log likelihood value from fit assuming a backward track direction ...
Definition: MCSFitResult.h:74
double llhdFwd_
minimum negative log likelihood value from fit assuming a forward track direction ...
Definition: MCSFitResult.h:71
double recob::MCSFitResult::bestMomentum ( ) const
inline

momentum for best direction fit

Definition at line 56 of file MCSFitResult.h.

References isBestFwd(), momBwd_, and momFwd_.

Referenced by RecoProxyUsageExample::analyze().

56 { return isBestFwd() ? momFwd_ : momBwd_; }
double momBwd_
momentum value from fit assuming a backward track direction
Definition: MCSFitResult.h:72
bool isBestFwd() const
determines best fit direction based on minumum log likelihood between forward and backward fit ...
Definition: MCSFitResult.h:53
double momFwd_
momentum value from fit assuming a forward track direction
Definition: MCSFitResult.h:69
double recob::MCSFitResult::bestMomUncertainty ( ) const
inline

momentum uncertainty for best direction fit

Definition at line 59 of file MCSFitResult.h.

References isBestFwd(), momBwdUnc_, and momFwdUnc_.

59 { return isBestFwd() ? momFwdUnc_ : momBwdUnc_;}
bool isBestFwd() const
determines best fit direction based on minumum log likelihood between forward and backward fit ...
Definition: MCSFitResult.h:53
double momFwdUnc_
momentum uncertainty from fit assuming a forward track direction
Definition: MCSFitResult.h:70
double momBwdUnc_
momentum uncertainty from fit assuming a backward track direction
Definition: MCSFitResult.h:73
double recob::MCSFitResult::bwdLogLikelihood ( ) const
inline

minimum negative log likelihood value from fit assuming a backward track direction

Definition at line 44 of file MCSFitResult.h.

References llhdBwd_.

44 { return llhdBwd_; }
double llhdBwd_
minimum negative log likelihood value from fit assuming a backward track direction ...
Definition: MCSFitResult.h:74
double recob::MCSFitResult::bwdMomentum ( ) const
inline

momentum value from fit assuming a backward track direction

Definition at line 38 of file MCSFitResult.h.

References momBwd_.

38 { return momBwd_; }
double momBwd_
momentum value from fit assuming a backward track direction
Definition: MCSFitResult.h:72
double recob::MCSFitResult::bwdMomUncertainty ( ) const
inline

momentum uncertainty from fit assuming a backward track direction

Definition at line 41 of file MCSFitResult.h.

References momBwdUnc_.

41 { return momBwdUnc_;}
double momBwdUnc_
momentum uncertainty from fit assuming a backward track direction
Definition: MCSFitResult.h:73
double recob::MCSFitResult::deltaLogLikelihood ( ) const
inline

difference in log likelihood between forward and backward fit (absolute value)

Definition at line 65 of file MCSFitResult.h.

References llhdBwd_, and llhdFwd_.

65 { return std::abs(llhdFwd_-llhdBwd_); }
double llhdBwd_
minimum negative log likelihood value from fit assuming a backward track direction ...
Definition: MCSFitResult.h:74
double llhdFwd_
minimum negative log likelihood value from fit assuming a forward track direction ...
Definition: MCSFitResult.h:71
double recob::MCSFitResult::fwdLogLikelihood ( ) const
inline

minimum negative log likelihood value from fit assuming a forward track direction

Definition at line 35 of file MCSFitResult.h.

References llhdFwd_.

35 { return llhdFwd_; }
double llhdFwd_
minimum negative log likelihood value from fit assuming a forward track direction ...
Definition: MCSFitResult.h:71
double recob::MCSFitResult::fwdMomentum ( ) const
inline

momentum value from fit assuming a forward track direction

Definition at line 29 of file MCSFitResult.h.

References momFwd_.

29 { return momFwd_; }
double momFwd_
momentum value from fit assuming a forward track direction
Definition: MCSFitResult.h:69
double recob::MCSFitResult::fwdMomUncertainty ( ) const
inline

momentum uncertainty from fit assuming a forward track direction

Definition at line 32 of file MCSFitResult.h.

References momFwdUnc_.

32 { return momFwdUnc_;}
double momFwdUnc_
momentum uncertainty from fit assuming a forward track direction
Definition: MCSFitResult.h:70
bool recob::MCSFitResult::isBestFwd ( ) const
inline

determines best fit direction based on minumum log likelihood between forward and backward fit

Definition at line 53 of file MCSFitResult.h.

References llhdBwd_, and llhdFwd_.

Referenced by bestLogLikelihood(), bestMomentum(), and bestMomUncertainty().

53 { return llhdFwd_<llhdBwd_; }
double llhdBwd_
minimum negative log likelihood value from fit assuming a backward track direction ...
Definition: MCSFitResult.h:74
double llhdFwd_
minimum negative log likelihood value from fit assuming a forward track direction ...
Definition: MCSFitResult.h:71
int recob::MCSFitResult::particleIdHyp ( ) const
inline

particle id hypothesis used in the fit

Definition at line 26 of file MCSFitResult.h.

References pid_.

26 { return pid_; }
double pid_
particle id hypothesis used in the fit
Definition: MCSFitResult.h:68
const std::vector<double>& recob::MCSFitResult::scatterAngles ( ) const
inline

vector of angles between the segments used in the fit

Definition at line 50 of file MCSFitResult.h.

References angles_.

50 { return angles_; }
std::vector< double > angles_
vector of angles between the segments used in the fit
Definition: MCSFitResult.h:76
const std::vector<double>& recob::MCSFitResult::segmentRadLengths ( ) const
inline

vector of radiation lengths of the segments used in the fit

Definition at line 47 of file MCSFitResult.h.

References radlengths_.

47 { return radlengths_;}
std::vector< double > radlengths_
vector of radiation lengths of the segments used in the fit
Definition: MCSFitResult.h:75

Member Data Documentation

std::vector<double> recob::MCSFitResult::angles_
private

vector of angles between the segments used in the fit

Definition at line 76 of file MCSFitResult.h.

Referenced by scatterAngles().

double recob::MCSFitResult::llhdBwd_
private

minimum negative log likelihood value from fit assuming a backward track direction

Definition at line 74 of file MCSFitResult.h.

Referenced by bestLogLikelihood(), bwdLogLikelihood(), deltaLogLikelihood(), and isBestFwd().

double recob::MCSFitResult::llhdFwd_
private

minimum negative log likelihood value from fit assuming a forward track direction

Definition at line 71 of file MCSFitResult.h.

Referenced by bestLogLikelihood(), deltaLogLikelihood(), fwdLogLikelihood(), and isBestFwd().

double recob::MCSFitResult::momBwd_
private

momentum value from fit assuming a backward track direction

Definition at line 72 of file MCSFitResult.h.

Referenced by bestMomentum(), and bwdMomentum().

double recob::MCSFitResult::momBwdUnc_
private

momentum uncertainty from fit assuming a backward track direction

Definition at line 73 of file MCSFitResult.h.

Referenced by bestMomUncertainty(), and bwdMomUncertainty().

double recob::MCSFitResult::momFwd_
private

momentum value from fit assuming a forward track direction

Definition at line 69 of file MCSFitResult.h.

Referenced by bestMomentum(), and fwdMomentum().

double recob::MCSFitResult::momFwdUnc_
private

momentum uncertainty from fit assuming a forward track direction

Definition at line 70 of file MCSFitResult.h.

Referenced by bestMomUncertainty(), and fwdMomUncertainty().

double recob::MCSFitResult::pid_
private

particle id hypothesis used in the fit

Definition at line 68 of file MCSFitResult.h.

Referenced by particleIdHyp().

std::vector<double> recob::MCSFitResult::radlengths_
private

vector of radiation lengths of the segments used in the fit

Definition at line 75 of file MCSFitResult.h.

Referenced by segmentRadLengths().


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