ATLAS Offline Software
Loading...
Searching...
No Matches
TauCombinedTESWrapper.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6// TauCombinedTESWrapper.cxx
8
12
13namespace DerivationFramework {
14
16 {
17 ATH_CHECK(m_tauKey.initialize());
18 ATH_CHECK(m_tesCompatibilityKey.initialize());
19 CHECK( m_tTauCombinedTESTool.retrieve() );
20 return StatusCode::SUCCESS;
21 }
22
23
24 StatusCode TauCombinedTESWrapper::addBranches(const EventContext& ctx) const
25 {
26 // Event context
27
28 // Read handle
30 if (!xTauContainer.isValid()) {
31 ATH_MSG_ERROR("Couldn't retrieve TauJetContainer with name " << m_tauKey);
32 return StatusCode::FAILURE;
33 }
34
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 }
44}
45
46
47
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define CHECK(...)
Evaluate an expression and check for errors.
Helper class to provide type-safe access to aux data.
Handle class for reading from StoreGate.
SG::WriteDecorHandleKey< xAOD::TauJetContainer > m_tesCompatibilityKey
virtual StatusCode initialize() override final
virtual StatusCode addBranches(const EventContext &ctx) const override final
ToolHandle< TauCombinedTES > m_tTauCombinedTESTool
SG::ReadHandleKey< xAOD::TauJetContainer > m_tauKey
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Handle class for adding a decoration to an object.
THE reconstruction tool.