Public Member Functions | Private Attributes | List of all members
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, float momFwd, float momFwdUnc, float llhdFwd, float momBwd, float momBwdUnc, float llhdBwd, const std::vector< float > &radlengths, const std::vector< float > &angles)
 
int particleIdHyp () const
 particle id hypothesis used in the fit More...
 
float fwdMomentum () const
 momentum value from fit assuming a forward track direction More...
 
float fwdMomUncertainty () const
 momentum uncertainty from fit assuming a forward track direction More...
 
float fwdLogLikelihood () const
 minimum negative log likelihood value from fit assuming a forward track direction More...
 
float bwdMomentum () const
 momentum value from fit assuming a backward track direction More...
 
float bwdMomUncertainty () const
 momentum uncertainty from fit assuming a backward track direction More...
 
float bwdLogLikelihood () const
 minimum negative log likelihood value from fit assuming a backward track direction More...
 
const std::vector< float > & segmentRadLengths () const
 vector of radiation lengths of the segments used in the fit More...
 
const std::vector< float > & 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...
 
float bestMomentum () const
 momentum for best direction fit More...
 
float bestMomUncertainty () const
 momentum uncertainty for best direction fit More...
 
float bestLogLikelihood () const
 negative log likelihood for best direction fit More...
 
float deltaLogLikelihood () const
 difference in log likelihood between forward and backward fit (absolute value) More...
 

Private Attributes

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

Member Function Documentation

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

negative log likelihood for best direction fit

Definition at line 62 of file MCSFitResult.h.

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
float llhdFwd_
minimum negative log likelihood value from fit assuming a forward track direction ...
Definition: MCSFitResult.h:71
float llhdBwd_
minimum negative log likelihood value from fit assuming a backward track direction ...
Definition: MCSFitResult.h:74
float recob::MCSFitResult::bestMomentum ( ) const
inline

momentum for best direction fit

Definition at line 56 of file MCSFitResult.h.

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

momentum uncertainty for best direction fit

Definition at line 59 of file MCSFitResult.h.

59 { return isBestFwd() ? momFwdUnc_ : momBwdUnc_;}
float momFwdUnc_
momentum uncertainty from fit assuming a forward track direction
Definition: MCSFitResult.h:70
bool isBestFwd() const
determines best fit direction based on minumum log likelihood between forward and backward fit ...
Definition: MCSFitResult.h:53
float momBwdUnc_
momentum uncertainty from fit assuming a backward track direction
Definition: MCSFitResult.h:73
float 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.

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

momentum value from fit assuming a backward track direction

Definition at line 38 of file MCSFitResult.h.

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

momentum uncertainty from fit assuming a backward track direction

Definition at line 41 of file MCSFitResult.h.

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

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

Definition at line 65 of file MCSFitResult.h.

65 { return std::abs(llhdFwd_-llhdBwd_); }
T abs(T value)
float llhdFwd_
minimum negative log likelihood value from fit assuming a forward track direction ...
Definition: MCSFitResult.h:71
float llhdBwd_
minimum negative log likelihood value from fit assuming a backward track direction ...
Definition: MCSFitResult.h:74
float 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.

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

momentum value from fit assuming a forward track direction

Definition at line 29 of file MCSFitResult.h.

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

momentum uncertainty from fit assuming a forward track direction

Definition at line 32 of file MCSFitResult.h.

32 { return momFwdUnc_;}
float 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.

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

particle id hypothesis used in the fit

Definition at line 26 of file MCSFitResult.h.

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

vector of angles between the segments used in the fit

Definition at line 50 of file MCSFitResult.h.

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

vector of radiation lengths of the segments used in the fit

Definition at line 47 of file MCSFitResult.h.

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

Member Data Documentation

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

vector of angles between the segments used in the fit

Definition at line 76 of file MCSFitResult.h.

float recob::MCSFitResult::llhdBwd_
private

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

Definition at line 74 of file MCSFitResult.h.

float recob::MCSFitResult::llhdFwd_
private

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

Definition at line 71 of file MCSFitResult.h.

float recob::MCSFitResult::momBwd_
private

momentum value from fit assuming a backward track direction

Definition at line 72 of file MCSFitResult.h.

float recob::MCSFitResult::momBwdUnc_
private

momentum uncertainty from fit assuming a backward track direction

Definition at line 73 of file MCSFitResult.h.

float recob::MCSFitResult::momFwd_
private

momentum value from fit assuming a forward track direction

Definition at line 69 of file MCSFitResult.h.

float recob::MCSFitResult::momFwdUnc_
private

momentum uncertainty from fit assuming a forward track direction

Definition at line 70 of file MCSFitResult.h.

int recob::MCSFitResult::pid_
private

particle id hypothesis used in the fit

Definition at line 68 of file MCSFitResult.h.

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

vector of radiation lengths of the segments used in the fit

Definition at line 75 of file MCSFitResult.h.


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