12#ifndef MUONTRUTHALGS_TruthTrackRecordsAlg_H
13#define MUONTRUTHALGS_TruthTrackRecordsAlg_H
30 using AthReentrantAlgorithm::AthReentrantAlgorithm;
34 virtual StatusCode
execute(
const EventContext& ctx)
const override;
79 SummaryDecors& myDecors)
const;
97 this,
"TrackRecordCollectionNames", {
"CaloEntryLayer",
"MuonEntryLayer",
"MuonExitLayer"}};
124 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
DecorHandlePtrVec_t< xAOD::TruthParticleContainer, float > WriteDecorArray_f
Struct object encapsulating all write-decorators.
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< xAOD::TruthParticleContainer, std::vector< float > > WriteDecorArray_fvec
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
DecorHandlePtrVec_t< xAOD::TruthParticleContainer, char > WriteDecorArray_b
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.
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.
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
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.
std::vector< DecorHandlePtr_wt< ContType, DataType > > DecorHandlePtrVec_t
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