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 );
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;
static void SetIgnoreNegWeightsInTraining(Bool_t)
when this static function is called, it sets the flag whether events with negative event weight shoul...
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
std::vector< Float_t > fValues
Double_t GetBoostWeight() const
std::vector< double > values
std::vector< Float_t * > * fValuesDynamic
static void ClearDynamicVariables()
std::vector< Float_t > fSpectators
void SetBoostWeight(Double_t w) const
void SetTarget(UInt_t itgt, Float_t value)
set the target value (dimension itgt) to value
Double_t GetWeight() const
return the event weight - depending on whether the flag IgnoreNegWeightsInTraining is or not...
Float_t GetSpectator(UInt_t ivar) const
return spectator content
void SetVal(UInt_t ivar, Float_t val)
set variable ivar to val
void Print(std::ostream &o) const
print method
void SetSpectator(UInt_t ivar, Float_t value)
set spectator value (dimension ivar) to value
std::vector< UInt_t > * fVariableArrangement
void ScaleBoostWeight(Double_t s) const
UInt_t GetNVariables() const
accessor to the number of variables
const std::vector< Float_t > & GetSpectators() const
Double_t GetOriginalWeight() const
std::vector< Float_t > & GetTargets()
A specialized string object used for TTree selections.
UInt_t GetNSpectators() const
accessor to the number of spectators
void CopyVarValues(const Event &other)
copies only the variable values
std::vector< Float_t > fTargets
static Bool_t fgIsTraining
std::vector< Float_t > & GetSpectators()
void SetDoNotBoost() const
std::ostream & operator<<(std::ostream &os, const BinaryTree &tree)
print the tree recursinvely using the << operator
~Event()
Event destructor.
Float_t GetValue(UInt_t ivar) const
return value of i'th variable
UInt_t GetNTargets() const
accessor to the number of targets
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
std::vector< Float_t > & GetValues()
const std::vector< Float_t > & GetTargets() const
Short_t Max(Short_t a, Short_t b)
static Bool_t fgIgnoreNegWeightsInTraining