31 #ifndef ROOT_TMVA_Event 32 #define ROOT_TMVA_Event 50 std::ostream&
operator<<( std::ostream& os,
const Event& event );
54 friend std::ostream&
operator<<( std::ostream& os,
const Event& event );
61 explicit Event(
const std::vector<Float_t>& values,
62 const std::vector<Float_t>& targetValues,
63 const std::vector<Float_t>& spectatorValues,
65 explicit Event(
const std::vector<Float_t>& values,
66 const std::vector<Float_t>& targetValues,
68 explicit Event(
const std::vector<Float_t>&,
70 explicit Event(
const std::vector<Float_t*>*&,
UInt_t nvar );
93 return const_cast<std::vector<Float_t>&
>(
static_cast<const Event&
>(*this).
GetValues() );
95 const std::vector<Float_t>&
GetValues()
const;
119 void Print ( std::ostream & o )
const;
Float_t GetValueFast(UInt_t ivar) const
void SetDoNotBoost() const
std::vector< Float_t > fValues
std::vector< Float_t * > * fValuesDynamic
static void ClearDynamicVariables()
std::vector< Float_t > fSpectators
static Bool_t fgIgnoreNegWeightsInTraining
virtual void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
static void SetIsTraining(Bool_t)
when this static function is called, it sets the flag whether events with negative event weight shoul...
#define ClassDef(name, id)
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 > & GetTargets()
A specialized string object used for TTree selections.
Double_t GetBoostWeight() const
Float_t GetTarget(UInt_t itgt) const
std::vector< Float_t > fTargets
the event values
void SetSpectator(UInt_t ivar, Float_t value)
set spectator value (dimension ivar) to value
const std::vector< Float_t > & GetTargets() const
UInt_t GetNSpectators() const
accessor to the number of spectators
static Bool_t fgIsTraining
std::vector< Float_t > & GetSpectators()
std::ostream & operator<<(std::ostream &os, const BinaryTree &tree)
void ScaleBoostWeight(Double_t s) const
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 SetBoostWeight(Double_t w) const
void CopyVarValues(const Event &other)
copies only the variable values
static constexpr double s
std::vector< Float_t > fValuesRearranged
const std::vector< Float_t > & GetSpectators() const
void SetWeight(Double_t w)
friend std::ostream & operator<<(std::ostream &os, const Event &event)
Mother of all ROOT objects.
~Event()
Event destructor.
Abstract ClassifierFactory template that handles arbitrary types.
std::vector< Float_t > & GetValues()
Short_t Max(Short_t a, Short_t b)
Double_t GetOriginalWeight() const
Float_t GetSpectator(UInt_t ivar) const
return spectator content