Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:03

0001 // @(#)root/tmva $Id$
0002 // Author: Alexander Voigt
0003 
0004 /**********************************************************************************
0005  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis       *
0006  * Package: TMVA                                                                  *
0007  * Classes: PDEFoamDecisionTreeDensity                                            *
0008  *                                             *
0009  *                                                                                *
0010  * Description:                                                                   *
0011  *      Class PDEFoamDecisionTreeDensity is a class representing                  *
0012  *      n-dimensional real positive integrand function                            *
0013  *      The main function is Density() which provides the event density at a      *
0014  *      given point during the foam build-up (sampling).                          *
0015  *                                                                                *
0016  * Authors (alphabetical):                                                        *
0017  *      Tancredi Carli   - CERN, Switzerland                                      *
0018  *      Dominik Dannheim - CERN, Switzerland                                      *
0019  *      S. Jadach        - Institute of Nuclear Physics, Cracow, Poland           *
0020  *      Alexander Voigt  - TU Dresden, Germany                                    *
0021  *      Peter Speckmayer - CERN, Switzerland                                      *
0022  *                                                                                *
0023  * Copyright (c) 2010:                                                            *
0024  *      CERN, Switzerland                                                         *
0025  *      MPI-K Heidelberg, Germany                                                 *
0026  *                                                                                *
0027  * Redistribution and use in source and binary forms, with or without             *
0028  * modification, are permitted according to the terms listed in LICENSE           *
0029  * (see tmva/doc/LICENSE)                                          *
0030  **********************************************************************************/
0031 
0032 #ifndef ROOT_TMVA_PDEFoamDecisionTreeDensity
0033 #define ROOT_TMVA_PDEFoamDecisionTreeDensity
0034 
0035 #include <vector>
0036 
0037 #include "TH2.h"
0038 
0039 #include "TMVA/PDEFoamDensityBase.h"
0040 #include "TMVA/Volume.h"
0041 
0042 namespace TMVA
0043 {
0044 
0045    // class definition of underlying event density
0046    class PDEFoamDecisionTreeDensity : public PDEFoamDensityBase
0047    {
0048 
0049    protected:
0050       UInt_t fClass; // signal class
0051 
0052    public:
0053       PDEFoamDecisionTreeDensity();
0054       PDEFoamDecisionTreeDensity(std::vector<Double_t> box, UInt_t cls);
0055       PDEFoamDecisionTreeDensity(const PDEFoamDecisionTreeDensity&);
0056       virtual ~PDEFoamDecisionTreeDensity() {}
0057 
0058       // returns always 0
0059       virtual Double_t Density(std::vector<Double_t> &Xarg, Double_t &event_density);
0060 
0061       // fill histograms with events found in volume
0062       virtual void FillHistograms(TMVA::Volume&, std::vector<TH1D*>&, std::vector<TH1D*>&, std::vector<TH1D*>&, std::vector<TH1D*>&);
0063 
0064       ClassDef(PDEFoamDecisionTreeDensity, 1) // Class for decision tree like PDEFoam density
0065          };  //end of PDEFoamDecisionTreeDensity
0066 
0067 }  // namespace TMVA
0068 
0069 #endif