ATLAS Offline Software
Loading...
Searching...
No Matches
ConditionsCleanerSvc.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2/*
3 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
4*/
5/*
6 */
13
14
15#ifndef ATHENASERVICES_CONDITIONSCLEANERSVC_H
16#define ATHENASERVICES_CONDITIONSCLEANERSVC_H
17
18
21#include "GaudiKernel/ServiceHandle.h"
22
23
24namespace Athena {
25
26
36 : public extends<AthService, IConditionsCleanerSvc>
37{
38public:
44 ConditionsCleanerSvc (const std::string& name, ISvcLocator* svc);
45
46
50 virtual StatusCode initialize() override;
51
52
59 virtual StatusCode event (const EventContext& ctx,
60 bool allowAsync) override;
61
62
68 virtual StatusCode condObjAdded (const EventContext& ctx,
69 CondContBase& cc) override;
70
71
77 virtual StatusCode printStats() const override;
78
79
84 virtual StatusCode reset() override;
85
86
87private:
89};
90
91
92} // namespace Athena
93
94
95#endif // not ATHENASERVICES_CONDITIONSCLEANERSVC_H
Interface for doing garbage collection of conditions objects.
virtual StatusCode condObjAdded(const EventContext &ctx, CondContBase &cc) override
Called after a conditions object has been added.
virtual StatusCode event(const EventContext &ctx, bool allowAsync) override
Called at the start of each event.
virtual StatusCode printStats() const override
Print some statistics about the garbage collection.
ServiceHandle< Athena::IConditionsCleanerSvc > m_cleanerSvc
virtual StatusCode initialize() override
Standard Gaudi initialize method.
virtual StatusCode reset() override
Clear the internal state of the service.
ConditionsCleanerSvc(const std::string &name, ISvcLocator *svc)
Standard Gaudi constructor.
Base class for all conditions containers.
Definition CondCont.h:140
Some weak symbol referencing magic... These are declared in AthenaKernel/getMessageSvc....