ROOT
6.07/01
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
tmva
tmva
src
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 "
TMVA/ResultsClassification.h
"
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
43
TMVA::ResultsClassification::ResultsClassification
(
const
DataSetInfo
* dsi,
TString
resultsName )
44
:
Results
( dsi,resultsName ),
45
fRet(1),
46
fLogger( new
MsgLogger
(
Form
(
"ResultsClassification%s"
,resultsName.
Data
()) ,
kINFO
) )
47
{
48
}
49
50
////////////////////////////////////////////////////////////////////////////////
51
/// destructor
52
53
TMVA::ResultsClassification::~ResultsClassification
()
54
{
55
delete
fLogger;
56
}
57
58
////////////////////////////////////////////////////////////////////////////////
59
/// set MVA response
60
61
void
TMVA::ResultsClassification::SetValue
(
Float_t
value
,
Int_t
ievt )
62
{
63
if
(ievt >= (
Int_t
)fMvaValues.size()) fMvaValues.resize( ievt+1 );
64
fMvaValues[ievt] =
value
;
65
}
66
67
68
Types.h
Float_t
float Float_t
Definition:
RtypesCore.h:53
ResultsClassification.h
TString
Basic string class.
Definition:
TString.h:137
Int_t
int Int_t
Definition:
RtypesCore.h:41
TMVA::ResultsClassification::~ResultsClassification
~ResultsClassification()
destructor
Definition:
ResultsClassification.cxx:53
Data
std::vector< std::vector< double > > Data
Definition:
ParallelTest.cxx:55
TMVA::DataSetInfo
Definition:
DataSetInfo.h:78
TString.h
TMVA::ResultsClassification::SetValue
void SetValue(Float_t value, Int_t ievt)
set MVA response
Definition:
ResultsClassification.cxx:61
Form
char * Form(const char *fmt,...)
MsgLogger.h
TMVA::MsgLogger
Definition:
MsgLogger.h:63
TMVA::ResultsClassification::ResultsClassification
ResultsClassification(const DataSetInfo *dsi, TString resultsName)
constructor
Definition:
ResultsClassification.cxx:43
TMVA::Results
Definition:
Results.h:63
TMVA::kINFO
Definition:
Types.h:64
value
float value
Definition:
math.cpp:443