Manager class that returns the Gear classes for the relevant subdetectors. More...
#include <GearMgrImpl.h>
Public Member Functions | |
virtual | ~GearMgrImpl () |
Destructor. | |
virtual const std::string & | getDetectorName () const |
The unique detector name - typically the model name used in the simulation program. | |
virtual const GearParameters & | getGearParameters (const std::string &key) const |
Get named parameters for key. More... | |
virtual const BField & | getBField () const |
Get the BField. | |
virtual const TPCParameters & | getTPCParameters () const |
Get the TPCParameters. | |
virtual const CalorimeterParameters & | getEcalBarrelParameters () const |
Get the Ecal barrel parameters. More... | |
virtual const CalorimeterParameters & | getEcalEndcapParameters () const |
Get the Ecal endcap parameters. More... | |
virtual const CalorimeterParameters & | getEcalPlugParameters () const |
Get the Ecal plug parameters. More... | |
virtual const CalorimeterParameters & | getYokeBarrelParameters () const |
Get the Yoke barrel parameters. More... | |
virtual const CalorimeterParameters & | getYokeEndcapParameters () const |
Get the Yoke endcap parameters. More... | |
virtual const CalorimeterParameters & | getYokePlugParameters () const |
Get the Yoke plug parameters. More... | |
virtual const CalorimeterParameters & | getHcalBarrelParameters () const |
Get the Hcal barrel parameters. More... | |
virtual const CalorimeterParameters & | getHcalEndcapParameters () const |
Get the Hcal endcap parameters. More... | |
virtual const CalorimeterParameters & | getHcalRingParameters () const |
Get the Hcal ring parameters. More... | |
virtual const CalorimeterParameters & | getLcalParameters () const |
Get the Lcal parameters. More... | |
virtual const CalorimeterParameters & | getLHcalParameters () const |
Get the LHcal parameters. More... | |
virtual const CalorimeterParameters & | getBeamCalParameters () const |
Get the BeamCal parameters. More... | |
virtual const ZPlanarParameters & | getVXDParameters () const |
Get the VXD parameters. More... | |
virtual const FTDParameters & | getFTDParameters () const |
Get the FTD parameters. More... | |
virtual const ZPlanarParameters & | getSITParameters () const |
Get the SIT parameters. More... | |
virtual const ZPlanarParameters & | getSETParameters () const |
Get the SET parameters. More... | |
virtual const TrackerPlanesParameters & | getTrackerPlanesParameters () const |
Get the TrackerPlanes parameters. More... | |
virtual const SiPlanesParameters & | getSiPlanesParameters () const |
Get the SiPlanes parameters. More... | |
virtual const GearPointProperties & | getPointProperties () const |
Get the point properties object. More... | |
virtual const GearDistanceProperties & | getDistanceProperties () const |
Get the distance properties object. More... | |
virtual const std::vector < std::string > & | getGearParameterKeys () const |
Keys of all GearParameters. | |
virtual const SimpleMaterial & | getSimpleMaterial (const std::string name) const |
Return the SimpleMaterial for the given name throws UnknownParameterException if no material is unknown. More... | |
virtual const std::vector < std::string > & | getMaterialNames () const |
Names of registered materials. | |
virtual void | registerSimpleMaterial (const SimpleMaterial *material) |
Register the SimpleMaterial with SimpleMaterial::getName() - throws Exception if a material of the given name has allready been added. More... | |
virtual MeasurementSurfaceStore & | getMeasurementSurfaceStore () const |
Return the MeasurementSurfaceStore. | |
virtual void | setDetectorName (const std::string &name) |
Set detector name. | |
virtual void | setGearParameters (const std::string &key, GearParameters *parameters) |
Set the GearParameters for the given key - overwrites any existing entries. | |
virtual void | setTPCParameters (TPCParameters *tpcParameters) |
Set the TPCParameters. | |
virtual void | setEcalBarrelParameters (CalorimeterParameters *ecalBarrelParameters) |
Set the EcalBarrelParameters. | |
virtual void | setEcalEndcapParameters (CalorimeterParameters *ecalEndcapParameters) |
Set the EcalEndcapParameters. | |
virtual void | setEcalPlugParameters (CalorimeterParameters *ecalPlugParameters) |
Set the EcalPlugParameters. | |
virtual void | setYokeBarrelParameters (CalorimeterParameters *yokeBarrelParameters) |
Set the YokeBarrelParameters. | |
virtual void | setYokeEndcapParameters (CalorimeterParameters *yokeEndcapParameters) |
Set the YokeEndcapParameters. | |
virtual void | setYokePlugParameters (CalorimeterParameters *yokePlugParameters) |
Set the YokePlugParameters. | |
virtual void | setHcalBarrelParameters (CalorimeterParameters *hcalBarrelParameters) |
Set the HcalBarrelParameters. | |
virtual void | setHcalEndcapParameters (CalorimeterParameters *hcalEndcapParameters) |
Set the HcalEndcapParameters. | |
virtual void | setHcalRingParameters (CalorimeterParameters *hcalRingParameters) |
Set the HcalRingParameters. | |
virtual void | setLcalParameters (CalorimeterParameters *lcalParameters) |
Set the LcalParameters. | |
virtual void | setLHcalParameters (CalorimeterParameters *lhcalParameters) |
Set the LHcalParameters. | |
virtual void | setBeamCalParameters (CalorimeterParameters *beamcalParameters) |
Set the BeamCalParameters. | |
virtual void | setVXDParameters (ZPlanarParameters *vxdParameters) |
Set the VXDParameters. | |
virtual void | setFTDParameters (FTDParameters *ftdParameters) |
Set the FTDParameters. | |
virtual void | setSITParameters (ZPlanarParameters *sitParameters) |
Set the SITParameters. | |
virtual void | setSETParameters (ZPlanarParameters *setParameters) |
Set the SETParameters. | |
virtual void | setTrackerPlanesParameters (TrackerPlanesParameters *trackerplanesParameters) |
Set the TrackerPlanesParameters. | |
virtual void | setSiPlanesParameters (SiPlanesParameters *siplanesParameters) |
Set the SiPlanesParameters. | |
virtual void | setPointProperties (GearPointProperties *pointProperties) |
Set the point properties object. | |
virtual void | setDistanceProperties (GearDistanceProperties *distanceProperties) |
Set the distance properties object. | |
virtual void | setBField (BField *bField) |
Set the b field object. | |
Public Member Functions inherited from gear::GearMgr | |
virtual | ~GearMgr () |
Destructor. | |
Protected Types | |
typedef std::map< std::string, const SimpleMaterial * > | MatMap |
Protected Member Functions | |
GearMgrImpl (const GearMgrImpl &) | |
GearMgrImpl & | operator= (const GearMgrImpl &) |
void | cleanup () |
function to copy all internal variables, incl. More... | |
Protected Attributes | |
ParameterMap | _map {} |
TPCParameters * | _tpcParameters = nullptr |
CalorimeterParameters * | _ecalBarrelParameters = nullptr |
CalorimeterParameters * | _ecalEndcapParameters = nullptr |
CalorimeterParameters * | _ecalPlugParameters = nullptr |
CalorimeterParameters * | _yokeBarrelParameters = nullptr |
CalorimeterParameters * | _yokeEndcapParameters = nullptr |
CalorimeterParameters * | _yokePlugParameters = nullptr |
CalorimeterParameters * | _hcalBarrelParameters = nullptr |
CalorimeterParameters * | _hcalEndcapParameters = nullptr |
CalorimeterParameters * | _hcalRingParameters = nullptr |
CalorimeterParameters * | _lcalParameters = nullptr |
CalorimeterParameters * | _lhcalParameters = nullptr |
CalorimeterParameters * | _beamcalParameters = nullptr |
ZPlanarParameters * | _vxdParameters = nullptr |
ZPlanarParameters * | _sitParameters = nullptr |
ZPlanarParameters * | _setParameters = nullptr |
FTDParameters * | _ftdParameters |
TrackerPlanesParameters * | _trackerplanesParameters = nullptr |
SiPlanesParameters * | _siplanesParameters = nullptr |
GearPointProperties * | _pointProperties = nullptr |
GearDistanceProperties * | _distanceProperties = nullptr |
BField * | _bField = nullptr |
std::string | _detectorName {} |
MatMap | _matMap {} |
MeasurementSurfaceStore * | _surfaceStore = nullptr |
StringVec | _keys {} |
StringVec | _matNames {} |
Manager class that returns the Gear classes for the relevant subdetectors.
Based on ideas discussed at the 2004 Argonne Simulation Workshop as summarized by T.Behnke.
Definition at line 23 of file GearMgrImpl.h.
|
protected |
function to copy all internal variables, incl.
the objects pointed to and owned by the GearMgr. Used by constructor and assigment operator to avoid code duplication – no longer needed, when copy c'tor and assignment are privatefunction to delete all the objects pointed to and owned by the GearMgr. Used by desctructor and assigment operator to avoid code duplication
Definition at line 121 of file GearMgrImpl.cc.
Referenced by ~GearMgrImpl().
|
virtual |
Get the BeamCal parameters.
UnknownParameterException |
Implements gear::GearMgr.
Definition at line 305 of file GearMgrImpl.cc.
|
virtual |
Get the distance properties object.
NotImplementedException |
Implements gear::GearMgr.
Definition at line 377 of file GearMgrImpl.cc.
|
virtual |
Get the Ecal barrel parameters.
UnknownParameterException |
Implements gear::GearMgr.
Definition at line 206 of file GearMgrImpl.cc.
|
virtual |
Get the Ecal endcap parameters.
UnknownParameterException |
Implements gear::GearMgr.
Definition at line 214 of file GearMgrImpl.cc.
|
virtual |
Get the Ecal plug parameters.
UnknownParameterException |
Implements gear::GearMgr.
Definition at line 223 of file GearMgrImpl.cc.
|
virtual |
Get the FTD parameters.
UnknownParameterException |
Implements gear::GearMgr.
Definition at line 323 of file GearMgrImpl.cc.
|
virtual |
Get named parameters for key.
This can be used to describe a subdetector that is not yet forseen in the Gear API.
UnknownParameterException |
Implements gear::GearMgr.
Definition at line 179 of file GearMgrImpl.cc.
|
virtual |
Get the Hcal barrel parameters.
UnknownParameterException |
Implements gear::GearMgr.
Definition at line 260 of file GearMgrImpl.cc.
|
virtual |
Get the Hcal endcap parameters.
UnknownParameterException |
Implements gear::GearMgr.
Definition at line 268 of file GearMgrImpl.cc.
|
virtual |
Get the Hcal ring parameters.
UnknownParameterException |
Implements gear::GearMgr.
Definition at line 277 of file GearMgrImpl.cc.
|
virtual |
Get the Lcal parameters.
UnknownParameterException |
Implements gear::GearMgr.
Definition at line 287 of file GearMgrImpl.cc.
|
virtual |
Get the LHcal parameters.
UnknownParameterException |
Implements gear::GearMgr.
Definition at line 296 of file GearMgrImpl.cc.
|
virtual |
Get the point properties object.
NotImplementedException |
Implements gear::GearMgr.
Definition at line 367 of file GearMgrImpl.cc.
|
virtual |
Get the SET parameters.
UnknownParameterException |
Implements gear::GearMgr.
Definition at line 340 of file GearMgrImpl.cc.
|
virtual |
Return the SimpleMaterial for the given name throws UnknownParameterException if no material is unknown.
Implements gear::GearMgr.
Definition at line 591 of file GearMgrImpl.cc.
|
virtual |
Get the SiPlanes parameters.
UnknownParameterException |
Implements gear::GearMgr.
Definition at line 358 of file GearMgrImpl.cc.
|
virtual |
Get the SIT parameters.
UnknownParameterException |
Implements gear::GearMgr.
Definition at line 332 of file GearMgrImpl.cc.
|
virtual |
Get the TrackerPlanes parameters.
UnknownParameterException |
Implements gear::GearMgr.
Definition at line 349 of file GearMgrImpl.cc.
|
virtual |
Get the VXD parameters.
UnknownParameterException |
Implements gear::GearMgr.
Definition at line 314 of file GearMgrImpl.cc.
|
virtual |
Get the Yoke barrel parameters.
UnknownParameterException |
Implements gear::GearMgr.
Definition at line 232 of file GearMgrImpl.cc.
|
virtual |
Get the Yoke endcap parameters.
UnknownParameterException |
Implements gear::GearMgr.
Definition at line 240 of file GearMgrImpl.cc.
|
virtual |
Get the Yoke plug parameters.
UnknownParameterException |
Implements gear::GearMgr.
Definition at line 249 of file GearMgrImpl.cc.
|
virtual |
Register the SimpleMaterial with SimpleMaterial::getName() - throws Exception if a material of the given name has allready been added.
This takes ownership of the SimpleMaterial object.
Implements gear::GearMgr.
Definition at line 607 of file GearMgrImpl.cc.
References gear::SimpleMaterial::getName().