13 #ifndef DDREC_DDGEAR_H
14 #define DDREC_DDGEAR_H
16 #include "DD4hep/Detector.h"
17 #include "DD4hep/DetElement.h"
19 #include "gear/GEAR.h"
20 #include "gearimpl/GearParametersImpl.h"
21 #include "gearimpl/SimpleMaterialImpl.h"
22 #include "gear/GearMgr.h"
25 class GearParametersImpl ;
43 gear::GearParametersImpl*
_gObj ;
69 gear::GearParametersImpl* obj =
_gObj ;
const std::vector< gear::SimpleMaterialImpl > & materials()
get all materials assigned to this wrapper
gear::GearParametersImpl * gearObject()
Get GearParametersImpl object.
const std::string & name()
Name of GearParametersImpl object - should be the canonical name used in gear, eg.
GearHandle(gear::GearParametersImpl *gearObj, const std::string &nam)
User c'tor - specify a name (should be the canonical name used in gear, eg.
GearHandle(const DetElement &)
dummy implementation of required c'tors to allow using the extension mechanism
void addMaterial(const std::string nam, double A, double Z, double density, double radLen, double intLen)
add a SimpleMaterial object
gear::GearMgr * createGearMgr(Detector &description, const std::string &pluginName="GearForILD")
Factory method that creates a GearMgr object pobulated with the GearParametersImpl objects from all (...
gear::GearParametersImpl * takeGearObject()
Get GearParametersImpl object and transfer ownership.
Simple wrapper class for objects of type GearParametersImpl that can be added to DetElements with the...
std::vector< gear::SimpleMaterialImpl > _materials
GearHandle()
Default c'tor - only used by dd4hep extenbsion mechanism.
virtual ~GearHandle()
D'tor deletes GearParametersImpl object if ownerhsip has not been taken away.
GearHandle(const GearHandle &, const DetElement &)
gear::GearParametersImpl * _gObj