Logo ROOT  
Reference Guide
PDEFoamDiscriminant.h
Go to the documentation of this file.
1 // @(#)root/tmva $Id$
2 // Author: Tancredi Carli, Dominik Dannheim, Alexander Voigt
3 
4 /**********************************************************************************
5  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6  * Package: TMVA *
7  * Classes: PDEFoamDiscriminant *
8  * Web : http://tmva.sourceforge.net *
9  * *
10  * Description: *
11  * Concrete PDEFoam sub-class. This foam stores the discriminant D *
12  * = N_sig / (N_bg + N_sig) with every cell, as well as the *
13  * statistical error on the discriminant. *
14  * *
15  * Authors (alphabetical): *
16  * S. Jadach - Institute of Nuclear Physics, Cracow, Poland *
17  * Tancredi Carli - CERN, Switzerland *
18  * Dominik Dannheim - CERN, Switzerland *
19  * Alexander Voigt - TU Dresden, Germany *
20  * *
21  * Copyright (c) 2008, 2010: *
22  * CERN, Switzerland *
23  * MPI-K Heidelberg, Germany *
24  * *
25  * Redistribution and use in source and binary forms, with or without *
26  * modification, are permitted according to the terms listed in LICENSE *
27  * (http://tmva.sourceforge.net/LICENSE) *
28  **********************************************************************************/
29 
30 #ifndef ROOT_TMVA_PDEFoamDiscriminant
31 #define ROOT_TMVA_PDEFoamDiscriminant
32 
33 #include "TMVA/PDEFoam.h"
34 
35 namespace TMVA
36 {
37 
39  {
40 
41  protected:
42  UInt_t fClass; // signal class
43 
44  PDEFoamDiscriminant(const PDEFoamDiscriminant&); // Copy Constructor NOT USED
45 
46  // ---------- Public functions ----------------------------------
47  public:
48  PDEFoamDiscriminant(); // Default constructor (used only by ROOT streamer)
49  PDEFoamDiscriminant(const TString&, UInt_t); // Principal user-defined constructor
50  virtual ~PDEFoamDiscriminant() {} // Default destructor
51 
52  // function to fill created cell with given value
53  virtual void FillFoamCells(const Event* ev, Float_t wt);
54 
55  // function to call after foam is grown
56  virtual void Finalize();
57 
58  // 2-dimensional projection
59  virtual TH2D* Project2(Int_t, Int_t, ECellValue, PDEFoamKernelBase*, UInt_t);
60 
61  // ---------- ROOT class definition
62  ClassDef(PDEFoamDiscriminant, 1) // Tree of PDEFoamCells
63  }; // end of PDEFoamDiscriminant
64 
65 } // namespace TMVA
66 
67 // ---------- Inline functions
68 
69 #endif
TMVA::PDEFoamDiscriminant::Finalize
virtual void Finalize()
Calc discriminator and its error for every cell and save it to the cell.
Definition: PDEFoamDiscriminant.cxx:111
TMVA::PDEFoamDiscriminant::fClass
UInt_t fClass
Definition: PDEFoamDiscriminant.h:42
TMVA::PDEFoamDiscriminant::Project2
virtual TH2D * Project2(Int_t, Int_t, ECellValue, PDEFoamKernelBase *, UInt_t)
Project foam variable idim1 and variable idim2 to histogram.
Definition: PDEFoamDiscriminant.cxx:171
TMVA::PDEFoamKernelBase
This class is the abstract kernel interface for PDEFoam.
Definition: PDEFoamKernelBase.h:41
Float_t
float Float_t
Definition: RtypesCore.h:57
TString
Basic string class.
Definition: TString.h:136
TMVA::PDEFoamDiscriminant::~PDEFoamDiscriminant
virtual ~PDEFoamDiscriminant()
Definition: PDEFoamDiscriminant.h:50
TMVA::PDEFoam
Implementation of PDEFoam.
Definition: PDEFoam.h:79
TMVA::PDEFoamDiscriminant::FillFoamCells
virtual void FillFoamCells(const Event *ev, Float_t wt)
This function fills an event into the discriminant PDEFoam.
Definition: PDEFoamDiscriminant.cxx:92
TH2D
2-D histogram with a double per channel (see TH1 documentation)}
Definition: TH2.h:292
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
PDEFoam.h
unsigned int
TMVA::Event
Definition: Event.h:51
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TMVA::PDEFoamDiscriminant
This PDEFoam variant stores in every cell the discriminant.
Definition: PDEFoamDiscriminant.h:39
TMVA::PDEFoamDiscriminant::PDEFoamDiscriminant
PDEFoamDiscriminant()
Default constructor for streamer, user should not use it.
Definition: PDEFoamDiscriminant.cxx:64
TMVA
create variable transformations
Definition: GeneticMinimizer.h:22
int