Closed atolosadelgado closed 1 month ago
Where is the property you want to retrieve defined?
Alvaro,
The accessor Detector::properties() only gives access to key value pairs defined in the compact xml in order to chain in some user defined "generic" constants. If this is useful or ever used - I do not know. The usage in XML is:
* <properties>
* <attributes name="key" type="" .... />
* ... </properties>
To be seen e.g. in the example file DD4hep_CHECKOUT/examples/CLICSiD/sim/field.xml
.
Since we use python to configure Geant4 this is not not used anymore.
The material or optical properties you mean can only be accessed from the material (or if you know the details also from the TGeoManager). With the accessor you use they are not available. It was never necessary so far to have access to material related properties.
ok, thank you for the clarifications :)
Hi,
I was playing with the ARC_detector, which is compiled as usual,
I was trying to retrieve an optical property from a compact file, but the map of 'properties' seems to be empty. You can reproduce the issue with the following code, in a ROOT terminal
Are there other ways to retrieve the properties defined in a compact file?
Thank you very much for your time.
Alvaro