Skip to content

Commit

Permalink
Merge pull request #1244 from resnegfk/g4sMT
Browse files Browse the repository at this point in the history
enabling g4studyMT
  • Loading branch information
kutschke authored Apr 25, 2024
2 parents 1d70917 + 5278214 commit 6efcc08
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
16 changes: 16 additions & 0 deletions Mu2eG4/g4study/g4studyMT.fcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# MT version of g4study
#
#include "Offline/Mu2eG4/g4study/g4study.fcl"

# Note that all parameters except the following should mostly be
# set in the non MT file included above (which includes prolog files)

physics.producers.g4run.module_type : "Mu2eG4MT"

# this sets the number of threads used in MT mode
# number and threads and number of schedules should
# be the same

services.scheduler.num_schedules : 5
services.scheduler.num_threads : 5
5 changes: 3 additions & 2 deletions Mu2eG4/src/Mu2eG4MTRunManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "Offline/GeometryService/inc/WorldG4.hh"
#include "Offline/Mu2eG4/inc/WorldMaker.hh"
#include "Offline/Mu2eG4/inc/Mu2eWorld.hh"
#include "Offline/Mu2eG4/inc/Mu2eStudyWorld.hh"
#include "Offline/Mu2eG4/inc/physicsListDecider.hh"
#include "Offline/Mu2eG4/inc/preG4InitializeTasks.hh"
#include "Offline/Mu2eG4/inc/Mu2eG4MasterRunAction.hh"
Expand Down Expand Up @@ -171,8 +172,8 @@ namespace mu2e {
make_unique<ConstructMaterials>(conf_)));
}
else {
throw cet::exception("CONFIG")
<< "Error: You are trying to run in MT mode without the Standard Mu2e Detector!\n";
allMu2e = (new WorldMaker<Mu2eStudyWorld>(make_unique<Mu2eStudyWorld>(conf_, &sensitiveDetectorHelper_),
make_unique<ConstructMaterials>(conf_)));
}

preG4InitializeTasks(conf_);
Expand Down

0 comments on commit 6efcc08

Please sign in to comment.