ATLAS Offline Software
Loading...
Searching...
No Matches
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
19class HIEventShapeMapTool : virtual public asg::AsgTool, virtual public IHIEventShapeMapTool
20{
22
23 public:
24
25 HIEventShapeMapTool(const std::string& n);
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
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
virtual bool hasKey(HI::BinningScheme key) override
HIEventShapeMapTool(const std::string &n)
virtual const HIEventShapeIndex * getIndex(HI::BinningScheme key) const override
std::map< HI::BinningScheme,HIEventShapeIndex > m_map
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
virtual const HIEventShapeIndex * getIndexFromShape(const xAOD::HIEventShapeContainer *shape) const override
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
BinningScheme
Definition HIEventDefs.h:16
HIEventShapeContainer_v2 HIEventShapeContainer
Define the latest version of the container.