|
ATLAS Offline Software
|
Go to the documentation of this file.
25 m_aod(
"VxPrimaryCandidate"),
26 m_xaodout(
"PrimaryVertices")
48 return StatusCode::SUCCESS;
56 return StatusCode::SUCCESS;
63 m_xaodout = std::make_unique<xAOD::VertexContainer>();
64 m_xauxout = std::make_unique<xAOD::VertexAuxContainer>();
78 for( ; itr !=
end; ++itr ) {
83 const Amg::Vector3D& position = (*itr)->recVertex().position();
84 vertex->setPosition(position);
86 const AmgSymMatrix(3)& covariance = (*itr)->recVertex().covariancePosition();
87 vertex->setCovariancePosition(covariance);
89 vertex->setFitQuality((*itr)->recVertex().fitQuality().chiSquared(),
static_cast<float>((*itr)->recVertex().fitQuality().doubleNumberDoF ()));
93 unsigned int VTAVsize = (*itr)->vxTrackAtVertex()->size();
94 for (
unsigned int i = 0 ;
i < VTAVsize ; ++
i)
114 ATH_MSG_DEBUG (
"Cast of element link failed, skip this VxTrack/NeutralAtVertex !!!!!");
120 return StatusCode::SUCCESS;
SG::ReadHandle< VxContainer > m_aod
The key of the input Container.
The VxTrackAtVertex is a common class for all present TrkVertexFitters The VxTrackAtVertex is designe...
Vertex_v1 Vertex
Define the latest version of the vertex class.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const std::string & name() const
Return the StoreGate ID for the referenced object.
std::string m_NPContainerName
The key for the neutral particle links Container.
const_iterator cend() const noexcept
Return a const_iterator pointing past the end of the collection.
const ITrackLink * trackOrParticleLink(void) const
virtual StatusCode initialize()
Function initialising the algorithm.
#define AmgSymMatrix(dim)
void resetWithKeyAndIndex(const ID_type &dataID, index_type elemID, IProxyDict *sg=0)
Set the link to an element given by string key and index.
SG::WriteHandle< xAOD::VertexAuxContainer > m_xauxout
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Helpers for checking error return status codes and reporting errors.
VertexCnvAlg(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
Eigen::Matrix< double, 3, 1 > Vector3D
Element link to XAOD NeutralParticle.
Class describing a Vertex.
std::string m_TPContainerName
The key for the track particle links Container.
index_type index() const
Get the index of the element inside of its container.
const_iterator cbegin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
virtual StatusCode execute()
Function executing the algorithm.
double vtxCompatibility(void) const
Information about fast compatibility estimation, to be given to the annealing.
SG::WriteHandle< xAOD::VertexContainer > m_xaodout
The key for the output xAOD::Container.