Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
looper.cfg
tuple cfg
Definition:
looper.py:296
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:644
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
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:111
DDAxes::phi
PhiRangeSelector::operator()
bool operator()(const T &t) const
Definition:
PhiRangeSelector.h:9
PhiRangeSelector::phiMin_
double phiMin_
Definition:
PhiRangeSelector.h:15
reco::modules::ParameterAdapter
Definition:
ParameterAdapter.h:12
L1TMuonDQMOffline_cfi.phiMax
float phiMax
Definition:
L1TMuonDQMOffline_cfi.py:17
TrackingSourceConfig_Tier0_Cosmic_cff.modules
list modules
Definition:
TrackingSourceConfig_Tier0_Cosmic_cff.py:88
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:303
SingleObjectSelectorBase
Definition:
SingleObjectSelector.h:31
reco::modules::PhiRangeSelector
SingleObjectSelector< reco::GsfElectronCollection,::PhiRangeSelector > PhiRangeSelector
Definition:
SealModule.cc:17
L1TMuonDQMOffline_cfi.phiMin
float phiMin
Definition:
L1TMuonDQMOffline_cfi.py:16
ParameterAdapter.h
edm::ParameterSet
Definition:
ParameterSet.h:47
PhiRangeSelector
Definition:
PhiRangeSelector.h:6
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
Generated for CMSSW Reference Manual by
1.8.5