5 using namespace egammaisolation;
10 bool inside(
const T&
value, std::pair<T, T>
const&
range) {
11 return value >= range.first && range.second >=
value;
24 switch (thePars.dzOption) {
32 tZ = it->dz(thePars.beamPoint);
41 float tD0Cor = fabs(it->dxy(thePars.beamPoint));
42 float tEta = it->eta();
43 float tPhi = it->phi();
44 float tChi2Ndof = it->normalizedChi2();
48 if (!inside(tZ, thePars.zRange))
50 if (tPt < thePars.ptMin)
52 if (!inside(tD0Cor, thePars.rRange))
56 if (tChi2Ndof > thePars.chi2NdofMax)
60 if (thePars.nHitsMin > 0) {
61 unsigned int tHits = it->numberOfValidHits();
62 if (tHits < thePars.nHitsMin)
67 if (thePars.chi2ProbMin > 0) {
69 if (tChi2Prob < thePars.chi2ProbMin)
72 result.push_back(&*it);
result_type operator()(const input_type &tracks) const
const std::string metname
auto const & tracks
cannot be loose
const uint16_t range(const Frame &aFrame)
const_iterator begin() const
float ChiSquaredProbability(double chiSquared, double nrDOF)
std::list< const reco::Track * > result_type
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
const_iterator end() const