Skip to content

Commit

Permalink
Fix bug due to calo.filter
Browse files Browse the repository at this point in the history
The calo.filter="edep0" in SteeringFile_IDEA_o2_v01.py did not let the
DRTubesSDAction be executed on opticalphotons which did not deposit
energy in fibers. However the SDAction must be executed on those steps
as they are counted to create the Cherenkov signal and they are killed
to speedup the simulation. Replace to calo.filter=None. Also set the
physicsList as FTFP_BERT. And the beam to 10 GeV e- shot directly into
the endcap calorimeter to monitor the time per event.
  • Loading branch information
lopezzot authored and BrieucF committed Dec 6, 2024
1 parent bd481ef commit 3b8d4de
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions example/SteeringFile_IDEA_o2_v01.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from DDSim.DD4hepSimulation import DD4hepSimulation
from g4units import mm, GeV, MeV
from g4units import cm, mm, GeV, MeV

SIM = DD4hepSimulation()

Expand All @@ -16,11 +16,11 @@
## Macro file to execute for runType 'run' or 'vis'
SIM.macroFile = ""
## number of events to simulate, used in batch mode
SIM.numberOfEvents = 100
SIM.numberOfEvents = 10
## Outputfile from the simulation: .slcio, edm4hep.root and .root output files are supported
SIM.outputFile = "IDEA_o2_v01.root"
## Physics list to use in simulation
SIM.physicsList = None
SIM.physicsList = "FTFP_BERT"
## Verbosity use integers from 1(most) to 7(least) verbose
## or strings: VERBOSE, DEBUG, INFO, WARNING, ERROR, FATAL, ALWAYS
SIM.printLevel = 3
Expand Down Expand Up @@ -171,7 +171,7 @@
## default filter for calorimeter sensitive detectors;
## this is applied if no other filter is used for a calorimeter
##
SIM.filter.calo = "edep0"
SIM.filter.calo = ""

## list of filter objects: map between name and parameter dictionary
SIM.filter.filters = {
Expand Down Expand Up @@ -240,7 +240,7 @@
################################################################################

## direction of the particle gun, 3 vector
SIM.gun.direction = (1.0, 1.0, 1.0)
SIM.gun.direction = (0, 0, 1)

## choose the distribution of the random direction for theta
##
Expand All @@ -258,7 +258,7 @@
## Total energy (including mass) for the particle gun.
##
## If not None, it will overwrite the setting of momentumMin and momentumMax
SIM.gun.energy = None
SIM.gun.energy = 10.*GeV

## Maximal pseudorapidity for random distibution (overrides thetaMin)
SIM.gun.etaMax = None
Expand All @@ -279,7 +279,7 @@
## Minimal momentum when using distribution (default = 0.0)
SIM.gun.momentumMin = 0.0
SIM.gun.multiplicity = 1
SIM.gun.particle = "mu-"
SIM.gun.particle = "e-"

## Maximal azimuthal angle for random distribution
SIM.gun.phiMax = None
Expand All @@ -288,7 +288,7 @@
SIM.gun.phiMin = None

## position of the particle gun, 3 vector
SIM.gun.position = (0.0, 0.0, 0.0)
SIM.gun.position = (0.0, 90.0*cm, 0.0)

## Maximal polar angle for random distribution
SIM.gun.thetaMax = None
Expand Down

0 comments on commit 3b8d4de

Please sign in to comment.