|
The Gaudi Framework master (1fbcc22a)
|
Description: More...
#include <src/RootCnvSvc.h>


Public Member Functions | |
| RootCnvSvc (const std::string &name, ISvcLocator *svc) | |
| Standard constructor. | |
| StatusCode | updateServiceState (IOpaqueAddress *) override |
| Update state of the service. | |
| StatusCode | error (const std::string &msg) |
| Standard way to print errors. | |
| StatusCode | connectDatabase (const std::string &dataset, int mode, RootDataConnection **con) |
| Connect the output file to the service with open mode. | |
| StatusCode | initialize () override |
| ConversionSvc overload: initialize Db service. | |
| StatusCode | finalize () override |
| ConversionSvc overload: Finalize Db service. | |
| IConverter * | createConverter (long typ, const CLID &wanted, const ICnvFactory *fac) override |
| ConversionSvc overload: Create new Converter using factory. | |
| void | loadConverter (DataObject *pObj) override |
| ConversionSvc overload: Load the class (dictionary) for the converter. | |
| StatusCode | connectOutput (const std::string &outputFile, const std::string &openMode) override |
| Connect the output file to the service with open mode. | |
| StatusCode | connectOutput (const std::string &outputFile) override |
| Connect the output file to the service. | |
| StatusCode | commitOutput (const std::string &outputFile, bool do_commit) override |
| Commit pending output. | |
| virtual StatusCode | disconnect (const std::string &dbName) |
| Disconnect from an existing data stream. | |
| StatusCode | createAddress (long svc_type, const CLID &clid, const std::string *par, const unsigned long *ip, IOpaqueAddress *&refpAddress) override |
| IAddressCreator implementation: Address creation. | |
| StatusCode | createAddress (long svc_type, const CLID &clid, const std::string &refAddress, IOpaqueAddress *&refpAddress) override |
| IAddressCreator implementation: Creates an address in string form to object form. | |
| virtual StatusCode | createNullRep (const std::string &path) |
| Insert null marker for not existent transient object. | |
| virtual StatusCode | createNullRef (const std::string &path) |
| Insert null marker for not existent transient object. | |
| virtual StatusCode | i__createRep (DataObject *pObj, IOpaqueAddress *&refpAddr) |
| Convert the transient object to the requested persistent representation. | |
| virtual StatusCode | i__fillRepRefs (IOpaqueAddress *pAddr, DataObject *pObj) |
| Resolve the references of the converted object. | |
| virtual StatusCode | i__createObj (IOpaqueAddress *pAddr, DataObject *&refpObj) |
| Create transient object from persistent data. | |
| virtual StatusCode | i__fillObjRefs (IOpaqueAddress *pAddr, DataObject *pObj) |
| Resolve the references of the created transient object. | |
| Public Member Functions inherited from ConversionSvc | |
| ConversionSvc (const std::string &name, ISvcLocator *svc, long type) | |
| Standard Constructor. | |
| ConversionSvc (const ConversionSvc &)=delete | |
| disable copy and assignment | |
| ConversionSvc & | operator= (const ConversionSvc &)=delete |
| StatusCode | initialize () override |
| Initialize the service. | |
| StatusCode | finalize () override |
| stop the service. | |
| long | repSvcType () const override |
| Retrieve the class type of the data store the converter uses. | |
| const CLID & | objType () const override |
| Implementation of IConverter: dummy call. | |
| StatusCode | setDataProvider (IDataProviderSvc *pService) override |
| Implementation of IConverter: Set Data provider service. | |
| SmartIF< IDataProviderSvc > & | dataProvider () const override |
| Implementation of IConverter: Get Data provider service. | |
| StatusCode | setConversionSvc (IConversionSvc *svc) override |
| Implementation of IConverter: Set conversion service the converter is connected to. | |
| SmartIF< IConversionSvc > | conversionSvc () override |
| Implementation of IConverter: Get conversion service the converter is connected to. | |
| StatusCode | setAddressCreator (IAddressCreator *creator) override |
| Set address creator facility. | |
| SmartIF< IAddressCreator > & | addressCreator () const override |
| Retrieve address creator facility. | |
| StatusCode | createObj (IOpaqueAddress *pAddress, DataObject *&refpObject) override |
| Implementation of IConverter: Create the transient representation of an object. | |
| StatusCode | fillObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) override |
| Implementation of IConverter: Resolve the references of the created transient object. | |
| StatusCode | updateObj (IOpaqueAddress *pAddress, DataObject *refpObject) override |
| Implementation of IConverter: Update the transient object from the other representation. | |
| StatusCode | updateObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) override |
| Implementation of IConverter: Update the references of an updated transient object. | |
| StatusCode | createRep (DataObject *pObject, IOpaqueAddress *&refpAddress) override |
| Implementation of IConverter: Convert the transient object to the requested representation. | |
| StatusCode | fillRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) override |
| Implementation of IConverter: Resolve the references of the converted object. | |
| StatusCode | updateRep (IOpaqueAddress *pAddress, DataObject *pObject) override |
| Implementation of IConverter: Update the converted representation of a transient object. | |
| StatusCode | updateRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) override |
| Implementation of IConverter: Update the references of an already converted object. | |
| StatusCode | addConverter (const CLID &clid) override |
| Add converter object to conversion service. | |
| StatusCode | addConverter (IConverter *pConverter) override |
| Add converter object to conversion service. | |
| StatusCode | removeConverter (const CLID &clid) override |
| Remove converter object from conversion service (if present). | |
| IConverter * | converter (const CLID &wanted) override |
| Retrieve converter from list. | |
| StatusCode | connectOutput (const std::string &outputFile, const std::string &openMode) override |
| Connect the output file to the service with open mode. | |
| StatusCode | connectOutput (const std::string &output) override |
| Connect the output file to the service. | |
| StatusCode | commitOutput (const std::string &output, bool do_commit) override |
| Commit pending output. | |
| StatusCode | createAddress (long svc_type, const CLID &clid, const std::string *par, const unsigned long *ip, IOpaqueAddress *&refpAddress) override |
| Create a Generic address using explicit arguments to identify a single object. | |
| StatusCode | convertAddress (const IOpaqueAddress *pAddress, std::string &refAddress) override |
| Convert an address to string form. | |
| StatusCode | createAddress (long svc_type, const CLID &clid, const std::string &refAddress, IOpaqueAddress *&refpAddress) override |
| Convert an address in string form to object form. | |
| Public Member Functions inherited from extends< Service, IConversionSvc, IAddressCreator > | |
| void const * | i_cast (const InterfaceID &tid) const override |
| Implementation of IInterface::i_cast. | |
| StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
| Implementation of IInterface::queryInterface. | |
| std::vector< std::string > | getInterfaceNames () const override |
| Implementation of IInterface::getInterfaceNames. | |
| Public Member Functions inherited from Service | |
| const std::string & | name () const override |
| Retrieve name of the service. | |
| StatusCode | configure () override |
| StatusCode | initialize () override |
| StatusCode | start () override |
| StatusCode | stop () override |
| StatusCode | finalize () override |
| StatusCode | terminate () override |
| Gaudi::StateMachine::State | FSMState () const override |
| Gaudi::StateMachine::State | targetFSMState () const override |
| StatusCode | reinitialize () override |
| StatusCode | restart () override |
| StatusCode | sysInitialize () override |
| Initialize Service. | |
| StatusCode | sysStart () override |
| Initialize Service. | |
| StatusCode | sysStop () override |
| Initialize Service. | |
| StatusCode | sysFinalize () override |
| Finalize Service. | |
| StatusCode | sysReinitialize () override |
| Re-initialize the Service. | |
| StatusCode | sysRestart () override |
| Re-initialize the Service. | |
| Service (std::string name, ISvcLocator *svcloc) | |
| Standard Constructor. | |
| SmartIF< ISvcLocator > & | serviceLocator () const override |
| Retrieve pointer to service locator. | |
| template<typename IFace = IService> | |
| SmartIF< IFace > | service (const std::string &name, bool createIf=true) const |
| template<class T> | |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, ToolHandle< T > &hndl, const std::string &doc="none") |
| template<class T> | |
| StatusCode | declareTool (ToolHandle< T > &handle, bool createIf=true) |
| template<class T> | |
| StatusCode | declareTool (ToolHandle< T > &handle, const std::string &toolTypeAndName, bool createIf=true) |
| Declare used tool. | |
| template<class T> | |
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, ToolHandleArray< T > &hndlArr, const std::string &doc="none") |
| template<class T> | |
| void | addToolsArray (ToolHandleArray< T > &hndlArr) |
| const std::vector< IAlgTool * > & | tools () const |
| SmartIF< IAuditorSvc > & | auditorSvc () const |
| The standard auditor service.May not be invoked before sysInitialize() has been invoked. | |
| Public Member Functions inherited from PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > > | |
| StatusCode | setProperty (const Gaudi::Details::PropertyBase &p) |
| Set the property from a property. | |
| StatusCode | setProperty (const std::string &name, const char *v) |
| Special case for string literals. | |
| StatusCode | setProperty (const std::string &name, const std::string &v) |
| Special case for std::string. | |
| StatusCode | setProperty (const std::string &name, const TYPE &value) |
| set the property form the value | |
| PropertyHolder ()=default | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Details::PropertyBase &prop) |
| Declare a property. | |
| Gaudi::Details::PropertyBase * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") |
| Declare a remote property. | |
| StatusCode | setPropertyRepr (const std::string &n, const std::string &r) override |
| set the property from name and value string representation | |
| StatusCode | getProperty (Gaudi::Details::PropertyBase *p) const override |
| get the property | |
| const std::vector< Gaudi::Details::PropertyBase * > & | getProperties () const override |
| get all properties | |
| bool | hasProperty (std::string_view name) const override |
| Return true if we have a property with the given name. | |
| Gaudi::Details::PropertyBase * | property (std::string_view name) const |
| \fixme property and bindPropertiesTo should be protected | |
| void | bindPropertiesTo (Gaudi::Interfaces::IOptionsSvc &optsSvc) |
| PropertyHolder & | operator= (const PropertyHolder &)=delete |
| Public Member Functions inherited from CommonMessagingBase | |
| virtual | ~CommonMessagingBase ()=default |
| Virtual destructor. | |
| const SmartIF< IMessageSvc > & | msgSvc () const |
| The standard message service. | |
| MsgStream & | msgStream () const |
| Return an uninitialized MsgStream. | |
| MsgStream & | msgStream (const MSG::Level level) const |
| Predefined configurable message stream for the efficient printouts. | |
| MsgStream & | always () const |
| shortcut for the method msgStream(MSG::ALWAYS) | |
| MsgStream & | fatal () const |
| shortcut for the method msgStream(MSG::FATAL) | |
| MsgStream & | err () const |
| shortcut for the method msgStream(MSG::ERROR) | |
| MsgStream & | error () const |
| shortcut for the method msgStream(MSG::ERROR) | |
| MsgStream & | warning () const |
| shortcut for the method msgStream(MSG::WARNING) | |
| MsgStream & | info () const |
| shortcut for the method msgStream(MSG::INFO) | |
| MsgStream & | debug () const |
| shortcut for the method msgStream(MSG::DEBUG) | |
| MsgStream & | verbose () const |
| shortcut for the method msgStream(MSG::VERBOSE) | |
| MsgStream & | msg () const |
| shortcut for the method msgStream(MSG::INFO) | |
| MSG::Level | msgLevel () const |
| get the cached level (originally extracted from the embedded MsgStream) | |
| bool | msgLevel (MSG::Level lvl) const |
| get the output level from the embedded MsgStream | |
Protected Member Functions | |
| TClass * | getClass (DataObject *pObject) |
| Helper: Get TClass for a given DataObject pointer. | |
| MsgStream & | log () const |
| Helper: Use message streamer. | |
| Protected Member Functions inherited from ConversionSvc | |
| virtual StatusCode | configureConverter (long typ, const CLID &clid, IConverter *cnv) |
| Configure the new converter before initialize is called. | |
| virtual StatusCode | initializeConverter (long typ, const CLID &clid, IConverter *cnv) |
| Initialize the new converter. | |
| virtual StatusCode | activateConverter (long typ, const CLID &clid, IConverter *cnv) |
| Activate the new converter after initialization. | |
| virtual SmartIF< IAddressCreator > & | addressCreator () |
| Retrieve address creation interface. | |
| StatusCode | makeCall (int typ, bool ignore_add, bool ignore_obj, bool update, IOpaqueAddress *&pAddress, DataObject *&pObject) |
| Protected Member Functions inherited from Service | |
| std::vector< IAlgTool * > & | tools () |
| ~Service () override | |
| int | outputLevel () const |
get the Service's output level | |
| Protected Member Functions inherited from CommonMessaging< implements< IService, IProperty, IStateful > > | |
| MSG::Level | setUpMessaging () const override final |
| Set up local caches. | |
| MSG::Level | resetMessaging () |
| Reinitialize internal states. | |
| void | updateMsgStreamOutputLevel (int level) |
| Update the output level of the cached MsgStream. | |
Protected Attributes | |
| Gaudi::Property< std::string > | m_ioPerfStats |
| Gaudi::Property< std::string > | m_shareFiles |
| Gaudi::Property< bool > | m_incidentEnabled { this, "EnableIncident", true, "Flag to enable incidents on FILE_OPEN" } |
| Gaudi::Property< std::string > | m_recordName |
| Gaudi::Property< int > | m_minBufferSize |
| Gaudi::Property< int > | m_maxBufferSize |
| Gaudi::Property< int > | m_approxEventsPerBasket |
| Gaudi::Property< int > | m_splitLevel { this, "SplitLevel", 0, "Split level optimization parameter for ROOT TTree" } |
| Gaudi::Property< std::string > | m_compression |
| SmartIF< Gaudi::IIODataManager > | m_ioMgr |
| Reference to the I/O data manager. | |
| SmartIF< IIncidentSvc > | m_incidentSvc |
| Reference to incident service. | |
| Gaudi::RootDataConnection * | m_current = nullptr |
| On writing: reference to active output stream. | |
| TClass * | m_classRefs = nullptr |
| TClass pointer to reference class. | |
| TClass * | m_classDO = nullptr |
| TClass pointer to DataObject class. | |
| std::shared_ptr< RootConnectionSetup > | m_setup |
| Setup structure (ref-counted) and passed to data connections. | |
| std::string | m_currSection |
| Property: ROOT section name. | |
| std::set< std::string > | m_badFiles |
| Set with bad files/tables. | |
| std::unique_ptr< MsgStream > | m_log |
| Message streamer. | |
| Protected Attributes inherited from ConversionSvc | |
| SmartIF< IDataProviderSvc > | m_dataSvc |
| Pointer to data provider service. | |
| SmartIF< IAddressCreator > | m_addressCreator |
| Pointer to the address creation service interface. | |
| long | m_type |
| Conversion service type. | |
| std::vector< WorkerEntry > | m_workers |
| List of conversion workers. | |
| Protected Attributes inherited from Service | |
| Gaudi::StateMachine::State | m_state = Gaudi::StateMachine::OFFLINE |
| Service state. | |
| Gaudi::StateMachine::State | m_targetState = Gaudi::StateMachine::OFFLINE |
| Service state. | |
| Gaudi::Property< int > | m_outputLevel { this, "OutputLevel", MSG::NIL, "output level" } |
| flag indicating whether ToolHandle tools have been added to m_tools | |
| Gaudi::Property< bool > | m_auditorInitialize { this, "AuditInitialize", false, "trigger auditor on initialize()" } |
| Gaudi::Property< bool > | m_auditorStart { this, "AuditStart", false, "trigger auditor on start()" } |
| Gaudi::Property< bool > | m_auditorStop { this, "AuditStop", false, "trigger auditor on stop()" } |
| Gaudi::Property< bool > | m_auditorFinalize { this, "AuditFinalize", false, "trigger auditor on finalize()" } |
| Gaudi::Property< bool > | m_auditorReinitialize { this, "AuditReinitialize", false, "trigger auditor on reinitialize()" } |
| Gaudi::Property< bool > | m_auditorRestart { this, "AuditRestart", false, "trigger auditor on restart()" } |
| Gaudi::Property< bool > | m_autoRetrieveTools |
| Gaudi::Property< bool > | m_checkToolDeps |
| SmartIF< IAuditorSvc > | m_pAuditorSvc |
| Auditor Service. | |
Additional Inherited Members | |
| Public Types inherited from extends< Service, IConversionSvc, IAddressCreator > | |
| using | base_class |
| Typedef to this class. | |
| using | extend_interfaces_base |
| Typedef to the base of this class. | |
| Public Types inherited from Service | |
| using | Factory = Gaudi::PluginService::Factory<IService*( const std::string&, ISvcLocator* )> |
| Public Types inherited from PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > > | |
| using | PropertyHolderImpl |
| Typedef used to refer to this class from derived classes, as in. | |
| Public Types inherited from CommonMessaging< implements< IService, IProperty, IStateful > > | |
| using | base_class |
| Public Types inherited from extend_interfaces< Interfaces... > | |
| using | ext_iids |
| take union of the ext_iids of all Interfaces... | |
Description:
RootCnvSvc class implementation definition.
Definition at line 61 of file RootCnvSvc.h.
| RootCnvSvc::RootCnvSvc | ( | const std::string & | name, |
| ISvcLocator * | svc ) |
Standard constructor.
Definition at line 60 of file RootCnvSvc.cpp.
|
override |
Commit pending output.
| outputFile | String containig output file |
| do_commit | if true commit the output and flush eventually pending items to the database if false, discard pending buffers. Note: The possibility to commit or rollback depends on the database technology used! |
fill NULL pointers to all branches, which have less entries than the section branch
Definition at line 311 of file RootCnvSvc.cpp.
| StatusCode RootCnvSvc::connectDatabase | ( | const std::string & | dataset, |
| int | mode, | ||
| RootDataConnection ** | con ) |
Connect the output file to the service with open mode.
| dataset | String containig file name |
| mode | String containig opening mode |
Definition at line 210 of file RootCnvSvc.cpp.
|
override |
Connect the output file to the service.
| outputFile | String containig output file |
|
override |
Connect the output file to the service with open mode.
| outputFile | String containig output file |
| openMode | String containig opening mode of the output file |
|
inlineoverride |
IAddressCreator implementation: Creates an address in string form to object form.
| svc_type | Technology identifier encapsulated in this address. |
| clid | Class identifier of the DataObject represented by the opaque address |
| address | Input address. |
| refpAddress | Output address in string form. |
Definition at line 199 of file RootCnvSvc.h.
|
override |
IAddressCreator implementation: Address creation.
Create an address using the link infotmation together with the triple (database name/container name/object name).
| refLink | Reference to abstract link information |
| dbName | Database name |
| containerName | Object container name |
| refpAddress | Opaque address information to retrieve object |
Definition at line 357 of file RootCnvSvc.cpp.
|
overridevirtual |
ConversionSvc overload: Create new Converter using factory.
Reimplemented from ConversionSvc.
Definition at line 146 of file RootCnvSvc.cpp.
|
virtual |
Insert null marker for not existent transient object.
| path | [IN] Path to the (null-)object |
Definition at line 373 of file RootCnvSvc.cpp.
|
virtual |
Insert null marker for not existent transient object.
| path | [IN] Path to the (null-)object |
Definition at line 364 of file RootCnvSvc.cpp.
|
virtual |
Disconnect from an existing data stream.
| dbName | String containing name of the database |
Definition at line 351 of file RootCnvSvc.cpp.
| StatusCode RootCnvSvc::error | ( | const std::string & | msg | ) |
Standard way to print errors.
after the printout an exception is thrown.
| msg | [IN] Message string to be printed. |
Definition at line 79 of file RootCnvSvc.cpp.
|
override |
ConversionSvc overload: Finalize Db service.
Definition at line 118 of file RootCnvSvc.cpp.
|
protected |
Helper: Get TClass for a given DataObject pointer.
Definition at line 177 of file RootCnvSvc.cpp.
|
virtual |
Create transient object from persistent data.
| pAddr | [IN] Pointer to object address. |
| refpObj | [OUT] Location to pointer to store data object |
Definition at line 448 of file RootCnvSvc.cpp.
|
virtual |
Convert the transient object to the requested persistent representation.
| pObj | [IN] Pointer to data object |
| refpAddr | [OUT] Location to store pointer to object address. |
Definition at line 386 of file RootCnvSvc.cpp.
|
virtual |
Resolve the references of the created transient object.
| pAddr | [IN] Pointer to object address. |
| pObj | [IN] Pointer to data object |
Definition at line 476 of file RootCnvSvc.cpp.
|
virtual |
Resolve the references of the converted object.
| pAddr | [IN] Pointer to object address. |
| pObj | [IN] Pointer to data object |
Definition at line 406 of file RootCnvSvc.cpp.
|
override |
ConversionSvc overload: initialize Db service.
Definition at line 90 of file RootCnvSvc.cpp.
|
overridevirtual |
ConversionSvc overload: Load the class (dictionary) for the converter.
Reimplemented from ConversionSvc.
Definition at line 160 of file RootCnvSvc.cpp.
|
inlineprotected |
|
inlineoverridevirtual |
Update state of the service.
Reimplemented from ConversionSvc.
Definition at line 113 of file RootCnvSvc.h.
|
protected |
Definition at line 76 of file RootCnvSvc.h.
|
protected |
Set with bad files/tables.
Definition at line 98 of file RootCnvSvc.h.
|
protected |
TClass pointer to DataObject class.
Definition at line 91 of file RootCnvSvc.h.
|
protected |
TClass pointer to reference class.
Definition at line 89 of file RootCnvSvc.h.
|
protected |
Definition at line 79 of file RootCnvSvc.h.
|
protected |
On writing: reference to active output stream.
Definition at line 87 of file RootCnvSvc.h.
|
protected |
Definition at line 95 of file RootCnvSvc.h.
|
protected |
Definition at line 67 of file RootCnvSvc.h.
|
protected |
Reference to incident service.
Definition at line 85 of file RootCnvSvc.h.
|
protected |
Reference to the I/O data manager.
Definition at line 83 of file RootCnvSvc.h.
|
protected |
Definition at line 63 of file RootCnvSvc.h.
|
protected |
Message streamer.
Definition at line 101 of file RootCnvSvc.h.
|
protected |
Definition at line 74 of file RootCnvSvc.h.
|
protected |
Definition at line 72 of file RootCnvSvc.h.
|
protected |
Definition at line 68 of file RootCnvSvc.h.
|
protected |
Setup structure (ref-counted) and passed to data connections.
Definition at line 93 of file RootCnvSvc.h.
|
protected |
Definition at line 65 of file RootCnvSvc.h.
|
protected |
Definition at line 78 of file RootCnvSvc.h.