Class that contains all the data information.
Definition at line 62 of file DataSetInfo.h.
Public Types | |
enum | { kIsArrayVariable = BIT(15) } |
Public Types inherited from TObject | |
enum | { kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 , kBitMask = 0x00ffffff } |
enum | { kSingleKey = BIT(0) , kOverwrite = BIT(1) , kWriteDelete = BIT(2) } |
enum | EDeprecatedStatusBits { kObjInCanvas = BIT(3) } |
enum | EStatusBits { kCanDelete = BIT(0) , kMustCleanup = BIT(3) , kIsReferenced = BIT(4) , kHasUUID = BIT(5) , kCannotPick = BIT(6) , kNoContextMenu = BIT(8) , kInvalidObject = BIT(13) } |
Public Member Functions | |
DataSetInfo (const TString &name="Default") | |
constructor | |
virtual | ~DataSetInfo () |
destructor | |
ClassInfo * | AddClass (const TString &className) |
void | AddCut (const TCut &cut, const TString &className) |
set the cut for the classes | |
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 analysis | |
VariableInfo & | AddSpectator (const VariableInfo &varInfo) |
add spectator with given VariableInfo | |
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 | |
VariableInfo & | AddTarget (const VariableInfo &varInfo) |
add target with given VariableInfo | |
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 | |
VariableInfo & | AddVariable (const VariableInfo &varInfo) |
add variable with given VariableInfo | |
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 | |
void | ClearDataSet () const |
const TMatrixD * | CorrelationMatrix (const TString &className) const |
TH2 * | CreateCorrelationMatrixHist (const TMatrixD *m, const TString &hName, const TString &hTitle) const |
Int_t | FindVarIndex (const TString &) const |
find variable by name | |
ClassInfo * | GetClassInfo (const TString &name) const |
ClassInfo * | GetClassInfo (Int_t clNum) const |
Int_t | GetClassNameMaxLength () const |
const TCut & | GetCut (const TString &className) const |
const TCut & | GetCut (Int_t i) const |
DataSet * | GetDataSet () const |
returns data set | |
DataSetManager * | GetDataSetManager () |
std::vector< TString > | GetListOfVariables () const |
returns list of variables | |
virtual const char * | GetName () const |
Returns name of object. | |
UInt_t | GetNClasses () const |
const TString & | GetNormalization () const |
UInt_t | GetNSpectators (bool all=kTRUE) const |
UInt_t | GetNTargets () const |
UInt_t | GetNVariables () const |
TDirectory * | GetRootDir () const |
UInt_t | GetSignalClassIndex () |
VariableInfo & | GetSpectatorInfo (Int_t i) |
const VariableInfo & | GetSpectatorInfo (Int_t i) const |
std::vector< VariableInfo > & | GetSpectatorInfos () |
const std::vector< VariableInfo > & | GetSpectatorInfos () const |
const TString & | GetSplitOptions () const |
VariableInfo & | GetTargetInfo (Int_t i) |
const VariableInfo & | GetTargetInfo (Int_t i) const |
std::vector< VariableInfo > & | GetTargetInfos () |
const std::vector< VariableInfo > & | GetTargetInfos () const |
Int_t | GetTargetNameMaxLength () const |
std::vector< Float_t > * | GetTargetsForMulticlass (const Event *ev) |
Double_t | GetTestingSumBackgrWeights () |
Double_t | GetTestingSumSignalWeights () |
Double_t | GetTrainingSumBackgrWeights () |
Double_t | GetTrainingSumSignalWeights () |
Int_t | GetVarArraySize (const TString &expression) const |
VariableInfo & | GetVariableInfo (Int_t i) |
const VariableInfo & | GetVariableInfo (Int_t i) const |
std::vector< VariableInfo > & | GetVariableInfos () |
const std::vector< VariableInfo > & | GetVariableInfos () const |
Int_t | GetVariableNameMaxLength () const |
const TString | GetWeightExpression (Int_t i) const |
Bool_t | HasCuts () const |
Bool_t | IsSignal (const Event *ev) const |
Bool_t | IsVariableFromArray (Int_t i) const |
void | PrintClasses () const |
void | PrintCorrelationMatrix (const TString &className) |
calculates the correlation matrices for signal and background, prints them to standard output, and fills 2D histograms | |
void | SetCorrelationMatrix (const TString &className, TMatrixD *matrix) |
void | SetCut (const TCut &cut, const TString &className) |
set the cut for the classes | |
void | SetMsgType (EMsgType t) const |
void | SetNormalization (const TString &norm) |
void | SetRootDir (TDirectory *d) |
void | SetSplitOptions (const TString &so) |
void | SetTestingSumBackgrWeights (Double_t testingSumBackgrWeights) |
void | SetTestingSumSignalWeights (Double_t testingSumSignalWeights) |
void | SetTrainingSumBackgrWeights (Double_t trainingSumBackgrWeights) |
void | SetTrainingSumSignalWeights (Double_t trainingSumSignalWeights) |
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 class name is unknown, register new class with this name | |
Public Member Functions inherited from TObject | |
TObject () | |
TObject constructor. | |
TObject (const TObject &object) | |
TObject copy ctor. | |
virtual | ~TObject () |
TObject destructor. | |
void | AbstractMethod (const char *method) const |
Use this method to implement an "abstract" method that you don't want to leave purely abstract. | |
virtual void | AppendPad (Option_t *option="") |
Append graphics object to current pad. | |
virtual void | Browse (TBrowser *b) |
Browse object. May be overridden for another default action. | |
ULong_t | CheckedHash () |
Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. | |
virtual const char * | ClassName () const |
Returns name of class to which the object belongs. | |
virtual void | Clear (Option_t *="") |
virtual TObject * | Clone (const char *newname="") const |
Make a clone of an object using the Streamer facility. | |
virtual Int_t | Compare (const TObject *obj) const |
Compare abstract method. | |
virtual void | Copy (TObject &object) const |
Copy this to obj. | |
virtual void | Delete (Option_t *option="") |
Delete this object. | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Computes distance from point (px,py) to the object. | |
virtual void | Draw (Option_t *option="") |
Default Draw method for all objects. | |
virtual void | DrawClass () const |
Draw class inheritance tree of the class to which this object belongs. | |
virtual TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad) . | |
virtual void | Dump () const |
Dump contents of object on stdout. | |
virtual void | Error (const char *method, const char *msgfmt,...) const |
Issue error message. | |
virtual void | Execute (const char *method, const char *params, Int_t *error=0) |
Execute method on this object with the given parameter string, e.g. | |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=0) |
Execute method on this object with parameters stored in the TObjArray. | |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to an event at (px,py). | |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
Issue fatal error message. | |
virtual TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. | |
virtual const char * | GetIconName () const |
Returns mime type name of object. | |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). | |
virtual Option_t * | GetOption () const |
virtual const char * | GetTitle () const |
Returns title of object. | |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. | |
virtual Bool_t | HandleTimer (TTimer *timer) |
Execute action in response of a timer timing out. | |
virtual ULong_t | Hash () const |
Return hash value for this object. | |
Bool_t | HasInconsistentHash () const |
Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. | |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. | |
virtual Bool_t | InheritsFrom (const char *classname) const |
Returns kTRUE if object inherits from class "classname". | |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
Returns kTRUE if object inherits from TClass cl. | |
virtual void | Inspect () const |
Dump contents of this object in a graphics canvas. | |
void | InvertBit (UInt_t f) |
virtual Bool_t | IsEqual (const TObject *obj) const |
Default equal comparison (objects are equal if they have the same address in memory). | |
virtual Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). | |
R__ALWAYS_INLINE Bool_t | IsOnHeap () const |
virtual Bool_t | IsSortable () const |
R__ALWAYS_INLINE Bool_t | IsZombie () const |
virtual void | ls (Option_t *option="") const |
The ls function lists the contents of a class on stdout. | |
void | MayNotUse (const char *method) const |
Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). | |
virtual Bool_t | Notify () |
This method must be overridden to handle object notification. | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. | |
void | operator delete (void *ptr) |
Operator delete. | |
void | operator delete[] (void *ptr) |
Operator delete []. | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, void *vp) |
TObject & | operator= (const TObject &rhs) |
TObject assignment operator. | |
virtual void | Paint (Option_t *option="") |
This method must be overridden if a class wants to paint itself. | |
virtual void | Pop () |
Pop on object drawn in a pad to the top of the display list. | |
virtual void | Print (Option_t *option="") const |
This method must be overridden when a class wants to print itself. | |
virtual Int_t | Read (const char *name) |
Read contents of object with specified name from the current directory. | |
virtual void | RecursiveRemove (TObject *obj) |
Recursively remove this object from a list. | |
void | ResetBit (UInt_t f) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
Save this object in the file specified by filename. | |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
Save a primitive as a C++ statement(s) on output stream "out". | |
void | SetBit (UInt_t f) |
void | SetBit (UInt_t f, Bool_t set) |
Set or unset the user status bits as specified in f. | |
virtual void | SetDrawOption (Option_t *option="") |
Set drawing option for object. | |
virtual void | SetUniqueID (UInt_t uid) |
Set the unique object id. | |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. | |
R__ALWAYS_INLINE Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
virtual void | UseCurrentStyle () |
Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. | |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) |
Write this object to the current directory. | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const |
Write this object to the current directory. | |
Private Member Functions | |
DataSetInfo (const DataSetInfo &) | |
MsgLogger & | Log () const |
message logger | |
void | PrintCorrelationMatrix (TTree *theTree) |
void | SetDataSetManager (DataSetManager *dsm) |
Private Attributes | |
std::vector< ClassInfo * > | fClasses |
DataSet * | fDataSet |
TMVA::DataSetManager * | fDataSetManager |
MsgLogger * | fLogger |
TString | fName |
Bool_t | fNeedsRebuilding |
TString | fNormalization |
TDirectory * | fOwnRootDir |
UInt_t | fSignalClass |
std::vector< VariableInfo > | fSpectators |
TString | fSplitOptions |
std::vector< VariableInfo > | fTargets |
std::vector< Float_t > * | fTargetsForMulticlass |
Double_t | fTestingSumBackgrWeights |
Double_t | fTestingSumSignalWeights |
Double_t | fTrainingSumBackgrWeights |
Double_t | fTrainingSumSignalWeights |
std::map< TString, int > | fVarArrays |
std::vector< VariableInfo > | fVariables |
Bool_t | fVerbose |
Friends | |
class | DataSetManager |
Additional Inherited Members | |
Static Public Member Functions inherited from TObject | |
static Long_t | GetDtorOnly () |
Return destructor only flag. | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. | |
static void | SetDtorOnly (void *obj) |
Set destructor only flag. | |
static void | SetObjectStat (Bool_t stat) |
Turn on/off tracking of objects in the TObjectTable. | |
Protected Types inherited from TObject | |
enum | { kOnlyPrepStep = BIT(3) } |
Protected Member Functions inherited from TObject | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
Interface to ErrorHandler (protected). | |
void | MakeZombie () |
#include <TMVA/DataSetInfo.h>
anonymous enum |
Enumerator | |
---|---|
kIsArrayVariable |
Definition at line 66 of file DataSetInfo.h.
TMVA::DataSetInfo::DataSetInfo | ( | const TString & | name = "Default" | ) |
constructor
Definition at line 56 of file DataSetInfo.cxx.
|
virtual |
destructor
Definition at line 83 of file DataSetInfo.cxx.
|
inlineprivate |
Definition at line 201 of file DataSetInfo.h.
TMVA::ClassInfo * TMVA::DataSetInfo::AddClass | ( | const TString & | className | ) |
Definition at line 113 of file DataSetInfo.cxx.
set the cut for the classes
Definition at line 376 of file DataSetInfo.cxx.
TMVA::VariableInfo & TMVA::DataSetInfo::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 analysis
Definition at line 289 of file DataSetInfo.cxx.
TMVA::VariableInfo & TMVA::DataSetInfo::AddSpectator | ( | const VariableInfo & | varInfo | ) |
add spectator with given VariableInfo
Definition at line 306 of file DataSetInfo.cxx.
TMVA::VariableInfo & TMVA::DataSetInfo::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
Definition at line 259 of file DataSetInfo.cxx.
TMVA::VariableInfo & TMVA::DataSetInfo::AddTarget | ( | const VariableInfo & | varInfo | ) |
add target with given VariableInfo
Definition at line 279 of file DataSetInfo.cxx.
TMVA::VariableInfo & TMVA::DataSetInfo::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
Definition at line 207 of file DataSetInfo.cxx.
TMVA::VariableInfo & TMVA::DataSetInfo::AddVariable | ( | const VariableInfo & | varInfo | ) |
add variable with given VariableInfo
Definition at line 226 of file DataSetInfo.cxx.
void TMVA::DataSetInfo::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
Definition at line 235 of file DataSetInfo.cxx.
void TMVA::DataSetInfo::ClearDataSet | ( | ) | const |
Definition at line 98 of file DataSetInfo.cxx.
Definition at line 197 of file DataSetInfo.cxx.
TH2 * TMVA::DataSetInfo::CreateCorrelationMatrixHist | ( | const TMatrixD * | m, |
const TString & | hName, | ||
const TString & | hTitle | ||
) | const |
Definition at line 416 of file DataSetInfo.cxx.
find variable by name
Definition at line 315 of file DataSetInfo.cxx.
TMVA::ClassInfo * TMVA::DataSetInfo::GetClassInfo | ( | const TString & | name | ) | const |
Definition at line 136 of file DataSetInfo.cxx.
TMVA::ClassInfo * TMVA::DataSetInfo::GetClassInfo | ( | Int_t | clNum | ) | const |
Definition at line 146 of file DataSetInfo.cxx.
Int_t TMVA::DataSetInfo::GetClassNameMaxLength | ( | ) | const |
Definition at line 509 of file DataSetInfo.cxx.
Definition at line 169 of file DataSetInfo.h.
Definition at line 168 of file DataSetInfo.h.
TMVA::DataSet * TMVA::DataSetInfo::GetDataSet | ( | ) | const |
returns data set
Definition at line 480 of file DataSetInfo.cxx.
|
inline |
Definition at line 194 of file DataSetInfo.h.
std::vector< TString > TMVA::DataSetInfo::GetListOfVariables | ( | ) | const |
returns list of variables
Definition at line 393 of file DataSetInfo.cxx.
|
inlinevirtual |
Returns name of object.
This default method returns the class name. Classes that give objects a name should override this method.
Reimplemented from TObject.
Definition at line 71 of file DataSetInfo.h.
|
inline |
Definition at line 155 of file DataSetInfo.h.
|
inline |
Definition at line 131 of file DataSetInfo.h.
Definition at line 496 of file DataSetInfo.cxx.
|
inline |
Definition at line 128 of file DataSetInfo.h.
|
inline |
Definition at line 127 of file DataSetInfo.h.
|
inline |
Definition at line 190 of file DataSetInfo.h.
|
inline |
Definition at line 158 of file DataSetInfo.h.
|
inline |
Definition at line 124 of file DataSetInfo.h.
|
inline |
Definition at line 125 of file DataSetInfo.h.
|
inline |
Definition at line 122 of file DataSetInfo.h.
|
inline |
Definition at line 123 of file DataSetInfo.h.
|
inline |
Definition at line 186 of file DataSetInfo.h.
|
inline |
Definition at line 119 of file DataSetInfo.h.
|
inline |
Definition at line 120 of file DataSetInfo.h.
|
inline |
Definition at line 114 of file DataSetInfo.h.
|
inline |
Definition at line 118 of file DataSetInfo.h.
Int_t TMVA::DataSetInfo::GetTargetNameMaxLength | ( | ) | const |
Definition at line 533 of file DataSetInfo.cxx.
Definition at line 174 of file DataSetInfo.cxx.
Double_t TMVA::DataSetInfo::GetTestingSumBackgrWeights | ( | ) |
Definition at line 566 of file DataSetInfo.cxx.
Double_t TMVA::DataSetInfo::GetTestingSumSignalWeights | ( | ) |
Definition at line 559 of file DataSetInfo.cxx.
Double_t TMVA::DataSetInfo::GetTrainingSumBackgrWeights | ( | ) |
Definition at line 552 of file DataSetInfo.cxx.
Double_t TMVA::DataSetInfo::GetTrainingSumSignalWeights | ( | ) |
Definition at line 545 of file DataSetInfo.cxx.
Definition at line 108 of file DataSetInfo.h.
|
inline |
Definition at line 105 of file DataSetInfo.h.
|
inline |
Definition at line 106 of file DataSetInfo.h.
|
inline |
Definition at line 103 of file DataSetInfo.h.
|
inline |
Definition at line 104 of file DataSetInfo.h.
Int_t TMVA::DataSetInfo::GetVariableNameMaxLength | ( | ) | const |
Definition at line 521 of file DataSetInfo.cxx.
Definition at line 164 of file DataSetInfo.h.
Bool_t TMVA::DataSetInfo::HasCuts | ( | ) | const |
Definition at line 186 of file DataSetInfo.cxx.
Definition at line 167 of file DataSetInfo.cxx.
Definition at line 112 of file DataSetInfo.h.
|
inlineprivate |
message logger
Definition at line 239 of file DataSetInfo.h.
void TMVA::DataSetInfo::PrintClasses | ( | ) | const |
Definition at line 158 of file DataSetInfo.cxx.
calculates the correlation matrices for signal and background, prints them to standard output, and fills 2D histograms
Definition at line 406 of file DataSetInfo.cxx.
Definition at line 352 of file DataSetInfo.cxx.
set the cut for the classes
Definition at line 360 of file DataSetInfo.cxx.
|
inlineprivate |
Definition at line 198 of file DataSetInfo.h.
void TMVA::DataSetInfo::SetMsgType | ( | EMsgType | t | ) | const |
Definition at line 106 of file DataSetInfo.cxx.
Definition at line 132 of file DataSetInfo.h.
|
inline |
Definition at line 189 of file DataSetInfo.h.
Definition at line 185 of file DataSetInfo.h.
Definition at line 139 of file DataSetInfo.h.
Definition at line 138 of file DataSetInfo.h.
Definition at line 137 of file DataSetInfo.h.
Definition at line 134 of file DataSetInfo.h.
set the weight expressions for the classes if class name is specified, set only for this class if class name is unknown, register new class with this name
Definition at line 333 of file DataSetInfo.cxx.
|
friend |
Definition at line 199 of file DataSetInfo.h.
|
mutableprivate |
Definition at line 219 of file DataSetInfo.h.
|
mutableprivate |
Definition at line 207 of file DataSetInfo.h.
|
private |
Definition at line 197 of file DataSetInfo.h.
|
mutableprivate |
Definition at line 238 of file DataSetInfo.h.
|
private |
Definition at line 205 of file DataSetInfo.h.
|
mutableprivate |
Definition at line 208 of file DataSetInfo.h.
|
private |
Definition at line 221 of file DataSetInfo.h.
|
private |
Definition at line 231 of file DataSetInfo.h.
|
private |
Definition at line 234 of file DataSetInfo.h.
|
private |
Definition at line 213 of file DataSetInfo.h.
|
private |
Definition at line 222 of file DataSetInfo.h.
|
private |
Definition at line 212 of file DataSetInfo.h.
|
private |
Definition at line 236 of file DataSetInfo.h.
|
private |
Definition at line 227 of file DataSetInfo.h.
|
private |
Definition at line 226 of file DataSetInfo.h.
|
private |
Definition at line 225 of file DataSetInfo.h.
|
private |
Definition at line 224 of file DataSetInfo.h.
Definition at line 216 of file DataSetInfo.h.
|
private |
Definition at line 211 of file DataSetInfo.h.
|
private |
Definition at line 232 of file DataSetInfo.h.