Main Page
Namespaces
Classes
Package Documentation
CommonTools
UtilAlgos
interface
FreeFunctionSelector.h
Go to the documentation of this file.
1
#ifndef CommonTools_UtilAlgos_FreeFunctionSelector_h
2
#define CommonTools_UtilAlgos_FreeFunctionSelector_h
3
/* \class FreeFunctionSelector
4
*
5
* \author Luca Lista, INFN
6
*
7
* \version $Id: FreeFunctionSelector.h,v 1.1 2008/01/22 11:17:58 llista Exp $
8
*/
9
template
<
typename
T,
bool
(*f)(const T&)>
10
struct
FreeFunctionSelector
{
11
bool
operator()
(
const
T
&
t
) {
12
return
f
(t);
13
}
14
};
15
16
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
17
#include "
CommonTools/UtilAlgos/interface/ParameterAdapter.h
"
18
19
namespace
reco
{
20
namespace
modules
{
21
template
<
typename
T,
bool
(*f)(const T&)>
22
struct
ParameterAdapter
<
FreeFunctionSelector
<
T
,
f
> > {
23
typedef
FreeFunctionSelector<T, f>
value_type
;
24
static
value_type
make
(
const
edm::ParameterSet
&
cfg
,
edm::ConsumesCollector
& iC) {
25
return
value_type
();
26
}
27
};
28
}
29
}
30
31
32
33
#endif
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition:
JetExtendedAssociation.h:30
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
looper.cfg
cfg
Definition:
looper.py:294
reco::modules::ParameterAdapter
Definition:
ParameterAdapter.h:12
reco::modules::ParameterAdapter< FreeFunctionSelector< T, f > >::value_type
FreeFunctionSelector< T, f > value_type
Definition:
FreeFunctionSelector.h:23
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:43
lumiQTWidget.t
t
Definition:
lumiQTWidget.py:50
ParameterAdapter.h
edm::ParameterSet
Definition:
ParameterSet.h:36
T
long double T
Definition:
Basic3DVectorLD.h:66
reco::modules::ParameterAdapter< FreeFunctionSelector< T, f > >::make
static value_type make(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
Definition:
FreeFunctionSelector.h:24
ConsumesCollector.h
FreeFunctionSelector::operator()
bool operator()(const T &t)
Definition:
FreeFunctionSelector.h:11
FreeFunctionSelector
Definition:
FreeFunctionSelector.h:10
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
modules
Definition:
ZHLTMatchFilter.cc:17
Generated for CMSSW Reference Manual by
1.8.11