ATLAS Offline Software
Loading...
Searching...
No Matches
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
25 struct Diagram;
26}
27
29 virtual public IJetDecorator {
31
32public:
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
43private:
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
58 "SG key for Voronoi area decoration (not including jet container name)"};
59};
60
61#endif
62
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Interface for adding a decoration to a jet container.
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
JetVoronoiMomentsTool(const std::string &name)
Gaudi::Property< float > m_x_min
Gaudi::Property< std::string > m_jetContainerName
Gaudi::Property< float > m_y_min
Gaudi::Property< float > m_y_max
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_voronoiAreaKey
Gaudi::Property< float > m_x_max
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".
Tool for calculating and storing diagram.