Logo ROOT   6.08/07
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 
29 
30 #include "TMVA/MsgLogger.h"
31 #include "TMVA/Results.h"
32 #include "TMVA/Types.h"
33 
34 #include "TString.h"
35 
36 #include <vector>
37 
38 namespace TMVA {
39  class DataSetInfo;
40 }
41 
42 
43 ////////////////////////////////////////////////////////////////////////////////
44 /// constructor
45 
47  : Results( dsi,resultsName ),
48  fRet(1),
49  fLogger( new MsgLogger(Form("ResultsClassification%s",resultsName.Data()) , kINFO) )
50 {
51 }
52 
53 ////////////////////////////////////////////////////////////////////////////////
54 /// destructor
55 
57 {
58  delete fLogger;
59 }
60 
61 ////////////////////////////////////////////////////////////////////////////////
62 /// set MVA response
63 
65 {
66  if (ievt >= (Int_t)fMvaValues.size()) fMvaValues.resize( ievt+1 );
67  fMvaValues[ievt] = value;
68 }
69 
70 
71 
float Float_t
Definition: RtypesCore.h:53
std::vector< Float_t > fMvaValues
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,...)
Abstract ClassifierFactory template that handles arbitrary types.
ResultsClassification(const DataSetInfo *dsi, TString resultsName)
constructor