Skip to content
Snippets Groups Projects
Commit 844289cd authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

npsim -> ddsim

parent a1e2e9ec
No related branches found
No related tags found
1 merge request!104edm4hep updates in scripts
Showing
with 28 additions and 16 deletions
......@@ -23,9 +23,10 @@ if [[ "$?" -ne "0" ]] ; then
fi
# Run geant4 simulations
npsim --runType batch \
ddsim --runType batch \
-v WARNING \
--part.minimalKineticEnergy 0.5*GeV \
--filter.tracker edep0 \
--numberOfEvents ${JUGGLER_N_EVENTS} \
--compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \
--inputFiles ${FILE_NAME_TAG}.hepmc \
......
......@@ -38,9 +38,10 @@ if [[ "$?" -ne "0" ]] ; then
fi
# Run geant4 simulations
npsim --runType batch \
ddsim --runType batch \
-v WARNING \
--part.minimalKineticEnergy 0.5*GeV \
--filter.tracker edep0 \
--numberOfEvents ${JUGGLER_N_EVENTS} \
--compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \
--inputFiles ${JUGGLER_FILE_NAME_TAG}.hepmc \
......
......@@ -45,9 +45,10 @@ fi
ls -ltRhL
npsim --runType batch \
ddsim --runType batch \
-v WARNING \
--part.minimalKineticEnergy 0.5*GeV \
--filter.tracker edep0 \
--numberOfEvents ${JUGGLER_N_EVENTS} \
--compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \
--inputFiles data/${JUGGLER_FILE_NAME_TAG}.hepmc \
......
......@@ -43,9 +43,10 @@ if [[ "$?" -ne "0" ]] ; then
fi
# Run geant4 simulations
npsim --runType batch \
ddsim --runType batch \
-v WARNING \
--part.minimalKineticEnergy 0.5*GeV \
--filter.tracker edep0 \
--numberOfEvents ${JUGGLER_N_EVENTS} \
--compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \
--inputFiles ${JUGGLER_FILE_NAME_TAG}.hepmc \
......
......@@ -45,9 +45,10 @@ fi
ls -ltRhL
npsim --runType batch \
ddsim --runType batch \
-v WARNING \
--part.minimalKineticEnergy 0.5*GeV \
--filter.tracker edep0 \
--numberOfEvents ${JUGGLER_N_EVENTS} \
--compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \
--inputFiles data/${JUGGLER_FILE_NAME_TAG}.hepmc \
......
......@@ -43,9 +43,10 @@ if [[ "$?" -ne "0" ]] ; then
fi
# Run geant4 simulations
npsim --runType batch \
ddsim --runType batch \
-v WARNING \
--part.minimalKineticEnergy 0.5*GeV \
--filter.tracker edep0 \
--numberOfEvents ${JUGGLER_N_EVENTS} \
--compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \
--inputFiles ${JUGGLER_FILE_NAME_TAG}.hepmc \
......
......@@ -45,9 +45,10 @@ fi
ls -ltRhL
npsim --runType batch \
ddsim --runType batch \
-v WARNING \
--part.minimalKineticEnergy 0.5*GeV \
--filter.tracker edep0 \
--numberOfEvents ${JUGGLER_N_EVENTS} \
--compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \
--inputFiles data/${JUGGLER_FILE_NAME_TAG}.hepmc \
......
......@@ -8,7 +8,7 @@ cal_sim:crystal_pion:
extends: .det_benchmark
stage: simulate
script:
- npsim --runType batch --numberOfEvents 100 --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml --inputFiles data/emcal_electrons.hepmc --outputFile sim_output/output_emcal_electrons.edm4hep.root
- ddsim --runType batch --numberOfEvents 100 --filter.tracker edep0 --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml --inputFiles data/emcal_electrons.hepmc --outputFile sim_output/output_emcal_electrons.edm4hep.root
cal_bench:crystal_benchmark:
extends: .det_benchmark
......
#!/bin/bash
npsim --runType batch --numberOfEvents 10000 \
ddsim --runType batch --numberOfEvents 10000 \
--filter.tracker edep0 \
--compactFile benchmarks/calorimeters/topside.xml \
--inputFiles ./data/emcal_pions_upto1GeV_10kevents.hepmc \
--outputFile ./sim_output/sim_crystal_pion_input.edm4hep.root
......@@ -2,7 +2,7 @@ sim:backward:
extends: .det_benchmark
stage: simulate
script:
- npsim --runType batch --numberOfEvents 100 --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml --enableGun --gun.energy "5*GeV" --gun.particle "${PARTICLE}" --gun.thetaMin 130*deg --gun.thetaMax 177*deg --gun.distribution "cos(theta)" --outputFile sim_output/sim_pid_backward_${PARTICLE}_5GeV.edm4hep.root
- ddsim --runType batch --numberOfEvents 100 --filter.tracker edep0 --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml --enableGun --gun.energy "5*GeV" --gun.particle "${PARTICLE}" --gun.thetaMin 130*deg --gun.thetaMax 177*deg --gun.distribution "cos(theta)" --outputFile sim_output/sim_pid_backward_${PARTICLE}_5GeV.edm4hep.root
- rootls -t sim_output/sim_pid_backward_${PARTICLE}_5GeV.edm4hep.root
parallel:
matrix:
......
......@@ -10,9 +10,10 @@ fi
ddsim --runType batch -N 300 \
npsim --runType batch \
ddsim --runType batch \
-v WARNING \
--part.minimalKineticEnergy 0.5*GeV \
--filter.tracker edep0 \
--numberOfEvents ${JUGGLER_N_EVENTS} \
--compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \
--inputFiles ./data/forward_ions.hepmc \
......
......@@ -79,11 +79,12 @@ output_file="sim_${nevents}.edm4hep.root"
mkdir -p ${output_dir}
timing_dir="results/timing/${particle}/${energy/\*/}"
timing_file="time_${nevents}events.log"
npsim_file="npsim_${nevents}events.log"
ddsim_file="npsim_${nevents}events.log"
mkdir -p ${timing_dir}
/usr/bin/time -v -o ${timing_dir}/time_${nevents}events.log \
npsim --runType batch \
ddsim --runType batch \
--printLevel WARNING \
--filter.tracker edep0 \
--numberOfEvents ${nevents} \
--enableGun \
--gun.energy "${energy}" \
......@@ -94,7 +95,7 @@ mkdir -p ${timing_dir}
--part.minimalKineticEnergy "1*TeV" \
--compactFile ${compact_path} \
--outputFile ${output_dir}/${output_file} \
2>&1 > ${timing_dir}/${npsim_file}
2>&1 > ${timing_dir}/${ddsim_file}
echo "For ${nevents} events:"
cat ${timing_dir}/${timing_file}
......
......@@ -78,8 +78,9 @@ if [ -z "${ANALYSIS_ONLY}" ] ; then
echo "Running geant4 simulation"
## run geant4 simulations
npsim --runType batch \
ddsim --runType batch \
--part.minimalKineticEnergy 1000*GeV \
--filter.tracker edep0 \
-v WARNING \
--numberOfEvents ${JUGGLER_N_EVENTS} \
--compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \
......
......@@ -34,9 +34,10 @@ if [[ "$?" -ne "0" ]] ; then
fi
# Run geant4 simulations
npsim --runType batch \
ddsim --runType batch \
-v WARNING \
--part.minimalKineticEnergy 0.5*GeV \
--filter.tracker edep0 \
--numberOfEvents ${JUGGLER_N_EVENTS} \
--compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \
--inputFiles ${JUGGLER_FILE_NAME_TAG}.hepmc \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment