1 #ifndef RecoParticleFlow_PFTracking_PFDisplacedVertexCandidateFinder_h
2 #define RecoParticleFlow_PFTracking_PFDisplacedVertexCandidateFinder_h
33 typedef std::vector<bool>
Mask;
35 typedef std::list<reco::TrackBaseRef>::iterator
IE;
36 typedef std::list<reco::TrackBaseRef>::const_iterator
IEC;
37 typedef reco::PFDisplacedVertexCandidateCollection::const_iterator
IBC;
64 const std::unique_ptr<reco::PFDisplacedVertexCandidateCollection>&
vertexCandidates()
const {
void setInput(const edm::Handle< reco::TrackCollection > &trackh, const MagneticField *magField)
edm::soa::AddColumns_t< EtaPhiTable, std::tuple< col::Pt >> PtEtaPhiTable
A block of tracks linked together.
GlobalTrajectoryParameters getGlobalTrajectoryParameters(const reco::Track *) const
--—— TOOLS --—— //
IE associate(IE next, IE last, reco::PFDisplacedVertexCandidate &tempVertexCandidate)
--—— Different steps of the finder algorithm --—— ///
void setPrimaryVertex(edm::Handle< reco::VertexCollection > mainVertexHandle, edm::Handle< reco::BeamSpot > beamSpotHandle)
TwoTrackMinimumDistance theMinimum_
friend std::ostream & operator<<(std::ostream &, const PFDisplacedVertexCandidateFinder &)
const std::unique_ptr< reco::PFDisplacedVertexCandidateCollection > & vertexCandidates() const
std::list< reco::TrackBaseRef > eventTracks_
The track refs.
~PFDisplacedVertexCandidateFinder()
void link(const reco::TrackBaseRef &el1, const reco::TrackBaseRef &el2, double &dist, GlobalPoint &crossing_point, reco::PFDisplacedVertexCandidate::VertexLinkTest &linktest)
Check whether 2 elements are linked and fill the link parameters.
edm::soa::PtEtaPhiTable track_table_
void setDebug(bool debug)
sets debug printout flag
void setParameters(double dcaCut, double primaryVertexCut, double dcaPInnerHitCut, const edm::ParameterSet &ps_trk)
---—— Set different algo parameters —— ///
std::list< reco::TrackBaseRef >::iterator IE
const MagneticField * magField_
double dcaCut_
–— Algo parameters for the vertex finder -— ///
std::unique_ptr< reco::PFDisplacedVertexCandidateCollection > vertexCandidates_
-----— Members -----— ///
std::vector< GlobalTrajectoryParameters > eventTrackTrajectories_
reco::PFDisplacedVertexCandidateCollection::const_iterator IBC
XYZPointD XYZPoint
point in space with cartesian internal representation
T getParameter(std::string const &) const
bool goodPtResolution(const reco::TrackBaseRef &trackref) const
Quality Criterion on the Pt resolution to select a Track.
bool isSelected(const reco::TrackBaseRef &trackref)
std::list< reco::TrackBaseRef >::const_iterator IEC
void packLinks(reco::PFDisplacedVertexCandidate &vertexCandidate)
void findDisplacedVertexCandidates()
-----— Main function which find vertices -----— ///
double primaryVertexCut2_
Do not reconstruct vertices wich are too close to the beam pipe.
double dcaPInnerHitCut2_
Maximum distance between the DCA Point and the inner hit of the track.
std::vector< bool > Mask
Mask used to spot if a track is free or not.
std::unique_ptr< reco::PFDisplacedVertexCandidateCollection > transferVertexCandidates()
bool debug_
if true, debug printouts activated
unsigned vertexCandidatesSize_
PFDisplacedVertexCandidateFinder()