Selects PFCandidates basing on their compatibility with vertex.
- Author
- Giovanni Petrucciani
- Version
- Id
- IPCutPFCandidateSelectorDefinition.h,v 1.2 2011/04/06 12:12:38 rwolf Exp
Definition at line 24 of file IPCutPFCandidateSelectorDefinition.h.
Definition at line 34 of file IPCutPFCandidateSelectorDefinition.h.
43 double vte =
vtx.tError();
46 for (collection::const_iterator pfc = hc->begin(); pfc != hc->end(); ++pfc, ++
key) {
49 if (pfc->gsfTrackRef().isNonnull())
50 tk = pfc->gsfTrackRef().get();
51 else if (pfc->trackRef().isNonnull())
52 tk = pfc->trackRef().get();
55 double d0 = fabs(tk->
dxy(
vtx.position()));
56 double dz = fabs(tk->
dz(
vtx.position()));
57 double d0e = hypot(tk->
dxyError(), hypot(
vtx.xError(),
vtx.yError()));
58 double dze = hypot(tk->
dzError(),
vtx.zError());
68 double pfct = pfc->time();
69 double pfcte = pfc->timeError();
70 double dt = fabs(pfct - vt);
71 double dte =
std::sqrt(pfcte * pfcte + vte * vte);
81 if (pfc->numberOfSourceCandidatePtrs() > 0) {
84 selected_.back().setSourceCandidatePtr(ptrToMother);
References d0, d0Cut_, d0SigCut_, dt, dtCut_, dtSigCut_, reco::TrackBase::dxy(), reco::TrackBase::dxyError(), PVValHelper::dz, reco::TrackBase::dz(), dzCut_, reco::TrackBase::dzError(), dzSigCut_, MillePedeFileConverter_cfg::e, crabWrapper::key, TagProbeFitTreeAnalyzer_cfi::passing, pf2pat::PFCandidateSelectorDefinition::selected_, mathSSE::sqrt(), pwdgSkimBPark_cfi::vertices, verticesToken_, and extraflags_cff::vtx.