ATLAS Offline Software
JetLArHVTool.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 
17 #ifndef JETMOMENTTOOLS_JETLARHVTOOL_H
18 #define JETMOMENTTOOLS_JETLARHVTOOL_H
19 
20 #include "AsgTools/ToolHandle.h"
21 #include "AsgTools/AsgTool.h"
25 
26 
27 class JetLArHVTool: public asg::AsgTool,
28  virtual public IJetDecorator{
30 
31 public:
32  JetLArHVTool(const std::string & name);
33 
34  virtual StatusCode decorate(const xAOD::JetContainer& jets) const override;
35 
36  virtual StatusCode initialize() override;
37 
38  private:
39 
40  Gaudi::Property<std::string> m_jetContainerName{this, "JetContainer", "",
41  "SG key for the input jet container"};
42 
43  SG::WriteDecorHandleKey<xAOD::JetContainer> m_fracKey{this, "EnergyFracDecorKey", "LArBadHVEnergyFrac",
44  "SG key for energy fraction decoration (not including jet container name)"};
45  SG::WriteDecorHandleKey<xAOD::JetContainer> m_nCellKey{this, "NCellDecorKey", "LArBadHVNCell",
46  "SG key for nCell decoration (not including jet container name)"};
47 };
48 
49 #endif
50 // DoxygenDocumentation
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
JetLArHVTool::m_jetContainerName
Gaudi::Property< std::string > m_jetContainerName
Definition: JetLArHVTool.h:40
IJetDecorator
Interface for adding a decoration to a jet container.
Definition: IJetDecorator.h:21
JetLArHVTool::decorate
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Definition: JetLArHVTool.cxx:34
IJetDecorator.h
JetLArHVTool::m_nCellKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_nCellKey
Definition: JetLArHVTool.h:45
JetLArHVTool
Definition: JetLArHVTool.h:28
JetLArHVTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: JetLArHVTool.cxx:17
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
JetLArHVTool::m_fracKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_fracKey
Definition: JetLArHVTool.h:43
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
WriteDecorHandleKey.h
ASG_TOOL_CLASS1
#define ASG_TOOL_CLASS1
Definition: AsgToolMacros.h:75
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24
ToolHandle.h
AsgTool.h
JetLArHVTool::JetLArHVTool
JetLArHVTool(const std::string &name)
Definition: JetLArHVTool.cxx:11