All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
LikelihoodPID Class Reference

#include <LikelihoodPID.hh>

Public Member Functions

 LikelihoodPID (const LikelihoodPID &)=delete
 
LikelihoodPIDoperator= (const LikelihoodPID &)=delete
 
 LikelihoodPID ()
 
 LikelihoodPID (std::string fname, double *pars, std::vector< float > cost)
 
 LikelihoodPID (double *pars)
 
 ~LikelihoodPID ()
 
int Classification (TLorentzVector pp, EVENT::Track *trk, EVENT::ClusterVec &cluvec)
 
double * GetPosterior ()
 
double * GetLikelihood ()
 
double getCorrEnergy (TLorentzVector pp, EVENT::Track *trk, EVENT::ClusterVec &cluvec)
 
double getCorrEnergy (TLorentzVector pp, int parttype)
 
double get_dEdxDist (int parttype)
 
void setBasicFlg (bool flg)
 
void setdEdxFlg (bool flg)
 
void setShowerShapesFlg (bool flg)
 
double get_dEdxChi2 (int parttype, TVector3 p, float hit, double dEdx)
 
double get_dEdxFactor (int parttype, TVector3 p, float hit, double dEdx)
 
void CalculateDeltaPosition (float charge, TVector3 p, const float *calpos)
 

Private Member Functions

double get_Norm (double dedx)
 
double BetheBloch (double x, double mass, double *pars)
 
int Class_electron (TLorentzVector pp, EVENT::Track *trk, EVENT::ClusterVec &cluvec)
 
int Class_muon (TLorentzVector pp, EVENT::Track *trk, EVENT::ClusterVec &cluvec)
 
int Class_hadron (TLorentzVector pp, EVENT::Track *trk, EVENT::ClusterVec &cluvec)
 
double getValue (int type, int valtype, double value)
 
double getPenalty (int ptype, int hypothesis, double p)
 

Private Attributes

double par [5][5] {}
 
TFile * fpdf {}
 
TH1F * pdf [6][20] {}
 
double emass {}
 
double mmass {}
 
double pimass {}
 
double kmass {}
 
double pmass {}
 
double threshold [5] {}
 
double penalty [5][5] {}
 
double prior [5] {}
 
double fact [5][5] {}
 
double _weights [6][20] {}
 
double _posterior [6] {}
 
double _likelihood [6] {}
 
double _dEdxDist [5] {}
 
EVENT::FloatVec shapes {}
 
bool _basicFlg {}
 
bool _dEdxFlg {}
 
bool _showerShapesFlg {}
 
int _usebayes {}
 
int _usecorr {}
 
float _dEdxnorm {}
 
float _dEdxerrfact {}
 
float _bfield {}
 
double _delpos [3] {}
 

Detailed Description

Definition at line 12 of file LikelihoodPID.hh.

Constructor & Destructor Documentation

LikelihoodPID::LikelihoodPID ( const LikelihoodPID )
delete
LikelihoodPID::LikelihoodPID ( )
inline

Definition at line 18 of file LikelihoodPID.hh.

LikelihoodPID::LikelihoodPID ( std::string  fname,
double *  pars,
std::vector< float >  cost 
)

Definition at line 75 of file LikelihoodPID.cc.

LikelihoodPID::LikelihoodPID ( double *  pars)

Definition at line 41 of file LikelihoodPID.cc.

LikelihoodPID::~LikelihoodPID ( )

Definition at line 269 of file LikelihoodPID.cc.

Member Function Documentation

double LikelihoodPID::BetheBloch ( double  x,
double  mass,
double *  pars 
)
private

(1.0+pars[3]*g+pars[4]);

Definition at line 463 of file LikelihoodPID.cc.

void LikelihoodPID::CalculateDeltaPosition ( float  charge,
TVector3  p,
const float *  calpos 
)

Definition at line 1256 of file LikelihoodPID.cc.

int LikelihoodPID::Class_electron ( TLorentzVector  pp,
EVENT::Track *  trk,
EVENT::ClusterVec &  cluvec 
)
private

20150708 change it from posterior probability to likelihood

Definition at line 472 of file LikelihoodPID.cc.

int LikelihoodPID::Class_hadron ( TLorentzVector  pp,
EVENT::Track *  trk,
EVENT::ClusterVec &  cluvec 
)
private

Definition at line 831 of file LikelihoodPID.cc.

int LikelihoodPID::Class_muon ( TLorentzVector  pp,
EVENT::Track *  trk,
EVENT::ClusterVec &  cluvec 
)
private

Definition at line 636 of file LikelihoodPID.cc.

int LikelihoodPID::Classification ( TLorentzVector  pp,
EVENT::Track *  trk,
EVENT::ClusterVec &  cluvec 
)

Definition at line 277 of file LikelihoodPID.cc.

double LikelihoodPID::get_dEdxChi2 ( int  parttype,
TVector3  p,
float  hit,
double  dEdx 
)

Definition at line 369 of file LikelihoodPID.cc.

double LikelihoodPID::get_dEdxDist ( int  parttype)

Definition at line 450 of file LikelihoodPID.cc.

double LikelihoodPID::get_dEdxFactor ( int  parttype,
TVector3  p,
float  hit,
double  dEdx 
)

Definition at line 411 of file LikelihoodPID.cc.

double LikelihoodPID::get_Norm ( double  dedx)
private

Definition at line 459 of file LikelihoodPID.cc.

double LikelihoodPID::getCorrEnergy ( TLorentzVector  pp,
EVENT::Track *  trk,
EVENT::ClusterVec &  cluvec 
)

Definition at line 348 of file LikelihoodPID.cc.

double LikelihoodPID::getCorrEnergy ( TLorentzVector  pp,
int  parttype 
)

Definition at line 355 of file LikelihoodPID.cc.

double * LikelihoodPID::GetLikelihood ( )

Definition at line 342 of file LikelihoodPID.cc.

double LikelihoodPID::getPenalty ( int  ptype,
int  hypothesis,
double  p 
)
private

Definition at line 1106 of file LikelihoodPID.cc.

double * LikelihoodPID::GetPosterior ( )

Definition at line 337 of file LikelihoodPID.cc.

double LikelihoodPID::getValue ( int  type,
int  valtype,
double  value 
)
private

Definition at line 1039 of file LikelihoodPID.cc.

LikelihoodPID& LikelihoodPID::operator= ( const LikelihoodPID )
delete
void LikelihoodPID::setBasicFlg ( bool  flg)
inline

Definition at line 35 of file LikelihoodPID.hh.

void LikelihoodPID::setdEdxFlg ( bool  flg)
inline

Definition at line 36 of file LikelihoodPID.hh.

void LikelihoodPID::setShowerShapesFlg ( bool  flg)
inline

Definition at line 37 of file LikelihoodPID.hh.

Member Data Documentation

bool LikelihoodPID::_basicFlg {}
private

Definition at line 86 of file LikelihoodPID.hh.

float LikelihoodPID::_bfield {}
private

Definition at line 88 of file LikelihoodPID.hh.

double LikelihoodPID::_dEdxDist[5] {}
private

Definition at line 81 of file LikelihoodPID.hh.

float LikelihoodPID::_dEdxerrfact {}
private

Definition at line 88 of file LikelihoodPID.hh.

bool LikelihoodPID::_dEdxFlg {}
private

Definition at line 86 of file LikelihoodPID.hh.

float LikelihoodPID::_dEdxnorm {}
private

Definition at line 88 of file LikelihoodPID.hh.

double LikelihoodPID::_delpos[3] {}
private

Definition at line 89 of file LikelihoodPID.hh.

double LikelihoodPID::_likelihood[6] {}
private

Definition at line 78 of file LikelihoodPID.hh.

double LikelihoodPID::_posterior[6] {}
private

Definition at line 77 of file LikelihoodPID.hh.

bool LikelihoodPID::_showerShapesFlg {}
private

Definition at line 86 of file LikelihoodPID.hh.

int LikelihoodPID::_usebayes {}
private

Definition at line 87 of file LikelihoodPID.hh.

int LikelihoodPID::_usecorr {}
private

Definition at line 87 of file LikelihoodPID.hh.

double LikelihoodPID::_weights[6][20] {}
private

Definition at line 74 of file LikelihoodPID.hh.

double LikelihoodPID::emass {}
private

Definition at line 59 of file LikelihoodPID.hh.

double LikelihoodPID::fact[5][5] {}
private

Definition at line 71 of file LikelihoodPID.hh.

TFile* LikelihoodPID::fpdf {}
private

Definition at line 55 of file LikelihoodPID.hh.

double LikelihoodPID::kmass {}
private

Definition at line 62 of file LikelihoodPID.hh.

double LikelihoodPID::mmass {}
private

Definition at line 60 of file LikelihoodPID.hh.

double LikelihoodPID::par[5][5] {}
private

Definition at line 54 of file LikelihoodPID.hh.

TH1F* LikelihoodPID::pdf[6][20] {}
private

Definition at line 56 of file LikelihoodPID.hh.

double LikelihoodPID::penalty[5][5] {}
private

Definition at line 68 of file LikelihoodPID.hh.

double LikelihoodPID::pimass {}
private

Definition at line 61 of file LikelihoodPID.hh.

double LikelihoodPID::pmass {}
private

Definition at line 63 of file LikelihoodPID.hh.

double LikelihoodPID::prior[5] {}
private

Definition at line 69 of file LikelihoodPID.hh.

EVENT::FloatVec LikelihoodPID::shapes {}
private

Definition at line 84 of file LikelihoodPID.hh.

double LikelihoodPID::threshold[5] {}
private

Definition at line 66 of file LikelihoodPID.hh.


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