ATLAS Offline Software
Loading...
Searching...
No Matches
HGTDTruthTrackDecorationAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration.
3*/
4
5#ifndef HGTDTRACKEXTENSIONALG_TRUTHDECORATION_H
6#define HGTDTRACKEXTENSIONALG_TRUTHDECORATION_H
7
8// Base Class
12
13namespace ActsTrk {
14
16 : public AthReentrantAlgorithm {
17
18 public:
19 using AthReentrantAlgorithm::AthReentrantAlgorithm;
20 virtual ~HGTDTruthTrackDecorationAlg() = default;
21
22 virtual StatusCode initialize() override;
23 virtual StatusCode execute(const EventContext&) const override;
24
25 private:
26 SG::ReadHandleKey<xAOD::TrackParticleContainer> m_trackParticleContainerName {this, "TrackParticleContainerName", "", "Name of the TrackParticle container"};
27
28 // Truth decorations
29 SG::WriteDecorHandleKey<xAOD::TrackParticleContainer> m_layerClusterTruthClassKey { this, "HGTD_cluster_truth_class", m_trackParticleContainerName, "HGTD_cluster_truth_class", "Decoration for cluster truth classification" };
30 SG::WriteDecorHandleKey<xAOD::TrackParticleContainer> m_layerClusterShadowedKey { this, "HGTD_cluster_shadowed", m_trackParticleContainerName, "HGTD_cluster_shadowed", "Decoration for shadowed cluster" };
31 SG::WriteDecorHandleKey<xAOD::TrackParticleContainer> m_layerClusterMergedKey { this, "HGTD_cluster_merged", m_trackParticleContainerName, "HGTD_cluster_merged", "Decoration for merged cluster" };
32 SG::WriteDecorHandleKey<xAOD::TrackParticleContainer> m_layerPrimaryExpectedKey { this, "HGTD_primary_expected", m_trackParticleContainerName, "HGTD_primary_expected", "Decoration for primary expected cluster" };
33
37 std::vector<int> truthClassVec = {-1, -1, -1, -1};
38 std::vector<bool> isShadowedVec = {false, false, false, false};
39 std::vector<bool> isMergedVec = {false, false, false, false};
40 std::vector<bool> primaryExistsVec = {false, false, false, false};
41 };
42
43 };
44
45} // namespace ActsTrk
46
47#endif
48
49
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackParticleContainerName
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_layerClusterShadowedKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_layerClusterMergedKey
virtual StatusCode execute(const EventContext &) const override
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_layerPrimaryExpectedKey
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_layerClusterTruthClassKey
virtual ~HGTDTruthTrackDecorationAlg()=default
An algorithm that can be simultaneously executed in multiple threads.
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.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Data structure to hold HGTD track extension results Contains information about hits,...
std::vector< int > truthClassVec
Truth classification per HGTD layer.
std::vector< bool > isMergedVec
Whether cluster is merged per layer.
std::vector< bool > isShadowedVec
Whether cluster is shadowed per layer.
std::vector< bool > primaryExistsVec
Whether primary is expected per layer.