Gaudi Framework, version v22r0

Home   Generated: 9 Feb 2011

Gaudi Namespace Reference

Helper functions to set/get the application return code. More...

Namespaces

namespace  CommonGaudiConfigurables
namespace  Configuration
namespace  CounterSummary
namespace  details
namespace  Guards
 

Guards.h GaudiKernel/Guards.h Collection of very simple classes which allows to execution of some functions within the given well-defined and exception-safe context.


namespace  Histos
 

collection of simple utilities to deal with histograms


namespace  Main
namespace  Math
namespace  Parsers
namespace  ReturnCode
 

ApplicationMgr return code definitions.


namespace  StateMachine
namespace  Units
namespace  Utils

Classes

class  _ConfigurablesModule
 Small class that allows to access all the configurables as attributes of the instance. More...
class  Histo1DDef
 Simple helper class for description of 1D-histogram The class is targeted to act as the primary "histogram property", but clearly have significantly wider application range. More...
class  HistogramBase
 Common base class for all histograms Use is solely functional to minimize dynamic_casts inside HistogramSvc. More...
class  InterfaceId
 Class to handle automatically the versioning of the interfaces when they are inheriting from other interfaces. More...
class  NamedRange_
struct  RangeBase_
 helper class to simplify the dealing with ranges in Python More...
class  Range_
 Useful class for representation of "sequence" of the objects through the range of valid iterators. More...
class  StringKey
 The helper class to represent the efficient "key" for access. More...
class  TimeSpan
 Based on seal::TimeSpan. More...
class  Time
 Based on seal::Time. More...
class  BootSvcLocator
 A dual-stage boostrap mechanism is used to ensure an orderly startup of the ApplicationMgr. More...
class  Axis
 An IAxis represents a binned histogram axis. More...
class  Generic1D
 Common AIDA implementation stuff for histograms and profiles using ROOT implementations. More...
class  Generic2D
 Common AIDA implementation stuff for histograms and profiles using ROOT implementations. More...
class  Generic3D
 Common AIDA implementation stuff for histograms and profiles using ROOT implementations. More...
class  Histogram3D
 AIDA implementation for 2 D histograms using ROOT THD2. More...
class  Profile1D
 AIDA implementation for 1 D profiles using ROOT TProfile. More...
class  Profile2D
 AIDA implementation for 2 D profiles using ROOT TProfile2D. More...
class  IFileCatalog
 File catalog interface. More...
class  IFileCatalogMgr
 File catalog manager. More...
class  IDataConnection
 ABC describing basic data connection. More...
class  IIODataManager
class  ISignalMonitor
 Interface for the service that monitors the occurrences of system signals. More...
class  IODataManager
class  MultiFileCatalog
 This class constitutes the core of the XML based FileCatalog API for using POOL within Gaudi. More...
class  XMLFileCatalog
 This class constitutes the core of the XML based FileCatalog API for POOL. More...

Functions

StatusCode setAppReturnCode (SmartIF< IProperty > &appmgr, int value, bool force=false)
 Set the application return code.
int getAppReturnCode (const SmartIF< IProperty > &appmgr)
 Get the application (current) return code.
GAUDI_API IAppMgrUIcreateApplicationMgrEx (const std::string &dllname, const std::string &factname)
GAUDI_API IAppMgrUIcreateApplicationMgr (const std::string &dllname, const std::string &factname)
GAUDI_API IAppMgrUIcreateApplicationMgr (const std::string &dllname)
GAUDI_API IAppMgrUIcreateApplicationMgr ()
GAUDI_API IInterfacecreateInstance (const std::string &name, const std::string &factname, const std::string &ddlname)
GAUDI_API ISvcLocatorsvcLocator ()
GAUDI_API ISvcLocatorsetInstance (ISvcLocator *newInstance)
 Set new instance of service locator.
GAUDI_API IAppMgrUIsetInstance (IAppMgrUI *newInstance)
 Set new instance of service locator.
GAUDI_API void pushCurrentDataObject (DataObject **pobjAddr)
GAUDI_API void popCurrentDataObject ()
GAUDI_API DataObjectgetCurrentDataObject ()
template<typename TARGET >
TARGET * Cast (IInterface *i)
 Cast a IInterface pointer to an IInterface specialization (TARGET).
template<typename TARGET >
const TARGET * Cast (const IInterface *i)
 Cast a IInterface pointer to an IInterface specialization (TARGET).
template<class CONTAINER >
NamedRange_< CONTAINER > range (const CONTAINER &cnt, const std::string &name)
 simple function to create the named range form arbitrary container
template<class CONTAINER >
Range_< CONTAINER > range (const CONTAINER &cnt)
 simple function to create the range from the arbitrary container
GAUDI_API void Sleep (int sec)
 Simple sleep function.
GAUDI_API void NanoSleep (long long nsec)
 Small variation on the sleep function for nanoseconds sleep.
template<unsigned int N>
bool operator== (const Gaudi::StringKey &key1, const char(&key2)[N])
 equality operator with C-arrays
template<unsigned int N>
bool operator!= (const Gaudi::StringKey &key1, const char(&key2)[N])
 non-equality operator with C-arrays
bool operator== (const std::string &key1, const Gaudi::StringKey &key2)
 "right" form of equality operator
template<unsigned int N>
bool operator== (const char(&key1)[N], const Gaudi::StringKey &key2)
 "right" form of equality operator
bool operator!= (const std::string &key1, const Gaudi::StringKey &key2)
 "right" form of non-equality operator
template<unsigned int N>
bool operator!= (const char(&key1)[N], const Gaudi::StringKey &key2)
 "right" form of non-equality operator
std::size_t hash_value (const Gaudi::StringKey &key)
 hash-function: heeded for boost::hash
std::ostreamoperator<< (std::ostream &o, const Gaudi::StringKey &key)
 printout of the object reply on the native printout for the string
template<class Q , class T >
T * getRepresentation (const Q &hist)
std::pair< DataObject
*, AIDA::IHistogram1D * > 
createH1D (const AIDA::IHistogram1D &hist)
 Copy constructor.
std::pair< DataObject
*, AIDA::IHistogram1D * > 
createH1D (const std::string &title, int nBins=10, double lowerEdge=0., double upperEdge=1.)
 Creator for 1D histogram with fixed bins.
std::pair< DataObject
*, AIDA::IHistogram1D * > 
createH1D (const std::string &title, const Edges &e)
 Creator for 1D histogram with variable bins.
std::pair< DataObject
*, AIDA::IHistogram2D * > 
createH2D (const AIDA::IHistogram2D &hist)
 Copy constructor.
std::pair< DataObject
*, AIDA::IHistogram2D * > 
createH2D (TH2D *rep)
 "Adopt" constructor
std::pair< DataObject
*, AIDA::IHistogram2D * > 
createH2D (const std::string &title, int binsX, double iminX, double imaxX, int binsY, double iminY, double imaxY)
 Creator for 2 D histograms with fixed bins.
std::pair< DataObject
*, AIDA::IHistogram2D * > 
createH2D (const std::string &title, const Edges &eX, const Edges &eY)
 Creator for 2 D histograms with variable bins.
std::pair< DataObject
*, AIDA::IHistogram1D * > 
slice1DX (const std::string &name, const AIDA::IHistogram2D &h, int firstbin, int lastbin)
 Create 1D slice from 2D histogram.
std::pair< DataObject
*, AIDA::IProfile1D * > 
profile1DX (const std::string &name, const AIDA::IHistogram2D &h, int firstbin, int lastbin)
 Create 1D profile in X from 2D histogram.
std::pair< DataObject
*, AIDA::IHistogram1D * > 
project1DX (const std::string &name, const AIDA::IHistogram2D &h, int firstbin, int lastbin)
 Create 1D projection in X from 2D histogram.
std::pair< DataObject
*, AIDA::IHistogram1D * > 
slice1DY (const std::string &name, const AIDA::IHistogram2D &h, int firstbin, int lastbin)
 Create 1D slice from 2D histogram.
std::pair< DataObject
*, AIDA::IProfile1D * > 
profile1DY (const std::string &name, const AIDA::IHistogram2D &h, int firstbin, int lastbin)
 Create 1D profile in Y from 2D histogram.
std::pair< DataObject
*, AIDA::IHistogram1D * > 
project1DY (const std::string &name, const AIDA::IHistogram2D &h, int firstbin, int lastbin)
 Create 1D projection in Y from 2D histogram.
std::pair< DataObject
*, AIDA::IHistogram3D * > 
createH3D (const AIDA::IHistogram3D &hist)
 Copy constructor.
std::pair< DataObject
*, AIDA::IHistogram3D * > 
createH3D (const std::string &title, int nBinsX, double xlow, double xup, int nBinsY, double ylow, double yup, int nBinsZ, double zlow, double zup)
 Create 3D histogram with fixed bins.
std::pair< DataObject
*, AIDA::IHistogram3D * > 
createH3D (const std::string &title, const Edges &eX, const Edges &eY, const Edges &eZ)
 Create 3D histogram with variable bins.
std::pair< DataObject
*, AIDA::IProfile1D * > 
createProf1D (const AIDA::IProfile1D &hist)
 Copy constructor.
std::pair< DataObject
*, AIDA::IProfile1D * > 
createProf1D (const std::string &title, int nBins, double xlow, double xup, double ylow, double yup, const std::string &opt="")
 Creator of 1D profile with fixed bins.
std::pair< DataObject
*, AIDA::IProfile1D * > 
createProf1D (const std::string &title, const Edges &e, double ylow, double yup, const std::string &opt="")
 Creator of 1D profile with variable bins.
std::pair< DataObject
*, AIDA::IProfile2D * > 
createProf2D (const AIDA::IProfile2D &hist)
 Copy constructor.
std::pair< DataObject
*, AIDA::IProfile2D * > 
createProf2D (const std::string &title, int binsX, double iminX, double imaxX, int binsY, double iminY, double imaxY, double lowerValue, double upperValue)
 Creator for 2 D profile with fixed bins.
std::pair< DataObject
*, AIDA::IProfile2D * > 
createProf2D (const std::string &title, const Edges &eX, const Edges &eY, double lowerValue, double upperValue)
 Creator for 2 D profile with variable bins.
std::string createGuidAsString ()
 Create file identifier using UUID mechanism.

Detailed Description

Helper functions to set/get the application return code.

: AIDA interfaces visibility

General Gaudi namepace.

< AIDA

General Gaudi namespace.

Author:
Marco Clemencic
Juan PALACIOS
Date:
2005-11-21
Author:
Juan PALACIOS
Date:
2005-11-23

Function Documentation

template<typename TARGET >
const TARGET* Gaudi::Cast ( const IInterface i  )  [inline]

Cast a IInterface pointer to an IInterface specialization (TARGET).

const version

Definition at line 242 of file IInterface.h.

00242                                          {
00243     return reinterpret_cast<const TARGET*>(i->i_cast(typeid(typename TARGET::iid::iids::type)));
00244   }

template<typename TARGET >
TARGET* Gaudi::Cast ( IInterface i  )  [inline]

Cast a IInterface pointer to an IInterface specialization (TARGET).

Definition at line 236 of file IInterface.h.

00236                              {
00237     return reinterpret_cast<TARGET*>(i->i_cast(typeid(typename TARGET::iid::iids::type)));
00238   }

GAUDI_API IAppMgrUI* Gaudi::createApplicationMgr (  ) 
GAUDI_API IAppMgrUI* Gaudi::createApplicationMgr ( const std::string dllname  ) 
GAUDI_API IAppMgrUI* Gaudi::createApplicationMgr ( const std::string dllname,
const std::string factname 
)
GAUDI_API IAppMgrUI* Gaudi::createApplicationMgrEx ( const std::string dllname,
const std::string factname 
)
std::string Gaudi::createGuidAsString (  ) 

Create file identifier using UUID mechanism.

Definition at line 182 of file XMLFileCatalog.cpp.

00182                                      {
00183   char text[64];
00184   uuid_t uuid;
00185   ::uuid_generate_time(uuid);
00186   struct Guid {
00187     unsigned int   Data1;
00188     unsigned short Data2;
00189     unsigned short Data3;
00190     unsigned char  Data4[8];
00191   } *g = (Guid*)&uuid;
00192   ::sprintf(text, "%08X-%04hX-%04hX-%02hhX%02hhX-%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX",
00193             g->Data1, g->Data2, g->Data3,
00194             g->Data4[0], g->Data4[1], g->Data4[2], g->Data4[3],
00195             g->Data4[4], g->Data4[5], g->Data4[6], g->Data4[7]);
00196   return text;
00197 }

std::pair<DataObject*,AIDA::IHistogram1D*> Gaudi::createH1D ( const std::string title,
const Edges &  e 
)

Creator for 1D histogram with variable bins.

std::pair<DataObject*,AIDA::IHistogram1D*> Gaudi::createH1D ( const std::string title,
int  nBins = 10,
double  lowerEdge = 0.,
double  upperEdge = 1. 
)

Creator for 1D histogram with fixed bins.

std::pair<DataObject*,AIDA::IHistogram1D*> Gaudi::createH1D ( const AIDA::IHistogram1D &  hist  ) 

Copy constructor.

std::pair<DataObject*,AIDA::IHistogram2D*> Gaudi::createH2D ( const std::string title,
const Edges &  eX,
const Edges &  eY 
)

Creator for 2 D histograms with variable bins.

std::pair<DataObject*,AIDA::IHistogram2D*> Gaudi::createH2D ( const std::string title,
int  binsX,
double  iminX,
double  imaxX,
int  binsY,
double  iminY,
double  imaxY 
)

Creator for 2 D histograms with fixed bins.

std::pair<DataObject*,AIDA::IHistogram2D*> Gaudi::createH2D ( TH2D *  rep  ) 

"Adopt" constructor

std::pair<DataObject*,AIDA::IHistogram2D*> Gaudi::createH2D ( const AIDA::IHistogram2D &  hist  ) 

Copy constructor.

std::pair<DataObject*,AIDA::IHistogram3D*> Gaudi::createH3D ( const std::string title,
const Edges &  eX,
const Edges &  eY,
const Edges &  eZ 
)

Create 3D histogram with variable bins.

std::pair<DataObject*,AIDA::IHistogram3D*> Gaudi::createH3D ( const std::string title,
int  nBinsX,
double  xlow,
double  xup,
int  nBinsY,
double  ylow,
double  yup,
int  nBinsZ,
double  zlow,
double  zup 
)

Create 3D histogram with fixed bins.

std::pair<DataObject*,AIDA::IHistogram3D*> Gaudi::createH3D ( const AIDA::IHistogram3D &  hist  ) 

Copy constructor.

GAUDI_API IInterface* Gaudi::createInstance ( const std::string name,
const std::string factname,
const std::string ddlname 
)
std::pair<DataObject*,AIDA::IProfile1D*> Gaudi::createProf1D ( const std::string title,
const Edges &  e,
double  ylow,
double  yup,
const std::string opt = "" 
)

Creator of 1D profile with variable bins.

std::pair<DataObject*,AIDA::IProfile1D*> Gaudi::createProf1D ( const std::string title,
int  nBins,
double  xlow,
double  xup,
double  ylow,
double  yup,
const std::string opt = "" 
)

Creator of 1D profile with fixed bins.

std::pair<DataObject*,AIDA::IProfile1D*> Gaudi::createProf1D ( const AIDA::IProfile1D &  hist  ) 

Copy constructor.

std::pair<DataObject*,AIDA::IProfile2D*> Gaudi::createProf2D ( const std::string title,
const Edges &  eX,
const Edges &  eY,
double  lowerValue,
double  upperValue 
)

Creator for 2 D profile with variable bins.

std::pair<DataObject*,AIDA::IProfile2D*> Gaudi::createProf2D ( const std::string title,
int  binsX,
double  iminX,
double  imaxX,
int  binsY,
double  iminY,
double  imaxY,
double  lowerValue,
double  upperValue 
)

Creator for 2 D profile with fixed bins.

std::pair<DataObject*,AIDA::IProfile2D*> Gaudi::createProf2D ( const AIDA::IProfile2D &  hist  ) 

Copy constructor.

int Gaudi::getAppReturnCode ( const SmartIF< IProperty > &  appmgr  )  [inline]

Get the application (current) return code.

Returns:
the return code or 0 if it was not possible to get it

Definition at line 65 of file AppReturnCode.h.

00065                                                                 {
00066     if (appmgr) {
00067       IntegerProperty returnCode("ReturnCode", 0);
00068       if (appmgr->getProperty(&returnCode).isSuccess())
00069         return returnCode.value();
00070     }
00071     return 0;
00072   }

GAUDI_API DataObject* Gaudi::getCurrentDataObject (  ) 
template<class Q , class T >
T* Gaudi::getRepresentation ( const Q &  hist  )  [inline]

Definition at line 21 of file GaudiPI.h.

00021                                                                    {
00022     T* result = 0;
00023     const HistogramBase *p = dynamic_cast<const HistogramBase*>(&hist);
00024     if ( p )  {
00025       result = dynamic_cast<T*>(p->representation());
00026     }
00027     return result;
00028   }

std::size_t Gaudi::hash_value ( const Gaudi::StringKey &  key  )  [inline]

hash-function: heeded for boost::hash

Attention:
NEVER use the actual hash value for anything stored in files, as it is not guaranteed that the hashing scheme will remain the same. The only reason for this function is Python and transparent usage of this object for hashmap-like containers
See also:
Gaudi::Hash
Returns:
the actual hash value
Author:
Vanya BELYAEV Iavn.Belyaev@nikhef.nl
Date:
2009-10-07

Definition at line 214 of file StringKey.h.

00215   { return key.__hash__ () ; }

GAUDI_API void Gaudi::NanoSleep ( long long  nsec  ) 

Small variation on the sleep function for nanoseconds sleep.

Small variation on the sleep function for nanosecons sleep.

Author:
Marco Clemencic

Definition at line 22 of file Sleep.cpp.

00022                                 {
00023     using namespace boost;
00024     xtime t;
00025     if ( xtime_get(&t,TIME_UTC) == TIME_UTC ) {
00026       t.sec  += nsec / 1000000000;
00027       t.nsec += nsec % 1000000000;
00028       thread::sleep(t);
00029     }
00030     // TODO: (MCl) do something if cennot get the time.
00031   }

template<unsigned int N>
bool Gaudi::operator!= ( const char(&)  key1[N],
const Gaudi::StringKey &  key2 
) [inline]

"right" form of non-equality operator

Author:
Vanya BELYAEV Ivan.Belyaev@nikhef.nl
Date:
2009-10-07

Definition at line 201 of file StringKey.h.

00202                                        { return key2 != key1 ; }

bool Gaudi::operator!= ( const std::string key1,
const Gaudi::StringKey &  key2 
) [inline]

"right" form of non-equality operator

Author:
Vanya BELYAEV Ivan.Belyaev@nikhef.nl
Date:
2009-10-07

Definition at line 191 of file StringKey.h.

00193   { return key2 != key1 ; }

template<unsigned int N>
bool Gaudi::operator!= ( const Gaudi::StringKey &  key1,
const char(&)  key2[N] 
) [inline]

non-equality operator with C-arrays

Author:
Vanya BELYAEV Ivan.Belyaev@nikhef.nl
Date:
2009-10-07

Definition at line 163 of file StringKey.h.

00165   { return ! ( key1 == key2 ) ; }

std::ostream& Gaudi::operator<< ( std::ostream o,
const Gaudi::StringKey &  key 
) [inline]

printout of the object reply on the native printout for the string

Author:
Vanya BELYAEV Iavn.Belyaev@nikhef.nl
Date:
2009-10-07

Definition at line 249 of file StringKey.h.

00250                                   { return  o << key.str() ; }  

template<unsigned int N>
bool Gaudi::operator== ( const char(&)  key1[N],
const Gaudi::StringKey &  key2 
) [inline]

"right" form of equality operator

Author:
Vanya BELYAEV Ivan.Belyaev@nikhef.nl
Date:
2009-10-07

Definition at line 182 of file StringKey.h.

00184   { return key2 == key1 ; }

bool Gaudi::operator== ( const std::string key1,
const Gaudi::StringKey &  key2 
) [inline]

"right" form of equality operator

Author:
Vanya BELYAEV Ivan.Belyaev@nikhef.nl
Date:
2009-10-07

Definition at line 172 of file StringKey.h.

00174   { return key2 == key1 ; }

template<unsigned int N>
bool Gaudi::operator== ( const Gaudi::StringKey &  key1,
const char(&)  key2[N] 
) [inline]

equality operator with C-arrays

Author:
Vanya BELYAEV Iavn.Belyaev@nikhef.nl
Date:
2009-10-07

Definition at line 149 of file StringKey.h.

00151   { 
00152     return 
00153       key1.str().size() == N && 
00154       std::equal ( key2 , key2 + N , key1.str().begin() ) ; 
00155   }

GAUDI_API void Gaudi::popCurrentDataObject (  ) 

Definition at line 66 of file PoolDbIOHandler.cpp.

00066                             {
00067   Gaudi::popCurrentDataObject();
00068   resetLastLink();
00069 }

std::pair<DataObject*,AIDA::IProfile1D*> Gaudi::profile1DX ( const std::string name,
const AIDA::IHistogram2D &  h,
int  firstbin,
int  lastbin 
)

Create 1D profile in X from 2D histogram.

std::pair<DataObject*,AIDA::IProfile1D*> Gaudi::profile1DY ( const std::string name,
const AIDA::IHistogram2D &  h,
int  firstbin,
int  lastbin 
)

Create 1D profile in Y from 2D histogram.

std::pair<DataObject*,AIDA::IHistogram1D*> Gaudi::project1DX ( const std::string name,
const AIDA::IHistogram2D &  h,
int  firstbin,
int  lastbin 
)

Create 1D projection in X from 2D histogram.

std::pair<DataObject*,AIDA::IHistogram1D*> Gaudi::project1DY ( const std::string name,
const AIDA::IHistogram2D &  h,
int  firstbin,
int  lastbin 
)

Create 1D projection in Y from 2D histogram.

GAUDI_API void Gaudi::pushCurrentDataObject ( DataObject **  pobjAddr  ) 

Definition at line 61 of file PoolDbIOHandler.cpp.

00061                                                   {
00062   Gaudi::pushCurrentDataObject(pobjAddr);
00063   resetLastLink();
00064 }

template<class CONTAINER >
Range_<CONTAINER> Gaudi::range ( const CONTAINER &  cnt  )  [inline]

simple function to create the range from the arbitrary container

    const CONTAINER& cnt = ... ;

    Range_<CONTAINER> r = range ( cnt ) ;

The range could be created over *ALL* container types which supports at least the bidirectional iterators.

The minimum requirements from the container type:

  • support the concept of "CONTAINER::value_type"
  • support the concept of "CONTAINER::const_iterator"
  • support the concept of "CONTAINER::const_reference"
  • support the concept of "CONTAINER::const_reverse_iterator"
  • the iterator should be ok for "std::distance" and "std::advance"
  • support for "const_iterator CONTAINER::begin () const"
  • support for "const_iterator CONTAINER::end () const"
  • support for "const_reverse_iterator CONTAINER::rbegin () const"
  • support for "const_reverse_iterator CONTAINER::rend () const"
Author:
Vanya BELYAEV ibelyaev@physics.syre.edu
Date:
2007-11-29

Definition at line 276 of file Range.h.

00277   { return Range_<CONTAINER>( cnt.begin() , cnt.end() ) ; }

template<class CONTAINER >
NamedRange_<CONTAINER> Gaudi::range ( const CONTAINER &  cnt,
const std::string name 
) [inline]

simple function to create the named range form arbitrary container

    const CONTAINER& cnt = ... ;

    NamedRange_<CONTAINER> r = range ( cnt , "some name") ;
Author:
Vanya BELYAEV Ivan.Belyaev@nikhef.nl
Date:
2007-11-29

Definition at line 133 of file NamedRange.h.

00135   { return NamedRange_<CONTAINER>( cnt.begin() , cnt.end() , name ) ; }

StatusCode Gaudi::setAppReturnCode ( SmartIF< IProperty > &  appmgr,
int  value,
bool  force = false 
) [inline]

Set the application return code.

By default the return code of the application is modified only if the original value was 0 (i.e. no error). In this way we keep the first cause of error.

Parameters:
appmgr IProperty interface of the ApplicationMgr
value value to assign to the return code
force if set to true, the return code is set even if it was already set
Returns:
SUCCESS if it was possible to set the return code or the return code was already set

Definition at line 45 of file AppReturnCode.h.

00045                                                                                                 {
00046     if (appmgr) {
00047       IntegerProperty returnCode("ReturnCode", 0);
00048       if (appmgr->getProperty(&returnCode).isSuccess()) {
00049         if (returnCode.value() == 0 || force) {
00050           returnCode.setValue(value);
00051           return appmgr->setProperty(returnCode);
00052         }
00053         // Consider is a success if we do already have an error code.
00054         return StatusCode::SUCCESS;
00055       }
00056     }
00057     return StatusCode::FAILURE;
00058   }

GAUDI_API IAppMgrUI* Gaudi::setInstance ( IAppMgrUI newInstance  ) 

Set new instance of service locator.

Parameters:
newInstance Current instance of service locator.
Returns:
Previous instance of service locator object.
GAUDI_API ISvcLocator* Gaudi::setInstance ( ISvcLocator newInstance  ) 

Set new instance of service locator.

Parameters:
newInstance Current instance of service locator.
Returns:
Previous instance of service locator object.
GAUDI_API void Gaudi::Sleep ( int  sec  ) 

Simple sleep function.

Simple sleep function taken from COOL.

Author:
Marco Clemencic

Definition at line 10 of file Sleep.cpp.

00010                      {
00011     using namespace boost;
00012     xtime t;
00013     if ( xtime_get(&t,TIME_UTC) == TIME_UTC ) {
00014       t.sec += sec;
00015       thread::sleep(t);
00016     }
00017     // TODO: (MCl) do something if cennot get the time.
00018   }

std::pair<DataObject*,AIDA::IHistogram1D*> Gaudi::slice1DX ( const std::string name,
const AIDA::IHistogram2D &  h,
int  firstbin,
int  lastbin 
)

Create 1D slice from 2D histogram.

std::pair<DataObject*,AIDA::IHistogram1D*> Gaudi::slice1DY ( const std::string name,
const AIDA::IHistogram2D &  h,
int  firstbin,
int  lastbin 
)

Create 1D slice from 2D histogram.

GAUDI_API ISvcLocator* Gaudi::svcLocator (  ) 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Wed Feb 9 16:33:02 2011 for Gaudi Framework, version v22r0 by Doxygen version 1.6.2 written by Dimitri van Heesch, © 1997-2004