ATLAS Offline Software
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 
9 namespace Trk {
10 
11 
12 
14 
15  VxCascadeInfo::VxCascadeInfo() : VxSecVertexInfo(), m_nDoF(0), m_fullChi2(0) {}
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 ) :
21  VxSecVertexInfo(std::move(vertices)), m_particleMomAtVertex(std::move(moms)),
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
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:29
Trk::VxCascadeInfo
Definition: VxCascadeInfo.h:75
Trk::VxCascadeInfo::m_particleMomAtVertex
std::vector< std::vector< TLorentzVector > > m_particleMomAtVertex
Definition: VxCascadeInfo.h:140
Rec::nDoF
double nDoF(const Trk::Track &track)
Definition: OutwardsCombinedMuonTrackBuilder.cxx:31
Trk::VxCascadeInfo::VxCascadeInfo
VxCascadeInfo()
Definition: VxCascadeInfo.cxx:15
Trk::VxCascadeInfo::~VxCascadeInfo
~VxCascadeInfo()
Trk::VxCascadeInfo::setFullCascadeCovariance
void setFullCascadeCovariance(const Amg::MatrixX &)
Definition: VxCascadeInfo.cxx:28
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::VxSecVertexInfo
Definition: VxSecVertexInfo.h:63
VxCascadeInfo.h
Trk::VxCascadeInfo::m_covarianceAtVertex
std::vector< Amg::MatrixX > m_covarianceAtVertex
Definition: VxCascadeInfo.h:141