ATLAS Offline Software
DiTauChargeDecorator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef DERIVATIONFRAMEWORKTAU_DITAUCHARGEDECORATOR_H
6 #define DERIVATIONFRAMEWORKTAU_DITAUCHARGEDECORATOR_H
7 
8 #include <string>
11 #include "GaudiKernel/ToolHandle.h"
15 
16 //Tool to decorate the charge of boosted ditaus
17 
18 namespace DerivationFramework {
19 
20  class DiTauChargeDecorator : public extends<AthAlgTool, IAugmentationTool> {
21  public:
22  DiTauChargeDecorator(const std::string& t, const std::string& n, const IInterface* p);
23 
24  virtual StatusCode initialize() override;
25  virtual StatusCode addBranches() const override;
26 
27  private:
28  SG::ReadHandleKey<xAOD::DiTauJetContainer> m_ditauContainerKey { this, "DiTauContainerName", "DiTauJets", "Input ditau container key" };
29  SG::WriteDecorHandleKey<xAOD::DiTauJetContainer> m_chargeKey{ this, "chargeKey", m_ditauContainerKey, "charge", "Decoration name"};
30  };
31 }
32 
33 #endif // DERIVATIONFRAMEWORKTAU_DITAUCHARGEDECORATOR_H
34 
DerivationFramework::DiTauChargeDecorator::m_ditauContainerKey
SG::ReadHandleKey< xAOD::DiTauJetContainer > m_ditauContainerKey
Definition: DiTauChargeDecorator.h:28
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
DerivationFramework::DiTauChargeDecorator::initialize
virtual StatusCode initialize() override
Definition: DiTauChargeDecorator.cxx:17
DerivationFramework::DiTauChargeDecorator::DiTauChargeDecorator
DiTauChargeDecorator(const std::string &t, const std::string &n, const IInterface *p)
Definition: DiTauChargeDecorator.cxx:12
IAugmentationTool.h
DiTauJetContainer.h
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
DerivationFramework::DiTauChargeDecorator::m_chargeKey
SG::WriteDecorHandleKey< xAOD::DiTauJetContainer > m_chargeKey
Definition: DiTauChargeDecorator.h:29
DerivationFramework::DiTauChargeDecorator::addBranches
virtual StatusCode addBranches() const override
Definition: DiTauChargeDecorator.cxx:26
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
beamspotman.n
n
Definition: beamspotman.py:727
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::DiTauChargeDecorator
Definition: DiTauChargeDecorator.h:20