GEAR  1.6.1
 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 throw (UnknownParameterException, std::exception )
 The unique detector name - typically the model name used in the simulation program.
 
virtual const GearParameters & getGearParameters (const std::string &key) const throw (UnknownParameterException, std::exception )
 Get named parameters for key. More...
 
virtual const BField & getBField () const throw (UnknownParameterException, std::exception )
 Get the BField.
 
virtual const TPCParameters & getTPCParameters () const throw (UnknownParameterException, std::exception )
 Get the TPCParameters.
 
virtual const
CalorimeterParameters & 
getEcalBarrelParameters () const throw (UnknownParameterException, std::exception )
 Get the Ecal barrel parameters. More...
 
virtual const
CalorimeterParameters & 
getEcalEndcapParameters () const throw (UnknownParameterException, std::exception )
 Get the Ecal endcap parameters. More...
 
virtual const
CalorimeterParameters & 
getEcalPlugParameters () const throw (UnknownParameterException, std::exception )
 Get the Ecal plug parameters. More...
 
virtual const
CalorimeterParameters & 
getYokeBarrelParameters () const throw (UnknownParameterException, std::exception )
 Get the Yoke barrel parameters. More...
 
virtual const
CalorimeterParameters & 
getYokeEndcapParameters () const throw (UnknownParameterException, std::exception )
 Get the Yoke endcap parameters. More...
 
virtual const
CalorimeterParameters & 
getYokePlugParameters () const throw (UnknownParameterException, std::exception )
 Get the Yoke plug parameters. More...
 
virtual const
CalorimeterParameters & 
getHcalBarrelParameters () const throw (UnknownParameterException, std::exception )
 Get the Hcal barrel parameters. More...
 
virtual const
CalorimeterParameters & 
getHcalEndcapParameters () const throw (UnknownParameterException, std::exception )
 Get the Hcal endcap parameters. More...
 
virtual const
CalorimeterParameters & 
getHcalRingParameters () const throw (UnknownParameterException, std::exception )
 Get the Hcal ring parameters. More...
 
virtual const
CalorimeterParameters & 
getLcalParameters () const throw (UnknownParameterException, std::exception )
 Get the Lcal parameters. More...
 
virtual const
CalorimeterParameters & 
getLHcalParameters () const throw (UnknownParameterException, std::exception )
 Get the LHcal parameters. More...
 
virtual const
CalorimeterParameters & 
getBeamCalParameters () const throw (UnknownParameterException, std::exception )
 Get the BeamCal parameters. More...
 
virtual const ZPlanarParameters & getVXDParameters () const throw (UnknownParameterException, std::exception )
 Get the VXD parameters. More...
 
virtual const FTDParameters & getFTDParameters () const throw (UnknownParameterException, std::exception )
 Get the FTD parameters. More...
 
virtual const ZPlanarParameters & getSITParameters () const throw (UnknownParameterException, std::exception )
 Get the SIT parameters. More...
 
virtual const ZPlanarParameters & getSETParameters () const throw (UnknownParameterException, std::exception )
 Get the SET parameters. More...
 
virtual const
TrackerPlanesParameters & 
getTrackerPlanesParameters () const throw (UnknownParameterException, std::exception )
 Get the TrackerPlanes parameters. More...
 
virtual const SiPlanesParameters & getSiPlanesParameters () const throw (UnknownParameterException, std::exception )
 Get the SiPlanes parameters. More...
 
virtual const GearPointProperties & getPointProperties () const throw (NotImplementedException, std::exception )
 Get the point properties object. More...
 
virtual const
GearDistanceProperties & 
getDistanceProperties () const throw (NotImplementedException, std::exception )
 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 throw (UnknownParameterException, std::exception )
 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) throw (Exception , std::exception )
 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
 
CalorimeterParameters * _ecalBarrelParameters
 
CalorimeterParameters * _ecalEndcapParameters
 
CalorimeterParameters * _ecalPlugParameters
 
CalorimeterParameters * _yokeBarrelParameters
 
CalorimeterParameters * _yokeEndcapParameters
 
CalorimeterParameters * _yokePlugParameters
 
CalorimeterParameters * _hcalBarrelParameters
 
CalorimeterParameters * _hcalEndcapParameters
 
CalorimeterParameters * _hcalRingParameters
 
CalorimeterParameters * _lcalParameters
 
CalorimeterParameters * _lhcalParameters
 
CalorimeterParameters * _beamcalParameters
 
ZPlanarParameters * _vxdParameters
 
ZPlanarParameters * _sitParameters
 
ZPlanarParameters * _setParameters
 
FTDParameters * _ftdParameters
 
TrackerPlanesParameters * _trackerplanesParameters
 
SiPlanesParameters * _siplanesParameters
 
GearPointProperties * _pointProperties
 
GearDistanceProperties * _distanceProperties
 
BField * _bField
 
std::string _detectorName
 
MatMap _matMap
 
MeasurementSurfaceStore * _surfaceStore
 
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:
GearMgrImpl.h 514 2014-06-23 15:19:23Z rubinsky

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
throw (UnknownParameterException,
std::exception
)
virtual

Get the BeamCal parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 322 of file GearMgrImpl.cc.

const GearDistanceProperties & gear::GearMgrImpl::getDistanceProperties ( ) const
throw (NotImplementedException,
std::exception
)
virtual

Get the distance properties object.

Exceptions
NotImplementedException

Implements gear::GearMgr.

Definition at line 402 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getEcalBarrelParameters ( ) const
throw (UnknownParameterException,
std::exception
)
virtual

Get the Ecal barrel parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 212 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getEcalEndcapParameters ( ) const
throw (UnknownParameterException,
std::exception
)
virtual

Get the Ecal endcap parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 221 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getEcalPlugParameters ( ) const
throw (UnknownParameterException,
std::exception
)
virtual

Get the Ecal plug parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 231 of file GearMgrImpl.cc.

const FTDParameters & gear::GearMgrImpl::getFTDParameters ( ) const
throw (UnknownParameterException,
std::exception
)
virtual

Get the FTD parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 342 of file GearMgrImpl.cc.

const GearParameters & gear::GearMgrImpl::getGearParameters ( const std::string &  key) const
throw (UnknownParameterException,
std::exception
)
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 181 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getHcalBarrelParameters ( ) const
throw (UnknownParameterException,
std::exception
)
virtual

Get the Hcal barrel parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 272 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getHcalEndcapParameters ( ) const
throw (UnknownParameterException,
std::exception
)
virtual

Get the Hcal endcap parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 281 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getHcalRingParameters ( ) const
throw (UnknownParameterException,
std::exception
)
virtual

Get the Hcal ring parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 291 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getLcalParameters ( ) const
throw (UnknownParameterException,
std::exception
)
virtual

Get the Lcal parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 302 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getLHcalParameters ( ) const
throw (UnknownParameterException,
std::exception
)
virtual

Get the LHcal parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 312 of file GearMgrImpl.cc.

const GearPointProperties & gear::GearMgrImpl::getPointProperties ( ) const
throw (NotImplementedException,
std::exception
)
virtual

Get the point properties object.

Exceptions
NotImplementedException

Implements gear::GearMgr.

Definition at line 391 of file GearMgrImpl.cc.

const ZPlanarParameters & gear::GearMgrImpl::getSETParameters ( ) const
throw (UnknownParameterException,
std::exception
)
virtual

Get the SET parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 361 of file GearMgrImpl.cc.

const SimpleMaterial & gear::GearMgrImpl::getSimpleMaterial ( const std::string  name) const
throw (UnknownParameterException,
std::exception
)
virtual

Return the SimpleMaterial for the given name throws UnknownParameterException if no material is unknown.

Implements gear::GearMgr.

Definition at line 617 of file GearMgrImpl.cc.

const SiPlanesParameters & gear::GearMgrImpl::getSiPlanesParameters ( ) const
throw (UnknownParameterException,
std::exception
)
virtual

Get the SiPlanes parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 381 of file GearMgrImpl.cc.

const ZPlanarParameters & gear::GearMgrImpl::getSITParameters ( ) const
throw (UnknownParameterException,
std::exception
)
virtual

Get the SIT parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 352 of file GearMgrImpl.cc.

const TrackerPlanesParameters & gear::GearMgrImpl::getTrackerPlanesParameters ( ) const
throw (UnknownParameterException,
std::exception
)
virtual

Get the TrackerPlanes parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 371 of file GearMgrImpl.cc.

const ZPlanarParameters & gear::GearMgrImpl::getVXDParameters ( ) const
throw (UnknownParameterException,
std::exception
)
virtual

Get the VXD parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 332 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getYokeBarrelParameters ( ) const
throw (UnknownParameterException,
std::exception
)
virtual

Get the Yoke barrel parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 241 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getYokeEndcapParameters ( ) const
throw (UnknownParameterException,
std::exception
)
virtual

Get the Yoke endcap parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 250 of file GearMgrImpl.cc.

const CalorimeterParameters & gear::GearMgrImpl::getYokePlugParameters ( ) const
throw (UnknownParameterException,
std::exception
)
virtual

Get the Yoke plug parameters.

Exceptions
UnknownParameterException

Implements gear::GearMgr.

Definition at line 260 of file GearMgrImpl.cc.

void gear::GearMgrImpl::registerSimpleMaterial ( const SimpleMaterial *  material)
throw (Exception ,
std::exception
)
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 634 of file GearMgrImpl.cc.


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