ATLAS Offline Software
JetVoronoiMomentsTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // JetVoronoiMomentsTool.h
6 
7 #ifndef JETMOMENTTOOLS_JETVORONOIMOMENTSTOOL_H
8 #define JETMOMENTTOOLS_JETVORONOIMOMENTSTOOL_H
9 
18 
19 #include <string>
20 #include "AsgTools/AsgTool.h"
23 
24 namespace JetVoronoiDiagramHelpers{
25  struct Diagram;
26 }
27 
29  virtual public IJetDecorator {
31 
32 public:
33 
34  // Constructor from tool name
35  JetVoronoiMomentsTool(const std::string& name);
36 
37  // Inherited from AsgTool via IJetDecorator
38  virtual StatusCode initialize() override;
39 
40  // Inherited method to decorate a jet container
41  virtual StatusCode decorate(const xAOD::JetContainer& jets) const override;
42 
43 private:
44 
45  // parameters
46  Gaudi::Property<float> m_x_min{this, "AreaXmin", -10,
47  "Minimum x-value for Voronoi diagram"};
48  Gaudi::Property<float> m_x_max{this, "AreaXmax", 10,
49  "Maximum x-value for Voronoi diagram"};
50  Gaudi::Property<float> m_y_min{this, "AreaYmin", -4,
51  "Minimum y-value for Voronoi diagram"};
52  Gaudi::Property<float> m_y_max{this, "AreaYmax", 4,
53  "Maximum y-value for Voronoi diagram"};
54  Gaudi::Property<std::string> m_jetContainerName{this, "JetContainer", "",
55  "SG key for the input jet container"};
56 
57  SG::WriteDecorHandleKey<xAOD::JetContainer> m_voronoiAreaKey{this, "VoronoiAreaKey", "VoronoiArea",
58  "SG key for Voronoi area decoration (not including jet container name)"};
59 };
60 
61 #endif
62 
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
JetVoronoiMomentsTool::decorate
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Definition: JetVoronoiMomentsTool.cxx:42
JetVoronoiMomentsTool
Definition: JetVoronoiMomentsTool.h:29
JetVoronoiMomentsTool::m_y_max
Gaudi::Property< float > m_y_max
Definition: JetVoronoiMomentsTool.h:52
IJetDecorator
Interface for adding a decoration to a jet container.
Definition: IJetDecorator.h:21
IJetDecorator.h
JetVoronoiMomentsTool::m_jetContainerName
Gaudi::Property< std::string > m_jetContainerName
Definition: JetVoronoiMomentsTool.h:54
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
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
JetVoronoiMomentsTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: JetVoronoiMomentsTool.cxx:28
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
JetVoronoiMomentsTool::JetVoronoiMomentsTool
JetVoronoiMomentsTool(const std::string &name)
Definition: JetVoronoiMomentsTool.cxx:22
JetVoronoiMomentsTool::m_x_max
Gaudi::Property< float > m_x_max
Definition: JetVoronoiMomentsTool.h:48
JetVoronoiMomentsTool::m_voronoiAreaKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_voronoiAreaKey
Definition: JetVoronoiMomentsTool.h:57
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24
AsgTool.h
JetVoronoiMomentsTool::m_y_min
Gaudi::Property< float > m_y_min
Definition: JetVoronoiMomentsTool.h:50
JetVoronoiDiagramHelpers
Jakub Cuth May 2015.
Definition: JetVoronoiDiagramHelpers.h:42
JetVoronoiMomentsTool::m_x_min
Gaudi::Property< float > m_x_min
Definition: JetVoronoiMomentsTool.h:46