Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
RecoTracker
ConversionSeedGenerators
plugins
SeedChargeSelector.h
Go to the documentation of this file.
1
#ifndef RecoTracker_TkSeedGenerator_SeedChargeSelector_h
2
#define RecoTracker_TkSeedGenerator_SeedChargeSelector_h
3
/* \class SeedChargeSelector
4
*
5
* \author Giuseppe Cerati, INFN
6
*
7
*/
8
9
struct
SeedChargeSelector
{
10
SeedChargeSelector
(
int
charge
) :
charge_
( charge ) { }
11
template
<
typename
T>
12
bool
operator()
(
const
T
&
t
)
const
{
13
return
( t.startingState().parameters().charge() ==
charge_
);
14
}
15
16
private
:
17
int
charge_
;
18
};
19
20
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
21
#include "
CommonTools/UtilAlgos/interface/ParameterAdapter.h
"
22
23
namespace
reco
{
24
namespace
modules
{
25
26
template
<>
27
struct
ParameterAdapter
<
SeedChargeSelector
> {
28
static
SeedChargeSelector
make
(
const
edm::ParameterSet
&
cfg
,
edm::ConsumesCollector
& iC ) {
29
return
SeedChargeSelector
(cfg.
getParameter
<
int
>(
"charge"
));
30
}
31
};
32
33
}
34
}
35
36
#endif
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
looper.cfg
tuple cfg
Definition:
looper.py:293
reco::modules::ParameterAdapter< SeedChargeSelector >::make
static SeedChargeSelector make(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
Definition:
SeedChargeSelector.h:28
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:106
reco::modules::SeedChargeSelector
SingleObjectSelector< TrajectorySeedCollection,::SeedChargeSelector > SeedChargeSelector
Definition:
SeedChargeSelector.cc:9
SeedChargeSelector::charge_
int charge_
Definition:
SeedChargeSelector.h:17
reco::modules::ParameterAdapter
Definition:
ParameterAdapter.h:11
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:28
SeedChargeSelector::operator()
bool operator()(const T &t) const
Definition:
SeedChargeSelector.h:12
ParameterAdapter.h
edm::ParameterSet
Definition:
ParameterSet.h:36
SeedChargeSelector
Definition:
SeedChargeSelector.h:9
T
long double T
Definition:
Basic3DVectorLD.h:57
ConsumesCollector.h
SeedChargeSelector::SeedChargeSelector
SeedChargeSelector(int charge)
Definition:
SeedChargeSelector.h:10
RecoTauCleanerPlugins.charge
tuple charge
Definition:
RecoTauCleanerPlugins.py:33
edm::ConsumesCollector
Definition:
ConsumesCollector.h:38
Generated for CMSSW Reference Manual by
1.8.5