The Gaudi Framework  master (594c33fa)
Gaudi Namespace Reference

Header file for std:chrono::duration-based Counters. More...

Namespaces

 Accumulators
 
 Allocator
 
 Arena
 
 CommonGaudiConfigurables
 
 Concurrency
 
 Configuration
 
 ConfUser
 
 CounterSummary
 
 cpp17
 
 cxx
 
 Decays
 
 details
 
 Details
 
 Example
 
 Examples
 
 Functional
 
 Guards
 
 Histograming
 
 Histos
 
 Hive
 
 Interface
 
 Interfaces
 
 Main
 
 meta
 
 Monitoring
 
 NTuple
 
 Parsers
 
 ParticleProperties
 
 PluginService
 See Gaudi::PluginService.
 
 ReturnCode
 ApplicationMgr return code definitions.
 
 StateMachine
 
 tagged_bool_ns
 
 Tests
 
 TestSuite
 
 Timers
 
 Tr
 
 Units
 
 Utils
 

Classes

class  _ConfigurablesModule
 
class  Algorithm
 Base class from which all concrete algorithm classes should be derived. More...
 
class  Application
 Gaudi application entry point. More...
 
class  Axis
 An IAxis represents a binned histogram axis. More...
 
class  BootSvcLocator
 
class  c_opt_t
 
struct  ContainerSection
 
class  DataHandle
 
class  EventWatchdogAlg
 Add to the transient store a tracker that detects events that are taking too long. More...
 
struct  fullMatch_t
 
class  Generic1D
 
class  Generic2D
 
class  Generic3D
 
class  Histo1DDef
 
class  Histogram1D
 
class  Histogram2D
 
class  Histogram3D
 
class  HistogramBase
 
class  IDataConnection
 
class  IFileCatalog
 
class  IFileCatalogMgr
 
class  IIODataManager
 
struct  interface_list
 
struct  interface_list_append
 
struct  interface_list_append< interface_list< Is... >, I >
 
struct  interface_list_cat
 
struct  interface_list_cat< interface_list< I... > >
 
struct  interface_list_cat< interface_list< I1... >, interface_list< I2... > >
 
struct  interface_list_cat< interface_list< I1... >, interface_list< I2... >, Others... >
 
struct  InterfaceId
 Class to handle automatically the versioning of the interfaces when they are inheriting from other interfaces. More...
 
class  IODataManager
 
class  ISignalMonitor
 Interface for the service that monitors the occurrences of system signals. More...
 
struct  majorMatch_t
 
class  MetaDataSvc
 
class  MultiFileCatalog
 
class  NamedRange_
 
class  ParticleID
 
class  ParticleProperty
 
class  ParticlePropertySvc
 
class  PoolTool
 
class  Profile1D
 
class  Profile2D
 
class  Property
 Implementation of property with value of concrete type. More...
 
class  Range_
 
struct  RangeBase_
 
class  RootAddress
 
class  RootCnvSvc
 
class  RootConnectionSetup
 
class  RootConverter
 
class  RootDatabaseCnv
 
class  RootDatabaseMerger
 
class  RootDataConnection
 
class  RootDirectoryCnv
 
struct  RootEventExtractor
 
class  RootEvtSelector
 
class  RootEvtSelectorContext
 
class  RootNTupleCnv
 
class  RootNTupleDescriptor
 
struct  RootObjectRefs
 
class  RootPerfMonSvc
 
struct  RootRef
 
class  RootStatCnv
 
class  RootTool
 
class  Sequence
 
class  Sequencer
 A Sequencer is essentially a list of Algorithms and is responsible for their management. More...
 
class  StringKey
 
class  SysProcStat
 
class  Time
 
class  TimeSpan
 
class  XMLFileCatalog
 

Functions

template<class Q , class T >
T * getRepresentation (const Q &hist)
 
std::pair< DataObject *, AIDA::IHistogram1D * > createH1D (ISvcLocator *svcLocator, const std::string &path, const AIDA::IHistogram1D &hist)
 Copy constructor. More...
 
std::pair< DataObject *, AIDA::IHistogram1D * > createH1D (ISvcLocator *svcLocator, const std::string &path, const std::string &title, int nBins=10, double lowerEdge=0., double upperEdge=1.)
 Creator for 1D histogram with fixed bins. More...
 
std::pair< DataObject *, AIDA::IHistogram1D * > createH1D (ISvcLocator *svcLocator, const std::string &path, const std::string &title, const Edges &e)
 Creator for 1D histogram with variable bins. More...
 
std::pair< DataObject *, AIDA::IHistogram2D * > createH2D (ISvcLocator *svcLocator, const std::string &path, const AIDA::IHistogram2D &hist)
 Copy constructor. More...
 
std::pair< DataObject *, AIDA::IHistogram2D * > createH2D (ISvcLocator *svcLocator, const std::string &path, TH2D *rep)
 "Adopt" constructor More...
 
std::pair< DataObject *, AIDA::IHistogram2D * > createH2D (ISvcLocator *svcLocator, const std::string &path, const std::string &title, int binsX, double iminX, double imaxX, int binsY, double iminY, double imaxY)
 Creator for 2 D histograms with fixed bins. More...
 
std::pair< DataObject *, AIDA::IHistogram2D * > createH2D (ISvcLocator *svcLocator, const std::string &path, const std::string &title, const Edges &eX, const Edges &eY)
 Creator for 2 D histograms with variable bins. More...
 
std::pair< DataObject *, AIDA::IHistogram1D * > slice1DX (const std::string &name, const AIDA::IHistogram2D &h, int firstbin, int lastbin)
 Create 1D slice from 2D histogram. More...
 
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. More...
 
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. More...
 
std::pair< DataObject *, AIDA::IHistogram1D * > slice1DY (const std::string &name, const AIDA::IHistogram2D &h, int firstbin, int lastbin)
 Create 1D slice from 2D histogram. More...
 
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. More...
 
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. More...
 
std::pair< DataObject *, AIDA::IHistogram3D * > createH3D (ISvcLocator *svcLocator, const std::string &path, const AIDA::IHistogram3D &hist)
 Copy constructor. More...
 
std::pair< DataObject *, AIDA::IHistogram3D * > createH3D (ISvcLocator *svcLocator, const std::string &path, 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. More...
 
std::pair< DataObject *, AIDA::IHistogram3D * > createH3D (ISvcLocator *svcLocator, const std::string &path, const std::string &title, const Edges &eX, const Edges &eY, const Edges &eZ)
 Create 3D histogram with variable bins. More...
 
std::pair< DataObject *, AIDA::IProfile1D * > createProf1D (ISvcLocator *svcLocator, const std::string &path, const AIDA::IProfile1D &hist)
 Copy constructor. More...
 
std::pair< DataObject *, AIDA::IProfile1D * > createProf1D (ISvcLocator *svcLocator, const std::string &path, 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. More...
 
std::pair< DataObject *, AIDA::IProfile1D * > createProf1D (ISvcLocator *svcLocator, const std::string &path, const std::string &title, const Edges &e, double ylow, double yup, const std::string &opt="")
 Creator of 1D profile with variable bins. More...
 
std::pair< DataObject *, AIDA::IProfile2D * > createProf2D (ISvcLocator *svcLocator, const std::string &path, const AIDA::IProfile2D &hist)
 Copy constructor. More...
 
std::pair< DataObject *, AIDA::IProfile2D * > createProf2D (ISvcLocator *svcLocator, const std::string &path, 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. More...
 
std::pair< DataObject *, AIDA::IProfile2D * > createProf2D (ISvcLocator *svcLocator, const std::string &path, const std::string &title, const Edges &eX, const Edges &eY, double lowerValue, double upperValue)
 Creator for 2 D profile with variable bins. More...
 
template<class T , class TP , class V , class H >
bool operator== (const T &v, const Property< TP, V, H > &p)
 delegate (value == property) to property operator== More...
 
template<class T , class TP , class V , class H >
bool operator!= (const T &v, const Property< TP, V, H > &p)
 delegate (value != property) to property operator!= More...
 
template<class T , class TP , class V , class H >
decltype(auto) operator+ (const T &v, const Property< TP, V, H > &p)
 implemantation of (value + property) More...
 
StatusCode setAppReturnCode (SmartIF< IProperty > &appmgr, int value, bool force=false)
 Set the application return code. More...
 
int getAppReturnCode (const SmartIF< IProperty > &appmgr)
 Get the application (current) return code. More...
 
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. More...
 
GAUDI_API IAppMgrUIsetInstance (IAppMgrUI *newInstance)
 Set new instance of service locator. More...
 
template<typename... lambda_ts>
auto overload (lambda_ts &&... lambdas)
 
GAUDI_API void pushCurrentDataObject (DataObject **pobjAddr)
 
GAUDI_API void popCurrentDataObject ()
 
GAUDI_API DataObjectgetCurrentDataObject ()
 
template<typename... Is>
std::vector< std::stringgetInterfaceNames (Gaudi::interface_list< Is... >)
 
template<typename... Is, typename P >
void * iid_cast (const InterfaceID &tid, Gaudi::interface_list< Is... >, P *ptr)
 
template<typename TARGET >
TARGET * Cast (IInterface *i)
 Cast a IInterface pointer to an IInterface specialization (TARGET). More...
 
template<typename TARGET >
const TARGET * Cast (const IInterface *i)
 Cast a IInterface pointer to an IInterface specialization (TARGET). More...
 
template<class CONTAINER >
NamedRange_< CONTAINER > range (const CONTAINER &cnt, std::string name)
 simple function to create the named range from arbitrary container More...
 
template<class CONTAINER >
Range_< CONTAINER > range (const CONTAINER &cnt)
 simple function to create the range from the arbitrary container More...
 
GAUDI_API void Sleep (int sec)
 Simple sleep function. More...
 
GAUDI_API void NanoSleep (long long nsec)
 Small variation on the sleep function for nanoseconds sleep. More...
 
std::size_t hash_value (const Gaudi::StringKey &key)
 hash-function: heeded for boost::hash More...
 
std::ostreamoperator<< (std::ostream &o, const Gaudi::StringKey &key)
 printout of the object reply on the native printout for the string More...
 
std::ostreamoperator<< (std::ostream &out, const Gaudi::Time &time)
 Output operator. More...
 
std::ostreamoperator<< (std::ostream &out, const Gaudi::TimeSpan &time)
 Output operator. More...
 
std::ostreamoperator<< (std::ostream &str, const DataHandle &d)
 
bool operator< (const Gaudi::Histo1DDef &left, const Gaudi::Histo1DDef &right)
 
std::ostreamoperator<< (std::ostream &o, const Gaudi::Histo1DDef &histo)
 
std::ostreamoperator<< (std::ostream &s, const Gaudi::ParticleID &o)
 Stream operator for the PID. More...
 
std::ostreamoperator<< (std::ostream &s, Gaudi::ParticleID::Location l)
 Stream operator for the PDG digit enumeration. More...
 
std::ostreamoperator<< (std::ostream &s, Gaudi::ParticleID::Quark q)
 Stream operator for the PDG quark enumeration. More...
 
std::ostreamoperator<< (std::ostream &o, const RootAddress &addr)
 
std::string createGuidAsString ()
 Helper function creating file identifier using the UUID mechanism. More...
 
int extractEvt (const char *input, const char *output, long num_evt)
 Function to extract single event and write it to an output file. More...
 

Detailed Description

Header file for std:chrono::duration-based Counters.

Create a hash with a large avalanche effect from 32 or 64 bit integers or a string.

Helper functions to set/get the application return code.

Include this header file (instead of GaudiKernel/Counters.h) if you want to use std::chrono::duration-based Counters. It includes support for the required arithmetic and stream operations.

Author
Marco Clemencic

General Gaudi namespace

Author
Juan PALACIOS
Date
2005-11-21

General Gaudi namespace

Author
Juan PALACIOS
Date
2005-11-23

General Gaudi namepace

Author
Juan PALACIOS
Date
2005-11-21
Author
Marco Clemencic marco.nosp@m..cle.nosp@m.menci.nosp@m.c@ce.nosp@m.rn.ch

note: the constants below are not arbitrary, but are picked carefully such that the bit shuffling has a large 'avalanche' effect... Code by Brett Mulvey (old link: http://bretm.home.comcast.net/~bretm/hash/)

note: as a result, you might call this a quasi-random (not to be confused with psuedo-random!) number generator, in that it generates an output which satisfies a requirement on the uniformity of its output distribution. (and not on the predictability of the next number in the sequence, based on knowledge of the preceding numbers)

note: another way to look at this is is as an (approximation of an) evaporating black hole: whatever you dump in to it, you get something uniformly distributed back ;-)

Function Documentation

◆ Cast() [1/2]

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

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

const version

Definition at line 318 of file IInterface.h.

318  {
319  return reinterpret_cast<const TARGET*>( i->i_cast( TARGET::interfaceID() ) );
320  }

◆ Cast() [2/2]

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

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

Definition at line 312 of file IInterface.h.

312  {
313  return reinterpret_cast<TARGET*>( i->i_cast( TARGET::interfaceID() ) );
314  }

◆ createApplicationMgr() [1/3]

GAUDI_API IAppMgrUI* Gaudi::createApplicationMgr ( )

◆ createApplicationMgr() [2/3]

GAUDI_API IAppMgrUI* Gaudi::createApplicationMgr ( const std::string dllname)

◆ createApplicationMgr() [3/3]

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

◆ createApplicationMgrEx()

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

◆ createGuidAsString()

std::string Gaudi::createGuidAsString ( )

Helper function creating file identifier using the UUID mechanism.

Create file identifier using UUID mechanism.

◆ createH1D() [1/3]

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

Copy constructor.

◆ createH1D() [2/3]

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

Creator for 1D histogram with variable bins.

◆ createH1D() [3/3]

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

Creator for 1D histogram with fixed bins.

◆ createH2D() [1/4]

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

Copy constructor.

◆ createH2D() [2/4]

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

Creator for 2 D histograms with variable bins.

◆ createH2D() [3/4]

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

Creator for 2 D histograms with fixed bins.

◆ createH2D() [4/4]

std::pair<DataObject*, AIDA::IHistogram2D*> Gaudi::createH2D ( ISvcLocator svcLocator,
const std::string path,
TH2D *  rep 
)

"Adopt" constructor

◆ createH3D() [1/3]

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

Copy constructor.

◆ createH3D() [2/3]

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

Create 3D histogram with variable bins.

◆ createH3D() [3/3]

std::pair<DataObject*, AIDA::IHistogram3D*> Gaudi::createH3D ( ISvcLocator svcLocator,
const std::string path,
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.

◆ createInstance()

GAUDI_API IInterface* Gaudi::createInstance ( const std::string name,
const std::string factname,
const std::string ddlname 
)

◆ createProf1D() [1/3]

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

Copy constructor.

◆ createProf1D() [2/3]

std::pair<DataObject*, AIDA::IProfile1D*> Gaudi::createProf1D ( ISvcLocator svcLocator,
const std::string path,
const std::string title,
const Edges e,
double  ylow,
double  yup,
const std::string opt = "" 
)

Creator of 1D profile with variable bins.

◆ createProf1D() [3/3]

std::pair<DataObject*, AIDA::IProfile1D*> Gaudi::createProf1D ( ISvcLocator svcLocator,
const std::string path,
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.

◆ createProf2D() [1/3]

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

Copy constructor.

◆ createProf2D() [2/3]

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

Creator for 2 D profile with variable bins.

◆ createProf2D() [3/3]

std::pair<DataObject*, AIDA::IProfile2D*> Gaudi::createProf2D ( ISvcLocator svcLocator,
const std::string path,
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.

◆ extractEvt()

int Gaudi::extractEvt ( const char *  input,
const char *  output,
long  num_evt 
)

Function to extract single event and write it to an output file.

Definition at line 376 of file extractEvt.C.

376  {
377  RootEventExtractor e( input, output, "RECREATE" );
378  if ( e.select( num_evt ) == EXTRACT_SUCCESS ) {
379  if ( e.extract() == EXTRACT_SUCCESS ) { return EXTRACT_SUCCESS; }
380  }
381  return EXTRACT_ERROR;
382 }

◆ getAppReturnCode()

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 79 of file AppReturnCode.h.

79  {
80  if ( appmgr ) {
81  Gaudi::Property<int> returnCode( "ReturnCode", 0 );
82  if ( appmgr->getProperty( &returnCode ).isSuccess() ) return returnCode.value();
83  }
84  return 0;
85  }

◆ getCurrentDataObject()

GAUDI_API DataObject* Gaudi::getCurrentDataObject ( )

◆ getInterfaceNames()

template<typename... Is>
std::vector<std::string> Gaudi::getInterfaceNames ( Gaudi::interface_list< Is... >  )

Definition at line 162 of file IInterface.h.

162  {
163  return { Is::name()... };
164  }

◆ getRepresentation()

template<class Q , class T >
T* Gaudi::getRepresentation ( const Q &  hist)

Definition at line 18 of file HistogramUtility.h.

18  {
19  auto p = dynamic_cast<const HistogramBase*>( &hist );
20  return p ? dynamic_cast<T*>( p->representation() ) : nullptr;
21  }

◆ hash_value()

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..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
Date
2009-10-07

Definition at line 174 of file StringKey.h.

174 { return key.__hash__(); }

◆ iid_cast()

template<typename... Is, typename P >
void* Gaudi::iid_cast ( const InterfaceID tid,
Gaudi::interface_list< Is... >  ,
P *  ptr 
)

Definition at line 172 of file IInterface.h.

172  {
173  const void* target = nullptr;
174  ( ( tid.versionMatch( Is::interfaceID() ) &&
175  ( target = static_cast<typename Is::interface_type const*>( ptr ), true ) ) ||
176  ... );
177  return const_cast<void*>( target );
178  }

◆ NanoSleep()

GAUDI_API void Gaudi::NanoSleep ( long long  nsec)

Small variation on the sleep function for nanoseconds sleep.

Author
Marco Clemencic

Definition at line 19 of file Sleep.cpp.

◆ operator!=()

template<class T , class TP , class V , class H >
bool Gaudi::operator!= ( const T &  v,
const Property< TP, V, H > &  p 
)

delegate (value != property) to property operator!=

Definition at line 437 of file Property.h.

437  {
438  return p.operator!=( v );
439  }

◆ operator+()

template<class T , class TP , class V , class H >
decltype( auto ) Gaudi::operator+ ( const T &  v,
const Property< TP, V, H > &  p 
)

implemantation of (value + property)

Definition at line 443 of file Property.h.

443  {
444  return v + p.value();
445  }

◆ operator<()

bool Gaudi::operator< ( const Gaudi::Histo1DDef left,
const Gaudi::Histo1DDef right 
)

Definition at line 59 of file HistoDef.cpp.

59  {
60  return std::tie( left.m_title, left.m_low, left.m_high, left.m_bins ) <
61  std::tie( right.m_title, right.m_low, right.m_high, right.m_bins );
62  }

◆ operator<<() [1/9]

std::ostream& Gaudi::operator<< ( std::ostream o,
const Gaudi::Histo1DDef histo 
)

Definition at line 66 of file HistoDef.cpp.

66 { return histo.fillStream( o ); }

◆ operator<<() [2/9]

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..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
Date
2009-10-07

Definition at line 208 of file StringKey.h.

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

◆ operator<<() [3/9]

std::ostream& Gaudi::operator<< ( std::ostream o,
const RootAddress addr 
)
inline

Definition at line 20 of file MIHelpers.h.

20  {
21  return o << addr.svcType() << ' ' << addr.clID() << ' ' << addr.par()[0] << ' ' << addr.par()[1] << ' '
22  << addr.ipar()[0] << ' ' << addr.ipar()[1];
23  }

◆ operator<<() [4/9]

std::ostream& Gaudi::operator<< ( std::ostream out,
const Gaudi::Time time 
)
inline

Output operator.

Definition at line 164 of file Time.icpp.

164  {
165  return out << Gaudi::TimeSpan( time ).seconds() << '.' << time.nanoformat();
166  }

◆ operator<<() [5/9]

std::ostream& Gaudi::operator<< ( std::ostream out,
const Gaudi::TimeSpan time 
)
inline

Output operator.

Definition at line 169 of file Time.icpp.

169  {
170  return out << time.seconds() << '.' << Gaudi::Time( time ).nanoformat();
171  }

◆ operator<<() [6/9]

std::ostream& Gaudi::operator<< ( std::ostream s,
const Gaudi::ParticleID o 
)
inline

Stream operator for the PID.

Definition at line 160 of file ParticleID.h.

160 { return o.fillStream( s ); }

◆ operator<<() [7/9]

std::ostream& Gaudi::operator<< ( std::ostream s,
Gaudi::ParticleID::Location  l 
)
inline

Stream operator for the PDG digit enumeration.

Definition at line 162 of file ParticleID.h.

162  {
164  }

◆ operator<<() [8/9]

std::ostream& Gaudi::operator<< ( std::ostream s,
Gaudi::ParticleID::Quark  q 
)
inline

Stream operator for the PDG quark enumeration.

Definition at line 166 of file ParticleID.h.

166  {
167  return Gaudi::ParticleID::printQuark( q, s );
168  }

◆ operator<<() [9/9]

std::ostream& Gaudi::operator<< ( std::ostream str,
const DataHandle d 
)

Definition at line 37 of file DataHandle.cpp.

37  {
38  str << d.fullKey() << " m: " << d.mode();
39  if ( d.owner() ) str << " o: " << d.owner()->name();
40  return str;
41  }

◆ operator==()

template<class T , class TP , class V , class H >
bool Gaudi::operator== ( const T &  v,
const Property< TP, V, H > &  p 
)

delegate (value == property) to property operator==

Definition at line 431 of file Property.h.

431  {
432  return p.operator==( v );
433  }

◆ overload()

template<typename... lambda_ts>
auto Gaudi::overload ( lambda_ts &&...  lambdas)

Definition at line 38 of file compose.h.

38  {
39  return details::overloaded_t{ std::forward<lambda_ts>( lambdas )... };
40  }

◆ popCurrentDataObject()

GAUDI_API void Gaudi::popCurrentDataObject ( )

◆ profile1DX()

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.

◆ profile1DY()

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.

◆ project1DX()

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.

◆ project1DY()

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.

◆ pushCurrentDataObject()

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

◆ range() [1/2]

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 ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yre.e.nosp@m.du
Date
2007-11-29

Definition at line 281 of file Range.h.

281  {
282  return Range_<CONTAINER>( cnt.begin(), cnt.end() );
283  }

◆ range() [2/2]

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

simple function to create the named range from arbitrary container

const CONTAINER& cnt = ... ;
auto r = range ( cnt , "some name") ;
Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
Date
2007-11-29

Definition at line 128 of file NamedRange.h.

128  {
129  return NamedRange_<CONTAINER>( cnt.begin(), cnt.end(), std::move( name ) );
130  }

◆ setAppReturnCode()

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
appmgrIProperty interface of the ApplicationMgr
valuevalue to assign to the return code
forceif 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 59 of file AppReturnCode.h.

59  {
60  if ( appmgr ) {
61  Gaudi::Property<int> returnCode( "ReturnCode", 0 );
62  if ( appmgr->getProperty( &returnCode ).isSuccess() ) {
63  if ( returnCode.value() == 0 || force ) {
64  returnCode.setValue( value );
65  return appmgr->setProperty( returnCode );
66  }
67  // Consider is a success if we do already have an error code.
68  return StatusCode::SUCCESS;
69  }
70  }
71  return StatusCode::FAILURE;
72  }

◆ setInstance() [1/2]

GAUDI_API IAppMgrUI* Gaudi::setInstance ( IAppMgrUI newInstance)

Set new instance of service locator.

Parameters
newInstanceCurrent instance of service locator.
Returns
Previous instance of service locator object.

◆ setInstance() [2/2]

GAUDI_API ISvcLocator* Gaudi::setInstance ( ISvcLocator newInstance)

Set new instance of service locator.

Parameters
newInstanceCurrent instance of service locator.
Returns
Previous instance of service locator object.

◆ Sleep()

GAUDI_API void Gaudi::Sleep ( int  sec)

Simple sleep function.

Author
Marco Clemencic

Definition at line 17 of file Sleep.cpp.

◆ slice1DX()

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.

◆ slice1DY()

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.

◆ svcLocator()

GAUDI_API ISvcLocator* Gaudi::svcLocator ( )
std::this_thread::sleep_for
T sleep_for(T... args)
Gaudi::TimeSpan::seconds
ValueType seconds() const
Get the number of complete seconds in the span.
Definition: Time.icpp:112
std::move
T move(T... args)
Gaudi::RootEventExtractor
Definition: extractEvt.C:126
gaudirun.s
string s
Definition: gaudirun.py:346
std::chrono::nanoseconds
Gaudi::Time::nanoformat
std::string nanoformat(size_t minwidth=1, size_t maxwidth=9) const
Format the nanosecond fractional part of the time as a string.
Definition: Time.cpp:302
Gaudi::ParticleID::printLocation
static std::ostream & printLocation(const long l, std::ostream &s)
Fill a stream with the PID digit enumeration.
Definition: ParticleID.cpp:443
gaudirun.output
output
Definition: gaudirun.py:521
Gaudi::ParticleID::fillStream
std::ostream & fillStream(std::ostream &s) const
Fill a stream with the PID.
Definition: ParticleID.cpp:432
Gaudi::Time
Definition: Time.h:241
Gaudi::Histo1DDef::fillStream
std::ostream & fillStream(std::ostream &o) const
printout of the histogram definition
Definition: HistoDef.cpp:52
std::tie
T tie(T... args)
Gaudi::TimeSpan
Definition: Time.h:62
compareOutputFiles.target
target
Definition: compareOutputFiles.py:489
IInterface::i_cast
virtual void * i_cast(const InterfaceID &) const =0
main cast function
plotSpeedupsPyRoot.time
time
Definition: plotSpeedupsPyRoot.py:180
Gaudi::ParticleID::printQuark
static std::ostream & printQuark(const long q, std::ostream &s)
Fill a stream with the PID quark enumeration.
Definition: ParticleID.cpp:478
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:100
ConditionsStallTest.name
name
Definition: ConditionsStallTest.py:77
std::left
T left(T... args)
gaudirun.l
dictionary l
Definition: gaudirun.py:581
InterfaceID::versionMatch
constexpr bool versionMatch(const InterfaceID &iid) const
check compatibility.
Definition: IInterface.h:65
Gaudi::details::overloaded_t
overloaded_t(lambda_ts...) -> overloaded_t< lambda_ts... >
Properties.v
v
Definition: Properties.py:122
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:101
ProduceConsume.key
key
Definition: ProduceConsume.py:81
Gaudi::Property< int >
PrepareBase.out
out
Definition: PrepareBase.py:20