ATLAS Offline Software
TrackSummary_v1.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef XAODTRACKING_VERSIONS_TRACKSUMMARY_V1_H
5 #define XAODTRACKING_VERSIONS_TRACKSUMMARY_V1_H
6 #include <cstdint>
7 #include <vector>
8 #include "AthLinks/ElementLink.h"
12 
13 
14 namespace xAOD
15 {
21  {
22  private:
24  public:
25  TrackSummary_v1() = default;
30  template <std::size_t measdim = 6>
31  Eigen::Map<const Eigen::Matrix<double, measdim, 1>> paramsEigen() const
32  {
33  return Eigen::Map<const Eigen::Matrix<double, measdim, 1>>{s_paramsAcc(*this).data()};
34  }
38  template <std::size_t measdim = 6>
39  Eigen::Map<Eigen::Matrix<double, measdim, 1>> paramsEigen()
40  {
41  return Eigen::Map<Eigen::Matrix<double, measdim, 1>>{s_paramsAcc(*this).data()};
42  }
43 
47  const std::vector<double> &params() const;
51  void setParams(const std::vector<double> &m);
52 
56  template <std::size_t measdim = 6>
57  Eigen::Map<const Eigen::Matrix<double, measdim, measdim>> covParamsEigen() const
58  {
59  return Eigen::Map<const Eigen::Matrix<double, measdim, measdim>>{s_covParamsAcc(*this).data()};
60  }
61 
65  template <std::size_t measdim = 6>
66  Eigen::Map<Eigen::Matrix<double, measdim, measdim>> covParamsEigen()
67  {
68  return Eigen::Map<Eigen::Matrix<double, measdim, measdim>>{s_covParamsAcc(*this).data()};
69  }
70 
74  const std::vector<double> &covParams() const;
78  void setCovParams(const std::vector<double> &m);
79 
83  unsigned int nMeasurements() const;
87  void setnMeasurements(unsigned int m);
91  const unsigned int* nMeasurementsPtr() const;
92  unsigned int* nMeasurementsPtr();
93 
97  unsigned int nHoles() const;
101  void setnHoles(unsigned int m);
105  const unsigned int* nHolesPtr() const;
106  unsigned int* nHolesPtr();
107 
108 
109 
113  float chi2f() const;
117  void setChi2f(float m);
121  const float* chi2fPtr() const;
122  float* chi2fPtr();
123 
127  unsigned int ndf() const;
131  void setNdf(unsigned int m);
135  const unsigned int* ndfPtr() const;
136  unsigned int* ndfPtr();
137 
138 
142  unsigned int nOutliers() const;
146  void setnOutliers(unsigned int m);
150  const unsigned int* nOutliersPtr() const;
151  unsigned int* nOutliersPtr();
152 
156  unsigned int nSharedHits() const;
160  void setnSharedHits(unsigned int m);
164  const unsigned int* nSharedHitsPtr() const;
165  unsigned int* nSharedHitsPtr();
166 
167 
171  unsigned int tipIndex() const;
172 
177  void setTipIndex(unsigned int);
178 
182  const unsigned int* tipIndexPtr() const;
183  unsigned int* tipIndexPtr();
184 
189  unsigned int stemIndex() const;
190 
195  void setStemIndex(unsigned int);
196 
200  const unsigned int* stemIndexPtr() const;
201  unsigned int* stemIndexPtr();
202 
203 
207  unsigned int surfaceIndex() const;
208 
212  void setSurfaceIndex(unsigned int);
213 
214 
215 
219  const uint8_t& particleHypothesis() const;
221 
225  void resize(size_t sz = 6);
226 
230  size_t size() const;
231  };
232 }
233 #endif
xAOD::TrackSummary_v1::nHolesPtr
const unsigned int * nHolesPtr() const
pointers API needed by MTJ
xAOD::TrackSummary_v1::nSharedHitsPtr
const unsigned int * nSharedHitsPtr() const
pointers API needed by MTJ
xAOD::TrackSummary_v1::s_paramsAcc
static const SG::AuxElement::Accessor< std::vector< double > > s_paramsAcc
Definition: TrackSummary_v1.h:23
fitman.sz
sz
Definition: fitman.py:527
xAOD::TrackSummary_v1::tipIndexPtr
unsigned int * tipIndexPtr()
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
xAOD::TrackSummary_v1::params
const std::vector< double > & params() const
access track parameters as plain vector
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:575
xAOD::TrackSummary_v1::nMeasurementsPtr
unsigned int * nMeasurementsPtr()
xAOD::TrackSummary_v1
Track Summary for Acts MultiTrajectory.
Definition: TrackSummary_v1.h:21
xAOD::TrackSummary_v1::s_covParamsAcc
static const SG::AuxElement::Accessor< std::vector< double > > s_covParamsAcc
Definition: TrackSummary_v1.h:23
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:66
xAOD::TrackSummary_v1::paramsEigen
Eigen::Map< Eigen::Matrix< double, measdim, 1 > > paramsEigen()
access parameters of non const element
Definition: TrackSummary_v1.h:39
xAOD::TrackSummary_v1::nHolesPtr
unsigned int * nHolesPtr()
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:446
xAOD::TrackSummary_v1::size
size_t size() const
retrieve the size of the internal vectors for the data summary
Definition: TrackSummary_v1.cxx:50
xAOD::TrackSummary_v1::setTipIndex
void setTipIndex(unsigned int)
Set the tip index.
xAOD::TrackSummary_v1::nOutliersPtr
const unsigned int * nOutliersPtr() const
pointers API needed by MTJ
xAOD::TrackSummary_v1::stemIndexPtr
const unsigned int * stemIndexPtr() const
pointers API needed by MTJ
xAOD::TrackSummary_v1::setCovParams
void setCovParams(const std::vector< double > &m)
access set covariance from plain vector
xAOD::TrackSummary_v1::nMeasurements
unsigned int nMeasurements() const
access nMeasurements
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::TrackSummary_v1::covParamsEigen
Eigen::Map< const Eigen::Matrix< double, measdim, measdim > > covParamsEigen() const
access track covariance matrix (flattened, rows layout) of const element
Definition: TrackSummary_v1.h:57
xAOD::TrackSummary_v1::surfaceIndex
unsigned int surfaceIndex() const
index of the surfaces in the surfaces collection
xAOD::TrackSummary_v1::setnSharedHits
void setnSharedHits(unsigned int m)
access set nSharedHits
xAOD::TrackSummary_v1::setStemIndex
void setStemIndex(unsigned int)
Set the stem index.
xAOD::TrackSummary_v1::nOutliersPtr
unsigned int * nOutliersPtr()
xAOD::TrackSummary_v1::nHoles
unsigned int nHoles() const
access nHoles
xAOD::TrackSummary_v1::nOutliers
unsigned int nOutliers() const
access nOutliers
xAOD::TrackSummary_v1::nSharedHitsPtr
unsigned int * nSharedHitsPtr()
xAOD::TrackSummary_v1::stemIndexPtr
unsigned int * stemIndexPtr()
xAOD::TrackSummary_v1::tipIndexPtr
const unsigned int * tipIndexPtr() const
pointers API needed by MTJ
xAOD::TrackSummary_v1::setParticleHypothesis
void setParticleHypothesis(const uint8_t &)
xAOD::TrackSummary_v1::setChi2f
void setChi2f(float m)
access set chi2
xAOD::TrackSummary_v1::TrackSummary_v1
TrackSummary_v1()=default
xAOD::TrackSummary_v1::setNdf
void setNdf(unsigned int m)
access set ndf
xAOD::TrackSummary_v1::nMeasurementsPtr
const unsigned int * nMeasurementsPtr() const
pointers API needed by MTJ
xAOD::TrackSummary_v1::chi2fPtr
const float * chi2fPtr() const
pointers API needed by MTJ
EventPrimitives.h
xAOD::TrackSummary_v1::resize
void resize(size_t sz=6)
resize internal arrays to store params (to capacity sz) & convariances (to capacity sz x sz)
Definition: TrackSummary_v1.cxx:45
xAOD::TrackSummary_v1::stemIndex
unsigned int stemIndex() const
index of the stem of the TrackStates linked list in MultiTrajectory steemIndex is needed reverse look...
xAOD::TrackSummary_v1::ndfPtr
const unsigned int * ndfPtr() const
pointers API needed by MTJ
xAOD::TrackSummary_v1::chi2fPtr
float * chi2fPtr()
xAOD::TrackSummary_v1::setParams
void setParams(const std::vector< double > &m)
access set parameters from plain vector
xAOD::TrackSummary_v1::particleHypothesis
const uint8_t & particleHypothesis() const
particle hypothesis access
xAOD::TrackSummary_v1::ndf
unsigned int ndf() const
access ndf
xAOD::TrackSummary_v1::chi2f
float chi2f() const
access chi2
xAOD::TrackSummary_v1::tipIndex
unsigned int tipIndex() const
index of the tip of the TrackStates linked list in MultiTrajectory
xAOD::TrackSummary_v1::setnMeasurements
void setnMeasurements(unsigned int m)
access set nMeasurements
xAOD::TrackSummary_v1::setnHoles
void setnHoles(unsigned int m)
access set nHoles
xAOD::TrackSummary_v1::setSurfaceIndex
void setSurfaceIndex(unsigned int)
Set the index in surface container.
xAOD::TrackSummary_v1::covParams
const std::vector< double > & covParams() const
access track covariance as plain vector
xAOD::TrackSummary_v1::paramsEigen
Eigen::Map< const Eigen::Matrix< double, measdim, 1 > > paramsEigen() const
access track backend vector of const element
Definition: TrackSummary_v1.h:31
xAOD::TrackSummary_v1::nSharedHits
unsigned int nSharedHits() const
access nSharedHits
xAOD::TrackSummary_v1::setnOutliers
void setnOutliers(unsigned int m)
access set nOutliers
TrackingPrimitives.h
xAOD::TrackSummary_v1::ndfPtr
unsigned int * ndfPtr()
xAOD::TrackSummary_v1::covParamsEigen
Eigen::Map< Eigen::Matrix< double, measdim, measdim > > covParamsEigen()
access track covariance matrix (flattened, rows layout)
Definition: TrackSummary_v1.h:66
AuxElement.h
Base class for elements of a container that can have aux data.