5 using namespace muonisolation;
12 for (input_type::const_iterator it = tracks.begin(); it != tracks.end(); it++) {
40 float tD0 = fabs(it->d0());
41 float tD0Cor = fabs(it->dxy(thePars.beamPoint));
42 float tEta = it->eta();
43 float tPhi = it->phi();
44 float tChi2Ndof = it->normalizedChi2();
48 <<
", d0wrtBeam: "<<tD0Cor
51 <<
", chi2Norm: "<<tChi2Ndof;
54 if ( !thePars.zRange.inside( tZ ) )
continue;
55 if ( tPt < thePars.ptMin )
continue;
56 if ( !thePars.rRange.inside( tD0Cor) )
continue;
58 if ( tChi2Ndof > thePars.chi2NdofMax )
continue;
61 if (thePars.nHitsMin > 0 ){
62 unsigned int tHits = it->numberOfValidHits();
63 LogTrace(metname)<<
", nHits: "<<tHits;
64 if ( tHits < thePars.nHitsMin )
continue;
68 if(thePars.chi2ProbMin > 0){
70 LogTrace(metname)<<
", chi2Prob: "<<tChi2Prob<<std::endl;
71 if ( tChi2Prob < thePars.chi2ProbMin )
continue;
74 LogTrace(metname)<<
" ..... accepted"<<std::endl;
75 result.push_back(&*it);
const std::string metname
std::list< const reco::Track * > result_type
result_type operator()(const input_type &tracks) const
edm::View< reco::Track > input_type
float ChiSquaredProbability(double chiSquared, double nrDOF)