Skip to content

Commit

Permalink
[format] Run ruff on all python files and fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Sep 25, 2024
1 parent 38c919f commit 09272ca
Show file tree
Hide file tree
Showing 19 changed files with 1,702 additions and 1,192 deletions.
21 changes: 13 additions & 8 deletions CaloTB/CaloTB_EPT_AHCAL/TBModel2015_steering.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,38 @@
SIM.compactFile = "../../DD4HEP/compact/TBModel2015.xml"
SIM.runType = "batch"
SIM.macroFile = "vis.mac"
#SIM.inputFiles = "mcparticles.slcio"
# SIM.inputFiles = "mcparticles.slcio"
SIM.outputFile = "DD4hep_mu-_8GeV_QGSP_BERT_10k.slcio"

SIM.numberOfEvents = 10000
SIM.skipNEvents = 0
SIM.physicsList = "QGSP_BERT"
SIM.dumpSteeringFile = "TBModel2015_dump.xml"
SIM.enableDetailedShowerMode=True
SIM.enableDetailedShowerMode = True

SIM.random.seed = "0123456789"
SIM.field.eps_min = 1*mm
SIM.part.minimalKineticEnergy = 1*MeV
SIM.field.eps_min = 1 * mm
SIM.part.minimalKineticEnergy = 1 * MeV

SIM.action.calo = "Geant4ScintillatorCalorimeterAction"

## set the particle.tbl file to add extra particles to DDsim (B-Baryons)
## use the power of python to get the file from DD4hep wherever it is
import os
if os.path.exists( os.path.join( os.environ.get("DD4hepINSTALL"), "examples/DDG4/examples/particle.tbl") ):
SIM.physics.pdgfile = os.path.join( os.environ.get("DD4hepINSTALL"), "examples/DDG4/examples/particle.tbl")

if os.path.exists(
os.path.join(os.environ.get("DD4hepINSTALL"), "examples/DDG4/examples/particle.tbl")
):
SIM.physics.pdgfile = os.path.join(
os.environ.get("DD4hepINSTALL"), "examples/DDG4/examples/particle.tbl"
)


SIM.enableGun = True
SIM.gun.particle = "mu-"
SIM.gun.energy = 8*GeV
SIM.gun.energy = 8 * GeV
SIM.gun.position = "0, 0, -1000"
SIM.gun.direction = "0,0,1"

#SIM.gun.isotrop
# SIM.gun.isotrop
SIM.gun.multiplicity = 1
14 changes: 7 additions & 7 deletions CaloTB/run_sim/ddsim_steering_00.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@
SIM.compactFile = "../compact/MainTestBeamSetup.xml"
SIM.dumpSteeringFile = "dumpSteering00.xml"

SIM.field.eps_min = 1*mm
SIM.field.eps_min = 1 * mm

SIM.part.minimalKineticEnergy = 1*MeV
SIM.part.minimalKineticEnergy = 1 * MeV

SIM.physicsList = "QGSP_BERT"
SIM.enableDetailedShowerMode=True

SIM.enableDetailedShowerMode = True

SIM.enableGun = True

SIM.gun.energy = 10*GeV
SIM.gun.energy = 10 * GeV
SIM.gun.particle = "pi+"
#SIM.gun.multiplicity
# SIM.gun.multiplicity
SIM.gun.position = "0,0,-1000"
#SIM.gun.isotrop
# SIM.gun.isotrop
SIM.gun.direction = "0,0,1"
Loading

0 comments on commit 09272ca

Please sign in to comment.