ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
KFParticle_MVA Class Reference

#include <coresoftware/blob/master/offline/packages/KFParticle_sPHENIX/KFParticle_MVA.h>

+ Inheritance diagram for KFParticle_MVA:
+ Collaboration diagram for KFParticle_MVA:

Public Member Functions

 KFParticle_MVA ()
 
virtual ~KFParticle_MVA ()
 
std::tuple< TMVA::Reader
*, std::vector< Float_t > > 
initMVA ()
 
Float_t evaluateMVA (TMVA::Reader *reader, std::vector< Float_t > reader_floats, KFParticle particle, KFPVertex vertex)
 

Protected Attributes

unsigned int m_nPars = 1
 
std::vector< std::string > m_mva_variable_list
 
std::string m_mva_type
 
std::string m_mva_path
 

Private Attributes

unsigned int nMVApars = m_nPars
 
std::string method = m_mva_path + " method"
 

Detailed Description

Definition at line 21 of file KFParticle_MVA.h.

View newest version in sPHENIX GitHub at line 21 of file KFParticle_MVA.h

Constructor & Destructor Documentation

KFParticle_MVA::KFParticle_MVA ( )
inline

Definition at line 24 of file KFParticle_MVA.h.

View newest version in sPHENIX GitHub at line 24 of file KFParticle_MVA.h

virtual KFParticle_MVA::~KFParticle_MVA ( )
inlinevirtual

Definition at line 26 of file KFParticle_MVA.h.

View newest version in sPHENIX GitHub at line 26 of file KFParticle_MVA.h

Member Function Documentation

Float_t KFParticle_MVA::evaluateMVA ( TMVA::Reader *  reader,
std::vector< Float_t >  reader_floats,
KFParticle  particle,
KFPVertex  vertex 
)

Definition at line 33 of file KFParticle_MVA.cc.

View newest version in sPHENIX GitHub at line 33 of file KFParticle_MVA.cc

References KFParticle_Tools::flightDistanceChi2(), m_mva_variable_list, method, and nMVApars.

+ Here is the call graph for this function:

std::tuple< TMVA::Reader *, std::vector< Float_t > > KFParticle_MVA::initMVA ( )

Definition at line 16 of file KFParticle_MVA.cc.

View newest version in sPHENIX GitHub at line 16 of file KFParticle_MVA.cc

References m_mva_path, m_mva_variable_list, method, and nMVApars.

Referenced by KFParticle_sPHENIX::Init().

+ Here is the caller graph for this function:

Member Data Documentation

std::string KFParticle_MVA::m_mva_path
protected

Definition at line 36 of file KFParticle_MVA.h.

View newest version in sPHENIX GitHub at line 36 of file KFParticle_MVA.h

Referenced by initMVA(), and KFParticle_sPHENIX::setMVAWeightsPath().

std::string KFParticle_MVA::m_mva_type
protected

Definition at line 35 of file KFParticle_MVA.h.

View newest version in sPHENIX GitHub at line 35 of file KFParticle_MVA.h

Referenced by KFParticle_sPHENIX::setMVAType().

std::vector<std::string> KFParticle_MVA::m_mva_variable_list
protected

Definition at line 34 of file KFParticle_MVA.h.

View newest version in sPHENIX GitHub at line 34 of file KFParticle_MVA.h

Referenced by evaluateMVA(), initMVA(), and KFParticle_sPHENIX::setMVAVarList().

unsigned int KFParticle_MVA::m_nPars = 1
protected

Definition at line 33 of file KFParticle_MVA.h.

View newest version in sPHENIX GitHub at line 33 of file KFParticle_MVA.h

Referenced by KFParticle_sPHENIX::setNumMVAPars().

std::string KFParticle_MVA::method = m_mva_path + " method"
private

Definition at line 40 of file KFParticle_MVA.h.

View newest version in sPHENIX GitHub at line 40 of file KFParticle_MVA.h

Referenced by evaluateMVA(), and initMVA().

unsigned int KFParticle_MVA::nMVApars = m_nPars
private

Definition at line 39 of file KFParticle_MVA.h.

View newest version in sPHENIX GitHub at line 39 of file KFParticle_MVA.h

Referenced by evaluateMVA(), and initMVA().


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