The Gaudi Framework  master (37c0b60a)
ICondSvc.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDIKERNEL_ICONDSVC_H
12 #define GAUDIKERNEL_ICONDSVC_H 1
13 
14 #include <GaudiKernel/DataHandle.h>
15 #include <GaudiKernel/DataObjID.h>
18 #include <GaudiKernel/IAlgorithm.h>
19 #include <GaudiKernel/IService.h>
20 
21 #include <set>
22 #include <sstream>
23 #include <string>
24 
36 class ConditionSlotFuture;
37 class IConditionIOSvc;
38 
39 class GAUDI_API ICondSvc : virtual public IService {
40 public:
42 
44  virtual StatusCode regHandle( IAlgorithm* alg, const Gaudi::DataHandle& id ) = 0;
45 
47  virtual bool isValidID( const EventContext& ctx, const DataObjID& id ) const = 0;
48 
50  virtual const std::set<IAlgorithm*>& condAlgs() const = 0;
51 
53  virtual bool isRegistered( IAlgorithm* alg ) const = 0;
54 
56  virtual bool isRegistered( const DataObjID& id ) const = 0;
57 
59  virtual const DataObjIDColl& conditionIDs() const = 0;
60 
62  virtual void dump( std::ostream& ost ) const = 0;
63 
66 
68  virtual ConditionSlotFuture* startConditionSetup( const EventContext& ctx ) = 0;
69 
72  virtual StatusCode registerConditionIOSvc( IConditionIOSvc* ioService ) = 0;
73 };
74 
75 #endif
IService
Definition: IService.h:28
IService.h
std::unordered_set< DataObjID, DataObjID_Hasher >
std::vector
STL class.
ICondSvc::condAlgs
virtual const std::set< IAlgorithm * > & condAlgs() const =0
get list of all registered condition Algorithms
ICondSvc::validRanges
virtual StatusCode validRanges(std::vector< EventIDRange > &ranges, const DataObjID &id) const =0
retrieve all valid ranges for one Object ID
ICondSvc::isRegistered
virtual bool isRegistered(IAlgorithm *alg) const =0
query if a specific Algorithm is a registered condition Algorithm
ranges
Definition: details.h:29
Gaudi::DataHandle
Definition: DataHandle.h:38
DataObjID.h
ICondSvc::isValidID
virtual bool isValidID(const EventContext &ctx, const DataObjID &id) const =0
check to see if a specific condition object ID is valid for this event
ICondSvc::dump
virtual void dump(std::ostream &ost) const =0
dump the condition store
ManySmallAlgs.alg
alg
Definition: ManySmallAlgs.py:81
GaudiPython.Pythonizations.ctx
ctx
Definition: Pythonizations.py:578
StatusCode
Definition: StatusCode.h:65
EventIDRange.h
Event Range object. Holds two EventIDBase instances (start and stop)
IAlgorithm
Definition: IAlgorithm.h:38
std::ostream
STL class.
ICondSvc
Definition: ICondSvc.h:39
DataObjID
Definition: DataObjID.h:47
EventContext.h
EventContext
Definition: EventContext.h:34
DataHandle.h
ICondSvc::DeclareInterfaceID
DeclareInterfaceID(ICondSvc, 1, 0)
ICondSvc::regHandle
virtual StatusCode regHandle(IAlgorithm *alg, const Gaudi::DataHandle &id)=0
register dependency between an Algorithm and the Condition Handle it creates
ICondSvc::registerConditionIOSvc
virtual StatusCode registerConditionIOSvc(IConditionIOSvc *ioService)=0
register an IConditionIOSvc (alternative to Algorithm processing of Conditions)
IAlgorithm.h
ICondSvc::startConditionSetup
virtual ConditionSlotFuture * startConditionSetup(const EventContext &ctx)=0
Asynchronously setup conditions.
std::set< IAlgorithm * >
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:81
ICondSvc::conditionIDs
virtual const DataObjIDColl & conditionIDs() const =0
get collection of all registered condition Object IDs
ICondSvc::isRegistered
virtual bool isRegistered(const DataObjID &id) const =0
query if a condition Object ID is registered