DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros | Typedefs | Functions
Handle.h File Reference
#include "DD4hep/config.h"
#include "DD4hep/Primitives.h"
#include <string>
#include <typeinfo>
#include <stdexcept>

Go to the source code of this file.

Classes

class  DD4hep::Handle< T >
 Handle: a templated class like a shared pointer, which allows specialized access to tgeometry objects. More...
 
class  DD4hep::DestroyHandle< T >
 Functor to destroy handles and delete the cached object. More...
 
class  DD4hep::DestroyHandles< M >
 map Functor to destroy handles and delete the cached object More...
 
class  DD4hep::ReleaseHandle< T >
 Functor to destroy handles and delete the cached object. More...
 
class  DD4hep::ReleaseHandles< M >
 map Functor to release handles More...
 

Namespaces

 DD4hep
 Namespace for the AIDA detector description toolkit.
 
 DD4hep::Geometry
 Namespace for the geometry part of the AIDA detector description toolkit.
 

Macros

#define RAD_2_DEGREE   57.295779513082320876798154814105
 
#define DEGREE_2_RAD   0.0174532925199432957692369076848
 
#define CM_2_MM   10.0
 
#define MM_2_CM   0.1
 
#define M_PI   3.14159265358979323846
 

Typedefs

typedef Handle< NamedObject > DD4hep::Ref_t
 Default Ref_t definition describing named objects. More...
 

Functions

long DD4hep::num_object_validations ()
 
void DD4hep::increment_object_validations ()
 
void DD4hep::warning_deprecated_xml_factory (const char *name)
 Function tp print warning about deprecated factory usage. Used by Plugin mechanism. More...
 
unsigned long long int DD4hep::magic_word ()
 Access to the magic word, which is protecting some objects against memory corruptions. More...
 
template<typename T >
void DD4hep::destroyHandle (T &h)
 Helper to delete objects from heap and reset the handle. More...
 
template<typename M >
void DD4hep::destroyHandles (M &m)
 Functional created of map destruction functors. More...
 
template<typename T >
void DD4hep::releaseHandle (T &h)
 Helper to delete objects from heap and reset the handle. More...
 
template<typename M >
void DD4hep::releaseHandles (M &m)
 Functional created of map destruction functors. More...
 
std::string DD4hep::_toString (bool value)
 String conversions: boolean value to string. More...
 
std::string DD4hep::_toString (short value, const char *fmt="%d")
 String conversions: integer value to string. More...
 
std::string DD4hep::_toString (int value, const char *fmt="%d")
 String conversions: integer value to string. More...
 
std::string DD4hep::_toString (float value, const char *fmt="%.17e")
 String conversions: float value to string. More...
 
std::string DD4hep::_toString (double value, const char *fmt="%.17e")
 String conversions: double value to string. More...
 
std::string DD4hep::_ptrToString (const void *p, const char *fmt="%p")
 Pointer to text conversion. More...
 
template<typename T >
std::string DD4hep::_toString (const T *p, const char *fmt="%p")
 Format any pointer (64 bits) to string. More...
 
bool DD4hep::_toBool (const std::string &value)
 String conversions: string to boolean value. More...
 
short DD4hep::_toShort (const std::string &value)
 String conversions: string to integer value. More...
 
int DD4hep::_toInt (const std::string &value)
 String conversions: string to integer value. More...
 
long DD4hep::_toLong (const std::string &value)
 String conversions: string to long integer value. More...
 
float DD4hep::_toFloat (const std::string &value)
 String conversions: string to float value. More...
 
double DD4hep::_toDouble (const std::string &value)
 String conversions: string to double value. More...
 
bool DD4hep::_toBool (bool value)
 Void helper function to support formalisms. More...
 
short DD4hep::_toShort (short value)
 Void helper function to support formalisms. More...
 
int DD4hep::_toInt (int value)
 Void helper function to support formalisms. More...
 
long DD4hep::_toLong (long value)
 Void helper function to support formalisms. More...
 
unsigned short DD4hep::_toUShort (unsigned short value)
 Void helper function to support formalisms. More...
 
unsigned int DD4hep::_toUInt (unsigned int value)
 Void helper function to support formalisms. More...
 
unsigned long DD4hep::_toULong (unsigned long value)
 Void helper function to support formalisms. More...
 
float DD4hep::_toFloat (float value)
 Void helper function to support formalisms. More...
 
double DD4hep::_toDouble (double value)
 Void helper function to support formalisms. More...
 
template<class T >
T DD4hep::_multiply (const std::string &left, T right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<class T >
T DD4hep::_multiply (T left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<class T >
T DD4hep::_multiply (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
char DD4hep::_multiply< char > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
char DD4hep::_multiply< char > (char left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
char DD4hep::_multiply< char > (const std::string &left, char right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned char DD4hep::_multiply< unsigned char > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned char DD4hep::_multiply< unsigned char > (unsigned char left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned char DD4hep::_multiply< unsigned char > (const std::string &left, unsigned char right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
short DD4hep::_multiply< short > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
short DD4hep::_multiply< short > (short left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
short DD4hep::_multiply< short > (const std::string &left, short right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned short DD4hep::_multiply< unsigned short > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned short DD4hep::_multiply< unsigned short > (unsigned short left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned short DD4hep::_multiply< unsigned short > (const std::string &left, unsigned short right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
int DD4hep::_multiply< int > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
int DD4hep::_multiply< int > (int left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
int DD4hep::_multiply< int > (const std::string &left, int right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned int DD4hep::_multiply< unsigned int > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned int DD4hep::_multiply< unsigned int > (unsigned int left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned int DD4hep::_multiply< unsigned int > (const std::string &left, unsigned int right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
long DD4hep::_multiply< long > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
long DD4hep::_multiply< long > (long left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
long DD4hep::_multiply< long > (const std::string &left, long right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned long DD4hep::_multiply< unsigned long > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned long DD4hep::_multiply< unsigned long > (unsigned long left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
unsigned long DD4hep::_multiply< unsigned long > (const std::string &left, unsigned long right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
float DD4hep::_multiply< float > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
float DD4hep::_multiply< float > (float left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
float DD4hep::_multiply< float > (const std::string &left, float right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
double DD4hep::_multiply< double > (const std::string &left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
double DD4hep::_multiply< double > (const std::string &left, double right)
 Generic multiplication using the evaluator: result = left * right. More...
 
template<>
double DD4hep::_multiply< double > (double left, const std::string &right)
 Generic multiplication using the evaluator: result = left * right. More...
 
void DD4hep::_toDictionary (const std::string &name, const std::string &value)
 Enter name value pair to the dictionary. "value" must be a numerical expression, which is evaluated. More...
 
void DD4hep::_toDictionary (const std::string &name, const std::string &value, const std::string &typ)
 Enter name value pair to the dictionary. More...
 

Macro Definition Documentation

#define CM_2_MM   10.0
#define DEGREE_2_RAD   0.0174532925199432957692369076848

Definition at line 29 of file Handle.h.

Referenced by DD4hep::Simulation::Geant4Converter::handleSolid().

#define M_PI   3.14159265358979323846
#define MM_2_CM   0.1
#define RAD_2_DEGREE   57.295779513082320876798154814105