CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Node.h
Go to the documentation of this file.
1 // Node.h
2 
3 #ifndef ADD_NODE
4 #define ADD_NODE
5 
6 #include <string>
7 #include <vector>
9 
10 class Node
11 {
12  public:
13  Node();
14  Node(std::string cName);
15  ~Node();
16 
18  void setName(std::string sName);
19 
20  Double_t getErrorReduction();
21  void setErrorReduction(Double_t sErrorReduction);
22 
24  void setLeftDaughter(Node *sLeftDaughter);
25 
27  void setRightDaughter(Node *sLeftDaughter);
28 
29  Node * getParent();
30  void setParent(Node *sParent);
31 
32  Double_t getSplitValue();
33  void setSplitValue(Double_t sSplitValue);
34 
35  Int_t getSplitVariable();
36  void setSplitVariable(Int_t sSplitVar);
37 
38  Double_t getFitValue();
39  void setFitValue(Double_t sFitValue);
40 
41  Double_t getTotalError();
42  void setTotalError(Double_t sTotalError);
43 
44  Double_t getAvgError();
45  void setAvgError(Double_t sAvgError);
46 
47  Int_t getNumEvents();
48  void setNumEvents(Int_t sNumEvents);
49 
50  std::vector< std::vector<Event*> >& getEvents();
51  void setEvents(std::vector< std::vector<Event*> >& sEvents);
52 
53  void calcOptimumSplit();
55  void listEvents();
57 
58  private:
60 
64 
65  Double_t splitValue;
67 
68  Double_t errorReduction;
69  Double_t totalError;
70  Double_t avgError;
71 
72  Double_t fitValue;
73  Int_t numEvents;
74 
75  std::vector< std::vector<Event*> > events;
76 };
77 
78 #endif
Node * getParent()
Definition: Node.cc:121
Double_t getFitValue()
Definition: Node.cc:155
void setLeftDaughter(Node *sLeftDaughter)
Definition: Node.cc:94
std::string name
Definition: Node.h:59
Definition: Node.h:10
Node()
Definition: Node.cc:29
Int_t getNumEvents()
Definition: Node.cc:189
Node * getLeftDaughter()
Definition: Node.cc:99
void setAvgError(Double_t sAvgError)
Definition: Node.cc:172
Int_t numEvents
Definition: Node.h:73
void setSplitValue(Double_t sSplitValue)
Definition: Node.cc:128
void setNumEvents(Int_t sNumEvents)
Definition: Node.cc:184
Double_t getTotalError()
Definition: Node.cc:167
Double_t totalError
Definition: Node.h:69
Double_t getSplitValue()
Definition: Node.cc:133
Node * leftDaughter
Definition: Node.h:61
void setRightDaughter(Node *sLeftDaughter)
Definition: Node.cc:104
void theMiracleOfChildBirth()
Definition: Node.cc:329
std::string getName()
Definition: Node.cc:75
Double_t fitValue
Definition: Node.h:72
Node * getRightDaughter()
Definition: Node.cc:109
void setName(std::string sName)
Definition: Node.cc:70
Node * rightDaughter
Definition: Node.h:62
void listEvents()
Definition: Node.cc:312
Int_t getSplitVariable()
Definition: Node.cc:143
void filterEventsToDaughters()
Definition: Node.cc:344
std::vector< std::vector< Event * > > & getEvents()
Definition: Node.cc:196
Int_t splitVariable
Definition: Node.h:66
Double_t errorReduction
Definition: Node.h:68
std::vector< std::vector< Event * > > events
Definition: Node.h:75
Double_t getAvgError()
Definition: Node.cc:177
void setEvents(std::vector< std::vector< Event * > > &sEvents)
Definition: Node.cc:201
Double_t splitValue
Definition: Node.h:65
Double_t getErrorReduction()
Definition: Node.cc:87
void setParent(Node *sParent)
Definition: Node.cc:116
Double_t avgError
Definition: Node.h:70
~Node()
Definition: Node.cc:59
void setFitValue(Double_t sFitValue)
Definition: Node.cc:150
void setTotalError(Double_t sTotalError)
Definition: Node.cc:162
void setSplitVariable(Int_t sSplitVar)
Definition: Node.cc:138
void calcOptimumSplit()
Definition: Node.cc:210
Node * parent
Definition: Node.h:63
void setErrorReduction(Double_t sErrorReduction)
Definition: Node.cc:82