ATLAS Offline Software
MuonCloseJetDecorationAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 #ifndef DERIVATIONFRAMEWORKMUONS_MUONCLOSEJETDECORATIONALG_H
6 #define DERIVATIONFRAMEWORKMUONS_MUONCLOSEJETDECORATIONALG_H
7 // Core include(s):
9 // Gaudi/Athena include(s):
11 #include <memory>
12 namespace CP {
13 
17 
18  public:
20  MuonCloseJetDecorationAlg(const std::string& name, ISvcLocator* svcLoc);
21 
23  StatusCode initialize() override;
25  StatusCode execute() override;
27 
28  private:
30  std::string m_muon_container;
32  std::string m_jet_container;
34  std::string m_jet_dr_decoration;
38  float m_jet_pt_cut;
39  std::unique_ptr< SG::AuxElement::Decorator<float>> m_decorator;
40 
41  };
42 
43 }
44 
45 #endif
CP::MuonCloseJetDecorationAlg::execute
StatusCode execute() override
Function executing the algorithm.
Definition: MuonCloseJetDecorationAlg.cxx:46
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
CP::MuonCloseJetDecorationAlg::m_jet_dr_decoration
std::string m_jet_dr_decoration
name of the decoration
Definition: MuonCloseJetDecorationAlg.h:34
CP::MuonCloseJetDecorationAlg::m_muon_container
std::string m_muon_container
muon container
Definition: MuonCloseJetDecorationAlg.h:30
CP::MuonCloseJetDecorationAlg::m_decorator
std::unique_ptr< SG::AuxElement::Decorator< float > > m_decorator
Definition: MuonCloseJetDecorationAlg.h:39
AthAlgorithm.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::MuonCloseJetDecorationAlg
Small algorithm to quickly write the jetDR decoration needed for isolation scale-factors to the muon.
Definition: MuonCloseJetDecorationAlg.h:16
CP::MuonCloseJetDecorationAlg::m_jet_container
std::string m_jet_container
jet container
Definition: MuonCloseJetDecorationAlg.h:32
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
CP::MuonCloseJetDecorationAlg::m_dummy_value
float m_dummy_value
value to be assigned if no jet is in the event
Definition: MuonCloseJetDecorationAlg.h:36
CP::MuonCloseJetDecorationAlg::~MuonCloseJetDecorationAlg
~MuonCloseJetDecorationAlg()=default
CP::MuonCloseJetDecorationAlg::MuonCloseJetDecorationAlg
MuonCloseJetDecorationAlg(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
Definition: MuonCloseJetDecorationAlg.cxx:13
CP::MuonCloseJetDecorationAlg::m_jet_pt_cut
float m_jet_pt_cut
Minimum pt on the jet.
Definition: MuonCloseJetDecorationAlg.h:38
CP::MuonCloseJetDecorationAlg::initialize
StatusCode initialize() override
Function initialising the algorithm.
Definition: MuonCloseJetDecorationAlg.cxx:27
AuxElement.h
Base class for elements of a container that can have aux data.