 |
ATLAS Offline Software
|
#include <BkgElectronClassification.h>
|
| ToolHandle< IMCTruthClassifier > | m_mcTruthClassifier |
| | MCTruthClassifier. More...
|
| |
| SG::ReadHandleKey< xAOD::ElectronContainer > | m_electronContainer |
| | input electron container More...
|
| |
| SG::ReadHandleKey< xAOD::TruthParticleContainer > | m_truthContainer |
| | Input truth particle container. More...
|
| |
| SG::WriteDecorHandleKey< xAOD::ElectronContainer > | m_truthPdgId { this, "DoNotSet_truthPdgId", m_electronContainer, "truthPdgId", "" } |
| |
| SG::WriteDecorHandleKey< xAOD::ElectronContainer > | m_firstEgMotherTruthType { this, "firstEgMotherTruthType", m_electronContainer, "firstEgMotherTruthType", "" } |
| |
| SG::WriteDecorHandleKey< xAOD::ElectronContainer > | m_firstEgMotherTruthOrigin { this, "firstEgMotherTruthOrigin", m_electronContainer, "firstEgMotherTruthOrigin", "" } |
| |
| SG::WriteDecorHandleKey< xAOD::ElectronContainer > | m_firstEgMotherTruthParticleLink |
| |
| SG::WriteDecorHandleKey< xAOD::ElectronContainer > | m_firstEgMotherPdgId { this, "firstEgMotherPdgId", m_electronContainer, "firstEgMotherPdgId", "" } |
| |
| SG::WriteDecorHandleKey< xAOD::ElectronContainer > | m_lastEgMotherTruthType { this, "lastEgMotherTruthType", m_electronContainer, "lastEgMotherTruthType", "" } |
| |
| SG::WriteDecorHandleKey< xAOD::ElectronContainer > | m_lastEgMotherTruthOrigin { this, "lastEgMotherTruthOrigin", m_electronContainer, "lastEgMotherTruthOrigin", "" } |
| |
| SG::WriteDecorHandleKey< xAOD::ElectronContainer > | m_lastEgMotherTruthParticleLink |
| |
| SG::WriteDecorHandleKey< xAOD::ElectronContainer > | m_lastEgMotherPdgId { this, "lastEgMotherPdgId", m_electronContainer, "lastEgMotherPdgId", "" } |
| |
Definition at line 23 of file BkgElectronClassification.h.
◆ addBranches()
| StatusCode DerivationFramework::BkgElectronClassification::addBranches |
( |
const EventContext & |
ctx | ) |
const |
|
finaloverridevirtual |
Definition at line 44 of file BkgElectronClassification.cxx.
56 tPL(
"truthParticleLink");
85 if (tPL.isAvailable(*
el) && tPL(*el).isValid()) {
93 firstEgMotherTT(*
el) = 0;
94 firstEgMotherTO(*
el) = 0;
96 firstEgMotherPdgID(*
el) = 0;
103 firstEgMotherTT(*
el) =
res.first;
104 firstEgMotherTO(*
el) =
res.second;
105 firstEgMotherPdgID(*
el) = firstElTruth->
pdgId();
107 firstElTruth, *truthContainer, ctx);
108 firstEgMotherTPL(*
el) = link;
113 lastEgMotherTT(*
el) = 0;
114 lastEgMotherTO(*
el) = 0;
116 lastEgMotherPdgID(*
el) = 0;
122 lastEgMotherTT(*
el) =
res.first;
123 lastEgMotherTO(*
el) =
res.second;
124 lastEgMotherPdgID(*
el) = lastElTruth->
pdgId();
126 lastElTruth, *truthContainer, ctx);
127 lastEgMotherTPL(*
el) = link;
130 return StatusCode::SUCCESS;
◆ initialize()
| StatusCode DerivationFramework::BkgElectronClassification::initialize |
( |
| ) |
|
|
finaloverridevirtual |
◆ m_electronContainer
Initial value:{
this,
"ElectronContainerName",
"Electrons",
"Input Electrons"
}
input electron container
Definition at line 42 of file BkgElectronClassification.h.
◆ m_firstEgMotherPdgId
◆ m_firstEgMotherTruthOrigin
◆ m_firstEgMotherTruthParticleLink
◆ m_firstEgMotherTruthType
◆ m_lastEgMotherPdgId
◆ m_lastEgMotherTruthOrigin
◆ m_lastEgMotherTruthParticleLink
◆ m_lastEgMotherTruthType
◆ m_mcTruthClassifier
| ToolHandle<IMCTruthClassifier> DerivationFramework::BkgElectronClassification::m_mcTruthClassifier |
|
private |
◆ m_truthContainer
Initial value:{
this,
"TruthParticleContainerName",
"TruthParticles",
"Input Truth Particles"
}
Input truth particle container.
Definition at line 49 of file BkgElectronClassification.h.
◆ m_truthPdgId
The documentation for this class was generated from the following files:
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_lastEgMotherPdgId
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthContainer
Input truth particle container.
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_firstEgMotherTruthType
Helper class to provide type-safe access to aux data.
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_firstEgMotherTruthOrigin
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_lastEgMotherTruthOrigin
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_firstEgMotherTruthParticleLink
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronContainer
input electron container
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_lastEgMotherTruthType
const xAOD::TruthParticle * getBkgElectronMother(const xAOD::Electron *el, const bool allTheWayBack=true)
Helper wrapper function for calling the function above extracting the truth from a reco electron.
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_firstEgMotherPdgId
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_truthPdgId
Class describing a truth particle in the MC record.
Handle class for adding a decoration to an object.
std::pair< std::vector< unsigned int >, bool > res
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
ElectronContainer_v1 ElectronContainer
Definition of the current "electron container version".
ElementLink implementation for ROOT usage.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
ToolHandle< IMCTruthClassifier > m_mcTruthClassifier
MCTruthClassifier.
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_lastEgMotherTruthParticleLink
int pdgId() const
PDG ID code.