PhysicsTools
Utilities
interface
Numerical.h
Go to the documentation of this file.
1
#ifndef PhysicsTools_Utilities_Numerical_h
2
#define PhysicsTools_Utilities_Numerical_h
3
#include <cassert>
4
namespace
funct
{
5
6
template
<
int
n>
7
struct
Numerical
{
8
Numerical
() {}
9
Numerical
(
int
m
) {
assert
(
m
==
n
); }
10
static
const
int
value
=
n
;
11
double
operator()
()
const
{
return
n
; }
12
operator
double()
const
{
return
n
; }
13
double
operator()
(
double
)
const
{
return
n
; }
14
double
operator()
(
double
,
double
)
const
{
return
n
; }
15
};
16
17
template
<
int
n>
18
const
Numerical<n>
&
num
() {
19
static
Numerical<n>
c
;
20
return
c
;
21
}
22
23
}
// namespace funct
24
25
#endif
funct::Numerical::operator()
double operator()(double) const
Definition:
Numerical.h:13
funct::Numerical::operator()
double operator()() const
Definition:
Numerical.h:11
dqmiodumpmetadata.n
n
Definition:
dqmiodumpmetadata.py:28
cms::cuda::assert
assert(be >=bs)
funct::num
const Numerical< n > & num()
Definition:
Numerical.h:18
funct::m
m
Definition:
Factorize.h:50
funct::Numerical::Numerical
Numerical()
Definition:
Numerical.h:8
value
Definition:
value.py:1
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
funct::Numerical
Definition:
Numerical.h:7
funct::Numerical::Numerical
Numerical(int m)
Definition:
Numerical.h:9
funct
Definition:
Abs.h:5
funct::Numerical::operator()
double operator()(double, double) const
Definition:
Numerical.h:14
Generated for CMSSW Reference Manual by
1.8.16