19 for (
const auto hitSumm :{
20 "innerSmallHits",
"innerLargeHits",
"middleSmallHits",
"middleLargeHits",
21 "outerSmallHits",
"outerLargeHits",
"extendedSmallHits",
"extendedLargeHits",
22 "etaLayer1Hits",
"phiLayer1Hits",
"etaLayer2Hits",
"phiLayer2Hits",
23 "etaLayer3Hits",
"phiLayer3Hits",
"etaLayer4Hits",
"phiLayer4Hits"}){
27 return StatusCode::SUCCESS;
36 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Handle class for reading from StoreGate.
Handle class for adding a decoration to an object.
virtual StatusCode initialize() override final
SG::WriteDecorHandleKeyArray< xAOD::TruthParticleContainer > m_hitDecorKeys
Declare the decorations written by this algorithm.
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_readKey
input truth particle container
ToolHandle< MuonR4::ITrackSummaryTool > m_summaryTool
The track summary tool filling the summary state from the associated segments.
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_segLinkKey
Dependency on the truth -> segment decoration.
virtual StatusCode execute(const EventContext &ctx) const override final
This header ties the generic definitions in this package.
std::vector< const xAOD::MuonSegment * > getTruthSegments(const xAOD::TruthParticle &truthMuon)
Returns the segments associated to the truth muon.
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
TruthParticle_v1 TruthParticle
Typedef to implementation.
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.