Skip to content

Commit

Permalink
Fix BoxOfStraws: Now layers with correct orientation. Thanks Andre!
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusFrankATcernch committed Jul 5, 2024
1 parent 4cfa22f commit 88199c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/ClientTests/scripts/BoxOfStraws.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ def run():
# Map sensitive detectors of type 'BoxOfStraws' to Geant4CalorimeterAction
sd = geant4.description.sensitiveDetector(str('BoxOfStrawsDet'))
logger.info(f'+++ BoxOfStraws: SD type: {str(sd.type())}')
filter = DDG4.Filter(kernel, 'EnergyDepositMinimumCut')
filter.Cut = 1.0 * MeV
filter.enableUI()
kernel.registerGlobalFilter(filter)
energy_filter = DDG4.Filter(kernel, 'EnergyDepositMinimumCut')
energy_filter.Cut = 1.0 * MeV
energy_filter.enableUI()
kernel.registerGlobalFilter(energy_filter)
seq, act = geant4.setupDetector(name='BoxOfStrawsDet', action='MyTrackerSDAction')
seq.adopt(filter)
seq.adopt(energy_filter)
act.HaveCellID = False
#
# Now build the physics list:
Expand Down

0 comments on commit 88199c8

Please sign in to comment.