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.
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, Matriplex::hypot(), submitPVResolutionJobs::key, TagProbeFitTreeAnalyzer_cfi::passing, pf2pat::PFCandidateSelectorDefinition::selected_, mathSSE::sqrt(), AlignmentTracksFromVertexSelector_cfi::vertices, verticesToken_, and L1BJetProducer_cff::vtx.
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()));
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);
MPlex< T, D1, D2, N > hypot(const MPlex< T, D1, D2, N > &a, const MPlex< T, D1, D2, N > &b)
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
edm::EDGetTokenT< reco::VertexCollection > verticesToken_
double dxyError() const
error on dxy
double dzError() const
error on dz
key
prepare the HTCondor submission files and eventually submit them
static constexpr float d0
Particle reconstructed by the particle flow algorithm.
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...