#include <Event.h>
Public Member Functions | |
| Event () | |
| Event (const VarVec &vvec, double weight, short type) | |
| Event (const VarVec &vvec, double weight, short type, const VarVec &tvec) | |
| ~Event () | |
| double | GetWeight () const |
| VarType | GetVar (unsigned int i) const |
| VarType | GetTgt (unsigned int i) const |
| unsigned int | GetNVar () const |
| unsigned int | GetNTgt () const |
| const VarVec & | GetVarVec () const |
| const VarVec & | GetTgtVec () const |
| short | GetType () const |
| void | Print (std::ostream &os=std::cout, unsigned int w=5, unsigned int p=3) const |
Private Attributes | |
| VarVec | fVar |
| VarVec | fTgt |
| double | fWeight |
| short | fType |
|
|
Definition at line 10 of file PhysicsNtuple/kNNAlg/Event.cxx.
|
|
||||||||||||||||
|
Definition at line 19 of file PhysicsNtuple/kNNAlg/Event.cxx.
|
|
||||||||||||||||||||
|
Definition at line 30 of file PhysicsNtuple/kNNAlg/Event.cxx.
|
|
|
Definition at line 42 of file PhysicsNtuple/kNNAlg/Event.cxx. 00043 {
00044 }
|
|
|
Definition at line 73 of file PhysicsNtuple/kNNAlg/Event.h. Referenced by Anp::FillkNN::Find(), and Print(). 00073 { return fTgt.size(); }
|
|
|
Definition at line 72 of file PhysicsNtuple/kNNAlg/Event.h. Referenced by Lit::Node::Add(), Lit::LikeModule::Add(), Lit::Distance(), Lit::LikeModule::Find(), Lit::Print(), Print(), and Lit::LikeModule::Scale(). 00072 { return fVar.size(); }
|
|
|
Definition at line 54 of file PhysicsNtuple/kNNAlg/Event.cxx. References fTgt. Referenced by Anp::FillkNN::Find(), and Print().
|
|
|
Definition at line 76 of file PhysicsNtuple/kNNAlg/Event.h. References Lit::VarVec. Referenced by Lit::LikeModule::Scale(). 00076 { return fTgt; }
|
|
|
Definition at line 78 of file PhysicsNtuple/kNNAlg/Event.h. Referenced by Lit::LikeModule::Add(), Lit::Node::GetType(), and Lit::LikeModule::Scale(). 00079 {
00080 return fType;
00081 }
|
|
|
Definition at line 47 of file PhysicsNtuple/kNNAlg/Event.cxx. References fVar. Referenced by Lit::Node::Add(), Lit::LikeModule::Add(), Lit::Distance(), Lit::Find(), Lit::Print(), Print(), and Lit::LikeModule::Scale().
|
|
|
Definition at line 75 of file PhysicsNtuple/kNNAlg/Event.h. References Lit::VarVec. 00075 { return fVar; }
|
|
|
Definition at line 67 of file PhysicsNtuple/kNNAlg/Event.h. Referenced by Anp::FillkNN::Find(), Lit::Node::GetWeight(), and Lit::LikeModule::Scale(). 00068 {
00069 return fWeight;
00070 }
|
|
||||||||||||||||
|
Definition at line 81 of file PhysicsNtuple/kNNAlg/Event.cxx. References fType, fWeight, GetNTgt(), GetNVar(), GetTgt(), and GetVar(). Referenced by Lit::operator<<(). 00082 {
00083 os << "Event (weight, type) = ("
00084 << std::setw(w) << std::setprecision(p) << fWeight << ", "
00085 << fType << ") ";
00086
00087 for(unsigned int ivar = 0; ivar != GetNVar(); ++ivar)
00088 {
00089 if(ivar == 0)
00090 {
00091 os << "var = (";
00092 }
00093 else
00094 {
00095 os << ", ";
00096 }
00097
00098 os << std::setfill(' ') << std::setw(5) << std::setprecision(3) << GetVar(ivar);
00099 }
00100
00101 if(GetNVar() > 0)
00102 {
00103 os << ")";
00104 }
00105 else
00106 {
00107 os << " no variables";
00108 }
00109
00110 for(unsigned int itgt = 0; itgt != GetNTgt(); ++itgt)
00111 {
00112 if(itgt == 0)
00113 {
00114 os << "tgt = (";
00115 }
00116 else
00117 {
00118 os << ", ";
00119 }
00120
00121 os << std::setfill(' ') << std::setw(5) << std::setprecision(3) << GetTgt(itgt);
00122 }
00123
00124 if(GetNTgt() > 0)
00125 {
00126 os << ")";
00127 }
00128 else
00129 {
00130 os << " no targets";
00131 }
00132 }
|
|
|
Definition at line 46 of file PhysicsNtuple/kNNAlg/Event.h. Referenced by GetTgt(). |
|
|
Definition at line 48 of file PhysicsNtuple/kNNAlg/Event.h. Referenced by Print(). |
|
|
Definition at line 45 of file PhysicsNtuple/kNNAlg/Event.h. Referenced by GetVar(). |
|
|
Definition at line 47 of file PhysicsNtuple/kNNAlg/Event.h. Referenced by Print(). |
1.3.9.1