ROOT
v6-32
Reference Guide
Loading...
Searching...
No Matches
PDEFoamKernelTrivial.cxx
Go to the documentation of this file.
1
// @(#)root/tmva $Id$
2
// Author: Dominik Dannheim, Alexander Voigt
3
4
/**********************************************************************************
5
* Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6
* Package: TMVA *
7
* Classes: PDEFoamKernelTrivial *
8
* *
9
* *
10
* Description: *
11
* Implementation of trivial PDEFoam kernel *
12
* *
13
* Authors (alphabetical): *
14
* S. Jadach - Institute of Nuclear Physics, Cracow, Poland *
15
* Tancredi Carli - CERN, Switzerland *
16
* Dominik Dannheim - CERN, Switzerland *
17
* Alexander Voigt - TU Dresden, Germany *
18
* *
19
* Copyright (c) 2010: *
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
* (see tmva/doc/LICENSE) *
26
**********************************************************************************/
27
28
/*! \class TMVA::PDEFoamKernelTrivial
29
\ingroup TMVA
30
This class is a trivial PDEFoam kernel estimator. The Estimate()
31
function returns the cell value, given an event 'txvec'.
32
*/
33
34
#include "
TMVA/PDEFoamKernelTrivial.h
"
35
36
#include "
TMVA/MsgLogger.h
"
37
#include "
TMVA/PDEFoam.h
"
38
#include "
TMVA/PDEFoamKernelBase.h
"
39
#include "
TMVA/Types.h
"
40
41
#include "
Rtypes.h
"
42
43
#include <vector>
44
45
ClassImp
(
TMVA::PDEFoamKernelTrivial
);
46
47
////////////////////////////////////////////////////////////////////////////////
48
/// Default constructor for streamer
49
50
TMVA::PDEFoamKernelTrivial::PDEFoamKernelTrivial
()
51
:
PDEFoamKernelBase
()
52
{
53
}
54
55
////////////////////////////////////////////////////////////////////////////////
56
/// Copy constructor
57
58
TMVA::PDEFoamKernelTrivial::PDEFoamKernelTrivial
(
const
PDEFoamKernelTrivial
&other)
59
:
PDEFoamKernelBase
(other)
60
{
61
}
62
63
////////////////////////////////////////////////////////////////////////////////
64
/// Simple kernel estimator. It returns the cell value 'cv',
65
/// corresponding to the event vector 'txvec' (in foam coordinates).
66
///
67
/// Parameters:
68
///
69
/// - foam - the pdefoam to search in
70
///
71
/// - txvec - event vector in foam coordinates [0,1]
72
///
73
/// - cv - cell value to estimate
74
75
Float_t
TMVA::PDEFoamKernelTrivial::Estimate
(
PDEFoam
*foam, std::vector<Float_t> &txvec, ECellValue cv)
76
{
77
if
(foam == NULL)
78
Log
() << kFATAL <<
"<PDEFoamKernelTrivial::Estimate>: PDEFoam not set!"
<<
Endl
;
79
80
return
foam->
GetCellValue
(foam->
FindCell
(txvec), cv);
81
}
MsgLogger.h
PDEFoamKernelBase.h
PDEFoamKernelTrivial.h
PDEFoam.h
Float_t
float Float_t
Definition
RtypesCore.h:57
Rtypes.h
ClassImp
#define ClassImp(name)
Definition
Rtypes.h:377
TMVA::PDEFoamKernelBase::PDEFoamKernelBase
PDEFoamKernelBase()
message logger
Definition
PDEFoamKernelBase.cxx:51
TMVA::PDEFoamKernelBase::Log
MsgLogger & Log() const
Definition
PDEFoamKernelBase.h:55
TMVA::PDEFoamKernelTrivial
This class is a trivial PDEFoam kernel estimator.
Definition
PDEFoamKernelTrivial.h:40
TMVA::PDEFoamKernelTrivial::PDEFoamKernelTrivial
PDEFoamKernelTrivial()
Default constructor for streamer.
Definition
PDEFoamKernelTrivial.cxx:50
TMVA::PDEFoamKernelTrivial::Estimate
virtual Float_t Estimate(PDEFoam *, std::vector< Float_t > &, ECellValue)
Simple kernel estimator.
Definition
PDEFoamKernelTrivial.cxx:75
TMVA::PDEFoam
Implementation of PDEFoam.
Definition
PDEFoam.h:79
TMVA::PDEFoam::GetCellValue
virtual Float_t GetCellValue(const std::vector< Float_t > &xvec, ECellValue cv, PDEFoamKernelBase *)
This function finds the cell, which corresponds to the given untransformed event vector 'xvec' and re...
Definition
PDEFoam.cxx:1015
TMVA::PDEFoam::FindCell
PDEFoamCell * FindCell(const std::vector< Float_t > &) const
Find cell that contains 'xvec' (in foam coordinates [0,1]).
Definition
PDEFoam.cxx:1079
TMVA::Endl
MsgLogger & Endl(MsgLogger &ml)
Definition
MsgLogger.h:148
Types.h
tmva
tmva
src
PDEFoamKernelTrivial.cxx
ROOT v6-32 - Reference Guide Generated on Tue May 19 2026 02:47:05 (GVA Time) using Doxygen 1.13.2