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
28
30 public extends<asg::AsgService, IPlotsDefinitionSvc> {
31
32public:
33
35 PlotsDefinitionSvc( const std::string& name, ISvcLocator* pSvcLocator );
36
38 virtual ~PlotsDefinitionSvc() = default;
39
41 virtual StatusCode initialize() override;
42
44 virtual StatusCode finalize() override;
45
48 const std::string& identifier ) const override;
49
51 StatusCode update( const IDTPM::SinglePlotDefinition& def );
52
53private:
54
55 plotsDefMap_t m_plotsDefMap;
56
58
59 ToolHandle< IDTPM::IPlotsDefReadTool > m_plotsDefReadTool {
60 this, "PlotsDefReadTool", "IDTPM::InDetTrackPerfMon/IPlotsDefReadTool", "Tool to read plots definitions from parsed list of strings" };
61
62 std::string m_anaTag;
63
64}; // class PlotsDefinitionSvc
65
66#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
virtual const IDTPM::SinglePlotDefinition & definition(const std::string &identifier) const override
Get the plot definition.
virtual StatusCode finalize() override
finalize
virtual StatusCode initialize() override
initialize
PlotsDefinitionSvc(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
IDTPM::SinglePlotDefinition m_nullDef
plotsDefMap_t m_plotsDefMap
StatusCode update(const IDTPM::SinglePlotDefinition &def)
Update the map with a new entry.
virtual ~PlotsDefinitionSvc()=default
Destructor.