ATLAS Offline Software
BkgElectronClassification.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 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"
14 #include "StoreGate/ReadHandle.h"
20 
21 namespace DerivationFramework {
22 
23 class BkgElectronClassification : public extends<AthAlgTool, IAugmentationTool>
24 {
25 public:
26  BkgElectronClassification(const std::string& t,
27  const std::string& n,
28  const IInterface* p);
29 
30  virtual StatusCode initialize() override final;
31  virtual StatusCode addBranches() const override final;
32 
33 private:
35  ToolHandle<IMCTruthClassifier> m_mcTruthClassifier{
36  this,
37  "MCTruthClassifierTool",
38  "",
39  "Handle to the MCTruthClassifier"
40  };
41 
44  this,
45  "ElectronContainerName",
46  "Electrons",
47  "Input Electrons"
48  };
51  this,
52  "TruthParticleContainerName",
53  "TruthParticles",
54  "Input Truth Particles"
55  };
56 
57  // Write decoration handle keys
58  // these are not really configuarable
60  m_truthPdgId{ this, "DoNotSet_truthPdgId", "Electrons.truthPdgId", "" };
62  m_firstEgMotherTruthType{ this, "firstEgMotherTruthType", "", "" };
64  m_firstEgMotherTruthOrigin{ this, "firstEgMotherTruthOrigin", "", "" };
67  "firstEgMotherTruthParticleLink",
68  "",
69  "" };
71  m_firstEgMotherPdgId{ this, "firstEgMotherPdgId", "", "" };
73  m_lastEgMotherTruthType{ this, "lastEgMotherTruthType", "", "" };
75  m_lastEgMotherTruthOrigin{ this, "lastEgMotherTruthOrigin", "", "" };
78  "lastEgMotherTruthParticleLink",
79  "",
80  "" };
82  m_lastEgMotherPdgId{ this, "lastEgMotherPdgId", "", "" };
83 };
84 }
85 
86 #endif // DERIVATIONFRAMEWORK_BKGELECTRONCLASSIFICATION_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey< xAOD::ElectronContainer >
DerivationFramework::BkgElectronClassification::m_lastEgMotherPdgId
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_lastEgMotherPdgId
Definition: BkgElectronClassification.h:82
DerivationFramework::BkgElectronClassification::m_truthContainer
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthContainer
Input truth particle container.
Definition: BkgElectronClassification.h:50
DerivationFramework::BkgElectronClassification::m_firstEgMotherTruthType
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_firstEgMotherTruthType
Definition: BkgElectronClassification.h:62
IAugmentationTool.h
DerivationFramework::BkgElectronClassification::m_firstEgMotherTruthOrigin
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_firstEgMotherTruthOrigin
Definition: BkgElectronClassification.h:64
DerivationFramework::BkgElectronClassification::m_lastEgMotherTruthOrigin
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_lastEgMotherTruthOrigin
Definition: BkgElectronClassification.h:75
TruthParticleContainer.h
DerivationFramework::BkgElectronClassification::m_firstEgMotherTruthParticleLink
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_firstEgMotherTruthParticleLink
Definition: BkgElectronClassification.h:66
DerivationFramework::BkgElectronClassification::m_electronContainer
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronContainer
input electron container
Definition: BkgElectronClassification.h:43
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey< xAOD::ElectronContainer >
DerivationFramework::BkgElectronClassification::m_lastEgMotherTruthType
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_lastEgMotherTruthType
Definition: BkgElectronClassification.h:73
DerivationFramework::BkgElectronClassification
Definition: BkgElectronClassification.h:24
DerivationFramework::BkgElectronClassification::m_firstEgMotherPdgId
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_firstEgMotherPdgId
Definition: BkgElectronClassification.h:71
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
IMCTruthClassifier.h
ElectronContainer.h
DerivationFramework::BkgElectronClassification::m_truthPdgId
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_truthPdgId
Definition: BkgElectronClassification.h:60
beamspotman.n
n
Definition: beamspotman.py:729
DerivationFramework::BkgElectronClassification::initialize
virtual StatusCode initialize() override final
Definition: BkgElectronClassification.cxx:24
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
WriteDecorHandle.h
Handle class for adding a decoration to an object.
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::BkgElectronClassification::addBranches
virtual StatusCode addBranches() const override final
Definition: BkgElectronClassification.cxx:66
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
DerivationFramework::BkgElectronClassification::BkgElectronClassification
BkgElectronClassification(const std::string &t, const std::string &n, const IInterface *p)
Definition: BkgElectronClassification.cxx:15
DerivationFramework::BkgElectronClassification::m_mcTruthClassifier
ToolHandle< IMCTruthClassifier > m_mcTruthClassifier
MCTruthClassifier.
Definition: BkgElectronClassification.h:35
DerivationFramework::BkgElectronClassification::m_lastEgMotherTruthParticleLink
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_lastEgMotherTruthParticleLink
Definition: BkgElectronClassification.h:77
ReadHandle.h
Handle class for reading from StoreGate.