FairRoot/PandaRoot
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
PndPrzWindowClassify Class Reference

#include <PndPrzWindowClassify.h>

Inheritance diagram for PndPrzWindowClassify:
PndMvaClassifier

Public Member Functions

 PndPrzWindowClassify (std::string const &inputFile, std::vector< std::string > const &classNames, std::vector< std::string > const &varNames)
 
virtual ~PndPrzWindowClassify ()
 Destructor. More...
 
void GetMvaValues (std::vector< float > eventData, std::map< std::string, float > &result)
 
std::string * Classify (std::vector< float > EvtData)
 
void setWindowSize (float wsize)
 
void setWindowSize (std::map< std::string, float > const &wsize)
 
float GetHyperCubeVolume () const
 
std::map< std::string, float >
const & 
GetWindowSize () const
 
virtual void Initialize ()
 
std::vector< PndMvaClass > const & GetClasses () const
 Get the list of available classes (labels). More...
 
std::vector< PndMvaVariable >
const & 
GetVariables () const
 Get the list of available variables. More...
 

Protected Member Functions

virtual void NormalizeEvent (std::vector< float > &EvtVector) const
 Normalize the given event vector. More...
 
void SetAppType (AppType t)
 

Protected Attributes

PndMvaDataSet m_dataSets
 Data set. Holds event Weights. More...
 

Private Member Functions

 PndPrzWindowClassify (PndPrzWindowClassify const &other)
 
PndPrzWindowClassifyoperator= (PndPrzWindowClassify const &other)
 
float histKernel (std::vector< float > const &evtDat, std::vector< float > const &trSample)
 
float CompHyperCubeVolume ()
 

Private Attributes

float m_volumeN
 
std::map< std::string, float > m_Wsize
 

Detailed Description

Definition at line 22 of file PndPrzWindowClassify.h.

Constructor & Destructor Documentation

PndPrzWindowClassify::PndPrzWindowClassify ( std::string const &  inputFile,
std::vector< std::string > const &  classNames,
std::vector< std::string > const &  varNames 
)
explicit
virtual PndPrzWindowClassify::~PndPrzWindowClassify ( )
virtual

Destructor.

PndPrzWindowClassify::PndPrzWindowClassify ( PndPrzWindowClassify const &  other)
private

Member Function Documentation

std::string* PndPrzWindowClassify::Classify ( std::vector< float >  EvtData)
virtual

Given a feature vector describing the pattern. Classifies the pattern.

Parameters
EvtDataInput vector describing the pattern.
Returns
The name of the class to which the current pattern is assigned.

Implements PndMvaClassifier.

float PndPrzWindowClassify::CompHyperCubeVolume ( )
private

Referenced by setWindowSize().

std::vector< PndMvaClass > const & PndMvaClassifier::GetClasses ( ) const
inlineinherited

Get the list of available classes (labels).

Definition at line 90 of file PndMvaClassifier.h.

References PndMvaDataSet::GetClasses(), and PndMvaClassifier::m_dataSets.

91 {
92  return m_dataSets.GetClasses();
93 };
PndMvaDataSet m_dataSets
Data set. Holds event Weights.
std::vector< PndMvaClass > const & GetClasses() const
Get the list of available classes (labels).
float PndPrzWindowClassify::GetHyperCubeVolume ( ) const
inline

Get hypercube volume

Definition at line 110 of file PndPrzWindowClassify.h.

References m_volumeN.

111 {
112  return m_volumeN;
113 };
void PndPrzWindowClassify::GetMvaValues ( std::vector< float >  eventData,
std::map< std::string, float > &  result 
)
virtual

Classification function.

Parameters
EvtData,:Feature vector of the current event which we want to classify.
result,:Holds the normalized results of classification for every class of events. Note: this parameter will be cleaned and modified.

Implements PndMvaClassifier.

std::vector< PndMvaVariable > const & PndMvaClassifier::GetVariables ( ) const
inlineinherited

Get the list of available variables.

Definition at line 96 of file PndMvaClassifier.h.

References PndMvaDataSet::GetVars(), and PndMvaClassifier::m_dataSets.

97 {
98  return m_dataSets.GetVars();
99 };
PndMvaDataSet m_dataSets
Data set. Holds event Weights.
std::vector< PndMvaVariable > const & GetVars() const
Get the list of available variables.
std::map< std::string, float > const & PndPrzWindowClassify::GetWindowSize ( ) const
inline

Get window sizes for all dimensions.

Definition at line 115 of file PndPrzWindowClassify.h.

References m_Wsize.

116 {
117  return m_Wsize;
118 };
std::map< std::string, float > m_Wsize
float PndPrzWindowClassify::histKernel ( std::vector< float > const &  evtDat,
std::vector< float > const &  trSample 
)
private
virtual void PndMvaClassifier::Initialize ( )
virtualinherited
virtual void PndMvaClassifier::NormalizeEvent ( std::vector< float > &  EvtVector) const
protectedvirtualinherited

Normalize the given event vector.

PndPrzWindowClassify& PndPrzWindowClassify::operator= ( PndPrzWindowClassify const &  other)
private
void PndMvaClassifier::SetAppType ( AppType  t)
inlineprotectedinherited

Definition at line 83 of file PndMvaClassifier.h.

References PndMvaClassifier::m_dataSets, and PndMvaDataSet::SetAppType().

84 {
86 };
void SetAppType(AppType t)
PndMvaDataSet m_dataSets
Data set. Holds event Weights.
TTree * t
Definition: bump_analys.C:13
void PndPrzWindowClassify::setWindowSize ( float  wsize)

Set the window size. Equal size in every dimension.

Parameters
wsizeWindow (Bin) size for all dimensions.
void PndPrzWindowClassify::setWindowSize ( std::map< std::string, float > const &  wsize)
inline

Set the window size. Specify the size for every dimension.

Parameters
wsizeWindow (Bin) size for each dimensions.<dim name, size>

Definition at line 103 of file PndPrzWindowClassify.h.

References CompHyperCubeVolume(), m_volumeN, and m_Wsize.

104 {
105  m_Wsize = std::map<std::string, float>(wsize);
106  // Set hypercube volume.
108 };
std::map< std::string, float > m_Wsize

Member Data Documentation

PndMvaDataSet PndMvaClassifier::m_dataSets
protectedinherited

Data set. Holds event Weights.

Definition at line 75 of file PndMvaClassifier.h.

Referenced by PndMvaClassifier::GetClasses(), PndMvaClassifier::GetVariables(), and PndMvaClassifier::SetAppType().

float PndPrzWindowClassify::m_volumeN
private

Definition at line 96 of file PndPrzWindowClassify.h.

Referenced by GetHyperCubeVolume(), and setWindowSize().

std::map<std::string, float> PndPrzWindowClassify::m_Wsize
private

Definition at line 99 of file PndPrzWindowClassify.h.

Referenced by GetWindowSize(), and setWindowSize().


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