ROOT  6.06/09
Reference Guide
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 
28 #include <vector>
29 
31 #include "TMVA/MsgLogger.h"
32 
33 
34 ////////////////////////////////////////////////////////////////////////////////
35 /// constructor
36 
38  : Results( dsi,resultsName ),
39  fRet(1),
40  fLogger( new MsgLogger(Form("ResultsClassification%s",resultsName.Data()) , kINFO) )
41 {
42 }
43 
44 ////////////////////////////////////////////////////////////////////////////////
45 /// destructor
46 
48 {
49  delete fLogger;
50 }
51 
52 ////////////////////////////////////////////////////////////////////////////////
53 /// set MVA response
54 
56 {
57  if (ievt >= (Int_t)fMvaValues.size()) fMvaValues.resize( ievt+1 );
58  fMvaValues[ievt] = value;
59 }
60 
61 
62 
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