ATLAS Offline Software
Loading...
Searching...
No Matches
DerivationFramework::TauCombinedTESWrapper Class Reference

#include <TauCombinedTESWrapper.h>

Inheritance diagram for DerivationFramework::TauCombinedTESWrapper:
Collaboration diagram for DerivationFramework::TauCombinedTESWrapper:

Public Member Functions

virtual StatusCode initialize () override final
virtual StatusCode addBranches (const EventContext &ctx) const override final

Private Attributes

SG::ReadHandleKey< xAOD::TauJetContainerm_tauKey {this, "TauContainerName", "TauJets", "ReadHandleKey for input TauJetContainer"}
ToolHandle< TauCombinedTESm_tTauCombinedTESTool {this, "TauCombinedTESTool", "TauCombinedTESTool"}
SG::WriteDecorHandleKey< xAOD::TauJetContainerm_tesCompatibilityKey {this, "TESCompatibilityKey", m_tauKey, "TESCompatibility", "WriteDecorHandleKey for TESCompatibility decoration"}

Detailed Description

Definition at line 29 of file TauCombinedTESWrapper.h.

Member Function Documentation

◆ addBranches()

StatusCode DerivationFramework::TauCombinedTESWrapper::addBranches ( const EventContext & ctx) const
finaloverridevirtual

Definition at line 24 of file TauCombinedTESWrapper.cxx.

25 {
26 // Event context
27
28 // Read handle
29 SG::ReadHandle<xAOD::TauJetContainer> xTauContainer(m_tauKey,ctx);
30 if (!xTauContainer.isValid()) {
31 ATH_MSG_ERROR("Couldn't retrieve TauJetContainer with name " << m_tauKey);
32 return StatusCode::FAILURE;
33 }
34
35 SG::WriteDecorHandle<xAOD::TauJetContainer, char> dec_tesCompatibility (m_tesCompatibilityKey, ctx);
36
37 // Loop over taus
38 for(auto xTau : *xTauContainer){
39 dec_tesCompatibility(*xTau) = m_tTauCombinedTESTool->getTESCompatibility(*xTau);
40 }
41
42 return StatusCode::SUCCESS;
43 }
#define ATH_MSG_ERROR(x)
SG::WriteDecorHandleKey< xAOD::TauJetContainer > m_tesCompatibilityKey
ToolHandle< TauCombinedTES > m_tTauCombinedTESTool
SG::ReadHandleKey< xAOD::TauJetContainer > m_tauKey

◆ initialize()

StatusCode DerivationFramework::TauCombinedTESWrapper::initialize ( )
finaloverridevirtual

Definition at line 15 of file TauCombinedTESWrapper.cxx.

16 {
17 ATH_CHECK(m_tauKey.initialize());
18 ATH_CHECK(m_tesCompatibilityKey.initialize());
19 CHECK( m_tTauCombinedTESTool.retrieve() );
20 return StatusCode::SUCCESS;
21 }
#define ATH_CHECK
Evaluate an expression and check for errors.
#define CHECK(...)
Evaluate an expression and check for errors.

Member Data Documentation

◆ m_tauKey

SG::ReadHandleKey<xAOD::TauJetContainer> DerivationFramework::TauCombinedTESWrapper::m_tauKey {this, "TauContainerName", "TauJets", "ReadHandleKey for input TauJetContainer"}
private

Definition at line 38 of file TauCombinedTESWrapper.h.

39{this, "TauContainerName", "TauJets", "ReadHandleKey for input TauJetContainer"};

◆ m_tesCompatibilityKey

SG::WriteDecorHandleKey<xAOD::TauJetContainer> DerivationFramework::TauCombinedTESWrapper::m_tesCompatibilityKey {this, "TESCompatibilityKey", m_tauKey, "TESCompatibility", "WriteDecorHandleKey for TESCompatibility decoration"}
private

Definition at line 43 of file TauCombinedTESWrapper.h.

44{this, "TESCompatibilityKey", m_tauKey, "TESCompatibility", "WriteDecorHandleKey for TESCompatibility decoration"};

◆ m_tTauCombinedTESTool

ToolHandle< TauCombinedTES > DerivationFramework::TauCombinedTESWrapper::m_tTauCombinedTESTool {this, "TauCombinedTESTool", "TauCombinedTESTool"}
private

Definition at line 41 of file TauCombinedTESWrapper.h.

41{this, "TauCombinedTESTool", "TauCombinedTESTool"};

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