Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CommonTools
UtilAlgos
interface
StringCutObjectSelector.h
Go to the documentation of this file.
1
#ifndef UtilAlgos_StringCutObjectSelector_h
2
#define UtilAlgos_StringCutObjectSelector_h
3
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
4
#include "
CommonTools/UtilAlgos/interface/ParameterAdapter.h
"
5
#include "
CommonTools/Utils/interface/StringCutObjectSelector.h
"
6
7
namespace
reco
{
8
namespace
modules
{
9
10
template
<
typename
T,
bool
Lazy>
11
struct
ParameterAdapter
<
StringCutObjectSelector
<
T
, Lazy> > {
12
static
StringCutObjectSelector<T, Lazy>
make
(
const
edm::ParameterSet
&
cfg
,
edm::ConsumesCollector
& iC ) {
13
return
StringCutObjectSelector<T, Lazy>
( cfg.template getParameter<std::string>(
"cut"
) );
14
}
15
};
16
17
}
18
}
19
20
21
// Introducing a simpler way to use a string object selector outside of the
22
// heavily-templated infrastructure above. This simply translates the cfg
23
// into the string that the functor expects.
24
namespace
reco
{
25
template
<
typename
T,
bool
Lazy>
26
class
StringCutObjectSelectorHandler
:
public
StringCutObjectSelector
<T,Lazy> {
27
public
:
28
explicit
StringCutObjectSelectorHandler
(
const
edm::ParameterSet
&
cfg
) :
29
StringCutObjectSelector
<
T
, Lazy>(cfg.getParameter<std::
string
>(
"cut"
))
30
{
31
}
32
};
33
}
34
35
#endif
36
looper.cfg
tuple cfg
Definition:
looper.py:293
edmConvertToStreamModule.modules
list modules
Definition:
edmConvertToStreamModule.py:120
StringCutObjectSelector
Definition:
StringCutObjectSelector.h:16
reco::modules::ParameterAdapter< StringCutObjectSelector< T, Lazy > >::make
static StringCutObjectSelector< T, Lazy > make(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
Definition:
StringCutObjectSelector.h:12
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:106
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
StringCutObjectSelector.h
reco::StringCutObjectSelectorHandler
Definition:
StringCutObjectSelector.h:26
reco::modules::ParameterAdapter
Definition:
ParameterAdapter.h:11
reco::StringCutObjectSelectorHandler::StringCutObjectSelectorHandler
StringCutObjectSelectorHandler(const edm::ParameterSet &cfg)
Definition:
StringCutObjectSelector.h:28
ParameterAdapter.h
edm::ParameterSet
Definition:
ParameterSet.h:36
T
long double T
Definition:
Basic3DVectorLD.h:57
ConsumesCollector.h
edm::ConsumesCollector
Definition:
ConsumesCollector.h:38
Generated for CMSSW Reference Manual by
1.8.5