![]() |
ATLAS Offline Software
|
#include <ISessionTool.h>
Public Member Functions | |
| virtual void | setupFC (Gaudi::IFileCatalog &fileCatalog, int ageLimit=-1)=0 |
| Use this FileCatalog and DB ageing value for this session. | |
| virtual bool | disconnectAll ()=0 |
| Explicitly disconnects all the databases. | |
| virtual bool | start (Io::IoFlag type=Io::READ)=0 |
| Starts a new transaction. Returns the success of the operation. | |
| virtual bool | commit ()=0 |
| Commits the transaction. | |
| virtual bool | commitAndHold ()=0 |
| Commits the holds transaction. | |
| virtual Io::IoFlag | openMode () const =0 |
| Returns the transaction type. | |
| virtual std::unique_ptr< pool::IDatabase > | databaseHandle (const std::string &dbName, pool::DatabaseSpecification::NameType dbNameType)=0 |
| Returns a pointer to a database object. The user acquires ownership of that object. | |
| virtual void * | readObject (const Token &token, void *object=0)=0 |
| Retrieves an object from persistent store and return with type information The handle to the reflection class is necessary to later delete the object. | |
| virtual Token * | registerForWrite (const Placement &place, const void *object, const RootType &type)=0 |
| registerForWrite registers an object for writing to the persistent medium higher level interactions with the framework are necessary. | |
| virtual pool::MicroSessionManager & | microSessionManager (long technology)=0 |
| Returns the technology given a technology type. | |
| virtual pool::IStorageSvc & | getStorageSvc (long technology)=0 |
| Return StorageSvc for a given technology used in this session. | |
| virtual void | closeSession ()=0 |
| virtual | ~ISessionTool ()=default |
| ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. | |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. | |
| virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. | |
| virtual StatusCode | sysStart () override |
| Handle START transition. | |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. | |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
Protected Member Functions | |
| void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution | |
| std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
| void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| Add StoreName to extra input/output deps as needed. | |
Private Types | |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default). | |
| StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default). | |
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| bool | m_varHandleArraysDeclared |
Definition at line 32 of file ISessionTool.h.
|
privateinherited |
Definition at line 376 of file AthCommonDataStore.h.
|
virtualdefault |
|
pure virtual |
Implemented in SessionTool.
|
pure virtual |
Commits the transaction.
Implemented in SessionTool.
|
pure virtual |
Commits the holds transaction.
Implemented in SessionTool.
|
pure virtual |
Returns a pointer to a database object. The user acquires ownership of that object.
Implemented in SessionTool.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 95 of file AthCommonDataStore.h.
|
pure virtual |
Explicitly disconnects all the databases.
If a transaction is active, then all the changes since the last commit are aborted.
Implemented in SessionTool.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
protectedinherited |
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
|
pure virtual |
Return StorageSvc for a given technology used in this session.
Implemented in SessionTool.
|
overridevirtualinherited |
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
pure virtual |
Returns the technology given a technology type.
Implemented in SessionTool.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
pure virtual |
Returns the transaction type.
Implemented in SessionTool.
|
overridevirtualinherited |
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
Retrieves an object from persistent store and return with type information The handle to the reflection class is necessary to later delete the object.
The Guid of the transient class is assumed to be the classID of the token
| token | [IN] reference to the token for the object |
| object | [IN] pointer to memory for the object (created if 0) |
In case of failure zero is returned.
Implemented in SessionTool.
|
pure virtual |
registerForWrite registers an object for writing to the persistent medium higher level interactions with the framework are necessary.
| place | [IN] the placement hint |
| object | [IN] pointer to transient object which will be written |
| type | [IN] reflection class description with the layout of transient object |
Implemented in SessionTool.
|
inlineprotectedinherited |
Definition at line 368 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 352 of file AthCommonDataStore.h.
|
pure virtual |
Use this FileCatalog and DB ageing value for this session.
Implemented in SessionTool.
|
pure virtual |
Starts a new transaction. Returns the success of the operation.
Implemented in SessionTool.
|
overridevirtualinherited |
Perform system initialization for an algorithm.
We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.
Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, and AthCheckedComponent<::AthAlgTool >.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 298 of file AthCommonDataStore.h.
|
privateinherited |
Pointer to StoreGate (detector store by default).
Definition at line 381 of file AthCommonDataStore.h.
|
privateinherited |
Pointer to StoreGate (event store by default).
Definition at line 378 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 387 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 386 of file AthCommonDataStore.h.