![]() |
ATLAS Offline Software
|
The base class for offline and HLT ByteStream conversion services. More...
#include <ByteStreamCnvSvcBase.h>
Public Types | |
typedef std::unordered_map< CLID, WorkerEntry > | Workers |
Public Member Functions | |
ByteStreamCnvSvcBase (const std::string &name, ISvcLocator *pSvcLocator) | |
Standard Service Constructor. More... | |
virtual | ~ByteStreamCnvSvcBase () |
Destructor. More... | |
virtual StatusCode | initialize () override |
Required of all Gaudi Services. More... | |
virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvInterface) override |
Required of all Gaudi services: see Gaudi documentation for details. More... | |
virtual StatusCode | updateServiceState (IOpaqueAddress *pAddress) override |
Checks whether an IOpaqueAddress is a GenericAddress. More... | |
virtual void | handle (const Incident &) override |
Implementation of IIncidentListener: Handle for EndEvent incidence. More... | |
virtual StatusCode | finalize () |
MsgStream & | msg () const |
MsgStream & | msg (const MSG::Level lvl) const |
bool | msgLvl (const MSG::Level lvl) const |
virtual RawEventWrite * | getRawEvent ()=0 |
pure virtual method for accessing RawEventWrite More... | |
Static Public Member Functions | |
static const InterfaceID & | interfaceID () |
Gaudi interface id. More... | |
Protected Attributes | |
std::vector< std::string > | m_initCnvs |
Gaudi::Property< std::vector< std::string > > | m_ROD2ROBmap {this,"ROD2ROBmap",{},"","OrderedSet<std::string>"} |
@c IConversionSvc implementation | |
virtual long | repSvcType () const |
Retrieve the class type of the data store the converter uses. More... | |
const CLID & | objType () const |
Implementation of IConverter: dummy call. More... | |
virtual StatusCode | setDataProvider (IDataProviderSvc *pService) |
Implementation of IConverter: Set Data provider service. More... | |
virtual SmartIF< IDataProviderSvc > & | dataProvider () const |
Implementation of IConverter: Get Data provider service. More... | |
virtual StatusCode | setConversionSvc (IConversionSvc *svc) |
Implementation of IConverter: Set conversion service the converter is connected to. More... | |
virtual SmartIF< IConversionSvc > & | conversionSvc () const |
Implementation of IConverter: Get conversion service the converter is connected to. More... | |
virtual StatusCode | setAddressCreator (IAddressCreator *creator) |
Set address creator facility. More... | |
virtual SmartIF< IAddressCreator > & | addressCreator () const |
Retrieve address creator facility. More... | |
virtual StatusCode | createObj (IOpaqueAddress *pAddress, DataObject *&refpObject) |
Implementation of IConverter: Create the transient representation of an object. More... | |
virtual StatusCode | fillObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Implementation of IConverter: Resolve the references of the created transient object. More... | |
virtual StatusCode | updateObj (IOpaqueAddress *pAddress, DataObject *refpObject) |
Implementation of IConverter: Update the transient object from the other representation. More... | |
virtual StatusCode | updateObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Implementation of IConverter: Update the references of an updated transient object. More... | |
virtual StatusCode | createRep (DataObject *pObject, IOpaqueAddress *&refpAddress) |
Implementation of IConverter: Convert the transient object to the requested representation. More... | |
virtual StatusCode | fillRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Implementation of IConverter: Resolve the references of the converted object. More... | |
virtual StatusCode | updateRep (IOpaqueAddress *pAddress, DataObject *pObject) |
Implementation of IConverter: Update the converted representation of a transient object. More... | |
virtual StatusCode | updateRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Implementation of IConverter: Update the references of an already converted object. More... | |
virtual StatusCode | addConverter (const CLID &clid) |
Add converter object to conversion service. More... | |
virtual StatusCode | addConverter (IConverter *pConverter) |
Add converter object to conversion service. More... | |
virtual StatusCode | removeConverter (const CLID &clid) |
Remove converter object from conversion service (if present). More... | |
virtual IConverter * | converter (const CLID &wanted) |
Retrieve converter from list. More... | |
virtual StatusCode | connectOutput (const std::string &outputFile, const std::string &openMode) |
Connect the output file to the service with open mode. More... | |
virtual StatusCode | connectOutput (const std::string &output) |
Connect the output file to the service. More... | |
virtual StatusCode | commitOutput (const std::string &output, bool do_commit) |
Commit pending output. More... | |
virtual StatusCode | disconnectOutput (const std::string &output) |
Disconnect output files from the service. More... | |
@c IAddressCreator interface implementation | |
SmartIF< IDataProviderSvc > | m_dataSvc |
Pointer to data provider service. More... | |
SmartIF< IAddressCreator > | m_addressCreator |
Pointer to the address creation service interface. More... | |
SmartIF< IConversionSvc > | m_cnvSvc |
Pointer to the IConversionSvc interface of this. More... | |
long | m_type |
Conversion service type. More... | |
Workers | m_workers |
List of conversion workers. More... | |
CallMutex | m_conv_mut |
virtual StatusCode | createAddress (long svc_type, const CLID &clid, const std::string *par, const unsigned long *ip, IOpaqueAddress *&refpAddress) |
Create a Generic address using explicit arguments to identify a single object. More... | |
virtual StatusCode | createAddress (long svc_type, const CLID &clid, const std::string &refAddress, IOpaqueAddress *&refpAddress) |
Convert an address in string form to object form. More... | |
virtual StatusCode | convertAddress (const IOpaqueAddress *pAddress, std::string &refAddress) |
Convert an address to string form. More... | |
typedef std::recursive_mutex | CallMutex |
Mutex to protect Converter creation. More... | |
virtual SmartIF< IAddressCreator > & | addressCreator () |
Retrieve address creation interface. More... | |
virtual IConverter * | createConverter (long typ, const CLID &clid, const ICnvFactory *fac) |
Create new Converter using factory. More... | |
virtual StatusCode | configureConverter (long typ, const CLID &clid, IConverter *cnv) |
Configure the new converter before initialize is called. More... | |
virtual StatusCode | initializeConverter (long typ, const CLID &clid, IConverter *cnv) |
Initialize the new converter. More... | |
virtual StatusCode | activateConverter (long typ, const CLID &clid, IConverter *cnv) |
Activate the new converter after initialization. More... | |
virtual void | loadConverter (DataObject *pObject) |
Load converter or dictionary needed by the converter. More... | |
StatusCode | makeCall (int typ, bool ignore_add, bool ignore_obj, bool update, IOpaqueAddress *&pAddress, DataObject *&pObject) |
The base class for offline and HLT ByteStream conversion services.
Definition at line 17 of file ByteStreamCnvSvcBase.h.
|
protectedinherited |
Mutex to protect Converter creation.
Definition at line 323 of file AthCnvSvc.h.
|
inherited |
Definition at line 106 of file AthCnvSvc.h.
ByteStreamCnvSvcBase::ByteStreamCnvSvcBase | ( | const std::string & | name, |
ISvcLocator * | pSvcLocator | ||
) |
|
virtual |
|
protectedvirtualinherited |
Activate the new converter after initialization.
Definition at line 536 of file AthCnvSvc.cxx.
|
virtualinherited |
|
inlineprotectedvirtualinherited |
Retrieve address creation interface.
Definition at line 300 of file AthCnvSvc.h.
|
virtualinherited |
|
virtualinherited |
Commit pending output.
Reimplemented in TrigByteStreamCnvSvc, Athena::NtupleCnvSvc, Athena::xAODCnvSvc, AthenaPoolCnvSvc, ByteStreamCnvSvc, and Athena::RootCnvSvc.
Definition at line 429 of file AthCnvSvc.cxx.
|
protectedvirtualinherited |
Configure the new converter before initialize is called.
Definition at line 510 of file AthCnvSvc.cxx.
|
virtualinherited |
Connect the output file to the service.
Reimplemented in ByteStreamCnvSvc, TrigByteStreamCnvSvc, Athena::NtupleCnvSvc, Athena::xAODCnvSvc, AthenaPoolCnvSvc, and Athena::RootCnvSvc.
Definition at line 422 of file AthCnvSvc.cxx.
|
virtualinherited |
Connect the output file to the service with open mode.
Reimplemented in ByteStreamCnvSvc, TrigByteStreamCnvSvc, Athena::NtupleCnvSvc, Athena::xAODCnvSvc, AthenaPoolCnvSvc, and Athena::RootCnvSvc.
Definition at line 414 of file AthCnvSvc.cxx.
|
virtualinherited |
Implementation of IConverter: Get conversion service the converter is connected to.
Definition at line 232 of file AthCnvSvc.cxx.
|
virtualinherited |
Convert an address to string form.
Reimplemented in AthenaPoolCnvSvc, Athena::NtupleCnvSvc, Athena::xAODCnvSvc, and Athena::RootCnvSvc.
Definition at line 459 of file AthCnvSvc.cxx.
|
virtualinherited |
Convert an address in string form to object form.
Reimplemented in Athena::NtupleCnvSvc, Athena::xAODCnvSvc, AthenaPoolCnvSvc, and Athena::RootCnvSvc.
Definition at line 468 of file AthCnvSvc.cxx.
|
virtualinherited |
Create a Generic address using explicit arguments to identify a single object.
Reimplemented in Athena::NtupleCnvSvc, Athena::xAODCnvSvc, AthenaPoolCnvSvc, and Athena::RootCnvSvc.
Definition at line 447 of file AthCnvSvc.cxx.
|
protectedvirtualinherited |
Create new Converter using factory.
Reimplemented in Athena::NtupleCnvSvc, Athena::xAODCnvSvc, and Athena::RootCnvSvc.
Definition at line 491 of file AthCnvSvc.cxx.
|
virtualinherited |
Implementation of IConverter: Create the transient representation of an object.
Reimplemented in Athena::NtupleCnvSvc, Athena::xAODCnvSvc, and AthenaPoolCnvSvc.
Definition at line 273 of file AthCnvSvc.cxx.
|
virtualinherited |
Implementation of IConverter: Convert the transient object to the requested representation.
Reimplemented in Athena::NtupleCnvSvc, Athena::xAODCnvSvc, and AthenaPoolCnvSvc.
Definition at line 305 of file AthCnvSvc.cxx.
|
virtualinherited |
Implementation of IConverter: Get Data provider service.
Definition at line 212 of file AthCnvSvc.cxx.
|
virtualinherited |
Disconnect output files from the service.
Reimplemented in AthenaPoolCnvSvc.
Definition at line 437 of file AthCnvSvc.cxx.
|
virtualinherited |
Implementation of IConverter: Resolve the references of the created transient object.
Definition at line 281 of file AthCnvSvc.cxx.
|
virtualinherited |
Implementation of IConverter: Resolve the references of the converted object.
Reimplemented in Athena::NtupleCnvSvc, Athena::xAODCnvSvc, and AthenaPoolCnvSvc.
Definition at line 313 of file AthCnvSvc.cxx.
|
virtualinherited |
Reimplemented in ByteStreamCnvSvc, TrigByteStreamCnvSvc, AthenaPoolCnvSvc, Athena::NtupleCnvSvc, Athena::xAODCnvSvc, and Athena::RootCnvSvc.
Definition at line 116 of file AthCnvSvc.cxx.
|
pure virtualinherited |
pure virtual method for accessing RawEventWrite
Implemented in ByteStreamCnvSvc, and TrigByteStreamCnvSvc.
|
overridevirtual |
Implementation of IIncidentListener: Handle for EndEvent incidence.
Definition at line 63 of file ByteStreamCnvSvcBase.cxx.
|
overridevirtual |
Required of all Gaudi Services.
Initialize the service.
Reimplemented from AthCnvSvc.
Reimplemented in ByteStreamCnvSvc, and TrigByteStreamCnvSvc.
Definition at line 27 of file ByteStreamCnvSvcBase.cxx.
|
protectedvirtualinherited |
Initialize the new converter.
Definition at line 525 of file AthCnvSvc.cxx.
|
inlinestaticinherited |
Gaudi interface id.
Definition at line 20 of file IByteStreamEventAccess.h.
|
protectedvirtualinherited |
Load converter or dictionary needed by the converter.
Definition at line 547 of file AthCnvSvc.cxx.
|
protectedinherited |
Definition at line 553 of file AthCnvSvc.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 27 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
Implementation of IConverter: dummy call.
Definition at line 179 of file AthCnvSvc.cxx.
|
overridevirtual |
Required of all Gaudi services: see Gaudi documentation for details.
Reimplemented from AthCnvSvc.
Reimplemented in ByteStreamCnvSvc.
Definition at line 42 of file ByteStreamCnvSvcBase.cxx.
Remove converter object from conversion service (if present).
Definition at line 379 of file AthCnvSvc.cxx.
|
virtualinherited |
Retrieve the class type of the data store the converter uses.
Definition at line 172 of file AthCnvSvc.cxx.
|
virtualinherited |
|
virtualinherited |
Implementation of IConverter: Set conversion service the converter is connected to.
Definition at line 224 of file AthCnvSvc.cxx.
|
virtualinherited |
Implementation of IConverter: Set Data provider service.
pService | Pointer to data provider service |
Definition at line 189 of file AthCnvSvc.cxx.
|
virtualinherited |
Implementation of IConverter: Update the transient object from the other representation.
Definition at line 289 of file AthCnvSvc.cxx.
|
virtualinherited |
Implementation of IConverter: Update the references of an updated transient object.
Definition at line 297 of file AthCnvSvc.cxx.
|
virtualinherited |
Implementation of IConverter: Update the converted representation of a transient object.
Definition at line 321 of file AthCnvSvc.cxx.
|
virtualinherited |
Implementation of IConverter: Update the references of an already converted object.
Definition at line 329 of file AthCnvSvc.cxx.
|
overridevirtual |
Checks whether an IOpaqueAddress is a GenericAddress.
Reimplemented from AthCnvSvc.
Definition at line 53 of file ByteStreamCnvSvcBase.cxx.
|
protectedinherited |
Pointer to the address creation service interface.
Definition at line 315 of file AthCnvSvc.h.
|
protectedinherited |
Pointer to the IConversionSvc interface of this.
Definition at line 317 of file AthCnvSvc.h.
|
protectedinherited |
Definition at line 324 of file AthCnvSvc.h.
|
protectedinherited |
Pointer to data provider service.
Definition at line 313 of file AthCnvSvc.h.
|
protected |
Definition at line 40 of file ByteStreamCnvSvcBase.h.
|
private |
flags for Calibration EventType
Definition at line 55 of file ByteStreamCnvSvcBase.h.
|
private |
flags for Simulation EventType
Definition at line 51 of file ByteStreamCnvSvcBase.h.
|
private |
flags for TestBeam EventType
Definition at line 53 of file ByteStreamCnvSvcBase.h.
|
protected |
Definition at line 42 of file ByteStreamCnvSvcBase.h.
|
protectedinherited |
Conversion service type.
Definition at line 319 of file AthCnvSvc.h.
|
protectedinherited |
List of conversion workers.
Definition at line 321 of file AthCnvSvc.h.