Displaced Vertex Finder Algorithm. More...
#include <PFDisplacedVertexHelper.h>
Classes | |
struct | TracksSelector |
Tool which store the information for the tracks selection. More... | |
struct | VertexIdentifier |
Tool which store the information for the vertex identification. More... | |
Public Member Functions | |
void | Dump (std::ostream &out=std::cout) const |
reco::PFDisplacedVertex::VertexType | identifyVertex (const reco::PFDisplacedVertex &v) const |
Vertex identification tool. More... | |
bool | isTrackSelected (const reco::Track &trk, const reco::PFDisplacedVertex::VertexTrackType vertexTrackType) const |
Select tracks tool. More... | |
PFDisplacedVertexHelper () | |
math::XYZPoint | primaryVertex () const |
Set Vertex direction using the primary vertex. More... | |
void | setPrimaryVertex (edm::Handle< reco::VertexCollection > mainVertexHandle, edm::Handle< reco::BeamSpot > beamSpotHandle) |
Update the primary vertex information. More... | |
void | setTracksSelector (const edm::ParameterSet &ps) |
Set Tracks selector parameters. More... | |
void | setVertexIdentifier (const edm::ParameterSet &ps) |
Set Vertex identifier parameters. More... | |
~PFDisplacedVertexHelper () | |
Private Member Functions | |
bool | isKaonMass (const reco::PFDisplacedVertex &v) const |
int | lambdaCP (const reco::PFDisplacedVertex &v) const |
Tools used to calculate quantities for vertex identification. More... | |
Private Attributes | |
math::XYZPoint | pvtx_ |
Primary vertex information updated for each event. More... | |
TracksSelector | tracksSelector_ |
VertexIdentifier | vertexIdentifier_ |
Static Private Attributes | |
static const double | muon_mass2 = 0.106*0.106 |
static const double | pion_mass2 = 0.0194 |
Masses2 taken from PDG. More... | |
static const double | proton_mass2 = 0.938*0.938 |
Displaced Vertex Finder Algorithm.
Definition at line 17 of file PFDisplacedVertexHelper.h.
PFDisplacedVertexHelper::PFDisplacedVertexHelper | ( | ) |
Definition at line 19 of file PFDisplacedVertexHelper.cc.
PFDisplacedVertexHelper::~PFDisplacedVertexHelper | ( | ) |
Definition at line 24 of file PFDisplacedVertexHelper.cc.
void PFDisplacedVertexHelper::Dump | ( | std::ostream & | out = std::cout | ) | const |
Definition at line 365 of file PFDisplacedVertexHelper.cc.
References PFDisplacedVertexHelper::TracksSelector::Dump(), PFDisplacedVertexHelper::VertexIdentifier::Dump(), pvtx_, tracksSelector_, and vertexIdentifier_.
Referenced by operator<<(), and primaryVertex().
reco::PFDisplacedVertex::VertexType PFDisplacedVertexHelper::identifyVertex | ( | const reco::PFDisplacedVertex & | v | ) | const |
Vertex identification tool.
Definition at line 94 of file PFDisplacedVertexHelper.cc.
References reco::PFDisplacedVertex::angle_io(), PFDisplacedVertexHelper::VertexIdentifier::angle_max(), PFDisplacedVertexHelper::VertexIdentifier::angle_V0Conv_max(), cscdqm::ANY, alignmentValidation::c1, ALCARECOTkAlJpsiMuMu_cff::charge, sistrip::FAKE, PFDisplacedVertexHelper::VertexIdentifier::identifyVertices(), isKaonMass(), reco::PFDisplacedVertex::isThereMergedTracks(), reco::PFDisplacedVertex::isTherePrimaryTracks(), lambdaCP(), PFDisplacedVertexHelper::VertexIdentifier::logPrimSec_min(), PFDisplacedVertexHelper::VertexIdentifier::looper_eta_max(), PFDisplacedVertexHelper::VertexIdentifier::mConv_max(), PFDisplacedVertexHelper::VertexIdentifier::mK0_max(), PFDisplacedVertexHelper::VertexIdentifier::mK0_min(), PFDisplacedVertexHelper::VertexIdentifier::mNucl_min(), reco::PFDisplacedVertex::nSecondaryTracks(), nTracks(), reco::PFDisplacedVertex::nTracks(), reco::Vertex::originalTrack(), reco::Vertex::position(), reco::PFDisplacedVertex::primaryMomentum(), PFDisplacedVertexHelper::VertexIdentifier::pt_kink_min(), PFDisplacedVertexHelper::VertexIdentifier::pt_min(), reco::Vertex::refittedTracks(), reco::PFDisplacedVertex::secondaryMomentum(), and vertexIdentifier_.
Referenced by PFDisplacedVertexFinder::rejectAndLabelVertex(), and setVertexIdentifier().
|
private |
Definition at line 333 of file PFDisplacedVertexHelper.cc.
References PFDisplacedVertexHelper::VertexIdentifier::mK_max(), PFDisplacedVertexHelper::VertexIdentifier::mK_min(), muon_mass2, reco::Vertex::refittedTracks(), mathSSE::sqrt(), reco::PFDisplacedVertex::trackTypes(), and vertexIdentifier_.
Referenced by identifyVertex(), and primaryVertex().
bool PFDisplacedVertexHelper::isTrackSelected | ( | const reco::Track & | trk, |
const reco::PFDisplacedVertex::VertexTrackType | vertexTrackType | ||
) | const |
Select tracks tool.
Definition at line 45 of file PFDisplacedVertexHelper.cc.
References particleFlowDisplacedVertexCandidate_cfi::dxy, reco::TrackBase::dxy(), PFDisplacedVertexHelper::TracksSelector::dxy_min(), reco::TrackBase::hitPattern(), PFDisplacedVertexHelper::TracksSelector::nChi2_max(), PFDisplacedVertexHelper::TracksSelector::nChi2_min(), PFDisplacedVertexHelper::TracksSelector::nHits_min(), reco::TrackBase::normalizedChi2(), PFDisplacedVertexHelper::TracksSelector::nOuterHits_max(), reco::HitPattern::numberOfHits(), reco::TrackBase::numberOfValidHits(), EnergyCorrector::pt, reco::TrackBase::pt(), PFDisplacedVertexHelper::TracksSelector::pt_min(), pvtx_, PFDisplacedVertexHelper::TracksSelector::quality(), reco::TrackBase::quality(), reco::TrackBase::qualityByName(), PFDisplacedVertexHelper::TracksSelector::selectTracks(), reco::PFDisplacedVertex::T_MERGED, reco::PFDisplacedVertex::T_TO_VERTEX, and tracksSelector_.
Referenced by PFDisplacedVertexFinder::fitVertexFromSeed(), and setVertexIdentifier().
|
private |
Tools used to calculate quantities for vertex identification.
Definition at line 246 of file PFDisplacedVertexHelper.cc.
References alignmentValidation::c1, ALCARECOTkAlJpsiMuMu_cff::charge, PFDisplacedVertexHelper::VertexIdentifier::mLambda_max(), PFDisplacedVertexHelper::VertexIdentifier::mLambda_min(), reco::Vertex::originalTrack(), reco::TrackBase::p(), pion_mass2, proton_mass2, reco::TrackBase::px(), reco::TrackBase::py(), reco::TrackBase::pz(), reco::Vertex::refittedTracks(), mathSSE::sqrt(), and vertexIdentifier_.
Referenced by identifyVertex(), and primaryVertex().
|
inline |
Set Vertex direction using the primary vertex.
Definition at line 47 of file PFDisplacedVertexHelper.h.
References gather_cfg::cout, Dump(), isKaonMass(), lambdaCP(), MillePedeFileConverter_cfg::out, and pvtx_.
Referenced by PFDisplacedVertexFinder::fitVertexFromSeed().
void PFDisplacedVertexHelper::setPrimaryVertex | ( | edm::Handle< reco::VertexCollection > | mainVertexHandle, |
edm::Handle< reco::BeamSpot > | beamSpotHandle | ||
) |
Update the primary vertex information.
Definition at line 26 of file PFDisplacedVertexHelper.cc.
References ecalDrivenElectronSeedsParameters_cff::beamSpot, edm::HandleBase::isValid(), pvtx_, reco::BeamSpot::x0(), reco::BeamSpot::y0(), and reco::BeamSpot::z0().
Referenced by PFDisplacedVertexFinder::setPrimaryVertex(), and setVertexIdentifier().
|
inline |
Set Tracks selector parameters.
Definition at line 25 of file PFDisplacedVertexHelper.h.
References tracksSelector_.
Referenced by PFDisplacedVertexFinder::setTracksSelector().
|
inline |
Set Vertex identifier parameters.
Definition at line 30 of file PFDisplacedVertexHelper.h.
References identifyVertex(), isTrackSelected(), setPrimaryVertex(), findQualityFiles::v, and vertexIdentifier_.
Referenced by PFDisplacedVertexFinder::setVertexIdentifier().
|
staticprivate |
Definition at line 207 of file PFDisplacedVertexHelper.h.
Referenced by isKaonMass().
|
staticprivate |
Masses2 taken from PDG.
Definition at line 206 of file PFDisplacedVertexHelper.h.
Referenced by lambdaCP().
|
staticprivate |
Definition at line 208 of file PFDisplacedVertexHelper.h.
Referenced by lambdaCP().
|
private |
Primary vertex information updated for each event.
Definition at line 203 of file PFDisplacedVertexHelper.h.
Referenced by Dump(), isTrackSelected(), primaryVertex(), and setPrimaryVertex().
|
private |
Definition at line 200 of file PFDisplacedVertexHelper.h.
Referenced by Dump(), isTrackSelected(), and setTracksSelector().
|
private |
Definition at line 201 of file PFDisplacedVertexHelper.h.
Referenced by Dump(), identifyVertex(), isKaonMass(), lambdaCP(), and setVertexIdentifier().