Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
looper.cfg
tuple cfg
Definition:
looper.py:293
lumiQTWidget.t
tuple t
Definition:
lumiQTWidget.py:50
edmConvertToStreamModule.modules
list modules
Definition:
edmConvertToStreamModule.py:120
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:107
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition:
JetExtendedAssociation.h:30
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
reco::modules::ParameterAdapter
Definition:
ParameterAdapter.h:11
reco::modules::ParameterAdapter< FreeFunctionSelector< T, f > >::value_type
FreeFunctionSelector< T, f > value_type
Definition:
FreeFunctionSelector.h:23
ParameterAdapter.h
edm::ParameterSet
Definition:
ParameterSet.h:36
T
long double T
Definition:
Basic3DVectorLD.h:57
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
Generated for CMSSW Reference Manual by
1.8.5