ATLAS Offline Software
Loading...
Searching...
No Matches
VxCascadeInfo.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5// Header include
7//-------------------------------------------------
8
9namespace Trk {
10
11
12
14
16
17 VxCascadeInfo::VxCascadeInfo(std::vector<xAOD::Vertex*> vertices,
18 std::vector< std::vector<TLorentzVector> > moms,
19 std::vector< Amg::MatrixX > covs,
20 int nDoF, double Chi2 ) :
22 m_covarianceAtVertex(std::move(covs)), m_nDoF(nDoF), m_fullChi2(Chi2)
23 {
24 }
25
26
27
29 {
30 int NV=m_particleMomAtVertex.size(); //Cascade size for control
31 while( (int) m_covarianceAtVertex.size() > NV ) m_covarianceAtVertex.pop_back(); //remove previous full matrices
32 m_covarianceAtVertex.push_back( COV );
33 }
34
36
37 = default;
38
39
40} // End Of Namespace
std::vector< Amg::MatrixX > m_covarianceAtVertex
std::vector< std::vector< TLorentzVector > > m_particleMomAtVertex
void setFullCascadeCovariance(const Amg::MatrixX &)
const std::vector< xAOD::Vertex * > & vertices() const
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Ensure that the ATLAS eigen extensions are properly loaded.
STL namespace.