Logo ROOT  
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/*! \class TMVA::ResultsClassification
29\ingroup TMVA
30Class that is the base-class for a vector of result
31*/
32
34
35#include "TMVA/MsgLogger.h"
36#include "TMVA/Results.h"
37#include "TMVA/Types.h"
38
39#include "TString.h"
40
41#include <vector>
42
43namespace TMVA {
44 class DataSetInfo;
45}
46
47
48////////////////////////////////////////////////////////////////////////////////
49/// constructor
50
52 : Results( dsi,resultsName ),
53 fRet(1),
54 fLogger( new MsgLogger(Form("ResultsClassification%s",resultsName.Data()) , kINFO) )
55{
56}
57
58////////////////////////////////////////////////////////////////////////////////
59/// destructor
60
62{
63 delete fLogger;
64}
65
66////////////////////////////////////////////////////////////////////////////////
67/// set MVA response
68
70{
71 assert(ievt < (int) fMvaValues.size() && ievt < (int) fMvaValuesTypes.size());
72 fMvaValues[ievt] = value;
73 fMvaValuesTypes[ievt] = type;
74}
float Float_t
Definition: RtypesCore.h:57
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
Definition: TString.cxx:2447
Class that contains all the data information.
Definition: DataSetInfo.h:62
ostringstream derivative to redirect and format output
Definition: MsgLogger.h:57
ResultsClassification(const DataSetInfo *dsi, TString resultsName)
constructor
void SetValue(Float_t value, Int_t ievt, Bool_t type)
set MVA response
Class that is the base-class for a vector of result.
Definition: Results.h:57
Basic string class.
Definition: TString.h:136
create variable transformations