ATLAS Offline Software
Loading...
Searching...
No Matches
JetTruthLabelingTool::DecorHandles Struct Reference

Track internally if the W,Z,Top labels should be done (for large-R). More...

#include <JetTruthLabelingTool.h>

Collaboration diagram for JetTruthLabelingTool::DecorHandles:

Public Types

using IntHandle_t = SG::WriteDecorHandle<xAOD::JetContainer, int>
using IntHandleOp_t = std::optional<IntHandle_t>
using FloatHandle_t = SG::WriteDecorHandle<xAOD::JetContainer, float>
using FloatHandleOp_t = std::optional<FloatHandle_t>
using ELHandle_t = SG::WriteDecorHandle<xAOD::JetContainer, ElementLink<xAOD::JetContainer> >
using ELHandleOp_t = std::optional<ELHandle_t>

Public Member Functions

 DecorHandles (const JetTruthLabelingTool &tool, const EventContext &ctx)

Public Attributes

IntHandleOp_t labelHandle
IntHandleOp_t nbHandle
IntHandleOp_t labelRecoHandle
IntHandleOp_t nbRecoHandle
FloatHandleOp_t split23Handle
FloatHandleOp_t split12Handle
ELHandleOp_t matchedTruthJetHandle
FloatHandleOp_t matchedTruthJetMassHandle
FloatHandleOp_t matchedTruthJetPtHandle
FloatHandleOp_t matchedTruthJetEtaHandle
FloatHandleOp_t matchedTruthJetPhiHandle
FloatHandleOp_t matchedTruthJetDRHandle
FloatHandleOp_t matchedTruthJetGFHandle
FloatHandleOp_t matchedTruthGroomedMassHandle
FloatHandleOp_t matchedTruthGroomedPtHandle

Detailed Description

Track internally if the W,Z,Top labels should be done (for large-R).

Definition at line 70 of file JetTruthLabelingTool.h.

Member Typedef Documentation

◆ ELHandle_t

◆ ELHandleOp_t

Definition at line 84 of file JetTruthLabelingTool.h.

◆ FloatHandle_t

◆ FloatHandleOp_t

◆ IntHandle_t

◆ IntHandleOp_t

Definition at line 74 of file JetTruthLabelingTool.h.

Constructor & Destructor Documentation

◆ DecorHandles()

JetTruthLabelingTool::DecorHandles::DecorHandles ( const JetTruthLabelingTool & tool,
const EventContext & ctx )

Definition at line 185 of file JetTruthLabelingTool.cxx.

187{
188 auto maybeInit = [&] (auto& h,
189 const SG::WriteDecorHandleKey<xAOD::JetContainer>& k)
190 {
191 if (!k.key().empty()) h.emplace (k, ctx);
192 };
193 maybeInit (labelHandle, tool.m_label_truthKey);
194 maybeInit (nbHandle, tool.m_NB_truthKey);
195 maybeInit (labelRecoHandle, tool.m_label_recoKey);
196 maybeInit (nbRecoHandle, tool.m_NB_recoKey);
197 maybeInit (split23Handle, tool.m_truthSplit23_recoKey);
198 maybeInit (split12Handle, tool.m_truthSplit12_recoKey);
199
200 maybeInit (matchedTruthJetHandle, tool.m_matchedTruthJet_recoKey);
201 maybeInit (matchedTruthJetMassHandle, tool.m_matchedTruthJetMass_recoKey);
202 maybeInit (matchedTruthJetPtHandle, tool.m_matchedTruthJetPt_recoKey);
203 maybeInit (matchedTruthJetEtaHandle, tool.m_matchedTruthJetEta_recoKey);
204 maybeInit (matchedTruthJetPhiHandle, tool.m_matchedTruthJetPhi_recoKey);
205 maybeInit (matchedTruthJetDRHandle, tool.m_matchedTruthJetDR_recoKey);
206 maybeInit (matchedTruthJetGFHandle, tool.m_matchedTruthJetGF_recoKey);
207
208 maybeInit (matchedTruthGroomedMassHandle, tool.m_matchedTruthGroomedJetMass_recoKey);
209 maybeInit (matchedTruthGroomedPtHandle, tool.m_matchedTruthGroomedJetPt_recoKey);
210}

Member Data Documentation

◆ labelHandle

IntHandleOp_t JetTruthLabelingTool::DecorHandles::labelHandle

Definition at line 75 of file JetTruthLabelingTool.h.

◆ labelRecoHandle

IntHandleOp_t JetTruthLabelingTool::DecorHandles::labelRecoHandle

Definition at line 77 of file JetTruthLabelingTool.h.

◆ matchedTruthGroomedMassHandle

FloatHandleOp_t JetTruthLabelingTool::DecorHandles::matchedTruthGroomedMassHandle

Definition at line 92 of file JetTruthLabelingTool.h.

◆ matchedTruthGroomedPtHandle

FloatHandleOp_t JetTruthLabelingTool::DecorHandles::matchedTruthGroomedPtHandle

Definition at line 93 of file JetTruthLabelingTool.h.

◆ matchedTruthJetDRHandle

FloatHandleOp_t JetTruthLabelingTool::DecorHandles::matchedTruthJetDRHandle

Definition at line 90 of file JetTruthLabelingTool.h.

◆ matchedTruthJetEtaHandle

FloatHandleOp_t JetTruthLabelingTool::DecorHandles::matchedTruthJetEtaHandle

Definition at line 88 of file JetTruthLabelingTool.h.

◆ matchedTruthJetGFHandle

FloatHandleOp_t JetTruthLabelingTool::DecorHandles::matchedTruthJetGFHandle

Definition at line 91 of file JetTruthLabelingTool.h.

◆ matchedTruthJetHandle

ELHandleOp_t JetTruthLabelingTool::DecorHandles::matchedTruthJetHandle

Definition at line 85 of file JetTruthLabelingTool.h.

◆ matchedTruthJetMassHandle

FloatHandleOp_t JetTruthLabelingTool::DecorHandles::matchedTruthJetMassHandle

Definition at line 86 of file JetTruthLabelingTool.h.

◆ matchedTruthJetPhiHandle

FloatHandleOp_t JetTruthLabelingTool::DecorHandles::matchedTruthJetPhiHandle

Definition at line 89 of file JetTruthLabelingTool.h.

◆ matchedTruthJetPtHandle

FloatHandleOp_t JetTruthLabelingTool::DecorHandles::matchedTruthJetPtHandle

Definition at line 87 of file JetTruthLabelingTool.h.

◆ nbHandle

IntHandleOp_t JetTruthLabelingTool::DecorHandles::nbHandle

Definition at line 76 of file JetTruthLabelingTool.h.

◆ nbRecoHandle

IntHandleOp_t JetTruthLabelingTool::DecorHandles::nbRecoHandle

Definition at line 78 of file JetTruthLabelingTool.h.

◆ split12Handle

FloatHandleOp_t JetTruthLabelingTool::DecorHandles::split12Handle

Definition at line 82 of file JetTruthLabelingTool.h.

◆ split23Handle

FloatHandleOp_t JetTruthLabelingTool::DecorHandles::split23Handle

Definition at line 81 of file JetTruthLabelingTool.h.


The documentation for this struct was generated from the following files: