ATLAS Offline Software
Loading...
Searching...
No Matches
TauExtraVariablesAlg.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6
8
11
12
13namespace CP {
14
16
17 if (m_nTracksChargedKey.contHandleKey().key() == m_nTracksChargedKey.key()) {
19 }
20
21 ANA_CHECK(m_tausKey.initialize());
22 ANA_CHECK(m_nTracksChargedKey.initialize());
23
24 return StatusCode::SUCCESS;
25 }
26
27 StatusCode TauExtraVariablesAlg::execute(const EventContext &ctx) const {
28
30
32 for (const xAOD::TauJet *tau : *taus) {
33 nTracksChargedHandle(*tau) = tau->nTracksCharged();
34 }
35
36 return StatusCode::SUCCESS;
37 }
38
39} // namespace
Handle class for reading from StoreGate.
Handle class for adding a decoration to an object.
#define ANA_CHECK(EXP)
check whether the given expression was successful
static Double_t taus
virtual StatusCode execute(const EventContext &ctx) const override
virtual StatusCode initialize() override
SG::WriteDecorHandleKey< xAOD::TauJetContainer > m_nTracksChargedKey
SG::ReadHandleKey< xAOD::TauJetContainer > m_tausKey
Handle class for adding a decoration to an object.
Select isolated Photons, Electrons and Muons.
TauJet_v3 TauJet
Definition of the current "tau version".