54 fVariableArrangement(0),
67 const std::vector<Float_t>& tg,
88 const std::vector<Float_t>& tg,
89 const std::vector<Float_t>& vi,
162 UInt_t nvar =
event.GetNVariables();
164 std::vector<Float_t*>::iterator itDyn=
event.fValuesDynamic->begin(), itDynEnd=
event.fValuesDynamic->end();
165 for (; itDyn!=itDynEnd && idx<nvar; ++itDyn){
171 for (; itDyn!=itDynEnd; ++itDyn){
214 for (; itDyn!=itDynEnd && idx<nvar; ++itDyn){
220 for (; itDyn!=itDynEnd; ++itDyn){
344 (
fDynamic ?( (*fValuesDynamic).resize(ivar+1) ) :
fValues.resize(ivar+1));
354 o << *
this << std::endl;
411 os <<
"Variables [" <<
event.fValues.size() <<
"]:";
412 for (
UInt_t ivar=0; ivar<
event.fValues.size(); ++ivar)
413 os <<
" " << std::setw(10) <<
event.GetValue(ivar);
414 os <<
", targets [" <<
event.fTargets.size() <<
"]:";
415 for (
UInt_t ivar=0; ivar<
event.fTargets.size(); ++ivar)
416 os <<
" " << std::setw(10) <<
event.GetTarget(ivar);
417 os <<
", spectators ["<<
event.fSpectators.size() <<
"]:";
418 for (
UInt_t ivar=0; ivar<
event.fSpectators.size(); ++ivar)
419 os <<
" " << std::setw(10) <<
event.GetSpectator(ivar);
420 os <<
", weight: " <<
event.GetWeight();
421 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
std::ostream & operator<<(std::ostream &os, const BinaryTree &tree)
void SetTarget(UInt_t itgt, Float_t value)
set the target value (dimension itgt) to value
void Print(std::ostream &o) const
print method
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