ATLAS Offline Software
Loading...
Searching...
No Matches
JetEMScaleMomTool.h
Go to the documentation of this file.
1// this file is -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef JETMOMENTTOOLS_JETEMSCALEMOMTOOL_H
8#define JETMOMENTTOOLS_JETEMSCALEMOMTOOL_H
9
10#include "AsgTools/AsgTool.h"
16#include <vector>
17
19 virtual public IJetDecorator {
21public:
22
23 JetEMScaleMomTool(const std::string & t);
24
25 virtual StatusCode initialize() override;
26 virtual StatusCode decorate(const xAOD::JetContainer& jets) const override;
27
28private:
29 Gaudi::Property<std::string> m_jetContainerName{this, "JetContainer", "", "SG key for the input jet container"};
30 // Should be false except if running on topoclusters except for the (legacy/cosmics?) case where
31 // jets were built from the CaloCalTopoClusters at EM scale
32 Gaudi::Property<bool> m_useUncalibConstits{this, "UseUncalibConstits", true, "Toggle for extracting the EMScale momentum from uncalibrated topoclusters"};
33
34 SG::WriteDecorHandleKey<xAOD::JetContainer> m_emscalePtKey{this, "EMScalePtName", "JetEMScaleMomentum_pt", "SG key for the EMScale pt attribute"};
35 SG::WriteDecorHandleKey<xAOD::JetContainer> m_emscaleEtaKey{this, "EMScaleEtaName", "JetEMScaleMomentum_eta", "SG key for the EMScale eta attribute"};
36 SG::WriteDecorHandleKey<xAOD::JetContainer> m_emscalePhiKey{this, "EMScalePhiName", "JetEMScaleMomentum_phi", "SG key for the EMScale phi attribute"};
37 SG::WriteDecorHandleKey<xAOD::JetContainer> m_emscaleMassKey{this, "EMScaleMassName", "JetEMScaleMomentum_m", "SG key for the EMScale mass attribute"};
38
39};
40
41
42#undef ASG_DERIVED_TOOL_CLASS
43#endif
44
#define ASG_TOOL_CLASS0(CLASSNAME)
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Interface for adding a decoration to a jet container.
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Gaudi::Property< std::string > m_jetContainerName
JetEMScaleMomTool(const std::string &t)
SG::WriteDecorHandleKey< xAOD::JetContainer > m_emscalePtKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_emscalePhiKey
Gaudi::Property< bool > m_useUncalibConstits
SG::WriteDecorHandleKey< xAOD::JetContainer > m_emscaleMassKey
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_emscaleEtaKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
JetContainer_v1 JetContainer
Definition of the current "jet container version".