PandaRoot
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
 
- Public Member Functions inherited from PndMvaClassifier
 PndMvaClassifier (std::string const &InPut, std::vector< std::string > const &ClassNames, std::vector< std::string > const &VarNames)
 Constructor. More...
 
virtual ~PndMvaClassifier ()
 Destructor. More...
 
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...
 

Additional Inherited Members

- Protected Member Functions inherited from PndMvaClassifier
virtual void NormalizeEvent (std::vector< float > &EvtVector) const
 Normalize the given event vector. More...
 
void SetAppType (AppType t)
 
- Protected Attributes inherited from PndMvaClassifier
PndMvaDataSet m_dataSets
 Data set. Holds event Weights. More...
 

Detailed Description

Definition at line 22 of file PndPrzWindowClassify.h.

Constructor & Destructor Documentation

◆ PndPrzWindowClassify()

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

◆ ~PndPrzWindowClassify()

virtual PndPrzWindowClassify::~PndPrzWindowClassify ( )
virtual

Destructor.

Member Function Documentation

◆ Classify()

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.

◆ GetHyperCubeVolume()

float PndPrzWindowClassify::GetHyperCubeVolume ( ) const
inline

Get hypercube volume

Definition at line 106 of file PndPrzWindowClassify.h.

107 {
108  return m_volumeN;
109 };

◆ GetMvaValues()

void PndPrzWindowClassify::GetMvaValues ( std::vector< float >  eventData,
std::map< std::string, float > &  result 
)
virtual

Classification function.

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

Implements PndMvaClassifier.

◆ GetWindowSize()

std::map< std::string, float > const & PndPrzWindowClassify::GetWindowSize ( ) const
inline

Get window sizes for all dimensions.

Definition at line 111 of file PndPrzWindowClassify.h.

112 {
113  return m_Wsize;
114 };

◆ setWindowSize() [1/2]

void PndPrzWindowClassify::setWindowSize ( float  wsize)

Set the window size. Equal size in every dimension.

Parameters
wsizeWindow (Bin) size for all dimensions.

◆ setWindowSize() [2/2]

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 99 of file PndPrzWindowClassify.h.

100 {
101  m_Wsize = std::map<std::string, float>(wsize);
102  // Set hypercube volume.
103  m_volumeN = CompHyperCubeVolume();
104 };

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