PandaRoot
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
 

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() [1/2]

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

Constructor.

name Class name.

Constructor implementation. name Class name.

Definition at line 48 of file PndMvaClass.h.

48 : Name(name), NExamples(0), StartIdx(0), EndIdx(0), NTrainEx(0){};
std::string Name
Definition: PndMvaClass.h:31
size_t EndIdx
Definition: PndMvaClass.h:34
size_t NTrainEx
Definition: PndMvaClass.h:35
size_t NExamples
Definition: PndMvaClass.h:32
size_t StartIdx
Definition: PndMvaClass.h:33

◆ ~PndMvaClass()

PndMvaClass::~PndMvaClass ( )
inlinevirtual

Destructor.

Definition at line 69 of file PndMvaClass.h.

69 {};

◆ PndMvaClass() [2/2]

PndMvaClass::PndMvaClass ( PndMvaClass const &  oth)
inline

Copy constructor.

Copy Constructor.

Definition at line 51 of file PndMvaClass.h.

51 : Name(oth.Name), NExamples(oth.NExamples), StartIdx(oth.StartIdx), EndIdx(oth.EndIdx), NTrainEx(oth.NTrainEx){};
std::string Name
Definition: PndMvaClass.h:31
size_t EndIdx
Definition: PndMvaClass.h:34
size_t NTrainEx
Definition: PndMvaClass.h:35
size_t NExamples
Definition: PndMvaClass.h:32
size_t StartIdx
Definition: PndMvaClass.h:33

Member Function Documentation

◆ operator=()

PndMvaClass & PndMvaClass::operator= ( PndMvaClass const &  oth)
inline

= Operator

= operator.

Definition at line 54 of file PndMvaClass.h.

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

55 {
56  // check for self-assignment
57  if (this != &oth) // Not self-assign
58  {
59  this->Name = oth.Name;
60  this->NExamples = oth.NExamples;
61  this->StartIdx = oth.StartIdx;
62  this->EndIdx = oth.EndIdx;
63  this->NTrainEx = oth.NTrainEx;
64  }
65  return (*this);
66 };
std::string Name
Definition: PndMvaClass.h:31
size_t EndIdx
Definition: PndMvaClass.h:34
size_t NTrainEx
Definition: PndMvaClass.h:35
size_t NExamples
Definition: PndMvaClass.h:32
size_t StartIdx
Definition: PndMvaClass.h:33

Member Data Documentation

◆ EndIdx

size_t PndMvaClass::EndIdx

End index of events of this class.

Definition at line 34 of file PndMvaClass.h.

Referenced by operator=().

◆ Name

std::string PndMvaClass::Name

Name of the class.

Definition at line 31 of file PndMvaClass.h.

Referenced by operator=().

◆ NExamples

size_t PndMvaClass::NExamples

Number of examples available of the class.

Definition at line 32 of file PndMvaClass.h.

Referenced by operator=().

◆ NTrainEx

size_t PndMvaClass::NTrainEx

Number of examples in the train set.

Definition at line 35 of file PndMvaClass.h.

Referenced by operator=().

◆ StartIdx

size_t PndMvaClass::StartIdx

Start index of events of this class.

Definition at line 33 of file PndMvaClass.h.

Referenced by operator=().


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