8#include "GeoModelKernel/throwExcept.h"
13 if (!acc.isAvailable(track)) {
16 const auto& link = acc(track);
47 if (!Acts::rangeContainsValue(
m_clusters, clust)) {
The CaloExtension holds the ID extrapolation states through the calorimeter and the associated CaloCl...
const ClusterVec_t & associatedClusters() const
Returns the view on the asociated clusters.
std::size_t size() const
Number of extensions stored in the instance.
const xAOD::TrackParticle * m_idTrack
Pointer to the associated ID track particle.
CaloExtension(const xAOD::TrackParticle *track)
Constructor taking the pointer to the ID track used for the extrapolations.
ParamVec_t m_parameters
Define the list of bound track parameters.
void appendParameters(Acts::BoundTrackParameters &&pars)
Append a list of recorded hit parameters.
const ParamVec_t & parameters() const
Returns the view onto the cached BoundTackParameters.
ClusterVec_t m_clusters
The list of assoicated clusters.
const xAOD::TrackParticle * track() const
std::vector< const xAOD::CaloCluster * > ClusterVec_t
Abrivation of the calo cluster vector.
std::vector< Acts::BoundTrackParameters > ParamVec_t
Abrivation of the Bound track parameter vector.
void associateCluster(const xAOD::CaloCluster *clust)
Associates a calorimeter cluster with the calo extension.
std::optional< Acts::BoundTrackParameters > lastTrackParameters() const
Returns the track parameters asssociated with the last measurement state of the ID track.
std::optional< Acts::BoundTrackParameters > lastParameters() const
Returns the outermost parameters known to the extension.
Helper class to provide constant type-safe access to aux data.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
const CaloExtension * getCaloExtension(const xAOD::TrackParticle &track)
Retrieve a pointer to the CaloExtension linked with the passed TrackParticle.
std::optional< Acts::BoundTrackParameters > lastTrackParameters(const xAOD::TrackParticle &trkPart, const bool skipOutlier=true)
Returns the last MeasurementState in form of Acts::BoundTrackParameters.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
#define THROW_EXCEPTION(MESSAGE)