ATLAS Offline Software
HIEventShapeMapTool.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 #ifndef HIEVENTUTILS_HIEVENTSHAPEMAPTOOL_H
6 #define HIEVENTUTILS_HIEVENTSHAPEMAPTOOL_H
7 
13 #include "AsgTools/IAsgTool.h"
14 #include "AsgTools/AsgTool.h"
15 
16 #include <string>
17 #include <map>
18 
19 class HIEventShapeMapTool : virtual public asg::AsgTool, virtual public IHIEventShapeMapTool
20 {
22 
23  public:
24 
25  HIEventShapeMapTool(const std::string& n);
26  virtual ~HIEventShapeMapTool() {};
27 
28  virtual StatusCode initialize() override;
29  virtual const HIEventShapeIndex* getIndex(HI::BinningScheme key) const override;
30  virtual const HIEventShapeIndex* getIndexFromShape(const xAOD::HIEventShapeContainer* shape) const override;
31 
32  virtual bool hasKey(HI::BinningScheme key) override;
33 
34  private:
35 
36  std::map< HI::BinningScheme ,HIEventShapeIndex > m_map;
37 
38 };
39 #endif
HIEventShapeMapTool::getIndex
virtual const HIEventShapeIndex * getIndex(HI::BinningScheme key) const override
Definition: HIEventShapeMapTool.cxx:24
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
HIEventShapeIndex.h
HIEventShapeMapTool::m_map
std::map< HI::BinningScheme,HIEventShapeIndex > m_map
Definition: HIEventShapeMapTool.h:36
IHIEventShapeMapTool
Definition: IHIEventShapeMapTool.h:19
HIEventShapeMapTool::hasKey
virtual bool hasKey(HI::BinningScheme key) override
Definition: HIEventShapeMapTool.cxx:58
HIEventShapeMapTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: HIEventShapeMapTool.cxx:13
IHIEventShapeMapTool.h
HIEventDefs.h
HIEventShapeMapTool
Definition: HIEventShapeMapTool.h:20
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
HIEventShape.h
HIEventShapeContainer.h
IAsgTool.h
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
HIEventShapeMapTool::getIndexFromShape
virtual const HIEventShapeIndex * getIndexFromShape(const xAOD::HIEventShapeContainer *shape) const override
Definition: HIEventShapeMapTool.cxx:39
HIEventShapeIndex
Definition: HIEventShapeIndex.h:17
HIEventShapeMapTool::~HIEventShapeMapTool
virtual ~HIEventShapeMapTool()
Definition: HIEventShapeMapTool.h:26
HIEventShapeMapTool::HIEventShapeMapTool
HIEventShapeMapTool(const std::string &n)
Definition: HIEventShapeMapTool.cxx:9
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
HI::BinningScheme
BinningScheme
Definition: HIEventDefs.h:16
AsgTool.h
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37