Analysis Software
Documentation for sPHENIX simulation 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 ()=default
 
virtual ~KFParticle_MVA ()=default
 
std::tuple< TMVA::Reader
*, std::vector< Float_t > > 
initMVA ()
 
Float_t evaluateMVA (TMVA::Reader *reader, std::vector< Float_t > reader_floats, const KFParticle &particle, const 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 24 of file KFParticle_MVA.h.

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

Constructor & Destructor Documentation

KFParticle_MVA::KFParticle_MVA ( )
default
virtual KFParticle_MVA::~KFParticle_MVA ( )
virtualdefault

Member Function Documentation

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

Definition at line 39 of file KFParticle_MVA.cc.

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

References KFParticle_Tools::flightDistanceChi2(), KFParticleBase::GetDeviationFromVertex(), 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 22 of file KFParticle_MVA.cc.

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

References i, m_mva_path, m_mva_variable_list, std::tr1::make_tuple(), method, nMVApars, and summary::reader.

Referenced by KFParticle_sPHENIX::Init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

std::string KFParticle_MVA::m_mva_path
protected

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 initMVA(), and KFParticle_sPHENIX::setMVAWeightsPath().

std::string KFParticle_MVA::m_mva_type
protected

Definition at line 38 of file KFParticle_MVA.h.

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

Referenced by KFParticle_sPHENIX::setMVAType().

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

Definition at line 37 of file KFParticle_MVA.h.

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

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

unsigned int KFParticle_MVA::m_nPars = 1
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 KFParticle_sPHENIX::setNumMVAPars().

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

Definition at line 43 of file KFParticle_MVA.h.

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

Referenced by evaluateMVA(), and initMVA().

unsigned int KFParticle_MVA::nMVApars = m_nPars
private

Definition at line 42 of file KFParticle_MVA.h.

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

Referenced by evaluateMVA(), and initMVA().


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