![]() |
The Gaudi Framework
v27r0
|
A RecordDataSvc is the base class for event services. More...
#include <src/DataSvc/RecordDataSvc.h>
Public Member Functions | |
StatusCode | initialize () override |
Service initialisation. More... | |
StatusCode | finalize () override |
Service finalization. More... | |
void | handle (const Incident &incident) override |
IIncidentListener override: Inform that a new incident has occured. More... | |
RecordDataSvc (const std::string &name, ISvcLocator *svc) | |
Standard Constructor. More... | |
~RecordDataSvc () override=default | |
Standard Destructor. More... | |
![]() | |
void * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. More... | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. More... | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
~extends () override=default | |
Virtual destructor. More... | |
void * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. More... | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. More... | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
~extends () override=default | |
Virtual destructor. More... | |
![]() | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
Protected Member Functions | |
void | registerRecord (const std::string &data, IOpaqueAddress *pAddr) |
Load new record into the data store if necessary. More... | |
void | loadRecords (IRegistry *pReg) |
Load dependent records into memory. More... | |
Protected Attributes | |
bool | m_autoLoad |
Property: autoload of records (default: true) More... | |
std::string | m_incidentName |
Property: name of incident to be fired if new record arrives. More... | |
std::string | m_saveIncidentName |
Property: name of the "save" incident. More... | |
std::string | m_persSvcName |
Property: name of the persistency service. More... | |
std::vector< std::string > | m_incidents |
Pending new file incidents. More... | |
SmartIF< IConversionSvc > | m_cnvSvc |
Reference to the main data conversion service. More... | |
Additional Inherited Members | |
![]() | |
using | base_class = extends |
Typedef to this class. More... | |
using | extend_interfaces_base = extend_interfaces< Interfaces...> |
Typedef to the base of this class. More... | |
using | base_class = extends |
Typedef to this class. More... | |
using | extend_interfaces_base = extend_interfaces< Interfaces...> |
Typedef to the base of this class. More... | |
![]() | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
A RecordDataSvc is the base class for event services.
When a new datafile is opened the data service retrieves an incident from the persistency area (currently only from POOL) together with an opaque address describing the record. These history records are put onto the run-records datastore under the name of the logical file (FID): /Records/<FID>/.....
Hence, each history records can be addresses the same way: /Record/<FID> (/EOR)
Definition at line 25 of file RecordDataSvc.h.
RecordDataSvc::RecordDataSvc | ( | const std::string & | name, |
ISvcLocator * | svc | ||
) |
Standard Constructor.
Definition at line 158 of file RecordDataSvc.cpp.
|
overridedefault |
Standard Destructor.
|
override |
Service finalization.
Definition at line 84 of file RecordDataSvc.cpp.
|
override |
IIncidentListener override: Inform that a new incident has occured.
Inform that a new incident has occured.
Definition at line 92 of file RecordDataSvc.cpp.
|
override |
Service initialisation.
We need to subscribe to 2 incident: 1) FILE_OPEN_READ: fired by conversion service on open file 2) IncidentType::BeginEvent fired by event loop BEFORE the event processing starts. Do everything to bootstract access to the old event record.
Definition at line 39 of file RecordDataSvc.cpp.
|
protected |
Load dependent records into memory.
Definition at line 115 of file RecordDataSvc.cpp.
|
protected |
Load new record into the data store if necessary.
Load new run record into the data store if necessary.
Definition at line 135 of file RecordDataSvc.cpp.
|
protected |
Property: autoload of records (default: true)
Definition at line 48 of file RecordDataSvc.h.
|
protected |
Reference to the main data conversion service.
Definition at line 58 of file RecordDataSvc.h.
|
protected |
Property: name of incident to be fired if new record arrives.
Definition at line 50 of file RecordDataSvc.h.
|
protected |
Pending new file incidents.
Definition at line 56 of file RecordDataSvc.h.
|
protected |
Property: name of the persistency service.
Definition at line 54 of file RecordDataSvc.h.
|
protected |
Property: name of the "save" incident.
Definition at line 52 of file RecordDataSvc.h.