12#ifndef MUONTRUTHALGS_TruthTrackRecordsAlg_H
13#define MUONTRUTHALGS_TruthTrackRecordsAlg_H
31 using AthReentrantAlgorithm::AthReentrantAlgorithm;
35 virtual StatusCode
execute(
const EventContext& ctx)
const override;
46 template <
typename dType>
using DecorHandlePtrVec_t = std::vector<xAOD::ContainerDecorator<xAOD::TruthParticleContainer, dType>>;
81 SummaryDecors& myDecors)
const;
99 this,
"TrackRecordCollectionNames", {
"CaloEntryLayer",
"MuonEntryLayer",
"MuonExitLayer"}};
126 ToolHandle<Trk::IExtrapolator>
m_extrapolator{
this,
"Extrapolator",
"Trk::Extrapolator/AtlasExtrapolator"};
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
DecorKey_t m_muonSnapShotPz
virtual StatusCode initialize() override
DecorKey_t m_muonSnapShotEY
SG::WriteDecorHandleKeyArray< xAOD::TruthParticleContainer > DecorKey_t
Declaration of the key arrays, which are all initialized as empty (they will be filled up by @fillWri...
DecorHandlePtrVec_t< char > WriteDecorArray_b
DecorKey_t m_muonSnapShotEPx
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_muonTruth
Key of the container of truth muons that will be decorated.
DecorKey_t m_muonSnapShotEPz
DecorKey_t m_muonSnapShotEZ
StatusCode fillWriteDecorator(SG::WriteDecorHandleKeyArray< xAOD::TruthParticleContainer, T > &writeKey, const std::string &keyName) const
This function fills the arrays of write-decorator keys and initializes them.
DecorHandlePtrVec_t< std::vector< float > > WriteDecorArray_fvec
DecorKey_t m_muonSnapShotPy
DecorKey_t m_muonSnapShotEPy
StatusCode addTrackRecords(const EventContext &ctx, const xAOD::TruthParticle &truthParticle, SummaryDecors &myDecors) const
addTrackRecords is the actual function that decorates muons with track records.
std::vector< xAOD::ContainerDecorator< xAOD::TruthParticleContainer, dType > > DecorHandlePtrVec_t
Struct object encapsulating all write-decorators.
virtual StatusCode execute(const EventContext &ctx) const override
DecorKey_t m_muonSnapShotY
DecorKey_t m_muonSnapShotX
DecorKey_t m_muonSnapShotEcov
DecorKey_t m_muonSnapShotEis
DecorKey_t m_muonSnapShotZ
DecorKey_t m_muonSnapShotMtc
DecorKey_t m_muonSnapShotEX
DecorHandlePtrVec_t< float > WriteDecorArray_f
DecorKey_t m_muonSnapShotPx
ToolHandle< Trk::IExtrapolator > m_extrapolator
Extrapolation tool handle.
SG::ReadHandleKeyArray< TrackRecordCollection > m_trackRecords
Keys of the containers of track records in different detector positions.
Property holding a SG store/key/clid from which a ReadHandle is made.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
DecorHandleKeyArray< WriteDecorHandle< T, S >, WriteDecorHandleKey< T >, Gaudi::DataHandle::Writer > WriteDecorHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
TruthParticle_v1 TruthParticle
Typedef to implementation.
WriteDecorArray_f epxDecor
WriteDecorArray_f eyDecor
WriteDecorArray_f exDecor
WriteDecorArray_b matchedDecor
WriteDecorArray_f pzDecor
WriteDecorArray_f epyDecor
WriteDecorArray_f pyDecor
WriteDecorArray_fvec ecovDecor
WriteDecorArray_f epzDecor
WriteDecorArray_b eisDecor
WriteDecorArray_f ezDecor
WriteDecorArray_f pxDecor