ATLAS Offline Software
TrackParameters_v1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
6 
7 
8 namespace xAOD {
9  static const SG::AuxElement::Accessor<std::vector<double>> paramsAcc("params");
10 
12  return VectorMap{paramsAcc(*this).data()};
13  }
14 
16  return ConstVectorMap{paramsAcc(*this).data()};
17  }
18 
19  static const SG::AuxElement::Accessor<std::vector<double>> covMatrixAcc("covMatrix");
20 
22  return MatrixMap{covMatrixAcc(*this).data()};
23  }
25  return ConstMatrixMap{covMatrixAcc(*this).data()};
26  }
27 
29  paramsAcc(*this).resize(sz);
30  covMatrixAcc(*this).resize(sz * sz);
31  }
32 }
xAOD::TrackParameters_v1::MatrixMap
Eigen::Map< Eigen::Matrix< double, 6, 6 > > MatrixMap
Definition: TrackParameters_v1.h:23
fitman.sz
sz
Definition: fitman.py:527
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
AuxStoreAccessorMacros.h
TrackParameters_v1.h
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::TrackParameters_v1::paramsEigen
ConstVectorMap paramsEigen() const
access track parameters vector of const element
Definition: TrackParameters_v1.cxx:15
xAOD::TrackParameters_v1::covMatrixEigen
ConstMatrixMap covMatrixEigen() const
access track covariance matrix (flattened, rows layout) of const element
Definition: TrackParameters_v1.cxx:24
xAOD::TrackParameters_v1::ConstVectorMap
Eigen::Map< const Eigen::Matrix< double, 6, 1 > > ConstVectorMap
Definition: TrackParameters_v1.h:20
xAOD::TrackParameters_v1::VectorMap
Eigen::Map< Eigen::Matrix< double, 6, 1 > > VectorMap
Definition: TrackParameters_v1.h:21
xAOD::TrackParameters_v1::resize
void resize(size_t sz=6)
expands sizes of internal vectors for the data storage ( by default this is 6 for parameters and 6x6 ...
Definition: TrackParameters_v1.cxx:28
xAOD::TrackParameters_v1::ConstMatrixMap
Eigen::Map< const Eigen::Matrix< double, 6, 6 > > ConstMatrixMap
Definition: TrackParameters_v1.h:22