00001 // @(#)root/tmva $Id: ResultsClassification.cxx 35727 2010-09-24 21:41:20Z stelzer $ 00002 // Author: Andreas Hoecker, Peter Speckmayer, Joerg Stelzer, Helge Voss 00003 00004 /********************************************************************************** 00005 * Project: TMVA - a Root-integrated toolkit for multivariate data analysis * 00006 * Package: TMVA * 00007 * Class : ResultsClassification * 00008 * Web : http://tmva.sourceforge.net * 00009 * * 00010 * Description: * 00011 * Implementation (see header for description) * 00012 * * 00013 * Authors (alphabetical): * 00014 * Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland * 00015 * Peter Speckmayer <Peter.Speckmayer@cern.ch> - CERN, Switzerland * 00016 * Joerg Stelzer <Joerg.Stelzer@cern.ch> - CERN, Switzerland * 00017 * Helge Voss <Helge.Voss@cern.ch> - MPI-K Heidelberg, Germany * 00018 * * 00019 * Copyright (c) 2006: * 00020 * CERN, Switzerland * 00021 * MPI-K Heidelberg, Germany * 00022 * * 00023 * Redistribution and use in source and binary forms, with or without * 00024 * modification, are permitted according to the terms listed in LICENSE * 00025 * (http://tmva.sourceforge.net/LICENSE) * 00026 **********************************************************************************/ 00027 00028 #include <vector> 00029 00030 #include "TMVA/ResultsClassification.h" 00031 #include "TMVA/MsgLogger.h" 00032 00033 00034 //_______________________________________________________________________ 00035 TMVA::ResultsClassification::ResultsClassification( const DataSetInfo* dsi ) 00036 : Results( dsi ), 00037 fRet(1), 00038 fLogger( new MsgLogger("ResultsClassification", kINFO) ) 00039 { 00040 // constructor 00041 } 00042 00043 //_______________________________________________________________________ 00044 TMVA::ResultsClassification::~ResultsClassification() 00045 { 00046 // destructor 00047 delete fLogger; 00048 } 00049 00050 //_______________________________________________________________________ 00051 void TMVA::ResultsClassification::SetValue( Float_t value, Int_t ievt ) 00052 { 00053 // set MVA response 00054 if (ievt >= (Int_t)fMvaValues.size()) fMvaValues.resize( ievt+1 ); 00055 fMvaValues[ievt] = value; 00056 } 00057 00058 00059