ATLAS Offline Software
Loading...
Searching...
No Matches
BkgElectronClassification.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 DERIVATIONFRAMEWORK_BKGELECTRONCLASSIFICATION_H
6#define DERIVATIONFRAMEWORK_BKGELECTRONCLASSIFICATION_H
7
10//
11#include "GaudiKernel/ToolHandle.h"
20
21namespace DerivationFramework {
22
23 class BkgElectronClassification : public extends<AthAlgTool, IAugmentationTool>
24 {
25 public:
26
27 using base_class::base_class;
28
29 virtual StatusCode initialize() override final;
30 virtual StatusCode addBranches(const EventContext& ctx) const override final;
31
32 private:
34 ToolHandle<IMCTruthClassifier> m_mcTruthClassifier{
35 this,
36 "MCTruthClassifierTool",
37 "",
38 "Handle to the MCTruthClassifier"
39 };
40
43 this,
44 "ElectronContainerName",
45 "Electrons",
46 "Input Electrons"
47 };
48
50 this,
51 "TruthParticleContainerName",
52 "TruthParticles",
53 "Input Truth Particles"
54 };
55
56 // Write decoration handle keys
58 m_truthPdgId{ this, "DoNotSet_truthPdgId", m_electronContainer, "truthPdgId", "" };
60 m_firstEgMotherTruthType{ this, "firstEgMotherTruthType", m_electronContainer, "firstEgMotherTruthType", "" };
62 m_firstEgMotherTruthOrigin{ this, "firstEgMotherTruthOrigin", m_electronContainer, "firstEgMotherTruthOrigin", "" };
65 "firstEgMotherTruthParticleLink",
66 m_electronContainer, "firstEgMotherTruthParticleLink",
67 "" };
69 m_firstEgMotherPdgId{ this, "firstEgMotherPdgId", m_electronContainer, "firstEgMotherPdgId", "" };
71 m_lastEgMotherTruthType{ this, "lastEgMotherTruthType", m_electronContainer, "lastEgMotherTruthType", "" };
73 m_lastEgMotherTruthOrigin{ this, "lastEgMotherTruthOrigin", m_electronContainer, "lastEgMotherTruthOrigin", "" };
76 "lastEgMotherTruthParticleLink",
77 m_electronContainer, "lastEgMotherTruthParticleLink",
78 "" };
80 m_lastEgMotherPdgId{ this, "lastEgMotherPdgId", m_electronContainer, "lastEgMotherPdgId", "" };
81 };
82}
83
84#endif // DERIVATIONFRAMEWORK_BKGELECTRONCLASSIFICATION_H
Property holding a SG store/key/clid from which a ReadHandle is made.
Handle class for reading from StoreGate.
Handle class for adding a decoration to an object.
Property holding a SG store/key/clid from which a WriteHandle is made.
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_lastEgMotherTruthOrigin
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronContainer
input electron container
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_truthPdgId
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_lastEgMotherTruthParticleLink
virtual StatusCode addBranches(const EventContext &ctx) const override final
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthContainer
Input truth particle container.
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_firstEgMotherPdgId
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_firstEgMotherTruthType
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_firstEgMotherTruthOrigin
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_firstEgMotherTruthParticleLink
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_lastEgMotherTruthType
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_lastEgMotherPdgId
ToolHandle< IMCTruthClassifier > m_mcTruthClassifier
MCTruthClassifier.
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.