src
Calibration
Tools
interface
PhiRangeSelector.h
Go to the documentation of this file.
1
#ifndef UtilAlgos_PhiRangeSelector_h
2
#define UtilAlgos_PhiRangeSelector_h
3
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
4
#include "
CommonTools/UtilAlgos/interface/ParameterAdapter.h
"
5
6
struct
PhiRangeSelector
{
7
PhiRangeSelector
(
double
phiMin
,
double
phiMax
) :
phiMin_
(
phiMin
),
phiMax_
(
phiMax
) {}
8
template
<
typename
T>
9
bool
operator()
(
const
T
&
t
)
const
{
10
double
phi
=
t
.phi();
11
return
(
phi
>=
phiMin_
&&
phi
<=
phiMax_
);
12
}
13
14
private
:
15
double
phiMin_
,
phiMax_
;
16
};
17
18
namespace
reco
{
19
namespace
modules
{
20
template
<>
21
struct
ParameterAdapter
<
PhiRangeSelector
> {
22
static
PhiRangeSelector
make
(
const
edm::ParameterSet
&
cfg
,
edm::ConsumesCollector
& iC) {
23
return
PhiRangeSelector
(
cfg
.getParameter<
double
>(
"phiMin"
),
cfg
.getParameter<
double
>(
"phiMax"
));
24
}
25
};
26
}
// namespace modules
27
}
// namespace reco
28
29
#endif
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:650
reco::modules::ParameterAdapter< PhiRangeSelector >::make
static PhiRangeSelector make(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
Definition:
PhiRangeSelector.h:22
PhiRangeSelector::phiMax_
double phiMax_
Definition:
PhiRangeSelector.h:15
PhiRangeSelector::operator()
bool operator()(const T &t) const
Definition:
PhiRangeSelector.h:9
DDAxes::phi
AlignmentTrackSelector_cfi.phiMin
phiMin
Definition:
AlignmentTrackSelector_cfi.py:18
looper.cfg
cfg
Definition:
looper.py:296
PhiRangeSelector::phiMin_
double phiMin_
Definition:
PhiRangeSelector.h:15
reco::modules::ParameterAdapter
Definition:
ParameterAdapter.h:12
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:31
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:46
reco::modules::PhiRangeSelector
SingleObjectSelector< reco::GsfElectronCollection, ::PhiRangeSelector > PhiRangeSelector
Definition:
SealModule.cc:17
ParameterAdapter.h
edm::ParameterSet
Definition:
ParameterSet.h:48
PhiRangeSelector
Definition:
PhiRangeSelector.h:6
AlignmentTrackSelector_cfi.phiMax
phiMax
Definition:
AlignmentTrackSelector_cfi.py:17
T
long double T
Definition:
Basic3DVectorLD.h:48
ConsumesCollector.h
PhiRangeSelector::PhiRangeSelector
PhiRangeSelector(double phiMin, double phiMax)
Definition:
PhiRangeSelector.h:7
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
modules
Definition:
MuonCleanerBySegments.cc:35
Generated for CMSSW Reference Manual by
1.8.14