ATLAS Offline Software
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 
33 public:
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 
47 private:
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
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
PropertyWrapper.h
JetECPSFractionTool::energyFraction
double energyFraction(const xAOD::Jet &jet) const
Definition: JetECPSFractionTool.cxx:55
IJetDecorator
Interface for adding a decoration to a jet container.
Definition: IJetDecorator.h:21
JetECPSFractionTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: JetECPSFractionTool.cxx:29
IJetDecorator.h
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
JetECPSFractionTool
David Adams May 2015.
Definition: JetECPSFractionTool.h:30
WriteDecorHandleKey.h
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
JetECPSFractionTool::m_fracKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_fracKey
Definition: JetECPSFractionTool.h:54
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24
JetECPSFractionTool::m_jetContainerName
Gaudi::Property< std::string > m_jetContainerName
Definition: JetECPSFractionTool.h:51
JetECPSFractionTool::m_fraclimit
Gaudi::Property< double > m_fraclimit
Definition: JetECPSFractionTool.h:49
AsgTool.h
JetECPSFractionTool::decorate
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Definition: JetECPSFractionTool.cxx:45
JetECPSFractionTool::JetECPSFractionTool
JetECPSFractionTool(const std::string &myname)
Definition: JetECPSFractionTool.cxx:23