ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ResultsClassification.cxx
Go to the documentation of this file.
1 // @(#)root/tmva $Id$
2 // Author: Andreas Hoecker, Peter Speckmayer, Joerg Stelzer, Helge Voss
3 
4 /**********************************************************************************
5  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6  * Package: TMVA *
7  * Class : ResultsClassification *
8  * Web : http://tmva.sourceforge.net *
9  * *
10  * Description: *
11  * Implementation (see header for description) *
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  * MPI-K Heidelberg, Germany *
22  * *
23  * Redistribution and use in source and binary forms, with or without *
24  * modification, are permitted according to the terms listed in LICENSE *
25  * (http://tmva.sourceforge.net/LICENSE) *
26  **********************************************************************************/
27 
29 
30 #include "TMVA/MsgLogger.h"
31 #include "TMVA/Types.h"
32 
33 #include "TString.h"
34 
35 #include <vector>
36 
37 namespace TMVA {
38  class DataSetInfo;
39 }
40 ////////////////////////////////////////////////////////////////////////////////
41 /// constructor
42 
44  : Results( dsi,resultsName ),
45  fRet(1),
46  fLogger( new MsgLogger(Form("ResultsClassification%s",resultsName.Data()) , kINFO) )
47 {
48 }
49 
50 ////////////////////////////////////////////////////////////////////////////////
51 /// destructor
52 
54 {
55  delete fLogger;
56 }
57 
58 ////////////////////////////////////////////////////////////////////////////////
59 /// set MVA response
60 
62 {
63  if (ievt >= (Int_t)fMvaValues.size()) fMvaValues.resize( ievt+1 );
64  fMvaValues[ievt] = value;
65 }
66 
67 
68 
float Float_t
Definition: RtypesCore.h:53
Basic string class.
Definition: TString.h:137
int Int_t
Definition: RtypesCore.h:41
std::vector< std::vector< double > > Data
void SetValue(Float_t value, Int_t ievt)
set MVA response
char * Form(const char *fmt,...)
ResultsClassification(const DataSetInfo *dsi, TString resultsName)
constructor
float value
Definition: math.cpp:443