FairRoot/PandaRoot
Public Member Functions | Public Attributes | Private Member Functions | List of all members
PndMvaClass Struct Reference

#include <PndMvaClass.h>

Public Member Functions

 PndMvaClass (std::string const &name)
 Constructor. More...
 
virtual ~PndMvaClass ()
 Destructor. More...
 
 PndMvaClass (PndMvaClass const &oth)
 Copy constructor. More...
 
PndMvaClassoperator= (PndMvaClass const &oth)
 = Operator More...
 

Public Attributes

std::string Name
 
size_t NExamples
 
size_t StartIdx
 
size_t EndIdx
 
size_t NTrainEx
 

Private Member Functions

bool operator== (PndMvaClass const &oth) const
 
bool operator> (PndMvaClass const &oth) const
 
bool operator< (PndMvaClass const &oth) const
 

Detailed Description

Struct to describe a class of particles. It stores the name of the class, the number of examples available and their indices.

Definition at line 15 of file PndMvaClass.h.

Constructor & Destructor Documentation

PndMvaClass::PndMvaClass ( std::string const &  name)
inlineexplicit

Constructor.

name Class name.

Constructor implementation. name Class name.

Definition at line 49 of file PndMvaClass.h.

50  : Name(name), NExamples(0),
51  StartIdx(0), EndIdx(0), NTrainEx(0)
52 {};
std::string Name
Definition: PndMvaClass.h:32
size_t EndIdx
Definition: PndMvaClass.h:35
size_t NTrainEx
Definition: PndMvaClass.h:36
TString name
size_t NExamples
Definition: PndMvaClass.h:33
size_t StartIdx
Definition: PndMvaClass.h:34
PndMvaClass::~PndMvaClass ( )
inlinevirtual

Destructor.

Definition at line 77 of file PndMvaClass.h.

78 {};
PndMvaClass::PndMvaClass ( PndMvaClass const &  oth)
inline

Copy constructor.

Copy Constructor.

Definition at line 55 of file PndMvaClass.h.

56  : Name(oth.Name), NExamples(oth.NExamples),
57  StartIdx(oth.StartIdx), EndIdx(oth.EndIdx),
58  NTrainEx(oth.NTrainEx)
59 {};
std::string Name
Definition: PndMvaClass.h:32
size_t EndIdx
Definition: PndMvaClass.h:35
size_t NTrainEx
Definition: PndMvaClass.h:36
size_t NExamples
Definition: PndMvaClass.h:33
size_t StartIdx
Definition: PndMvaClass.h:34

Member Function Documentation

bool PndMvaClass::operator< ( PndMvaClass const &  oth) const
private
PndMvaClass & PndMvaClass::operator= ( PndMvaClass const &  oth)
inline

= Operator

= operator.

Definition at line 62 of file PndMvaClass.h.

References EndIdx, Name, NExamples, NTrainEx, and StartIdx.

63 {
64  // check for self-assignment
65  if (this != &oth)// Not self-assign
66  {
67  this->Name = oth.Name;
68  this->NExamples = oth.NExamples;
69  this->StartIdx = oth.StartIdx;
70  this->EndIdx = oth.EndIdx;
71  this->NTrainEx = oth.NTrainEx;
72  }
73  return (*this);
74 };
std::string Name
Definition: PndMvaClass.h:32
size_t EndIdx
Definition: PndMvaClass.h:35
size_t NTrainEx
Definition: PndMvaClass.h:36
size_t NExamples
Definition: PndMvaClass.h:33
size_t StartIdx
Definition: PndMvaClass.h:34
bool PndMvaClass::operator== ( PndMvaClass const &  oth) const
private
bool PndMvaClass::operator> ( PndMvaClass const &  oth) const
private

Member Data Documentation

size_t PndMvaClass::EndIdx

End index of events of this class.

Definition at line 35 of file PndMvaClass.h.

Referenced by operator=().

std::string PndMvaClass::Name

Name of the class.

Definition at line 32 of file PndMvaClass.h.

Referenced by operator=().

size_t PndMvaClass::NExamples

Number of examples available of the class.

Definition at line 33 of file PndMvaClass.h.

Referenced by operator=().

size_t PndMvaClass::NTrainEx

Number of examples in the train set.

Definition at line 36 of file PndMvaClass.h.

Referenced by operator=().

size_t PndMvaClass::StartIdx

Start index of events of this class.

Definition at line 34 of file PndMvaClass.h.

Referenced by operator=().


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