FAQ:What is the detector path for certain detector element?

From Daya Bay

Jump to: navigation, search

Three suggested methods

Using visualization

The best way to figure out which path to use is using quanjing.py (or NuWa.py -V). By clicking the 'Structure', you will see all the related paths. Unfortunately, quanjing is broken in the latest trunk so you have to use r9921 or earlier. On PDSF, you can use r9905 by

% source ~dayabay/nuwaenv.(c)sh

% nuwaenv -r odm -O

However, the "Structure" tag in Quanjing can only show LogicalVolume (a lhcb/DetDesc concept) or logical structure.

Dump the hierarchy

One can also dump the hierarchy to your terminal (in a rather verbose format) by doing:

$XMLDETDESCCHECKSROOT/python/dump_xmldetdesc.py /dd/Structure/Starting/Point

Note, this is a stand-alone program (not a nuwa.py module) and you should replace "Starting/Point" with the detector element from which you want to start the hierarchical descent. For example, to see all DEs in the Daya Bay near site replace it with "DayaBay". This produces a lot of output so you probably want to redirect it to a file.

By tracking

Or produce a muon and keep tracking of each point of simulation, then print out the PVolume info of each point. Here is a good example: http://dayabay.ihep.ac.cn/websvn/filedetails.php?repname=Daya+Bay+offline+repository&path=%2Fpeople%2Fwangzhe%2FCheckMuon%2Fsrc%2FCheckMuon.cc MuonProphet/MpGeometry also shows something about it.

Personal tools