ATLAS Offline Software
|
This package contains scripts to initialize the GeoModel Detector Description. For the migration to Configurables a new python module has been created. All clients of AtlasGeoModel package are requested to switch to the scripts in this python module. Old python scripts in the share directory have been declared obsolete.
To initialize the geometry simply put in your joboptions:
from AthenaCommon.GlobalFlags import globalflags globalflags.DetDescrVersion = "ATLAS-CSC-02-00-00" from AtlasGeoModel import SetGeometryVersion from AtlasGeoModel import GeoModelInit
There are other possibilities for the values of DetDescrVersion. See SetGeometryVersion.py in the python module of this package in order to see full list of values that the DetDescrVersion flag can have.
You can turn off detectors using DetFlags. For example
from AthenaCommon.DetFlags import DetFlags # NB. Flags are off by default. #DetFlags.detdescr.all_setOn() DetFlags.detdescr.ID_setOn() DetFlags.detdescr.Muon_setOff() DetFlags.detdescr.LAr_setOff() DetFlags.detdescr.Tile_setOff()
The scripts also look at GlobalFlags to determine if it is CTB or DC1 geometries which require special treatment. Normally these are already set if you are using ReExCommon or RecExTB. As long as these flags are set correctly the correct geometry should be loaded. If they are not already set you need to do:
For CTB
from AthenaCommon.GlobalFlags import GlobalFlags GlobalFlags.DetGeo.set_ctbh8()
For DC1
from AthenaCommon.GlobalFlags import GlobalFlags GlobalFlags.DetGeo.set_atlas() GlobalFlags.DataSource.set_geant3()
The following job options are used by the above. Users do not need to call them directly. Users can turn off detectors using DetFlags.