|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef INDETTRACKPERFMON_TRUTHHITDECORATORALG_H
6 #define INDETTRACKPERFMON_TRUTHHITDECORATORALG_H
19 #include "GaudiKernel/ToolHandle.h"
35 #include <unordered_map>
62 float > >& float_decor,
64 std::unordered_map< int, float >& pixelMap,
65 std::unordered_map< int, float >& sctMap,
66 const EventContext& ctx )
const;
69 this,
"Extrapolator",
"Trk::Extrapolator/AtlasExtrapolator",
"" };
72 this,
"BeamSpotDecoKeys",
73 {
"EventInfo.beamPosX",
"EventInfo.beamPosY",
"EventInfo.beamPosZ" },
74 "Beamspot position decoration keys" };
80 this,
"TruthParticleContainerName",
"TruthParticles",
"" };
82 StringProperty
m_prefix {
this,
"Prefix",
"",
"Decoration prefix to avoid clashes." };
85 this,
"PixelClusterContainerName",
"PixelClusters",
"" };
88 this,
"SCTClusterContainerName",
"SCT_Clusters",
"" };
115 std::vector< std::pair<
122 #endif // > !INDETTRACKPERFMON_TRUTHHITDECORATORALG_H
std::atomic< bool > m_errorEmitted
const std::vector< std::string > m_decor_names
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticleName
TruthParticle container's name needed to create decorators.
PublicToolHandle< Trk::IExtrapolator > m_extrapolator
Helper class to provide constant type-safe access to aux data.
virtual StatusCode initialize() override
TruthHitDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Local includes.
An algorithm that can be simultaneously executed in multiple threads.
virtual ~TruthHitDecoratorAlg()=default
::StatusCode StatusCode
StatusCode definition for legacy code.
Class describing a truth particle in the MC record.
std::vector< std::pair< SG::WriteDecorHandleKey< xAOD::TruthParticleContainer >, SG::AuxElement::ConstAccessor< float > > > m_decor
StatusCode decorateTruth(const xAOD::TruthParticle &particle, std::vector< IDTPM::OptionalDecoration< xAOD::TruthParticleContainer, float > > &float_decor, const Amg::Vector3D &beamPos, std::unordered_map< int, float > &pixelMap, std::unordered_map< int, float > &sctMap, const EventContext &ctx) const
SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer > m_truthSCTClusterName
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadDecorHandleKeyArray< xAOD::EventInfo > m_beamSpotDecoKey
Eigen::Matrix< double, 3, 1 > Vector3D
Helper functions to perform safe decoration of xAOD objects in this package.
SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer > m_truthPixelClusterName
std::pair< SG::WriteDecorHandle< ContainerType, VariableType >, bool > OptionalDecoration