Main Page
Namespaces
Classes
Package Documentation
src
PhysicsTools
Utilities
interface
RootVarsAdapter.h
Go to the documentation of this file.
1
#ifndef PhysicsTools_Utilities_RootVarsAdapter_h
2
#define PhysicsTools_Utilities_RootVarsAdapter_h
3
4
namespace
root
{
5
namespace
helper
{
6
7
template
<
typename
F,
unsigned
int
args>
8
struct
RootVarsAdapter
{
9
};
10
11
template
<
typename
F>
12
struct
RootVarsAdapter
<
F
, 1> {
13
static
double
value
(
F
&
f
,
const
double
*
var
) {
14
return
f
(var[0]);
15
}
16
};
17
18
template
<
typename
F>
19
struct
RootVarsAdapter
<
F
, 2> {
20
static
double
value
(
F
&
f
,
const
double
*
var
) {
21
return
f
(var[0], var[1]);
22
}
23
};
24
}
25
}
26
27
#endif
JetChargeProducer_cfi.var
var
Definition:
JetChargeProducer_cfi.py:4
helper
Definition:
helper.py:1
root::helper::RootVarsAdapter< F, 2 >::value
static double value(F &f, const double *var)
Definition:
RootVarsAdapter.h:20
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
root::helper::RootVarsAdapter< F, 1 >::value
static double value(F &f, const double *var)
Definition:
RootVarsAdapter.h:13
F
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition:
blowfish.cc:281
root::helper::RootVarsAdapter
Definition:
RootVarsAdapter.h:8
root
Definition:
RooFitFunction.h:10
Generated for CMSSW Reference Manual by
1.8.11