Add missing geometries to DumpGeo, and add a summary of the dumped DetManagers and TreeTops
This MR adds the Cavern and ZDC geometries to the CA-based configuration of DumpGeo
. Now, the related Athena flags are correctly interpreted and the related DetectorFactories are triggered.
You can test this with:
python -m DumpGeo.DumpGeoConfig Detector.GeometryZDC=True Detector.GeometryCavern=True
It also adds a summary of the dumped DetManagers and TreeTops, so users know exactly what they are dumping into the output SQLite file.
Note: I leave this MR open as a 'Draft' because the FWD geometries are still missing and I'll add them here.
Cc: @clantz @menke @boudreau @mbandier @tsulaia
Tested on Athena main
and visualized in gmex
(see the screenshots below):
Cavern:
ZDC:
UPDATE
I have added also ALFA, Lucid, AFP, and FwdRegion
Tested in Athena with:
python -m DumpGeo.DumpGeoConfig Detector.GeometryZDC=True Detector.GeometryCavern=True Detector.GeometryLucid=True Detector.GeometryAFP=True Detector.GeometryALFA=True Detector.GeometryFwdRegion=True -f
With the command above, you get the following output from DumpGeo, which tells you all the DetectorManagers and TreeTops it dumps to the output file:
[...]
DumpGeoAlg INFO Dumping the GeoModel tree...
List of the GeoModel Detector Managers that are being dumped:
AFP_GeoModel [contains 4 treetops]
treetop: AFP00_LogStationEnv
treetop: AFP01_LogStationEnv
treetop: AFP02_LogStationEnv
treetop: AFP03_LogStationEnv
ALFA [contains 4 treetops]
treetop: ALFA
treetop: ALFA
treetop: ALFA
treetop: ALFA
BeamPipe [contains 3 treetops]
treetop: BeamPipeCentral
treetop: BeamPipeFwd
treetop: BeamPipeFwd
CavernInfra [contains 2 treetops]
treetop: SX1Steel
treetop: BEDROCK
ForDetEnvelope [contains 1 treetops]
treetop: ForDetEnvelope
ForwardRegionGeoModel [contains 1 treetops]
treetop: ForwardRegionGeoModel
InDetServMat [contains 1 treetops]
treetop: ServLog
LArMgr [contains 3 treetops]
treetop: LAr::Barrel::Cryostat::MotherVolume
treetop: LAr::Endcap::Cryostat::MotherVolume
treetop: LAr::Endcap::Cryostat::MotherVolume
LUCID [contains 2 treetops]
treetop: Lucid
treetop: Lucid
Muon [contains 1 treetops]
treetop: MuonSys
Pixel [contains 1 treetops]
treetop: Pixel
SCT [contains 3 treetops]
treetop: SCT_Barrel
treetop: SCT_ForwardA
treetop: SCT_ForwardC
TRT [contains 3 treetops]
treetop: TRTBarrel
treetop: TRTEndcapWheelAB
treetop: TRTEndcapWheelAB
Tile [contains 3 treetops]
treetop: TileCentralBarrel
treetop: TileEndcapPos
treetop: TileEndcapNeg
ZDC [contains 2 treetops]
treetop: Envelope_Logical
treetop: Envelope_Logical
DumpGeoAlg INFO Creating the SQLite DB file...
[...]
Then, I visualized the output SQLite in the standalone gmex
application:
Lucid:
ALFA:
FwdRegion:
AFP:
I also added the missing HGTD geometry configuration.
You can now test DumpGeo to dump the HGTD geometry with:
python -m DumpGeo.DumpGeoConfig Detector.GeometryHGTD=True --detDescr=ATLAS-P2-RUN4-03-00-01
Here, above, we use a recent Run4 geometry tag, where the HGTD is defined.
You will see the following log from DumpGeo
:
[...]
DumpGeoAlg INFO Dumping the GeoModel tree...
List of the GeoModel Detector Managers that are being dumped:
BeamPipe [contains 3 treetops]
treetop: BeamPipeCentral
treetop: BeamPipeFwd
treetop: BeamPipeFwd
HGTD [contains 1 treetops]
treetop: HGTD
ITkPixel [contains 1 treetops]
treetop: ITkPixel
ITkStrip [contains 1 treetops]
treetop: ITkStrip
LArMgr [contains 3 treetops]
treetop: LAr::Barrel::Cryostat::MotherVolume
treetop: LAr::Endcap::Cryostat::MotherVolume
treetop: LAr::Endcap::Cryostat::MotherVolume
Muon [contains 1 treetops]
treetop: MuonSys
Tile [contains 3 treetops]
treetop: TileCentralBarrel
treetop: TileEndcapPos
treetop: TileEndcapNeg
DumpGeoAlg INFO Creating the SQLite DB file...
[...]
If you then open the output file with gmex
, you will be able to see the HGTD geometry: