Skip to content

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:

Screenshot_2024-04-17_at_17.16.45

ZDC:

Screenshot_2024-04-17_at_17.17.55

Screenshot_2024-04-17_at_17.18.42


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:

Screenshot_2024-04-18_at_19.52.28

ALFA:

Screenshot_2024-04-18_at_19.53.30

Screenshot_2024-04-18_at_19.53.35

FwdRegion:

Screenshot_2024-04-18_at_19.54.01

AFP:

Screenshot_2024-04-18_at_19.55.49

Screenshot_2024-04-18_at_19.56.05


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:

Screenshot_2024-04-18_at_20.07.20

Edited by Riccardo Maria Bianchi

Merge request reports

Loading