// @(#)root/tmva $Id$
// Author: Tancredi Carli, Dominik Dannheim, Alexander Voigt

/**********************************************************************************
 * Project: TMVA - a Root-integrated toolkit for multivariate data analysis       *
 * Package: TMVA                                                                  *
 * Classes: PDEFoamDiscriminantDensity                                            *
 * Web    : http://tmva.sourceforge.net                                           *
 *                                                                                *
 * Description:                                                                   *
 *      Class PDEFoamDiscriminantDensity is a class representing                  *
 *      n-dimensional real positive integrand function                            *
 *      The main function is Density() which provides the event density at a      *
 *      given point during the foam build-up (sampling).                          *
 *                                                                                *
 * Authors (alphabetical):                                                        *
 *      Tancredi Carli   - CERN, Switzerland                                      *
 *      Dominik Dannheim - CERN, Switzerland                                      *
 *      S. Jadach        - Institute of Nuclear Physics, Cracow, Poland           *
 *      Alexander Voigt  - TU Dresden, Germany                                    *
 *      Peter Speckmayer - CERN, Switzerland                                      *
 *                                                                                *
 * Copyright (c) 2008, 2010:                                                      *
 *      CERN, Switzerland                                                         *
 *      MPI-K Heidelberg, Germany                                                 *
 *                                                                                *
 * Redistribution and use in source and binary forms, with or without             *
 * modification, are permitted according to the terms listed in LICENSE           *
 * (http://tmva.sourceforge.net/LICENSE)                                          *
 **********************************************************************************/

#ifndef ROOT_TMVA_PDEFoamDiscriminantDensity
#define ROOT_TMVA_PDEFoamDiscriminantDensity

#ifndef ROOT_TMVA_PDEFoamDensityBase
#include "TMVA/PDEFoamDensityBase.h"
#endif

namespace TMVA
{

   // class definition of underlying event density
   class PDEFoamDiscriminantDensity : public PDEFoamDensityBase
   {

   protected:
      UInt_t fClass; // signal class

   public:
      PDEFoamDiscriminantDensity();
      PDEFoamDiscriminantDensity(std::vector<Double_t> box, UInt_t cls);
      PDEFoamDiscriminantDensity(const PDEFoamDiscriminantDensity&);
      virtual ~PDEFoamDiscriminantDensity() {}

      // main function used by PDEFoam
      // returns discriminant density N_class/N_total at a given point
      // by range searching in BST
      virtual Double_t Density(std::vector<Double_t> &Xarg, Double_t &event_density);

      ClassDef(PDEFoamDiscriminantDensity, 1) //Class for Discriminant density
   };  //end of PDEFoamDiscriminantDensity

}  // namespace TMVA

#endif
 PDEFoamDiscriminantDensity.h:1
 PDEFoamDiscriminantDensity.h:2
 PDEFoamDiscriminantDensity.h:3
 PDEFoamDiscriminantDensity.h:4
 PDEFoamDiscriminantDensity.h:5
 PDEFoamDiscriminantDensity.h:6
 PDEFoamDiscriminantDensity.h:7
 PDEFoamDiscriminantDensity.h:8
 PDEFoamDiscriminantDensity.h:9
 PDEFoamDiscriminantDensity.h:10
 PDEFoamDiscriminantDensity.h:11
 PDEFoamDiscriminantDensity.h:12
 PDEFoamDiscriminantDensity.h:13
 PDEFoamDiscriminantDensity.h:14
 PDEFoamDiscriminantDensity.h:15
 PDEFoamDiscriminantDensity.h:16
 PDEFoamDiscriminantDensity.h:17
 PDEFoamDiscriminantDensity.h:18
 PDEFoamDiscriminantDensity.h:19
 PDEFoamDiscriminantDensity.h:20
 PDEFoamDiscriminantDensity.h:21
 PDEFoamDiscriminantDensity.h:22
 PDEFoamDiscriminantDensity.h:23
 PDEFoamDiscriminantDensity.h:24
 PDEFoamDiscriminantDensity.h:25
 PDEFoamDiscriminantDensity.h:26
 PDEFoamDiscriminantDensity.h:27
 PDEFoamDiscriminantDensity.h:28
 PDEFoamDiscriminantDensity.h:29
 PDEFoamDiscriminantDensity.h:30
 PDEFoamDiscriminantDensity.h:31
 PDEFoamDiscriminantDensity.h:32
 PDEFoamDiscriminantDensity.h:33
 PDEFoamDiscriminantDensity.h:34
 PDEFoamDiscriminantDensity.h:35
 PDEFoamDiscriminantDensity.h:36
 PDEFoamDiscriminantDensity.h:37
 PDEFoamDiscriminantDensity.h:38
 PDEFoamDiscriminantDensity.h:39
 PDEFoamDiscriminantDensity.h:40
 PDEFoamDiscriminantDensity.h:41
 PDEFoamDiscriminantDensity.h:42
 PDEFoamDiscriminantDensity.h:43
 PDEFoamDiscriminantDensity.h:44
 PDEFoamDiscriminantDensity.h:45
 PDEFoamDiscriminantDensity.h:46
 PDEFoamDiscriminantDensity.h:47
 PDEFoamDiscriminantDensity.h:48
 PDEFoamDiscriminantDensity.h:49
 PDEFoamDiscriminantDensity.h:50
 PDEFoamDiscriminantDensity.h:51
 PDEFoamDiscriminantDensity.h:52
 PDEFoamDiscriminantDensity.h:53
 PDEFoamDiscriminantDensity.h:54
 PDEFoamDiscriminantDensity.h:55
 PDEFoamDiscriminantDensity.h:56
 PDEFoamDiscriminantDensity.h:57
 PDEFoamDiscriminantDensity.h:58
 PDEFoamDiscriminantDensity.h:59
 PDEFoamDiscriminantDensity.h:60
 PDEFoamDiscriminantDensity.h:61
 PDEFoamDiscriminantDensity.h:62
 PDEFoamDiscriminantDensity.h:63
 PDEFoamDiscriminantDensity.h:64
 PDEFoamDiscriminantDensity.h:65