CMS 3D CMS Logo

MatchByDEta.h
Go to the documentation of this file.
1 #ifndef MatchByDEta_h_
2 #define MatchByDEta_h_
3 
8 
9 namespace reco {
10  template <typename T1, typename T2>
11  class MatchByDEta {
12  public:
13  MatchByDEta(const edm::ParameterSet& cfg) : maxDEta_(cfg.getParameter<double>("maxDeltaEta")) {}
14  bool operator()(const T1& t1, const T2& t2) const { return fabs(t1.eta() - t2.eta()) < maxDEta_; }
15 
16  private:
17  double maxDEta_;
18  };
19 } // namespace reco
20 
21 #endif
RandomServiceHelper.t2
t2
Definition: RandomServiceHelper.py:257
reco::MatchByDEta
Definition: MatchByDEta.h:11
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
RandomServiceHelper.t1
t1
Definition: RandomServiceHelper.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
reco::MatchByDEta::maxDEta_
double maxDEta_
Definition: MatchByDEta.h:17
reco::MatchByDEta::MatchByDEta
MatchByDEta(const edm::ParameterSet &cfg)
Definition: MatchByDEta.h:13
looper.cfg
cfg
Definition: looper.py:297
ParameterSet.h
reco::MatchByDEta::operator()
bool operator()(const T1 &t1, const T2 &t2) const
Definition: MatchByDEta.h:14