Main Page
Namespaces
Classes
Package Documentation
JetMETCorrections
InterpolationTables
interface
CoordinateSelector.h
Go to the documentation of this file.
1
#ifndef NPSTAT_COORDINATESELECTOR_HH_
2
#define NPSTAT_COORDINATESELECTOR_HH_
3
15
#include <climits>
16
#include "
JetMETCorrections/InterpolationTables/interface/NpstatException.h
"
17
18
#include "
JetMETCorrections/InterpolationTables/interface/AbsMultivariateFunctor.h
"
19
20
namespace
npstat
{
25
class
CoordinateSelector
:
public
AbsMultivariateFunctor
26
{
27
public
:
28
inline
explicit
CoordinateSelector
(
const
unsigned
i
) :
index_
(i) {}
29
30
inline
virtual
~CoordinateSelector
() {}
31
32
inline
double
operator()
(
const
double
*
point
,
const
unsigned
dim)
const
33
{
34
if
(dim <=
index_
)
35
throw
npstat::NpstatInvalidArgument
(
36
"In npstat::CoordinateSelector::operator(): "
37
"input array dimensionality is too small"
);
38
return
point[
index_
];
39
}
40
inline
unsigned
minDim
()
const
{
return
index_
+ 1
U
;}
41
inline
unsigned
maxDim
()
const
{
return
UINT_MAX;}
42
43
private
:
44
CoordinateSelector
();
45
unsigned
index_
;
46
};
47
}
48
49
#endif // NPSTAT_COORDINATESELECTOR_HH_
50
mps_fire.i
i
Definition:
mps_fire.py:156
npstat::CoordinateSelector::CoordinateSelector
CoordinateSelector()
npstat::AbsMultivariateFunctor
Definition:
AbsMultivariateFunctor.h:18
npstat::NpstatInvalidArgument
Definition:
NpstatException.h:43
npstat::CoordinateSelector::maxDim
unsigned maxDim() const
Definition:
CoordinateSelector.h:41
npstat::CoordinateSelector::operator()
double operator()(const double *point, const unsigned dim) const
Definition:
CoordinateSelector.h:32
npstat::CoordinateSelector::minDim
unsigned minDim() const
Definition:
CoordinateSelector.h:40
npstat
Definition:
AbsArrayProjector.h:14
mitigatedMETSequence_cff.U
U
Definition:
mitigatedMETSequence_cff.py:36
NpstatException.h
Exceptions for the npstat namespace.
npstat::CoordinateSelector
Definition:
CoordinateSelector.h:25
npstat::CoordinateSelector::CoordinateSelector
CoordinateSelector(const unsigned i)
Definition:
CoordinateSelector.h:28
npstat::CoordinateSelector::index_
unsigned index_
Definition:
CoordinateSelector.h:45
AbsMultivariateFunctor.h
Interface definition for multidimensional functors.
point
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition:
invegas.h:5
npstat::CoordinateSelector::~CoordinateSelector
virtual ~CoordinateSelector()
Definition:
CoordinateSelector.h:30
Generated for CMSSW Reference Manual by
1.8.11