CMS 3D CMS Logo

Node.h
Go to the documentation of this file.
1 // Node.h
2 
3 #ifndef L1Trigger_L1TMuonEndCap_emtf_Node
4 #define L1Trigger_L1TMuonEndCap_emtf_Node
5 
6 #include <string>
7 #include <vector>
8 #include "Event.h"
9 
10 namespace emtf {
11 
12  class Node {
13  public:
14  Node();
15  Node(std::string cName);
16  ~Node();
17 
18  Node(Node &&) = default;
19 
21  void setName(std::string sName);
22 
23  double getErrorReduction();
24  void setErrorReduction(double sErrorReduction);
25 
27  void setLeftDaughter(Node *sLeftDaughter);
28 
30  void setRightDaughter(Node *sLeftDaughter);
31 
32  Node *getParent();
33  void setParent(Node *sParent);
34 
35  double getSplitValue();
36  void setSplitValue(double sSplitValue);
37 
38  int getSplitVariable();
39  void setSplitVariable(int sSplitVar);
40 
41  double getFitValue();
42  void setFitValue(double sFitValue);
43 
44  double getTotalError();
45  void setTotalError(double sTotalError);
46 
47  double getAvgError();
48  void setAvgError(double sAvgError);
49 
50  int getNumEvents();
51  void setNumEvents(int sNumEvents);
52 
53  std::vector<std::vector<Event *> > &getEvents();
54  void setEvents(std::vector<std::vector<Event *> > &sEvents);
55 
56  void calcOptimumSplit();
59  void listEvents();
61 
62  private:
63  Node(const Node &) = delete;
64  Node &operator=(const Node &) = delete;
65 
67 
71 
72  double splitValue;
74 
76  double totalError;
77  double avgError;
78 
79  double fitValue;
80  int numEvents;
81 
82  std::vector<std::vector<Event *> > events;
83  };
84 
85 } // namespace emtf
86 
87 #endif
emtf::Node::setEvents
void setEvents(std::vector< std::vector< Event * > > &sEvents)
Definition: Node.cc:134
emtf::Node::filterEventToDaughter
Node * filterEventToDaughter(Event *e)
Definition: Node.cc:314
emtf::Node::events
std::vector< std::vector< Event * > > events
Definition: Node.h:82
Event.h
emtf::Node::calcOptimumSplit
void calcOptimumSplit()
Definition: Node.cc:143
emtf::Node::getRightDaughter
Node * getRightDaughter()
Definition: Node.cc:90
emtf::Node::operator=
Node & operator=(const Node &)=delete
emtf::Node::setErrorReduction
void setErrorReduction(double sErrorReduction)
Definition: Node.cc:78
emtf::Node::setName
void setName(std::string sName)
Definition: Node.cc:72
emtf::Event
Definition: Event.h:17
emtf::Node::numEvents
int numEvents
Definition: Node.h:80
emtf::Node::errorReduction
double errorReduction
Definition: Node.h:75
emtf::Node::theMiracleOfChildBirth
void theMiracleOfChildBirth()
Definition: Node.cc:253
emtf
Definition: Event.h:15
emtf::Node::Node
Node()
Definition: Node.cc:32
emtf::Node::filterEventsToDaughters
void filterEventsToDaughters()
Definition: Node.cc:267
emtf::Node::setParent
void setParent(Node *sParent)
Definition: Node.cc:94
emtf::Node::setAvgError
void setAvgError(double sAvgError)
Definition: Node.cc:120
emtf::Node::getParent
Node * getParent()
Definition: Node.cc:96
emtf::Node::totalError
double totalError
Definition: Node.h:76
emtf::Node::getErrorReduction
double getErrorReduction()
Definition: Node.cc:80
emtf::Node::splitVariable
int splitVariable
Definition: Node.h:73
emtf::Node::leftDaughter
Node * leftDaughter
Definition: Node.h:68
emtf::Node::parent
Node * parent
Definition: Node.h:70
emtf::Node::splitValue
double splitValue
Definition: Node.h:72
emtf::Node::getSplitVariable
int getSplitVariable()
Definition: Node.cc:106
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
emtf::Node::setSplitVariable
void setSplitVariable(int sSplitVar)
Definition: Node.cc:104
emtf::Node::setSplitValue
void setSplitValue(double sSplitValue)
Definition: Node.cc:100
emtf::Node::setFitValue
void setFitValue(double sFitValue)
Definition: Node.cc:110
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
emtf::Node::getName
std::string getName()
Definition: Node.cc:74
emtf::Node::getLeftDaughter
Node * getLeftDaughter()
Definition: Node.cc:86
emtf::Node::avgError
double avgError
Definition: Node.h:77
emtf::Node::setRightDaughter
void setRightDaughter(Node *sLeftDaughter)
Definition: Node.cc:88
emtf::Node::getFitValue
double getFitValue()
Definition: Node.cc:112
emtf::Node::getSplitValue
double getSplitValue()
Definition: Node.cc:102
emtf::Node::getAvgError
double getAvgError()
Definition: Node.cc:122
emtf::Node
Definition: Node.h:12
emtf::Node::name
std::string name
Definition: Node.h:66
emtf::Node::setLeftDaughter
void setLeftDaughter(Node *sLeftDaughter)
Definition: Node.cc:84
emtf::Node::rightDaughter
Node * rightDaughter
Definition: Node.h:69
emtf::Node::getTotalError
double getTotalError()
Definition: Node.cc:118
emtf::Node::listEvents
void listEvents()
Definition: Node.cc:239
emtf::Node::fitValue
double fitValue
Definition: Node.h:79
emtf::Node::setTotalError
void setTotalError(double sTotalError)
Definition: Node.cc:116
emtf::Node::getEvents
std::vector< std::vector< Event * > > & getEvents()
Definition: Node.cc:132
emtf::Node::setNumEvents
void setNumEvents(int sNumEvents)
Definition: Node.cc:126
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
emtf::Node::getNumEvents
int getNumEvents()
Definition: Node.cc:128
emtf::Node::~Node
~Node()
Definition: Node.cc:60