50 fVariableArrangement(0),
63 const std::vector<Float_t>& tg,
84 const std::vector<Float_t>& tg,
85 const std::vector<Float_t>& vi,
158 UInt_t nvar =
event.GetNVariables();
160 std::vector<Float_t*>::iterator itDyn=
event.fValuesDynamic->begin(), itDynEnd=
event.fValuesDynamic->end();
161 for (; itDyn!=itDynEnd && idx<nvar; ++itDyn){
167 for (; itDyn!=itDynEnd; ++itDyn){
210 for (; itDyn!=itDynEnd && idx<nvar; ++itDyn){
216 for (; itDyn!=itDynEnd; ++itDyn){
340 (
fDynamic ?( (*fValuesDynamic).resize(ivar+1) ) :
fValues.resize(ivar+1));
350 o << *
this << std::endl;
407 os <<
"Variables [" <<
event.fValues.size() <<
"]:";
408 for (
UInt_t ivar=0; ivar<
event.fValues.size(); ++ivar)
409 os <<
" " << std::setw(10) <<
event.GetValue(ivar);
410 os <<
", targets [" <<
event.fTargets.size() <<
"]:";
411 for (
UInt_t ivar=0; ivar<
event.fTargets.size(); ++ivar)
412 os <<
" " << std::setw(10) <<
event.GetTarget(ivar);
413 os <<
", spectators ["<<
event.fSpectators.size() <<
"]:";
414 for (
UInt_t ivar=0; ivar<
event.fSpectators.size(); ++ivar)
415 os <<
" " << std::setw(10) <<
event.GetSpectator(ivar);
416 os <<
", weight: " <<
event.GetWeight();
417 os <<
", class: " <<
event.GetClass();
std::vector< Float_t > fValues
std::vector< Float_t * > * fValuesDynamic
std::vector< Float_t > fSpectators
static Bool_t fgIgnoreNegWeightsInTraining
static void SetIsTraining(Bool_t)
when this static function is called, it sets the flag whether events with negative event weight shoul...
void SetVariableArrangement(std::vector< UInt_t > *const m) const
set the variable arrangement
void SetVal(UInt_t ivar, Float_t val)
set variable ivar to val
Double_t GetWeight() const
return the event weight - depending on whether the flag IgnoreNegWeightsInTraining is or not...
UInt_t GetNTargets() const
accessor to the number of targets
std::vector< UInt_t > fVariableArrangement
std::vector< Float_t > fTargets
the event values
void SetSpectator(UInt_t ivar, Float_t value)
set spectator value (dimension ivar) to value
UInt_t GetNSpectators() const
accessor to the number of spectators
static Bool_t fgIsTraining
void SetTarget(UInt_t itgt, Float_t value)
set the target value (dimension itgt) to value
void Print(std::ostream &o) const
print method
std::ostream & operator<<(std::ostream &os, const BinaryTree &tree)
print the tree recursinvely using the << operator
UInt_t GetNVariables() const
accessor to the number of variables
Float_t GetValue(UInt_t ivar) const
return value of i'th variable
static void SetIgnoreNegWeightsInTraining(Bool_t)
when this static function is called, it sets the flag whether events with negative event weight shoul...
void CopyVarValues(const Event &other)
copies only the variable values
std::vector< Float_t > fValuesRearranged
Mother of all ROOT objects.
~Event()
Event destructor.
std::vector< Float_t > & GetValues()
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Float_t GetSpectator(UInt_t ivar) const
return spectator content