|
ATLAS Offline Software
|
Go to the documentation of this file.
28 (
const std::string&
type,
29 const std::string&
name,
32 m_resolver (
"TrackParticlePerigeeAtPVAssociationTool",
36 declareProperty (
"SGKey",
m_vxCandidate =
"PrimaryVertices,VxPrimaryCandidate");
44 return StatusCode::SUCCESS;
60 if (
sc.isFailure() || !vxContainer) {
65 if(vxContainer->
size()<1){
66 REPORT_MESSAGE (MSG::WARNING) <<
"No primary vertices reconstructed";
70 if (
track.measuredPerigee()->covariance() &&
track.measuredPerigee()->covariance()->rows() == 0)
72 REPORT_MESSAGE (MSG::WARNING) <<
"Bad track; can't find perigee at vertex.";
78 REPORT_MESSAGE (MSG::WARNING) <<
"No primary vertices reconstructed";
98 if (
sc.isFailure() || !vxContainer) {
103 if(vxContainer->
size()<1){
104 REPORT_MESSAGE (MSG::WARNING) <<
"No primary vertices reconstructed";
113 REPORT_MESSAGE (MSG::WARNING) <<
"No primary vertices reconstructed";
const Trk::RecVertex & recVertex(void) const
Returns a reference to reconstructed vertex.
virtual const Trk::TrackParameters * get(const Rec::TrackParticle &p) override
Return the target object.
TrackParticlePerigeeAtPVAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
StatusCode initialize(CLID clid, const std::string &typname)
Initialize.
virtual StatusCode initialize() override
Associate from a TrackParticle to its perigee at PV.
Block filler tool for noisy FEB information.
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
const Amg::Vector3D & position() const
return position of vertex
std::string key()
Return the SG key we should use.
ToolHandle< Reco::ITrackToVertex > m_trackToVertexTool
Helpers for checking error return status codes and reporting errors.
std::string m_vxCandidate
virtual void releaseObject(const Trk::TrackParameters *p) override
Release an object retrieved from the association.
#define REPORT_MESSAGE(LVL)
Report a message.
Class describing a Vertex.
const Trk::VxCandidate * PrimaryVertexSelector(const VxContainer &vxContainer)
Simple Global Function to wrap around the VxCandidate container.
Class describing a TrackParticle.
size_type size() const noexcept
Returns the number of elements in the collection.