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 27 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 60 of file PndMvaClass.h.

60 : Name(name), NExamples(0), StartIdx(0), EndIdx(0), NTrainEx(0){};
std::string Name
Definition: PndMvaClass.h:43
size_t EndIdx
Definition: PndMvaClass.h:46
size_t NTrainEx
Definition: PndMvaClass.h:47
size_t NExamples
Definition: PndMvaClass.h:44
size_t StartIdx
Definition: PndMvaClass.h:45

◆ ~PndMvaClass()

PndMvaClass::~PndMvaClass ( )
inlinevirtual

Destructor.

Definition at line 81 of file PndMvaClass.h.

81 {};

◆ PndMvaClass() [2/2]

PndMvaClass::PndMvaClass ( PndMvaClass const &  oth)
inline

Copy constructor.

Copy Constructor.

Definition at line 63 of file PndMvaClass.h.

63 : Name(oth.Name), NExamples(oth.NExamples), StartIdx(oth.StartIdx), EndIdx(oth.EndIdx), NTrainEx(oth.NTrainEx){};
std::string Name
Definition: PndMvaClass.h:43
size_t EndIdx
Definition: PndMvaClass.h:46
size_t NTrainEx
Definition: PndMvaClass.h:47
size_t NExamples
Definition: PndMvaClass.h:44
size_t StartIdx
Definition: PndMvaClass.h:45

Member Function Documentation

◆ operator=()

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

= Operator

= operator.

Definition at line 66 of file PndMvaClass.h.

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

67 {
68  // check for self-assignment
69  if (this != &oth) // Not self-assign
70  {
71  this->Name = oth.Name;
72  this->NExamples = oth.NExamples;
73  this->StartIdx = oth.StartIdx;
74  this->EndIdx = oth.EndIdx;
75  this->NTrainEx = oth.NTrainEx;
76  }
77  return (*this);
78 };
std::string Name
Definition: PndMvaClass.h:43
size_t EndIdx
Definition: PndMvaClass.h:46
size_t NTrainEx
Definition: PndMvaClass.h:47
size_t NExamples
Definition: PndMvaClass.h:44
size_t StartIdx
Definition: PndMvaClass.h:45

Member Data Documentation

◆ EndIdx

size_t PndMvaClass::EndIdx

End index of events of this class.

Definition at line 46 of file PndMvaClass.h.

Referenced by operator=().

◆ Name

std::string PndMvaClass::Name

Name of the class.

Definition at line 43 of file PndMvaClass.h.

Referenced by operator=().

◆ NExamples

size_t PndMvaClass::NExamples

Number of examples available of the class.

Definition at line 44 of file PndMvaClass.h.

Referenced by operator=().

◆ NTrainEx

size_t PndMvaClass::NTrainEx

Number of examples in the train set.

Definition at line 47 of file PndMvaClass.h.

Referenced by operator=().

◆ StartIdx

size_t PndMvaClass::StartIdx

Start index of events of this class.

Definition at line 45 of file PndMvaClass.h.

Referenced by operator=().


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