Logo ROOT   6.08/07
Reference Guide
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 :public TNamed{
58 
59  public:
60 
61  ClassInfo( const TString& name = "default" );
62  ~ClassInfo();
63 
64  // setters
65  void SetWeight( const TString& weight ) { fWeight = weight; }
66  void SetCut ( const TCut& cut ) { fCut = cut; }
67  void SetNumber( const UInt_t index ) { fNumber = index; }
68  void SetCorrelationMatrix( TMatrixD *matrix ) { fCorrMatrix = matrix; }
69 
70  // getters
71  const TString& GetWeight() const { return fWeight; }
72  const TCut& GetCut() const { return fCut; }
73  UInt_t GetNumber() const { return fNumber; }
74  const TMatrixD* GetCorrelationMatrix() const { return fCorrMatrix; }
75 
76  private:
77 
78  TString fWeight; // the input formula string that is the weight for the class
79  TCut fCut; // pretraining cut for the class
80  UInt_t fNumber; // index in of this class in vectors
81 
82  TMatrixD* fCorrMatrix; // Correlation matrix for this class
83 
84  mutable MsgLogger* fLogger; //! message logger
85  MsgLogger& Log() const { return *fLogger; }
86  public:
87 
89 
90  };
91 }
92 
93 #endif
MsgLogger * fLogger
Definition: ClassInfo.h:84
Basic string class.
Definition: TString.h:137
#define ClassDef(name, id)
Definition: Rtypes.h:254
void SetWeight(const TString &weight)
Definition: ClassInfo.h:65
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:33
MsgLogger & Log() const
message logger
Definition: ClassInfo.h:85
TMatrixD * fCorrMatrix
Definition: ClassInfo.h:82
A specialized string object used for TTree selections.
Definition: TCut.h:27
void SetCorrelationMatrix(TMatrixD *matrix)
Definition: ClassInfo.h:68
UInt_t fNumber
Definition: ClassInfo.h:80
unsigned int UInt_t
Definition: RtypesCore.h:42
TString fWeight
Definition: ClassInfo.h:78
const TMatrixD * GetCorrelationMatrix() const
Definition: ClassInfo.h:74
void SetCut(const TCut &cut)
Definition: ClassInfo.h:66
UInt_t GetNumber() const
Definition: ClassInfo.h:73
Abstract ClassifierFactory template that handles arbitrary types.
const TCut & GetCut() const
Definition: ClassInfo.h:72
void SetNumber(const UInt_t index)
Definition: ClassInfo.h:67
const TString & GetWeight() const
Definition: ClassInfo.h:71
ClassInfo(const TString &name="default")
constructor
Definition: ClassInfo.cxx:45
char name[80]
Definition: TGX11.cxx:109
~ClassInfo()
destructor
Definition: ClassInfo.cxx:58