ATLAS Offline Software
Loading...
Searching...
No Matches
JetNumConstitTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef JetMomentTools_JetNumConstitTool_H
6#define JetMomentTools_JetNumConstitTool_H
7
11
13#include "AsgTools/AsgTool.h"
16
18 virtual public IJetDecorator {
20
21public:
22
23 // Constructor from tool name.
24 JetNumConstitTool(const std::string& myname);
25
26 virtual StatusCode initialize() override;
27
28 // Inherited method to decorate a jet container.
29 // Calls width and puts the result on the jets.
30 virtual StatusCode decorate(const xAOD::JetContainer& jets) const override;
31
32private:
33
34 Gaudi::Property<std::string> m_jetContainerName{this, "JetContainer", "", "SG key for the input jet container"};
35
36 SG::WriteDecorHandleKey<xAOD::JetContainer> m_numConstitKey{this, "numConstitKey", "numConstit", "SG key for number of constituents decoration (not including jet container name)"};
37
38};
39
40#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Interface for adding a decoration to a jet container.
JetNumConstitTool(const std::string &myname)
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Gaudi::Property< std::string > m_jetContainerName
SG::WriteDecorHandleKey< xAOD::JetContainer > m_numConstitKey
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".