FairRoot/PandaRoot
PndMvaClass.h
Go to the documentation of this file.
1 /*************************************
2  * The structure of the classes. *
3  * Author: M.Babai@rug.nl *
4  * Version: *
5  * License: *
6  *************************************/
7 //#pragma once
8 #ifndef PND_MVA_CLASS_H
9 #define PND_MVA_CLASS_H
10 
16 {
18 
21  explicit PndMvaClass(std::string const& name);
22 
24  virtual ~PndMvaClass();
25 
27  PndMvaClass(PndMvaClass const& oth);
28 
30  PndMvaClass& operator=(PndMvaClass const& oth);
31 
32  std::string Name;
33  size_t NExamples;
34  size_t StartIdx;
35  size_t EndIdx;
36  size_t NTrainEx;
38 private:
39  bool operator== (PndMvaClass const& oth) const;
40  bool operator> (PndMvaClass const& oth) const;
41  bool operator< (PndMvaClass const& oth) const;
42 };// End of interface.
43 
44 //_________________________ Implement. __________________
49 inline PndMvaClass::PndMvaClass(std::string const& name)
50  : Name(name), NExamples(0),
51  StartIdx(0), EndIdx(0), NTrainEx(0)
52 {};
53 
56  : Name(oth.Name), NExamples(oth.NExamples),
57  StartIdx(oth.StartIdx), EndIdx(oth.EndIdx),
58  NTrainEx(oth.NTrainEx)
59 {};
60 
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 };
75 
78 {};
79 #endif
bool operator<(PndMvaClass const &oth) const
PndMvaClass & operator=(PndMvaClass const &oth)
= Operator
Definition: PndMvaClass.h:62
std::string Name
Definition: PndMvaClass.h:32
virtual ~PndMvaClass()
Destructor.
Definition: PndMvaClass.h:77
size_t EndIdx
Definition: PndMvaClass.h:35
size_t NTrainEx
Definition: PndMvaClass.h:36
bool operator==(PndMvaClass const &oth) const
bool operator>(PndMvaClass const &oth) const
PndMvaClass(std::string const &name)
Constructor.
Definition: PndMvaClass.h:49
TString name
size_t NExamples
Definition: PndMvaClass.h:33
size_t StartIdx
Definition: PndMvaClass.h:34