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 18 of file PFDisplacedVertexHelper.cc.
PFDisplacedVertexHelper::~PFDisplacedVertexHelper | ( | ) |
Definition at line 21 of file PFDisplacedVertexHelper.cc.
void PFDisplacedVertexHelper::Dump | ( | std::ostream & | out = std::cout | ) | const |
Definition at line 307 of file PFDisplacedVertexHelper.cc.
References PFDisplacedVertexHelper::TracksSelector::Dump(), PFDisplacedVertexHelper::VertexIdentifier::Dump(), MillePedeFileConverter_cfg::out, pvtx_, tracksSelector_, and vertexIdentifier_.
reco::PFDisplacedVertex::VertexType PFDisplacedVertexHelper::identifyVertex | ( | const reco::PFDisplacedVertex & | v | ) | const |
Vertex identification tool.
Definition at line 72 of file PFDisplacedVertexHelper.cc.
References PFDisplacedVertexHelper::VertexIdentifier::angle_max(), PFDisplacedVertexHelper::VertexIdentifier::angle_V0Conv_max(), cscdqm::ANY, alignmentValidation::c1, ALCARECOTkAlJpsiMuMu_cff::charge, sistrip::FAKE, PFDisplacedVertexHelper::VertexIdentifier::identifyVertices(), isKaonMass(), 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(), beamSpotPI::nTracks, PFDisplacedVertexHelper::VertexIdentifier::pt_kink_min(), PFDisplacedVertexHelper::VertexIdentifier::pt_min(), findQualityFiles::v, and vertexIdentifier_.
Referenced by PFDisplacedVertexFinder::rejectAndLabelVertex().
|
private |
Definition at line 285 of file PFDisplacedVertexHelper.cc.
References PFDisplacedVertexHelper::VertexIdentifier::mK_max(), PFDisplacedVertexHelper::VertexIdentifier::mK_min(), muon_mass2, mathSSE::sqrt(), findQualityFiles::v, and vertexIdentifier_.
Referenced by identifyVertex().
bool PFDisplacedVertexHelper::isTrackSelected | ( | const reco::Track & | trk, |
const reco::PFDisplacedVertex::VertexTrackType | vertexTrackType | ||
) | const |
Select tracks tool.
Definition at line 38 of file PFDisplacedVertexHelper.cc.
References PVValHelper::dxy, PFDisplacedVertexHelper::TracksSelector::dxy_min(), PFDisplacedVertexHelper::TracksSelector::nChi2_max(), PFDisplacedVertexHelper::TracksSelector::nChi2_min(), nHits, PFDisplacedVertexHelper::TracksSelector::nHits_min(), PFDisplacedVertexHelper::TracksSelector::nOuterHits_max(), DiDispStaMuonMonitor_cfi::pt, PFDisplacedVertexHelper::TracksSelector::pt_min(), pvtx_, PFDisplacedVertexHelper::TracksSelector::quality(), PFDisplacedVertexHelper::TracksSelector::selectTracks(), reco::PFDisplacedVertex::T_MERGED, reco::PFDisplacedVertex::T_TO_VERTEX, tracksSelector_, and trk.
Referenced by PFDisplacedVertexFinder::fitVertexFromSeed().
|
private |
Tools used to calculate quantities for vertex identification.
Definition at line 214 of file PFDisplacedVertexHelper.cc.
References alignmentValidation::c1, ALCARECOTkAlJpsiMuMu_cff::charge, PFDisplacedVertexHelper::VertexIdentifier::mLambda_max(), PFDisplacedVertexHelper::VertexIdentifier::mLambda_min(), reco::TrackBase::p(), pion_mass2, proton_mass2, reco::TrackBase::px(), reco::TrackBase::py(), reco::TrackBase::pz(), tkAlTrackRefitSequence_cff::refittedTracks, mathSSE::sqrt(), findQualityFiles::v, and vertexIdentifier_.
Referenced by identifyVertex().
|
inline |
Set Vertex direction using the primary vertex.
Definition at line 39 of file PFDisplacedVertexHelper.h.
References 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 23 of file PFDisplacedVertexHelper.cc.
References isoTrack_cff::beamSpot, edm::HandleBase::isValid(), pvtx_, reco::BeamSpot::x0(), reco::BeamSpot::y0(), and reco::BeamSpot::z0().
Referenced by PFDisplacedVertexFinder::setPrimaryVertex().
|
inline |
Set Tracks selector parameters.
Definition at line 23 of file PFDisplacedVertexHelper.h.
References tracksSelector_.
Referenced by PFDisplacedVertexFinder::setTracksSelector().
|
inline |
Set Vertex identifier parameters.
Definition at line 26 of file PFDisplacedVertexHelper.h.
References vertexIdentifier_.
Referenced by PFDisplacedVertexFinder::setVertexIdentifier().
|
staticprivate |
Definition at line 182 of file PFDisplacedVertexHelper.h.
Referenced by isKaonMass().
|
staticprivate |
Masses2 taken from PDG.
Definition at line 181 of file PFDisplacedVertexHelper.h.
Referenced by lambdaCP().
|
staticprivate |
Definition at line 183 of file PFDisplacedVertexHelper.h.
Referenced by lambdaCP().
|
private |
Primary vertex information updated for each event.
Definition at line 178 of file PFDisplacedVertexHelper.h.
Referenced by Dump(), isTrackSelected(), primaryVertex(), and setPrimaryVertex().
|
private |
Definition at line 175 of file PFDisplacedVertexHelper.h.
Referenced by Dump(), isTrackSelected(), and setTracksSelector().
|
private |
Definition at line 176 of file PFDisplacedVertexHelper.h.
Referenced by Dump(), identifyVertex(), isKaonMass(), lambdaCP(), and setVertexIdentifier().