The Gaudi Framework
master (37c0b60a)
|
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from python with a format liks : ( nbins, min, max, title ) where title can be ommited. More...
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 IAppMgrUI * | createApplicationMgrEx (const std::string &dllname, const std::string &factname) |
GAUDI_API IAppMgrUI * | createApplicationMgr (const std::string &dllname, const std::string &factname) |
GAUDI_API IAppMgrUI * | createApplicationMgr (const std::string &dllname) |
GAUDI_API IAppMgrUI * | createApplicationMgr () |
GAUDI_API IInterface * | createInstance (const std::string &name, const std::string &factname, const std::string &ddlname) |
GAUDI_API ISvcLocator * | svcLocator () |
GAUDI_API ISvcLocator * | setInstance (ISvcLocator *newInstance) |
Set new instance of service locator. More... | |
GAUDI_API IAppMgrUI * | setInstance (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 DataObject * | getCurrentDataObject () |
template<typename... Is> | |
std::vector< std::string > | getInterfaceNames (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::ostream & | operator<< (std::ostream &o, const Gaudi::StringKey &key) |
printout of the object reply on the native printout for the string More... | |
std::ostream & | operator<< (std::ostream &out, const Gaudi::Time &time) |
Output operator. More... | |
std::ostream & | operator<< (std::ostream &out, const Gaudi::TimeSpan &time) |
Output operator. More... | |
std::ostream & | operator<< (std::ostream &str, const DataHandle &d) |
bool | operator< (const Gaudi::Histo1DDef &left, const Gaudi::Histo1DDef &right) |
std::ostream & | operator<< (std::ostream &o, const Gaudi::Histo1DDef &histo) |
std::ostream & | operator<< (std::ostream &s, const Gaudi::ParticleID &o) |
Stream operator for the PID. More... | |
std::ostream & | operator<< (std::ostream &s, Gaudi::ParticleID::Location l) |
Stream operator for the PDG digit enumeration. More... | |
std::ostream & | operator<< (std::ostream &s, Gaudi::ParticleID::Quark q) |
Stream operator for the PDG quark enumeration. More... | |
std::ostream & | operator<< (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... | |
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from python with a format liks : ( nbins, min, max, title ) where title can be ommited.
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.
Header file for std:chrono::duration-based Counters.
note that for the parsing, min and max will be parsed as doubles before being converted to the actual type used as Arithmetic for Axis, so an automatic conversion between the 2 must be provided
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.
General Gaudi namespace
General Gaudi namespace
General Gaudi namepace
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 ;-)
const TARGET* Gaudi::Cast | ( | const IInterface * | i | ) |
Cast a IInterface pointer to an IInterface specialization (TARGET).
const version
Definition at line 320 of file IInterface.h.
TARGET* Gaudi::Cast | ( | IInterface * | i | ) |
Cast a IInterface pointer to an IInterface specialization (TARGET).
Definition at line 314 of file IInterface.h.
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 | ( | ) |
Helper function creating file identifier using the UUID mechanism.
Create file identifier using UUID mechanism.
std::pair<DataObject*, AIDA::IHistogram1D*> Gaudi::createH1D | ( | ISvcLocator * | svcLocator, |
const std::string & | path, | ||
const AIDA::IHistogram1D & | hist | ||
) |
Copy constructor.
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.
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.
std::pair<DataObject*, AIDA::IHistogram2D*> Gaudi::createH2D | ( | ISvcLocator * | svcLocator, |
const std::string & | path, | ||
const AIDA::IHistogram2D & | hist | ||
) |
Copy constructor.
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.
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.
std::pair<DataObject*, AIDA::IHistogram2D*> Gaudi::createH2D | ( | ISvcLocator * | svcLocator, |
const std::string & | path, | ||
TH2D * | rep | ||
) |
"Adopt" constructor
std::pair<DataObject*, AIDA::IHistogram3D*> Gaudi::createH3D | ( | ISvcLocator * | svcLocator, |
const std::string & | path, | ||
const AIDA::IHistogram3D & | hist | ||
) |
Copy constructor.
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.
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.
GAUDI_API IInterface* Gaudi::createInstance | ( | const std::string & | name, |
const std::string & | factname, | ||
const std::string & | ddlname | ||
) |
std::pair<DataObject*, AIDA::IProfile1D*> Gaudi::createProf1D | ( | ISvcLocator * | svcLocator, |
const std::string & | path, | ||
const AIDA::IProfile1D & | hist | ||
) |
Copy constructor.
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.
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.
std::pair<DataObject*, AIDA::IProfile2D*> Gaudi::createProf2D | ( | ISvcLocator * | svcLocator, |
const std::string & | path, | ||
const AIDA::IProfile2D & | hist | ||
) |
Copy constructor.
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.
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.
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.
Get the application (current) return code.
Definition at line 79 of file AppReturnCode.h.
GAUDI_API DataObject* Gaudi::getCurrentDataObject | ( | ) |
std::vector<std::string> Gaudi::getInterfaceNames | ( | Gaudi::interface_list< Is... > | ) |
Definition at line 172 of file IInterface.h.
T* Gaudi::getRepresentation | ( | const Q & | hist | ) |
Definition at line 18 of file HistogramUtility.h.
|
inline |
hash-function: heeded for boost::hash
Definition at line 174 of file StringKey.h.
void* Gaudi::iid_cast | ( | const InterfaceID & | tid, |
Gaudi::interface_list< Is... > | , | ||
P * | ptr | ||
) |
Definition at line 177 of file IInterface.h.
GAUDI_API void Gaudi::NanoSleep | ( | long long | nsec | ) |
bool Gaudi::operator!= | ( | const T & | v, |
const Property< TP, V, H > & | p | ||
) |
delegate (value != property) to property operator!=
Definition at line 435 of file Property.h.
decltype( auto ) Gaudi::operator+ | ( | const T & | v, |
const Property< TP, V, H > & | p | ||
) |
implemantation of (value + property)
Definition at line 441 of file Property.h.
bool Gaudi::operator< | ( | const Gaudi::Histo1DDef & | left, |
const Gaudi::Histo1DDef & | right | ||
) |
std::ostream& Gaudi::operator<< | ( | std::ostream & | o, |
const Gaudi::Histo1DDef & | histo | ||
) |
Definition at line 66 of file HistoDef.cpp.
|
inline |
printout of the object reply on the native printout for the string
Definition at line 208 of file StringKey.h.
|
inline |
Definition at line 20 of file MIHelpers.h.
|
inline |
|
inline |
Output operator.
|
inline |
|
inline |
Stream operator for the PDG digit enumeration.
Definition at line 162 of file ParticleID.h.
|
inline |
Stream operator for the PDG quark enumeration.
Definition at line 166 of file ParticleID.h.
std::ostream& Gaudi::operator<< | ( | std::ostream & | str, |
const DataHandle & | d | ||
) |
Definition at line 37 of file DataHandle.cpp.
bool Gaudi::operator== | ( | const T & | v, |
const Property< TP, V, H > & | p | ||
) |
delegate (value == property) to property operator==
Definition at line 429 of file Property.h.
auto Gaudi::overload | ( | lambda_ts &&... | lambdas | ) |
GAUDI_API void Gaudi::popCurrentDataObject | ( | ) |
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 | ) |
|
inline |
simple function to create the range from the arbitrary container
The range could be created over ALL container types which supports at least the bidirectional iterators.
The minimum requirements from the container type:
NamedRange_<CONTAINER> Gaudi::range | ( | const CONTAINER & | cnt, |
std::string | name | ||
) |
simple function to create the named range from arbitrary container
Definition at line 128 of file NamedRange.h.
|
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.
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 |
Definition at line 59 of file AppReturnCode.h.
Set new instance of service locator.
newInstance | Current instance of service locator. |
GAUDI_API ISvcLocator* Gaudi::setInstance | ( | ISvcLocator * | newInstance | ) |
Set new instance of service locator.
newInstance | Current instance of service locator. |
GAUDI_API void Gaudi::Sleep | ( | int | sec | ) |
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 | ( | ) |