|
ATLAS Offline Software
|
Go to the documentation of this file.
15 m_iVertexFitter(
"Trk::AdaptiveVertexFitter"),
16 m_useBeamConstraint(false)
18 declareInterface<IVertexMergingTool> (
this );
32 return StatusCode::FAILURE;
38 return StatusCode::SUCCESS;
53 theconstraint.
setPosition( beamSpotHandle->beamVtx().position() );
55 theconstraint.
setFitQuality( beamSpotHandle->beamVtx().fitQuality().chiSquared(), beamSpotHandle->beamVtx().fitQuality().doubleNumberDoF() );
61 NewContainer->setStore( auxNewContainer );
64 std::vector<bool> remerged( MyVxCont.
size(),
false );
74 }
else if( !remerged[Ni] ) {
76 unsigned int Nj = Ni+1;
84 std::vector<const xAOD::TrackParticle*> combinedTracks;
123 return std::make_pair( NewContainer, auxNewContainer );
129 double z1 = vx1->
z();
130 double z2 = vx2->
z();
132 double err2_z1 = vx1->covariancePosition()(
Trk::z,
Trk::z);
133 double err2_z2 = vx2->covariancePosition()(
Trk::z,
Trk::z);
135 double sigmaZ = (fabs(z1-z2))/(sqrt(err2_z1+err2_z2));
137 ATH_MSG_DEBUG(
"z1 = " << z1 <<
", z2 = " << z2 <<
", error = " << sqrt( err2_z1+err2_z2 ) );
void setPosition(const Amg::Vector3D &position)
Sets the 3-position.
Const iterator class for DataVector/DataList.
void setFitQuality(float chiSquared, float numberDoF)
Set the 'Fit Quality' information.
size_t nTrackParticles() const
Get the number of tracks associated with this vertex.
Temporary container used until we have I/O for AuxStoreInternal.
@ z
global position (cartesian)
Vertex_v1 Vertex
Define the latest version of the vertex class.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const Amg::Vector3D & position() const
Returns the 3-pos.
const std::string & key() const
Return the StoreGate ID for the referenced object.
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
VxType::VertexType vertexType() const
The type of the vertex.
@ NoVtx
Dummy vertex. TrackParticle was not used in vertex fit.
VertexAuxContainer_v1 VertexAuxContainer
Definition of the current jet auxiliary container.
::StatusCode StatusCode
StatusCode definition for legacy code.
const TrackParticle * trackParticle(size_t i) const
Get the pointer to a given track that was used in vertex reco.
float z() const
Returns the z position.
Ensure that the ATLAS eigen extensions are properly loaded.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
StatusCode initialize(bool used=true)
Eigen::Matrix< double, 3, 1 > Vector3D
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
Class describing a Vertex.
size_type size() const noexcept
Returns the number of elements in the collection.
void setCovariancePosition(const AmgSymMatrix(3)&covariancePosition)
Sets the vertex covariance matrix.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.