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();
void SetVariableArrangement(std::vector< UInt_t > *const m) const
set the variable arrangement
UInt_t GetNTargets() const
accessor to the number of targets
Float_t GetSpectator(UInt_t ivar) const
return spectator content
std::vector< Float_t > fValues
std::vector< Float_t * > * fValuesDynamic
std::vector< Float_t > fSpectators
UInt_t GetNSpectators() const
accessor to the number of spectators
static Bool_t fgIgnoreNegWeightsInTraining
Double_t GetWeight() const
return the event weight - depending on whether the flag IgnoreNegWeightsInTraining is or not...
Float_t GetValue(UInt_t ivar) const
return value of i'th variable
static void SetIsTraining(Bool_t)
when this static function is called, it sets the flag whether events with negative event weight shoul...
void SetVal(UInt_t ivar, Float_t val)
set variable ivar to val
std::vector< UInt_t > fVariableArrangement
UInt_t GetNVariables() const
accessor to the number of variables
std::vector< Float_t > fTargets
the event values
void SetSpectator(UInt_t ivar, Float_t value)
set spectator value (dimension ivar) to value
static Bool_t fgIsTraining
void SetTarget(UInt_t itgt, Float_t value)
set the target value (dimension itgt) to value
std::ostream & operator<<(std::ostream &os, const BinaryTree &tree)
print the tree recursinvely using the << operator
void Print(std::ostream &o) const
print method
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