31 #ifndef ROOT_TMVA_Event 32 #define ROOT_TMVA_Event 40 #ifndef ROOT_ThreadLocalStorage 43 #ifndef ROOT_TMVA_Types 58 std::ostream&
operator<<( std::ostream& os,
const Event& event );
62 friend std::ostream&
operator<<( std::ostream& os,
const Event& event );
69 explicit Event(
const std::vector<Float_t>& values,
70 const std::vector<Float_t>& targetValues,
71 const std::vector<Float_t>& spectatorValues,
73 explicit Event(
const std::vector<Float_t>& values,
74 const std::vector<Float_t>& targetValues,
76 explicit Event(
const std::vector<Float_t>&,
78 explicit Event(
const std::vector<Float_t*>*&,
UInt_t nvar );
100 return const_cast<std::vector<Float_t>&
>(
static_cast<const Event&
>(*this).
GetValues() );
102 const std::vector<Float_t>&
GetValues()
const;
126 void Print ( std::ostream & o )
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()
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
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 SetBoostWeight(Double_t w) const
void CopyVarValues(const Event &other)
copies only the variable values
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