All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Gaudi::RootConnectionSetup Class Reference

#include </scratch/z5/marcocle/lhcb-release/419/GAUDI/GAUDI_v26r1/InstallArea/x86_64-slc6-gcc48-opt/include/RootCnv/RootDataConnection.h>

Collaboration diagram for Gaudi::RootConnectionSetup:

Public Types

typedef std::vector< std::string > StringVec
 Type definition for string maps.
 
typedef std::vector< std::string > StringVec
 Type definition for string maps.
 

Public Member Functions

 RootConnectionSetup ()
 Standard constructor.
 
void addRef ()
 Increase reference count.
 
void release ()
 Decrease reference count.
 
void setMessageSvc (MsgStream *m)
 Set message service reference.
 
MsgStreammsgSvc () const
 Retrieve message service.
 
void setIncidentSvc (IIncidentSvc *m)
 Set incident service reference.
 
IIncidentSvcincidentSvc () const
 Retrieve incident service.
 
 RootConnectionSetup ()
 Standard constructor.
 
void addRef ()
 Increase reference count.
 
void release ()
 Decrease reference count.
 
void setMessageSvc (MsgStream *m)
 Set message service reference.
 
MsgStreammsgSvc () const
 Retrieve message service.
 
void setIncidentSvc (IIncidentSvc *m)
 Set incident service reference.
 
IIncidentSvcincidentSvc () const
 Retrieve incident service.
 

Static Public Member Functions

static long setCompression (const std::string &compression)
 Set the global compression level.
 
static int compression ()
 Access to global compression level.
 
static long setCompression (const std::string &compression)
 Set the global compression level.
 
static int compression ()
 Access to global compression level.
 

Public Attributes

StringVec cacheBranches
 Vector of strings with branches to be cached for input files.
 
StringVec vetoBranches
 Vector of strings with branches to NOT be cached for input files.
 
std::string loadSection
 RootCnvSvc Property: Root data cache size.
 
int cacheSize
 RootCnvSvc Property: Root data cache size.
 
int learnEntries
 RootCnvSvc Property: ROOT cache learn entries.
 

Protected Member Functions

virtual ~RootConnectionSetup ()
 Standard destructor.
 
virtual ~RootConnectionSetup ()
 Standard destructor.
 

Protected Attributes

int refCount
 Object refrfence count.
 
MsgStreamm_msgSvc
 Reference to message service.
 
IIncidentSvcm_incidentSvc
 Reference to incident service.
 

Detailed Description

Definition at line 42 of file RootDataConnection.h.

Member Typedef Documentation

typedef std::vector<std::string> Gaudi::RootConnectionSetup::StringVec

Type definition for string maps.

Definition at line 45 of file RootDataConnection.h.

typedef std::vector<std::string> Gaudi::RootConnectionSetup::StringVec

Type definition for string maps.

Definition at line 45 of file RootDataConnection.h.

Constructor & Destructor Documentation

RootConnectionSetup::~RootConnectionSetup ( )
protectedvirtual

Standard destructor.

Definition at line 96 of file RootDataConnection.cpp.

{
if ( m_incidentSvc ) m_incidentSvc->release();
deletePtr(m_msgSvc);
}
RootConnectionSetup::RootConnectionSetup ( )

Standard constructor.

Definition at line 91 of file RootDataConnection.cpp.

{
}
virtual Gaudi::RootConnectionSetup::~RootConnectionSetup ( )
protectedvirtual

Standard destructor.

Gaudi::RootConnectionSetup::RootConnectionSetup ( )

Standard constructor.

Member Function Documentation

void RootConnectionSetup::addRef ( )

Increase reference count.

Definition at line 140 of file RootDataConnection.cpp.

{
}
void Gaudi::RootConnectionSetup::addRef ( )

Increase reference count.

int RootConnectionSetup::compression ( )
static

Access to global compression level.

Global compression level.

Definition at line 135 of file RootDataConnection.cpp.

{
return s_compressionLevel;
}
static int Gaudi::RootConnectionSetup::compression ( )
static

Access to global compression level.

IIncidentSvc* Gaudi::RootConnectionSetup::incidentSvc ( ) const
inline

Retrieve incident service.

Definition at line 88 of file RootDataConnection.h.

{ return m_incidentSvc; }
IIncidentSvc* Gaudi::RootConnectionSetup::incidentSvc ( ) const
inline

Retrieve incident service.

Definition at line 88 of file RootDataConnection.h.

{ return m_incidentSvc; }
MsgStream& Gaudi::RootConnectionSetup::msgSvc ( ) const
inline

Retrieve message service.

Definition at line 83 of file RootDataConnection.h.

{ return *m_msgSvc; }
MsgStream& Gaudi::RootConnectionSetup::msgSvc ( ) const
inline

Retrieve message service.

Definition at line 83 of file RootDataConnection.h.

{ return *m_msgSvc; }
void RootConnectionSetup::release ( )

Decrease reference count.

Definition at line 145 of file RootDataConnection.cpp.

{
int tmp = --refCount;
if ( tmp <= 0 ) {
delete this;
}
}
void Gaudi::RootConnectionSetup::release ( )

Decrease reference count.

static long Gaudi::RootConnectionSetup::setCompression ( const std::string &  compression)
static

Set the global compression level.

long RootConnectionSetup::setCompression ( const std::string &  compression)
static

Set the global compression level.

Definition at line 103 of file RootDataConnection.cpp.

{
#if ROOT_VERSION_CODE >= ROOT_VERSION(5,33,0)
int res = 0, level = ROOT::CompressionSettings(ROOT::kLZMA,6);
size_t idx = compression.find(':');
if ( idx != string::npos ) {
string alg = compression.substr(0,idx);
ROOT::ECompressionAlgorithm alg_code = ROOT::kUseGlobalSetting;
if ( strcasecmp(alg.c_str(),"ZLIB") == 0 )
alg_code = ROOT::kZLIB;
else if ( strcasecmp(alg.c_str(),"LZMA") == 0 )
alg_code = ROOT::kLZMA;
else
throw runtime_error("ERROR: request to set unknown ROOT compression algorithm:"+alg);
res = ::sscanf(compression.c_str()+idx+1,"%d",&level);
if ( res == 1 ) {
s_compressionLevel = ROOT::CompressionSettings(alg_code,level);
}
throw runtime_error("ERROR: request to set unknown ROOT compression level:"+compression.substr(idx+1));
}
else if ( 1==::sscanf(compression.c_str(),"%d",&level) ) {
s_compressionLevel = level;
}
throw runtime_error("ERROR: request to set unknown ROOT compression mechanism:"+compression);
#else
if ( !compression.empty() ) {}
#endif
}
void Gaudi::RootConnectionSetup::setIncidentSvc ( IIncidentSvc m)

Set incident service reference.

void RootConnectionSetup::setIncidentSvc ( IIncidentSvc m)

Set incident service reference.

Definition at line 160 of file RootDataConnection.cpp.

{
if ( m_incidentSvc ) m_incidentSvc->addRef();
if ( tmp ) tmp->release();
}
void RootConnectionSetup::setMessageSvc ( MsgStream m)

Set message service reference.

Definition at line 153 of file RootDataConnection.cpp.

{
m_msgSvc = m;
deletePtr(tmp);
}
void Gaudi::RootConnectionSetup::setMessageSvc ( MsgStream m)

Set message service reference.

Member Data Documentation

StringVec Gaudi::RootConnectionSetup::cacheBranches

Vector of strings with branches to be cached for input files.

Definition at line 58 of file RootDataConnection.h.

int Gaudi::RootConnectionSetup::cacheSize

RootCnvSvc Property: Root data cache size.

Definition at line 64 of file RootDataConnection.h.

int Gaudi::RootConnectionSetup::learnEntries

RootCnvSvc Property: ROOT cache learn entries.

Definition at line 66 of file RootDataConnection.h.

std::string Gaudi::RootConnectionSetup::loadSection

RootCnvSvc Property: Root data cache size.

Definition at line 62 of file RootDataConnection.h.

IIncidentSvc * Gaudi::RootConnectionSetup::m_incidentSvc
protected

Reference to incident service.

Definition at line 54 of file RootDataConnection.h.

MsgStream * Gaudi::RootConnectionSetup::m_msgSvc
protected

Reference to message service.

Definition at line 52 of file RootDataConnection.h.

int Gaudi::RootConnectionSetup::refCount
protected

Object refrfence count.

Definition at line 50 of file RootDataConnection.h.

StringVec Gaudi::RootConnectionSetup::vetoBranches

Vector of strings with branches to NOT be cached for input files.

Definition at line 60 of file RootDataConnection.h.


The documentation for this class was generated from the following files: