ATLAS Offline Software
Loading...
Searching...
No Matches
MuonTruthClassifierFallback.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef DERIVATIONFRAMEWORK_MuonTruthClassifierFallback_H
5#define DERIVATIONFRAMEWORK_MuonTruthClassifierFallback_H
6
7#include <string>
8#include <vector>
9
10// Gaudi & Athena basics
13#include "GaudiKernel/ToolHandle.h"
20
21namespace DerivationFramework {
22 class MuonTruthClassifierFallback : public extends<AthAlgTool, IAugmentationTool> {
23 public:
24
25 using base_class::base_class;
26
27 // Athena algtool's Hooks
28 virtual StatusCode initialize() override;
29
30 virtual StatusCode addBranches(const EventContext& ctx) const override;
31
32 private:
33 SG::ReadHandleKey<xAOD::IParticleContainer> m_containerKey{this, "ContainerKey", "", "Key of the container to be decorated"};
34 SG::ReadHandleKey<xAOD::TruthEventContainer> m_truthSGKey{this, "TruthSGKey", "TruthEvents", "Key of the truth event container"};
35 SG::ReadHandleKey<xAOD::TruthPileupEventContainer> m_truthPileupSGKey{this, "TruthPileupContainerKey", "TruthPileupEvents",
36 "Key of the pile-up event container"};
37 SG::ReadHandleKey<xAOD::TruthParticleContainer> m_truthMuonSGKey{this, "TruthMuonContainerKey", "MuonTruthParticles", ""};
38
39 // FIXME These WriteDecorHandles are not being used. The
40 // Decorators defined at the top of the .cxx are (incorrectly)
41 // used instead.
45 this, "typeDecoration", m_containerKey, "MCTFallback_truthType"};
47 this, "originDecoration", m_containerKey, "MCTFallback_truthOrigin"};
51 this, "typeDecorationPU", m_containerKey, "MCTFallbackPU_truthType"};
53 this, "originDecorationPU", m_containerKey, "MCTFallbackPU_truthOrigin"};
54
55 Gaudi::Property<float> m_minPt{this, "MinPt", 2500};
56
57 ToolHandle<IMCTruthClassifier> m_mcTruthClassifier{this, "MCTruthClassifierTool", "", "Handle of the MC truth classifier"};
58 };
59} // namespace DerivationFramework
60#endif //
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.
SG::ReadHandleKey< xAOD::TruthPileupEventContainer > m_truthPileupSGKey
SG::ReadHandleKey< xAOD::TruthEventContainer > m_truthSGKey
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_Truth_type_Key
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_Truth_origin_Key
virtual StatusCode addBranches(const EventContext &ctx) const override
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_Truth_dR_Key
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_Truth_PU_dR_Key
SG::ReadHandleKey< xAOD::IParticleContainer > m_containerKey
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_Truth_PU_origin_Key
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthMuonSGKey
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_Truth_PU_type_Key
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 reconstruction tool.