DD4hep
01.18
|
Simple wrapper class for objects of type GearParametersImpl that can be added to DetElements with the extension mechanism. More...
#include <DDGear.h>
Public Member Functions | |
GearHandle () | |
Default c'tor - only used by dd4hep extenbsion mechanism. More... | |
GearHandle (gear::GearParametersImpl *gearObj, const std::string &nam) | |
User c'tor - specify a name (should be the canonical name used in gear, eg. More... | |
virtual | ~GearHandle () |
D'tor deletes GearParametersImpl object if ownerhsip has not been taken away. More... | |
const std::string & | name () |
Name of GearParametersImpl object - should be the canonical name used in gear, eg. More... | |
gear::GearParametersImpl * | gearObject () |
Get GearParametersImpl object. More... | |
gear::GearParametersImpl * | takeGearObject () |
Get GearParametersImpl object and transfer ownership. More... | |
void | addMaterial (const std::string nam, double A, double Z, double density, double radLen, double intLen) |
add a SimpleMaterial object More... | |
const std::vector < gear::SimpleMaterialImpl > & | materials () |
get all materials assigned to this wrapper More... | |
GearHandle (const DetElement &) | |
dummy implementation of required c'tors to allow using the extension mechanism More... | |
GearHandle (const GearHandle &, const DetElement &) | |
Protected Attributes | |
gear::GearParametersImpl * | _gObj |
std::string | _name |
std::vector < gear::SimpleMaterialImpl > | _materials |
Simple wrapper class for objects of type GearParametersImpl that can be added to DetElements with the extension mechanism.
There can only be one such object added to any given DetElement
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
add a SimpleMaterial object
Definition at line 76 of file DDGear.h.
References _materials, and std::vector< T >::push_back().
Referenced by dd4hep::rec::createGearForCLIC(), and dd4hep::rec::createGearForILD().
|
inline |
|
inline |
get all materials assigned to this wrapper
Definition at line 82 of file DDGear.h.
References _materials.
Referenced by dd4hep::rec::createGearMgr().
|
inline |
Name of GearParametersImpl object - should be the canonical name used in gear, eg.
TPCParameters, SITParameters, etc.
Definition at line 62 of file DDGear.h.
References _name.
Referenced by dd4hep::rec::createGearMgr().
|
inline |
Get GearParametersImpl object and transfer ownership.
Definition at line 68 of file DDGear.h.
References _gObj.
Referenced by dd4hep::rec::createGearMgr().
|
protected |
Definition at line 43 of file DDGear.h.
Referenced by gearObject(), takeGearObject(), and ~GearHandle().
|
protected |
Definition at line 45 of file DDGear.h.
Referenced by addMaterial(), and materials().
|
protected |