1 #ifndef RecoParticleFlow_PFTracking_PFDisplacedVertexCandidateFinder_h 2 #define RecoParticleFlow_PFTracking_PFDisplacedVertexCandidateFinder_h 34 typedef std::vector<bool>
Mask;
36 typedef std::list< reco::TrackBaseRef >::iterator
IE;
37 typedef std::list< reco::TrackBaseRef >::const_iterator
IEC;
38 typedef reco::PFDisplacedVertexCandidateCollection::const_iterator
IBC;
67 const std::auto_ptr< reco::PFDisplacedVertexCandidateCollection >&
vertexCandidates()
const
void setInput(const edm::Handle< reco::TrackCollection > &trackh, const MagneticField *magField)
void link(const reco::TrackBaseRef &el1, const reco::TrackBaseRef &el2, double &dist, GlobalPoint &P, reco::PFDisplacedVertexCandidate::VertexLinkTest &linktest)
Check whether 2 elements are linked and fill the link parameters.
T getParameter(std::string const &) const
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)
std::vector< GlobalTrajectoryParameters > eventTrackTrajectories_
TwoTrackMinimumDistance theMinimum_
friend std::ostream & operator<<(std::ostream &, const PFDisplacedVertexCandidateFinder &)
std::auto_ptr< reco::PFDisplacedVertexCandidateCollection > vertexCandidates_
-----— Members -----— ///
~PFDisplacedVertexCandidateFinder()
std::list< reco::TrackBaseRef >::const_iterator IEC
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 —— ///
const MagneticField * magField_
double dcaCut_
–— Algo parameters for the vertex finder -— ///
reco::PFDisplacedVertexCandidateCollection::const_iterator IBC
const std::auto_ptr< reco::PFDisplacedVertexCandidateCollection > & vertexCandidates() const
XYZPointD XYZPoint
point in space with cartesian internal representation
std::pair< OmniClusterRef, TrackingParticleRef > P
bool goodPtResolution(const reco::TrackBaseRef &trackref) const
Quality Criterion on the Pt resolution to select a Track.
bool isSelected(const reco::TrackBaseRef &trackref)
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.
std::list< reco::TrackBaseRef > eventTracks_
The track refs.
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::list< reco::TrackBaseRef >::iterator IE
std::auto_ptr< reco::PFDisplacedVertexCandidateCollection > transferVertexCandidates()
bool debug_
if true, debug printouts activated
unsigned vertexCandidatesSize_
PFDisplacedVertexCandidateFinder()