New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to specify elements using isotopes in compact. Improved debugging support #148

Merged
merged 8 commits into from Apr 28, 2017

Conversation

Projects
None yet
1 participant
@MarkusFrankATcernch
Contributor

MarkusFrankATcernch commented Apr 28, 2017

BEGINRELEASENOTES

Improvements to the compact xml processing

Elements may now be specified within compact in 2 ways:

  1. old way: create an effective element:
    <element Z="4" formula="Be" name="Be" >
    <atom type="A" unit="g/mol" value="9.01218" />
    </element>

  2. create element by defining an isotope mixture:
    <isotope name="C12" Z="6" N="12"/>
    <atom unit="g/mole" value="xxxx"/>
    </isotope>
    .....
    <element name="C">
    <fraction n="0.9893" ref="C12"/>
    <fraction n="0.0107" ref="C13"/>
    </element>

Improved debugging of compact xml conversions
The following tags allow to enable increased prinout depending on additional tags in the compact file:
<debug>
<type name="isotopes" value="1"/>
<type name="elements" value="1"/>
<type name="materials" value="0"/>
<type name="visattr" value="0"/>
<type name="regions" value="0"/>
<type name="readout" value="0"/>
<type name="limits" value="0"/>
<type name="segmentation" value="0"/>
</debug>

Disable the ROOT TGeo element table from the compact xml.
Note: ALL elements must then be specified in the XML material database.
<geometry>
<clear name="elements"/>
</geometry>

By default compact accepts exactly one input file (others may be included therein).
In order to process iteratively multiple input files, the opening and the closing of the
geometry steering tags may be added to the compact description. This example
gives the default behaviour:
<geometry open="true" close="true"/>

Please note: per compact file exactly ONE geometry tag is allowed.

Debugging the DDG4 geometry conversion mechanism

New boolean properties of the Geant4DetectorGeometryConstruction object,
which result in debugging printouts (defaults are OFF):
DebugMaterials
DebugElements
DebugShapes
DebugVolumes
DebugPlacements
DebugRegions
PrintPlacements
PrintSensitives

ENDRELEASENOTES

@MarkusFrankATcernch

This comment has been minimized.

Contributor

MarkusFrankATcernch commented Apr 28, 2017

gitlab passed on all platforms.

@MarkusFrankATcernch MarkusFrankATcernch merged commit 8fe2550 into AIDASoft:master Apr 28, 2017

1 check was pending

continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment