Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
run: |
source /cvmfs/ship.cern.ch/$version/setUp.sh
eval $(alienv load FairShip/latest)
python $FAIRSHIP/macro/run_simScript.py --test --debug 2 --${{ matrix.vessel_option }} --SND --SND_design=${{ matrix.SND_option }} --shieldName ${{ matrix.muon_shield }} --target-yaml=$FAIRSHIP/geometry/target_config_${{ matrix.target }}.yaml --EvtGenDecayer --tag ci-test
python $FAIRSHIP/macro/run_simScript.py --test --debug 2 --${{ matrix.vessel_option }} --SND --SND_design=${{ matrix.SND_option }} --shieldName ${{ matrix.muon_shield }} --target-yaml=$FAIRSHIP/geometry/target_config_${{ matrix.target }}.yaml --EvtGenDecayer --dump-g4-config --tag ci-test

- name: Overlap check
run: |
Expand Down
5 changes: 5 additions & 0 deletions macro/run_simScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
parser.add_argument("--debug", help="Control FairLogger verbosity: 0=info (default), 1=+debug, 2=+debug1, 3=+debug2", default=0, type=int, choices=range(0,4))
parser.add_argument("--print-fields", help="Print VMC fields and weights information", action="store_true")
parser.add_argument("--check-overlaps", help="Perform geometry overlap checking", action="store_true")
parser.add_argument("--dump-g4-config", help="Dump Geant4 VMC configuration after initialisation", action="store_true")
parser.add_argument("--field_map", default=None, help="Specify spectrometer field map.")
parser.add_argument("--z-offset", dest="z_offset", help="z-offset for the FixedTargetGenerator [mm]", default=-84., type=float)
parser.add_argument(
Expand Down Expand Up @@ -532,6 +533,10 @@
gMC = ROOT.TVirtualMC.GetMC()
fStack = gMC.GetStack()

if options.dump_g4_config:
gMC.ProcessGeantCommand("/run/dumpCouples")
print(f"Stack type: {type(fStack).__name__}")

# -----J/psi external decayer configuration handled in g4config.in------------------------------------
# VMC command /mcPhysics/setExtDecayerSelection J/psi forces external decayer usage
EnergyCut = 10. * u.MeV if options.mudis else 100. * u.MeV
Expand Down