ATLAS Offline Software
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  */
15 #ifndef ATHENASERVICES_CONDITIONSCLEANERSVC_H
16 #define ATHENASERVICES_CONDITIONSCLEANERSVC_H
17 
18 
21 #include "GaudiKernel/ServiceHandle.h"
22 
23 
24 namespace Athena {
25 
26 
36  : public extends<AthService, IConditionsCleanerSvc>
37 {
38 public:
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 
87 private:
89 };
90 
91 
92 } // namespace Athena
93 
94 
95 #endif // not ATHENASERVICES_CONDITIONSCLEANERSVC_H
IConditionsCleanerSvc.h
Interface for doing garbage collection of conditions objects.
Athena::ConditionsCleanerSvc::condObjAdded
virtual StatusCode condObjAdded(const EventContext &ctx, CondContBase &cc) override
Called after a conditions object has been added.
Definition: ConditionsCleanerSvc.cxx:70
Athena::ConditionsCleanerSvc::ConditionsCleanerSvc
ConditionsCleanerSvc(const std::string &name, ISvcLocator *svc)
Standard Gaudi constructor.
Definition: ConditionsCleanerSvc.cxx:25
Athena::ConditionsCleanerSvc::reset
virtual StatusCode reset() override
Clear the internal state of the service.
Definition: ConditionsCleanerSvc.cxx:98
Athena::ConditionsCleanerSvc::event
virtual StatusCode event(const EventContext &ctx, bool allowAsync) override
Called at the start of each event.
Definition: ConditionsCleanerSvc.cxx:55
Athena::ConditionsCleanerSvc::m_cleanerSvc
ServiceHandle< Athena::IConditionsCleanerSvc > m_cleanerSvc
Definition: ConditionsCleanerSvc.h:88
Athena
Some weak symbol referencing magic...
Definition: AthLegacySequence.h:21
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CondContBase
Base class for all conditions containers.
Definition: CondCont.h:140
Athena::ConditionsCleanerSvc
Facade class for conditions garbage collection.
Definition: ConditionsCleanerSvc.h:37
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
Athena::ConditionsCleanerSvc::printStats
virtual StatusCode printStats() const override
Print some statistics about the garbage collection.
Definition: ConditionsCleanerSvc.cxx:85
AthService.h
Athena::ConditionsCleanerSvc::initialize
virtual StatusCode initialize() override
Standard Gaudi initialize method.
Definition: ConditionsCleanerSvc.cxx:39
python.handimod.cc
int cc
Definition: handimod.py:523
ServiceHandle< Athena::IConditionsCleanerSvc >