ATLAS Offline Software
Loading...
Searching...
No Matches
JetECPSFractionTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5// JetECPSFractionTool.h
6
7#ifndef JetMomentTools_JetECPSFractionTool_H
8#define JetMomentTools_JetECPSFractionTool_H
9
23
24#include "AsgTools/AsgTool.h"
28
30 virtual public IJetDecorator{
32
33public:
34
35 // Constructor from tool name.
36 JetECPSFractionTool(const std::string& myname);
37
38 // Inherited method to decorate a jet.
39 virtual StatusCode decorate(const xAOD::JetContainer& jets) const override;
40
41 // Inherited from AsgTool
42 virtual StatusCode initialize() override;
43
44 // Local method to calculate and return the energy fraction.
45 double energyFraction(const xAOD::Jet& jet) const;
46
47private:
48
49 Gaudi::Property<double> m_fraclimit{this, "ECPSFractionThreshold", 0.8,
50 "Threshold for identifying a cluser as ECPS"};
51 Gaudi::Property<std::string> m_jetContainerName{this, "JetContainer", "",
52 "SG key for input jet container"};
53
54 SG::WriteDecorHandleKey<xAOD::JetContainer> m_fracKey{this, "ECPSFractionDecorKey", "ECPSFraction",
55 "Name for output ECPS fraction decoration"};
56
57};
58
59#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Interface for adding a decoration to a jet container.
Gaudi::Property< std::string > m_jetContainerName
SG::WriteDecorHandleKey< xAOD::JetContainer > m_fracKey
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
JetECPSFractionTool(const std::string &myname)
Gaudi::Property< double > m_fraclimit
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
double energyFraction(const xAOD::Jet &jet) const
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
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".