31#ifndef ROOT_TMVA_Event
32#define ROOT_TMVA_Event
60 explicit Event(
const std::vector<Float_t>& values,
61 const std::vector<Float_t>& targetValues,
62 const std::vector<Float_t>& spectatorValues,
64 explicit Event(
const std::vector<Float_t>& values,
65 const std::vector<Float_t>& targetValues,
67 explicit Event(
const std::vector<Float_t>&,
69 explicit Event(
const std::vector<Float_t*>*&,
UInt_t nvar );
98 return const_cast<std::vector<Float_t>&
>(
static_cast<const Event&
>(*this).
GetValues() );
100 const std::vector<Float_t>&
GetValues()
const;
126 void Print ( std::ostream & o )
const;
#define ClassDef(name, id)
TBuffer & operator<<(TBuffer &buf, const Tmpl *obj)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
A specialized string object used for TTree selections.
std::vector< Float_t > fValues
the event values ; mutable, to be able to copy the dynamic values in there
void ScaleBoostWeight(Double_t s) const
static Bool_t fgIsTraining
Double_t fWeight
event weight (product of global and individual weights)
void SetBoostWeight(Double_t w) const
Float_t GetValue(UInt_t ivar) const
return value of i'th variable
void SetTarget(UInt_t itgt, Float_t value)
set the target value (dimension itgt) to value
std::vector< Float_t > fTargets
target values for regression
Double_t fBoostWeight
internal weight to be set by boosting algorithm
std::vector< Float_t > & GetTargets()
std::vector< char > fSpectatorTypes
type of the spectator variable (typically F or I). Used ony for dynamic events
static void ClearDynamicVariables()
Bool_t fDynamic
is set when the dynamic values are taken
std::vector< Float_t > fSpectators
"visiting" variables not used in MVAs ; mutable, to be able to copy the dynamic values in there
UInt_t GetNSpectators() const
accessor to the number of spectators
std::vector< UInt_t > fVariableArrangement
needed for MethodCategories, where we can train on other than the main variables
void SetWeight(Double_t w)
Double_t GetOriginalWeight() const
~Event()
Event destructor.
std::vector< Float_t > & GetSpectators()
std::vector< Float_t * > * fValuesDynamic
! the event values
void SetDoNotBoost() const
UInt_t GetNVariables() const
accessor to the number of variables
Event & operator=(const Event &)=default
void CopyVarValues(const Event &other)
copies only the variable values
const std::vector< Float_t > & GetSpectators() const
UInt_t GetNTargets() const
accessor to the number of targets
static Bool_t fgIgnoreNegWeightsInTraining
const std::vector< Float_t > & GetTargets() const
Double_t GetWeight() const
return the event weight - depending on whether the flag IgnoreNegWeightsInTraining is or not.
void SetVal(UInt_t ivar, Float_t val)
set variable ivar to val
friend std::ostream & operator<<(std::ostream &os, const Event &event)
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
Float_t GetSpectator(UInt_t ivar) const
return spectator content
Double_t GetBoostWeight() const
void SetSpectatorTypes(const std::vector< char > &types)
void SetSpectator(UInt_t ivar, Float_t value)
set spectator value (dimension ivar) to value
Float_t GetValueFast(UInt_t ivar) const
Bool_t fDoNotBoost
mark event as not to be boosted (used to compensate for events with negative event weights
std::vector< Float_t > fValuesRearranged
the event values ; mutable, to be able to copy the dynamic values in there
std::vector< Float_t > & GetValues()
Float_t GetTarget(UInt_t itgt) const
static void SetIgnoreNegWeightsInTraining(Bool_t)
when this static function is called, it sets the flag whether events with negative event weight shoul...
void Print(std::ostream &o) const
print method
UInt_t fClass
class number
Mother of all ROOT objects.
virtual void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
create variable transformations
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.