GEAR  1.9.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
gear::GearMgrImpl Class Reference

Manager class that returns the Gear classes for the relevant subdetectors. More...

#include <GearMgrImpl.h>

Inheritance diagram for gear::GearMgrImpl:
gear::GearMgr

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 GearParametersgetGearParameters (const std::string &key) const
 Get named parameters for key. More...
 
virtual const BFieldgetBField () const
 Get the BField.
 
virtual const TPCParametersgetTPCParameters () 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 ZPlanarParametersgetVXDParameters () const
 Get the VXD parameters. More...
 
virtual const FTDParametersgetFTDParameters () const
 Get the FTD parameters. More...
 
virtual const ZPlanarParametersgetSITParameters () const
 Get the SIT parameters. More...
 
virtual const ZPlanarParametersgetSETParameters () const
 Get the SET parameters. More...
 
virtual const
TrackerPlanesParameters
getTrackerPlanesParameters () const
 Get the TrackerPlanes parameters. More...
 
virtual const SiPlanesParametersgetSiPlanesParameters () const
 Get the SiPlanes parameters. More...
 
virtual const GearPointPropertiesgetPointProperties () 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 SimpleMaterialgetSimpleMaterial (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 MeasurementSurfaceStoregetMeasurementSurfaceStore () 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 &)
 
GearMgrImploperator= (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 {}
 

Detailed Description

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.

Author
F. Gaede, DESY
Version
$Id$

Definition at line 23 of file GearMgrImpl.h.

Member Function Documentation

void gear::GearMgrImpl::cleanup ( )
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().

const CalorimeterParameters & gear::GearMgrImpl::getBeamCalParameters ( ) const
virtual

Get the BeamCal parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 305 of file GearMgrImpl.cc.

const GearDistanceProperties & gear::GearMgrImpl::getDistanceProperties ( ) const
virtual

Get the distance properties object.

Exceptions
NotImplementedException

Implements gear::GearMgr.

Definition at line 377 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getEcalBarrelParameters ( ) const
virtual

Get the Ecal barrel parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 206 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getEcalEndcapParameters ( ) const
virtual

Get the Ecal endcap parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 214 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getEcalPlugParameters ( ) const
virtual

Get the Ecal plug parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 223 of file GearMgrImpl.cc.

const FTDParameters & gear::GearMgrImpl::getFTDParameters ( ) const
virtual

Get the FTD parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 323 of file GearMgrImpl.cc.

const GearParameters & gear::GearMgrImpl::getGearParameters ( const std::string &  key) const
virtual

Get named parameters for key.

This can be used to describe a subdetector that is not yet forseen in the Gear API.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 179 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getHcalBarrelParameters ( ) const
virtual

Get the Hcal barrel parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 260 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getHcalEndcapParameters ( ) const
virtual

Get the Hcal endcap parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 268 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getHcalRingParameters ( ) const
virtual

Get the Hcal ring parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 277 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getLcalParameters ( ) const
virtual

Get the Lcal parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 287 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getLHcalParameters ( ) const
virtual

Get the LHcal parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 296 of file GearMgrImpl.cc.

const GearPointProperties & gear::GearMgrImpl::getPointProperties ( ) const
virtual

Get the point properties object.

Exceptions
NotImplementedException

Implements gear::GearMgr.

Definition at line 367 of file GearMgrImpl.cc.

const ZPlanarParameters & gear::GearMgrImpl::getSETParameters ( ) const
virtual

Get the SET parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 340 of file GearMgrImpl.cc.

const SimpleMaterial & gear::GearMgrImpl::getSimpleMaterial ( const std::string  name) const
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.

const SiPlanesParameters & gear::GearMgrImpl::getSiPlanesParameters ( ) const
virtual

Get the SiPlanes parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 358 of file GearMgrImpl.cc.

const ZPlanarParameters & gear::GearMgrImpl::getSITParameters ( ) const
virtual

Get the SIT parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 332 of file GearMgrImpl.cc.

const TrackerPlanesParameters & gear::GearMgrImpl::getTrackerPlanesParameters ( ) const
virtual

Get the TrackerPlanes parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 349 of file GearMgrImpl.cc.

const ZPlanarParameters & gear::GearMgrImpl::getVXDParameters ( ) const
virtual

Get the VXD parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 314 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getYokeBarrelParameters ( ) const
virtual

Get the Yoke barrel parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 232 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getYokeEndcapParameters ( ) const
virtual

Get the Yoke endcap parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 240 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getYokePlugParameters ( ) const
virtual

Get the Yoke plug parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 249 of file GearMgrImpl.cc.

void gear::GearMgrImpl::registerSimpleMaterial ( const SimpleMaterial material)
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().


The documentation for this class was generated from the following files: