src
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
) {
return
f
(
t
); }
12
};
13
14
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
15
#include "
CommonTools/UtilAlgos/interface/ParameterAdapter.h
"
16
17
namespace
reco
{
18
namespace
modules
{
19
template
<
typename
T,
bool
(*f)(const T&)>
20
struct
ParameterAdapter
<
FreeFunctionSelector
<
T
,
f
> > {
21
typedef
FreeFunctionSelector<T, f>
value_type
;
22
static
value_type
make
(
const
edm::ParameterSet
&
cfg
,
edm::ConsumesCollector
& iC) {
return
value_type
(); }
23
};
24
}
// namespace modules
25
}
// namespace reco
26
27
#endif
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:650
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:296
reco::modules::ParameterAdapter
Definition:
ParameterAdapter.h:12
reco::modules::ParameterAdapter< FreeFunctionSelector< T, f > >::value_type
FreeFunctionSelector< T, f > value_type
Definition:
FreeFunctionSelector.h:21
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:46
ParameterAdapter.h
edm::ParameterSet
Definition:
ParameterSet.h:48
T
long double T
Definition:
Basic3DVectorLD.h:48
reco::modules::ParameterAdapter< FreeFunctionSelector< T, f > >::make
static value_type make(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
Definition:
FreeFunctionSelector.h:22
ConsumesCollector.h
FreeFunctionSelector::operator()
bool operator()(const T &t)
Definition:
FreeFunctionSelector.h:11
FreeFunctionSelector
Definition:
FreeFunctionSelector.h:10
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
modules
Definition:
MuonCleanerBySegments.cc:35
Generated for CMSSW Reference Manual by
1.8.14