CMS 3D CMS Logo

PhiRangeSelector.h
Go to the documentation of this file.
1 #ifndef UtilAlgos_PhiRangeSelector_h
2 #define UtilAlgos_PhiRangeSelector_h
5 
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 <>
23  return PhiRangeSelector(cfg.getParameter<double>("phiMin"), cfg.getParameter<double>("phiMax"));
24  }
25  };
26  } // namespace modules
27 } // namespace reco
28 
29 #endif
reco::modules::PhiRangeSelector
SingleObjectSelector< reco::GsfElectronCollection, ::PhiRangeSelector > PhiRangeSelector
Definition: SealModule.cc:21
modules
Definition: ZHLTMatchFilter.cc:17
PhiRangeSelector::phiMax_
double phiMax_
Definition: PhiRangeSelector.h:15
PhiRangeSelector::operator()
bool operator()(const T &t) const
Definition: PhiRangeSelector.h:9
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
AlignmentTrackSelector_cfi.phiMin
phiMin
Definition: AlignmentTrackSelector_cfi.py:18
reco::modules::ParameterAdapter< PhiRangeSelector >::make
static PhiRangeSelector make(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
Definition: PhiRangeSelector.h:22
AlignmentTrackSelector_cfi.phiMax
phiMax
Definition: AlignmentTrackSelector_cfi.py:17
edm::ParameterSet
Definition: ParameterSet.h:47
PhiRangeSelector
Definition: PhiRangeSelector.h:6
PhiRangeSelector::phiMin_
double phiMin_
Definition: PhiRangeSelector.h:15
SingleObjectSelectorBase
Definition: SingleObjectSelector.h:26
looper.cfg
cfg
Definition: looper.py:297
DDAxes::phi
T
long double T
Definition: Basic3DVectorLD.h:48
ParameterAdapter.h
ConsumesCollector.h
PhiRangeSelector::PhiRangeSelector
PhiRangeSelector(double phiMin, double phiMax)
Definition: PhiRangeSelector.h:7
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
reco::modules::ParameterAdapter
Definition: ParameterAdapter.h:12