|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef INDETPHYSVALMONITORING_INDETPHYSVALTRUTHDECORATORTOOL_H
6 #define INDETPHYSVALMONITORING_INDETPHYSVALTRUTHDECORATORTOOL_H
17 #include "GaudiKernel/ToolHandle.h"
25 #include "GaudiKernel/EventContext.h"
48 bool > > &float_decor,
50 const std::vector<std::array<uint16_t, kNClusterTypes> > &counts)
const;
53 {
this,
"Extrapolator",
"Trk::Extrapolator/AtlasExtrapolator",
""};
55 {
this,
"BeamSpotDecoKeys",
56 {
"EventInfo.beamPosX",
"EventInfo.beamPosY",
"EventInfo.beamPosZ"},
57 "Beamspot position decoration keys"};
60 {
this,
"TruthSelectionTool",
"",
""};
70 {
this,
"TruthParticleContainerName",
"TruthParticles",
""};
73 {
this,
"Prefix",
"",
"Decoration prefix to avoid clashes."};
77 {
this,
"PixelClusterContainerName",
"PixelClusters",
""};
80 {
this,
"SCTClusterContainerName",
"SCT_Clusters",
""};
83 {
this,
"TruthParticleIndexDecoration",
"origTruthIndex",
"decoration name for the original truth particle index."};
PublicToolHandle< IAthSelectionTool > m_truthSelectionTool
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
virtual ~InDetPhysValTruthDecoratorAlg()
SG::ReadDecorHandleKeyArray< xAOD::EventInfo > m_beamSpotDecoKey
bool decorateTruth(const xAOD::TruthParticle &particle, std::vector< std::pair< SG::WriteDecorHandle< xAOD::TruthParticleContainer, float >, bool > > &float_decor, const Amg::Vector3D &beamPos, const std::vector< std::array< uint16_t, kNClusterTypes > > &counts) const
std::vector< std::pair< SG::WriteDecorHandleKey< xAOD::TruthParticleContainer >, SG::AuxElement::ConstAccessor< float > > > m_decor
std::atomic< std::size_t > m_nMissingTruthParticles
Helper class to provide constant type-safe access to aux data.
virtual StatusCode initialize()
std::atomic< bool > m_errorEmitted
CutFlow m_cutFlow ATLAS_THREAD_SAFE
@ u
Enums for curvilinear frames.
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode execute(const EventContext &ctx) const
virtual StatusCode finalize()
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
::StatusCode StatusCode
StatusCode definition for legacy code.
Class describing a truth particle in the MC record.
Handle class for adding a decoration to an object.
Handle class for adding a decoration to an object.
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticleName
TruthParticle container's name needed to create decorators.
Eigen::Matrix< double, 3, 1 > Vector3D
Gaudi::Property< std::string > m_prefix
InDetPhysValTruthDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer > m_truthPixelClusterName
TruthPixelClusterContainer and TruthSCTClusterContainer needed for truth silicon hit cut.
PublicToolHandle< Trk::IExtrapolator > m_extrapolator
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_truthParticleIndexDecor
SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer > m_truthSCTClusterName
Define macros for attributes used to control the static checker.
Base class for elements of a container that can have aux data.