// @(#)root/tmva $Id$
// Author: Andreas Hoecker, Joerg Stelzer, Helge Voss

/**********************************************************************************
 * Project: TMVA - a Root-integrated toolkit for multivariate data analysis       *
 * Package: TMVA                                                                  *
 * Class  : ClassInfo                                                             *
 * Web    : http://tmva.sourceforge.net                                           *
 *                                                                                *
 * Description:                                                                   *
 *      Contains all the data information                                         *
 *                                                                                *
 * Authors (alphabetical):                                                        *
 *      Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland              *
 *      Peter Speckmayer <Peter.Speckmayer@cern.ch>  - CERN, Switzerland          *
 *      Joerg Stelzer   <Joerg.Stelzer@cern.ch>  - CERN, Switzerland              *
 *      Helge Voss      <Helge.Voss@cern.ch>     - MPI-K Heidelberg, Germany      *
 *                                                                                *
 * Copyright (c) 2006:                                                            *
 *      CERN, Switzerland                                                         *
 *      U. of Victoria, Canada                                                    *
 *      MPI-K Heidelberg, Germany                                                 *
 *                                                                                *
 * Redistribution and use in source and binary forms, with or without             *
 * modification, are permitted according to the terms listed in LICENSE           *
 * (http://tmva.sourceforge.net/LICENSE)                                          *
 **********************************************************************************/

#ifndef ROOT_TMVA_ClassInfo
#define ROOT_TMVA_ClassInfo

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// ClassInfo                                                            //
//                                                                      //
// Class that contains all the information of a class                   //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_Rtypes
#include "Rtypes.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
#ifndef ROOT_TCut
#include "TCut.h"
#endif
#ifndef ROOT_TMatrixDfwd
#include "TMatrixDfwd.h"
#endif

namespace TMVA {
   
   class MsgLogger;

   class ClassInfo :public TNamed{

   public:
      
      ClassInfo( const TString& name = "default" );
      ~ClassInfo();

      // setters
      void               SetWeight( const TString& weight ) { fWeight = weight; }
      void               SetCut   ( const TCut&    cut    ) { fCut = cut; }
      void               SetNumber( const UInt_t   index  ) { fNumber = index; }
      void               SetCorrelationMatrix( TMatrixD *matrix ) { fCorrMatrix = matrix; }

      // getters
      const TString&     GetWeight()            const { return fWeight; }
      const TCut&        GetCut()               const { return fCut; }
      UInt_t             GetNumber()            const { return fNumber; }
      const TMatrixD*    GetCorrelationMatrix() const { return fCorrMatrix; }

   private:

      TString            fWeight;           // the input formula string that is the weight for the class
      TCut               fCut;              // pretraining cut for the class
      UInt_t             fNumber;           // index in of this class in vectors

      TMatrixD*          fCorrMatrix;       // Correlation matrix for this class

      mutable MsgLogger* fLogger;           //! message logger
      MsgLogger& Log() const { return *fLogger; }
   public:
       
       ClassDef(ClassInfo,1);
      
   };
}

#endif
 ClassInfo.h:1
 ClassInfo.h:2
 ClassInfo.h:3
 ClassInfo.h:4
 ClassInfo.h:5
 ClassInfo.h:6
 ClassInfo.h:7
 ClassInfo.h:8
 ClassInfo.h:9
 ClassInfo.h:10
 ClassInfo.h:11
 ClassInfo.h:12
 ClassInfo.h:13
 ClassInfo.h:14
 ClassInfo.h:15
 ClassInfo.h:16
 ClassInfo.h:17
 ClassInfo.h:18
 ClassInfo.h:19
 ClassInfo.h:20
 ClassInfo.h:21
 ClassInfo.h:22
 ClassInfo.h:23
 ClassInfo.h:24
 ClassInfo.h:25
 ClassInfo.h:26
 ClassInfo.h:27
 ClassInfo.h:28
 ClassInfo.h:29
 ClassInfo.h:30
 ClassInfo.h:31
 ClassInfo.h:32
 ClassInfo.h:33
 ClassInfo.h:34
 ClassInfo.h:35
 ClassInfo.h:36
 ClassInfo.h:37
 ClassInfo.h:38
 ClassInfo.h:39
 ClassInfo.h:40
 ClassInfo.h:41
 ClassInfo.h:42
 ClassInfo.h:43
 ClassInfo.h:44
 ClassInfo.h:45
 ClassInfo.h:46
 ClassInfo.h:47
 ClassInfo.h:48
 ClassInfo.h:49
 ClassInfo.h:50
 ClassInfo.h:51
 ClassInfo.h:52
 ClassInfo.h:53
 ClassInfo.h:54
 ClassInfo.h:55
 ClassInfo.h:56
 ClassInfo.h:57
 ClassInfo.h:58
 ClassInfo.h:59
 ClassInfo.h:60
 ClassInfo.h:61
 ClassInfo.h:62
 ClassInfo.h:63
 ClassInfo.h:64
 ClassInfo.h:65
 ClassInfo.h:66
 ClassInfo.h:67
 ClassInfo.h:68
 ClassInfo.h:69
 ClassInfo.h:70
 ClassInfo.h:71
 ClassInfo.h:72
 ClassInfo.h:73
 ClassInfo.h:74
 ClassInfo.h:75
 ClassInfo.h:76
 ClassInfo.h:77
 ClassInfo.h:78
 ClassInfo.h:79
 ClassInfo.h:80
 ClassInfo.h:81
 ClassInfo.h:82
 ClassInfo.h:83
 ClassInfo.h:84
 ClassInfo.h:85
 ClassInfo.h:86
 ClassInfo.h:87
 ClassInfo.h:88
 ClassInfo.h:89
 ClassInfo.h:90
 ClassInfo.h:91
 ClassInfo.h:92
 ClassInfo.h:93