ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ClassInfo.h
Go to the documentation of this file.
1 // @(#)root/tmva $Id$
2 // Author: Andreas Hoecker, Joerg Stelzer, Helge Voss
3 
4 /**********************************************************************************
5  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6  * Package: TMVA *
7  * Class : ClassInfo *
8  * Web : http://tmva.sourceforge.net *
9  * *
10  * Description: *
11  * Contains all the data information *
12  * *
13  * Authors (alphabetical): *
14  * Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland *
15  * Peter Speckmayer <Peter.Speckmayer@cern.ch> - CERN, Switzerland *
16  * Joerg Stelzer <Joerg.Stelzer@cern.ch> - CERN, Switzerland *
17  * Helge Voss <Helge.Voss@cern.ch> - MPI-K Heidelberg, Germany *
18  * *
19  * Copyright (c) 2006: *
20  * CERN, Switzerland *
21  * U. of Victoria, Canada *
22  * MPI-K Heidelberg, Germany *
23  * *
24  * Redistribution and use in source and binary forms, with or without *
25  * modification, are permitted according to the terms listed in LICENSE *
26  * (http://tmva.sourceforge.net/LICENSE) *
27  **********************************************************************************/
28 
29 #ifndef ROOT_TMVA_ClassInfo
30 #define ROOT_TMVA_ClassInfo
31 
32 //////////////////////////////////////////////////////////////////////////
33 // //
34 // ClassInfo //
35 // //
36 // Class that contains all the information of a class //
37 // //
38 //////////////////////////////////////////////////////////////////////////
39 
40 #ifndef ROOT_Rtypes
41 #include "Rtypes.h"
42 #endif
43 #ifndef ROOT_TString
44 #include "TString.h"
45 #endif
46 #ifndef ROOT_TCut
47 #include "TCut.h"
48 #endif
49 #ifndef ROOT_TMatrixDfwd
50 #include "TMatrixDfwd.h"
51 #endif
52 
53 namespace TMVA {
54 
55  class MsgLogger;
56 
57  class ClassInfo {
58 
59  public:
60 
61  ClassInfo( const TString& name = "default" );
62  ~ClassInfo();
63 
64  // setters
65  void SetName ( const TString& name ) { fName = name; }
66  void SetWeight( const TString& weight ) { fWeight = weight; }
67  void SetCut ( const TCut& cut ) { fCut = cut; }
68  void SetNumber( const UInt_t index ) { fNumber = index; }
69  void SetCorrelationMatrix( TMatrixD *matrix ) { fCorrMatrix = matrix; }
70 
71  // getters
72  const TString& GetName() const { return fName; }
73  const TString& GetWeight() const { return fWeight; }
74  const TCut& GetCut() const { return fCut; }
75  UInt_t GetNumber() const { return fNumber; }
76  const TMatrixD* GetCorrelationMatrix() const { return fCorrMatrix; }
77 
78  private:
79 
80  TString fName; //! name of the class
81  TString fWeight; //! the input formula string that is the weight for the class
82  TCut fCut; //! pretraining cut for the class
83  UInt_t fNumber; //! index in of this class in vectors
84 
85  TMatrixD* fCorrMatrix; //! Correlation matrix for this class
86 
87  mutable MsgLogger* fLogger; // message logger
88  MsgLogger& Log() const { return *fLogger; }
89  };
90 }
91 
92 #endif
MsgLogger * fLogger
Correlation matrix for this class.
Definition: ClassInfo.h:87
TString fName
Definition: ClassInfo.h:80
Basic string class.
Definition: TString.h:137
const TString & GetWeight() const
Definition: ClassInfo.h:73
void SetWeight(const TString &weight)
Definition: ClassInfo.h:66
TMatrixD * fCorrMatrix
index in of this class in vectors
Definition: ClassInfo.h:85
MsgLogger & Log() const
Definition: ClassInfo.h:88
A specialized string object used for TTree selections.
Definition: TCut.h:27
void SetCorrelationMatrix(TMatrixD *matrix)
Definition: ClassInfo.h:69
UInt_t fNumber
pretraining cut for the class
Definition: ClassInfo.h:83
const TMatrixD * GetCorrelationMatrix() const
Definition: ClassInfo.h:76
unsigned int UInt_t
Definition: RtypesCore.h:42
const TString & GetName() const
Definition: ClassInfo.h:72
TCut fCut
the input formula string that is the weight for the class
Definition: ClassInfo.h:82
const TCut & GetCut() const
Definition: ClassInfo.h:74
TString fWeight
name of the class
Definition: ClassInfo.h:81
void SetCut(const TCut &cut)
Definition: ClassInfo.h:67
#define name(a, b)
Definition: linkTestLib0.cpp:5
void SetName(const TString &name)
Definition: ClassInfo.h:65
void SetNumber(const UInt_t index)
Definition: ClassInfo.h:68
UInt_t GetNumber() const
Definition: ClassInfo.h:75
ClassInfo(const TString &name="default")
constructor
Definition: ClassInfo.cxx:46
~ClassInfo()
destructor
Definition: ClassInfo.cxx:59