27#ifndef ROOT_TMVA_DataSetInfo
28#define ROOT_TMVA_DataSetInfo
56 class VariableTransformBase;
108 return (element !=
fVarArrays.end()) ? element->second : -1;
#define ClassDef(name, id)
A specialized string object used for TTree selections.
Describe directory structure in memory.
Service class for 2-Dim histogram classes.
Class that contains all the information of a class.
const TCut & GetCut() const
const TString & GetWeight() const
Class that contains all the data information.
const TString GetWeightExpression(Int_t i) const
std::vector< VariableInfo > & GetVariableInfos()
const std::vector< VariableInfo > & GetSpectatorInfos() const
UInt_t GetNVariables() const
const std::vector< VariableInfo > & GetVariableInfos() const
UInt_t GetNSpectators(bool all=kTRUE) const
const VariableInfo & GetVariableInfo(Int_t i) const
Int_t GetVarArraySize(const TString &expression) const
void SetSplitOptions(const TString &so)
DataSetInfo(const DataSetInfo &)
std::map< TString, int > fVarArrays
ClassInfo * AddClass(const TString &className)
virtual const char * GetName() const
Returns name of object.
const TString & GetNormalization() const
const TMatrixD * CorrelationMatrix(const TString &className) const
Bool_t IsVariableFromArray(Int_t i) const
std::vector< VariableInfo > & GetSpectatorInfos()
const VariableInfo & GetTargetInfo(Int_t i) const
TDirectory * GetRootDir() const
std::vector< ClassInfo * > fClasses
Double_t fTrainingSumBackgrWeights
void SetNormalization(const TString &norm)
Int_t GetTargetNameMaxLength() const
virtual ~DataSetInfo()
destructor
MsgLogger & Log() const
message logger
Double_t fTestingSumSignalWeights
Double_t GetTestingSumBackgrWeights()
void SetMsgType(EMsgType t) const
UInt_t GetNClasses() const
const TString & GetSplitOptions() const
UInt_t GetNTargets() const
const TCut & GetCut(const TString &className) const
void SetTestingSumSignalWeights(Double_t testingSumSignalWeights)
void AddVariablesArray(const TString &expression, Int_t size, const TString &title="", const TString &unit="", Double_t min=0, Double_t max=0, char type='F', Bool_t normalized=kTRUE, void *external=0)
add an array of variables identified by an expression corresponding to an array entry in the tree
std::vector< VariableInfo > fSpectators
void PrintCorrelationMatrix(TTree *theTree)
VariableInfo & AddTarget(const TString &expression, const TString &title, const TString &unit, Double_t min, Double_t max, Bool_t normalized=kTRUE, void *external=0)
add a variable (can be a complex expression) to the set of variables used in the MV analysis
DataSet * GetDataSet() const
returns data set
DataSetInfo(const TString &name="Default")
constructor
TH2 * CreateCorrelationMatrixHist(const TMatrixD *m, const TString &hName, const TString &hTitle) const
UInt_t GetSignalClassIndex()
VariableInfo & AddSpectator(const TString &expression, const TString &title, const TString &unit, Double_t min, Double_t max, char type='F', Bool_t normalized=kTRUE, void *external=0)
add a spectator (can be a complex expression) to the set of spectator variables used in the MV analys...
const std::vector< VariableInfo > & GetTargetInfos() const
void SetTrainingSumSignalWeights(Double_t trainingSumSignalWeights)
std::vector< TString > GetListOfVariables() const
returns list of variables
ClassInfo * GetClassInfo(Int_t clNum) const
void SetTestingSumBackgrWeights(Double_t testingSumBackgrWeights)
void SetDataSetManager(DataSetManager *dsm)
Double_t GetTrainingSumSignalWeights()
Double_t fTrainingSumSignalWeights
void PrintClasses() const
Int_t GetClassNameMaxLength() const
Double_t GetTrainingSumBackgrWeights()
void PrintCorrelationMatrix(const TString &className)
calculates the correlation matrices for signal and background, prints them to standard output,...
std::vector< VariableInfo > fTargets
const TCut & GetCut(Int_t i) const
const VariableInfo & GetSpectatorInfo(Int_t i) const
std::vector< Float_t > * fTargetsForMulticlass
void SetCut(const TCut &cut, const TString &className)
set the cut for the classes
Double_t GetTestingSumSignalWeights()
Int_t FindVarIndex(const TString &) const
find variable by name
VariableInfo & GetVariableInfo(Int_t i)
VariableInfo & AddVariable(const TString &expression, const TString &title="", const TString &unit="", Double_t min=0, Double_t max=0, char varType='F', Bool_t normalized=kTRUE, void *external=0)
add a variable (can be a complex expression) to the set of variables used in the MV analysis
std::vector< VariableInfo > & GetTargetInfos()
void SetTrainingSumBackgrWeights(Double_t trainingSumBackgrWeights)
std::vector< VariableInfo > fVariables
void SetRootDir(TDirectory *d)
Int_t GetVariableNameMaxLength() const
Double_t fTestingSumBackgrWeights
Bool_t IsSignal(const Event *ev) const
void SetWeightExpression(const TString &exp, const TString &className="")
set the weight expressions for the classes if class name is specified, set only for this class if cla...
DataSetManager * GetDataSetManager()
VariableInfo & GetTargetInfo(Int_t i)
TMVA::DataSetManager * fDataSetManager
VariableInfo & GetSpectatorInfo(Int_t i)
void AddCut(const TCut &cut, const TString &className)
set the cut for the classes
std::vector< Float_t > * GetTargetsForMulticlass(const Event *ev)
void SetCorrelationMatrix(const TString &className, TMatrixD *matrix)
void ClearDataSet() const
Class that contains all the data information.
Class that contains all the data information.
ostringstream derivative to redirect and format output
Class for type info of MVA input variable.
Mother of all ROOT objects.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
const char * Data() const
A TTree represents a columnar dataset.
create variable transformations