Project
Loading...
Searching...
No Matches
o2::base Namespace Reference

Classes

class  Aligner
 
class  AlignerTask
 
class  BaseDPLDigitizer
 
class  Detector
 
class  DetectorNameConf
 
class  DetImpl
 
class  GeometryManager
 
class  GRPGeomHelper
 
struct  GRPGeomRequest
 
struct  InitServices
 class listing possible services More...
 
struct  MatBudget
 
struct  MatCell
 
class  MaterialManager
 
class  MatLayerCyl
 
class  MatLayerCylSet
 
struct  MatLayerCylSetLayout
 
class  NameConf
 
class  O2Tessellated
 
class  PropagatorImpl
 
class  Ray
 
class  SeederTask
 
class  SimFieldUtils
 
struct  TFIDInfoHelper
 
class  TGeoGeometryUtils
 A few utility functions to operate on TGeo geometries (transformations, printing, ...) More...
 
struct  UseShm
 
class  VMCSeederService
 

Typedefs

using PropagatorF = PropagatorImpl< float >
 
using PropagatorD = PropagatorImpl< double >
 
using Propagator = PropagatorF
 

Enumerations

enum class  MatbudGeomBackend : int { ROOT = 0 , VECGEOM = 1 }
 
enum class  EProc {
  kPAIR = 0 , kCOMP , kPHOT , kPFIS ,
  kDRAY , kANNI , kBREM , kHADR ,
  kMUNU , kDCAY , kLOSS , kMULS ,
  kCKOV , kLABS , kRAYL
}
 processes available More...
 
enum class  ECut {
  kCUTGAM = 0 , kCUTELE , kCUTNEU , kCUTHAD ,
  kCUTMUO , kBCUTE , kBCUTM , kDCUTE ,
  kDCUTM , kPPCUTM , kTOFMAX
}
 cuts available More...
 

Functions

TGeoVolume * buildCADVolumeFromMacro (const std::string &macroFile, const std::string &instanceTag)
 
void remapCADMedia (TGeoVolume *top, const char *modulename)
 
std::string demangle (const char *name)
 utility function to demangle cxx type names
 
void attachShmMessage (void *hitsptr, fair::mq::Channel &channel, fair::mq::Parts &parts, bool *busy_ptr)
 
voiddecodeShmCore (fair::mq::Parts &dataparts, int index, bool *&busy)
 
template<typename T >
decodeShmMessage (fair::mq::Parts &dataparts, int index, bool *&busy)
 
void attachMessageBufferToParts (fair::mq::Parts &parts, fair::mq::Channel &channel, void *data, TClass *cl)
 
template<typename Container >
void attachTMessage (Container const &hits, fair::mq::Channel &channel, fair::mq::Parts &parts)
 
voiddecodeTMessageCore (fair::mq::Parts &dataparts, int index)
 
template<typename T >
decodeTMessage (fair::mq::Parts &dataparts, int index)
 
void attachDetIDHeaderMessage (int id, fair::mq::Channel &channel, fair::mq::Parts &parts)
 
template<typename T >
TBranch * getOrMakeBranch (TTree &tree, const char *brname, T *ptr)
 
 GPUdi () Ray
 

Typedef Documentation

◆ Propagator

Definition at line 223 of file Propagator.h.

◆ PropagatorD

using o2::base::PropagatorD = typedef PropagatorImpl<double>

Definition at line 222 of file Propagator.h.

◆ PropagatorF

using o2::base::PropagatorF = typedef PropagatorImpl<float>

Definition at line 221 of file Propagator.h.

Enumeration Type Documentation

◆ ECut

enum class o2::base::ECut
strong

cuts available

Enumerator
kCUTGAM 
kCUTELE 
kCUTNEU 
kCUTHAD 
kCUTMUO 
kBCUTE 
kBCUTM 
kDCUTE 
kDCUTM 
kPPCUTM 
kTOFMAX 

Definition at line 50 of file MaterialManager.h.

◆ EProc

enum class o2::base::EProc
strong

processes available

Enumerator
kPAIR 
kCOMP 
kPHOT 
kPFIS 
kDRAY 
kANNI 
kBREM 
kHADR 
kMUNU 
kDCAY 
kLOSS 
kMULS 
kCKOV 
kLABS 
kRAYL 

Definition at line 32 of file MaterialManager.h.

◆ MatbudGeomBackend

enum class o2::base::MatbudGeomBackend : int
strong

Backend used to compute material budget for LUT filling: ROOT/TGeo (default, always available) or VecGeom (requires O2 to be built against the optional TGeo2VecGeom package; see GeometryManager::isVecGeomAvailable()).

Enumerator
ROOT 
VECGEOM 

Definition at line 46 of file GeometryManager.h.

Function Documentation

◆ attachDetIDHeaderMessage()

void o2::base::attachDetIDHeaderMessage ( int  id,
fair::mq::Channel &  channel,
fair::mq::Parts &  parts 
)

Definition at line 218 of file Detector.cxx.

◆ attachMessageBufferToParts()

void o2::base::attachMessageBufferToParts ( fair::mq::Parts &  parts,
fair::mq::Channel &  channel,
void data,
TClass *  cl 
)

Definition at line 207 of file Detector.cxx.

◆ attachShmMessage()

void o2::base::attachShmMessage ( void hitsptr,
fair::mq::Channel &  channel,
fair::mq::Parts &  parts,
bool *  busy_ptr 
)

Definition at line 223 of file Detector.cxx.

◆ attachTMessage()

template<typename Container >
void o2::base::attachTMessage ( Container const &  hits,
fair::mq::Channel &  channel,
fair::mq::Parts &  parts 
)

Definition at line 285 of file Detector.h.

◆ buildCADVolumeFromMacro()

TGeoVolume * o2::base::buildCADVolumeFromMacro ( const std::string &  macroFile,
const std::string &  instanceTag 
)

JIT-compile a CAD-derived ROOT geometry macro (as produced by O2_CADtoTGeo.py) and execute it to obtain the top TGeoVolume of the described module.

The macro body is wrapped into a unique namespace (derived from instanceTag) so that several such macros — which all export identically named symbols (build(), get_builder_hook_unchecked(), ...) — can coexist in the same Cling session without colliding. Returns nullptr on failure.

Parameters
macroFilepath to the geometry macro (shell variables are expanded)
instanceTaga short tag used to build a unique, human-readable namespace

Definition at line 36 of file CADGeometryUtils.cxx.

◆ decodeShmCore()

void * o2::base::decodeShmCore ( fair::mq::Parts &  dataparts,
int  index,
bool *&  busy 
)

Definition at line 240 of file Detector.cxx.

◆ decodeShmMessage()

template<typename T >
T o2::base::decodeShmMessage ( fair::mq::Parts &  dataparts,
int  index,
bool *&  busy 
)

Definition at line 276 of file Detector.h.

◆ decodeTMessage()

template<typename T >
T o2::base::decodeTMessage ( fair::mq::Parts &  dataparts,
int  index 
)

Definition at line 292 of file Detector.h.

◆ decodeTMessageCore()

void * o2::base::decodeTMessageCore ( fair::mq::Parts &  dataparts,
int  index 
)

Definition at line 255 of file Detector.cxx.

◆ demangle()

std::string o2::base::demangle ( const char name)
inline

utility function to demangle cxx type names

Definition at line 265 of file Detector.h.

◆ getOrMakeBranch()

template<typename T >
TBranch * o2::base::getOrMakeBranch ( TTree &  tree,
const char brname,
T *  ptr 
)

Definition at line 300 of file Detector.h.

◆ GPUdi()

o2::base::GPUdi ( )

Definition at line 126 of file Ray.h.

◆ remapCADMedia()

void o2::base::remapCADMedia ( TGeoVolume *  top,
const char modulename 
)

Re-register the TGeo media used in the volume tree rooted at top into the O2 MaterialManager under ownership of modulename, rewiring the volumes to the newly created media. This brings the CAD-imported media under O2's media/cut handling (so that e.g. tracking cuts apply consistently).

Definition at line 105 of file CADGeometryUtils.cxx.