ATLAS Offline Software
Loading...
Searching...
No Matches
PlotsDefinitionSvc.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef INDETTRACKPERFMON_PLOTSDEFINITIONSVC_H
6#define INDETTRACKPERFMON_PLOTSDEFINITIONSVC_H
7
16
19
21#include "GaudiKernel/ToolHandle.h"
22
25#include "IPlotsDefReadTool.h"
27
28namespace IDTPM {
29
31 public extends<asg::AsgService, IPlotsDefinitionSvc> {
32
33public:
34
36 PlotsDefinitionSvc( const std::string& name, ISvcLocator* pSvcLocator );
37
39 virtual ~PlotsDefinitionSvc() = default;
40
42 virtual StatusCode initialize() override;
43
45 virtual StatusCode finalize() override;
46
49 const std::string& identifier ) const override;
50
52 StatusCode update( const IDTPM::SinglePlotDefinition& def );
53
54private:
55
56 plotsDefMap_t m_plotsDefMap;
57
59
60 ToolHandle< IDTPM::IPlotsDefReadTool > m_plotsDefReadTool {
61 this, "PlotsDefReadTool", "IDTPM::InDetTrackPerfMon/IPlotsDefReadTool", "Tool to read plots definitions from parsed list of strings" };
62
63 std::string m_anaTag;
64
65}; // class PlotsDefinitionSvc
66
67}
68
69#endif // > !INDETTRACKPERFMON_PLOTSDEFINITIONSVC_H
Interface for plots definition reading tools in this package.
Class to store (internally) each plot definition in this package (originally based on the SingleHisto...
ToolHandle< IDTPM::IPlotsDefReadTool > m_plotsDefReadTool
PlotsDefinitionSvc(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
virtual StatusCode initialize() override
initialize
StatusCode update(const IDTPM::SinglePlotDefinition &def)
Update the map with a new entry.
virtual ~PlotsDefinitionSvc()=default
Destructor.
virtual StatusCode finalize() override
finalize
IDTPM::SinglePlotDefinition m_nullDef
virtual const IDTPM::SinglePlotDefinition & definition(const std::string &identifier) const override
Get the plot definition.
Athena include(s).