31 #ifndef ROOT_TMVA_Event
32 #define ROOT_TMVA_Event
40 #ifndef ROOT_ThreadLocalStorage
43 #ifndef ROOT_TMVA_Types
55 std::ostream&
operator<<( std::ostream& os,
const Event& event );
59 friend std::ostream&
operator<<( std::ostream& os,
const Event& event );
66 explicit Event(
const std::vector<Float_t>& values,
67 const std::vector<Float_t>& targetValues,
68 const std::vector<Float_t>& spectatorValues,
70 explicit Event(
const std::vector<Float_t>& values,
71 const std::vector<Float_t>& targetValues,
73 explicit Event(
const std::vector<Float_t>&,
75 explicit Event(
const std::vector<Float_t*>*&,
UInt_t nvar );
97 return const_cast<std::vector<Float_t>&
>(
static_cast<const Event&
>(*this).
GetValues() );
99 const std::vector<Float_t>&
GetValues()
const;
122 void Print ( std::ostream & o )
const;
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
Double_t GetBoostWeight() const
std::vector< Float_t * > * fValuesDynamic
static void ClearDynamicVariables()
std::vector< Float_t > fSpectators
void SetBoostWeight(Double_t w) const
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...
std::vector< UInt_t > * fVariableArrangement
void ScaleBoostWeight(Double_t s) const
void SetVal(UInt_t ivar, Float_t val)
set variable ivar to val
const std::vector< Float_t > & GetSpectators() const
Double_t GetOriginalWeight() const
std::vector< Float_t > & GetTargets()
UInt_t GetNVariables() const
accessor to the number of variables
A specialized string object used for TTree selections.
std::vector< Float_t > fTargets
void SetSpectator(UInt_t ivar, Float_t value)
set spectator value (dimension ivar) to value
static Bool_t fgIsTraining
std::vector< Float_t > & GetSpectators()
void SetTarget(UInt_t itgt, Float_t value)
set the target value (dimension itgt) to value
void SetDoNotBoost() const
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
void SetWeight(Double_t w)
friend std::ostream & operator<<(std::ostream &os, const Event &event)
Float_t GetTarget(UInt_t itgt) const
~Event()
Event destructor.
Abstract ClassifierFactory template that handles arbitrary types.
std::vector< Float_t > & GetValues()
const std::vector< Float_t > & GetTargets() const
Short_t Max(Short_t a, Short_t b)