Go to the documentation of this file.
31 using namespace Gaudi;
44 const unsigned long* ipars = pAddr->
ipar();
45 const string* spars = pAddr->
par();
46 char mode = char( ipars[1] );
47 string fname = spars[0];
48 auto oname = pReg->
name();
49 bool recrea = mode ==
'R';
50 bool create = mode ==
'N';
52 bool read = mode ==
'O';
58 status =
saveDescription( fname, cntName,
"File containing statistics results.",
"", clid );
60 log() <<
MSG::INFO <<
"Opened NEW Database file:" << fname <<
" as " << oname <<
endmsg;
64 status =
saveDescription( fname, cntName,
"File containing statistics results.",
"", clid );
66 log() <<
MSG::INFO <<
"Connect to existing Database file:" << fname <<
" as " << oname <<
" for UPDATE"
72 log() <<
MSG::INFO <<
"Connect to existing Database file:" << fname <<
" as " << oname <<
" for READ" <<
endmsg;
74 }
else if ( recrea ) {
76 status =
saveDescription( fname, cntName,
"File containing statistics results.",
"", clid );
StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&refpObj) override
Converter overrides: Create transient object from persistent data.
RootDatabaseCnv(long typ, const CLID &, ISvcLocator *svc, RootCnvSvc *mgr)
Initializing Constructor.
Small class representing an N tuple file in the transient store.
virtual const std::string * par() const =0
Retrieve String parameters.
StatusCode connectDatabase(const std::string &dataset, int mode, RootDataConnection **con)
Connect the output file to the service with open mode.
RootCnvSvc * m_dbMgr
Conversion service needed for proper operation to forward requests.
#define DECLARE_COMPONENT_WITH_ID(type, id)
const std::string containerName(IRegistry *) const override
Retrieve the name of the container a given object is placed into.
virtual const name_type & name() const =0
Name of the directory (or key)
StatusCode saveDescription(const std::string &path, const std::string &ident, const std::string &desc, const std::string &opt, const CLID &clid)
Save statistics object description.
unsigned int CLID
Class ID definition.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
const long ROOT_StorageType
const CLID & objType() const override
Retrieve the class type of objects the converter produces.
virtual IRegistry * registry() const =0
Update branch name.
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
MsgStream & log() const
Helper to use mesage logger.
def read(f, regex=".*", skipevents=0)
constexpr static const auto SUCCESS
void setOpen(bool flag)
Set "open" flag.
constexpr static const auto FAILURE
virtual const unsigned long * ipar() const =0
Access to generic link parameters.