36 #include "Geant4/G4UImanager.hh" 37 #include "Geant4/G4UIterminal.hh" 137 , seed_(p.
get<long>(
"seed", -1))
138 , macroPath_(p.
get<
std::string>(
"macroPath",
"."))
139 , pathFinder_(macroPath_)
140 , visMacro_(p.
get<
std::string>(
"visMacro",
"vis.mac"))
141 , pauseAfterEvent_(false)
142 , visSpecificEvents_(p.
get<bool>(
"visualizeSpecificEvents", false))
144 , rmvlevel_(p.
get<int>(
"rmvlevel", 0))
145 , uiAtBeginRun_(p.
get<bool>(
"uiAtBeginRun", false))
146 , uiAtEndEvent_(false)
147 , afterEvent_(p.
get<
std::string>(
"afterEvent",
"pass"))
148 , logInfo_(
"ArtG4Main")
155 std::vector<int> eventsToDisplayVec = p.
get<vector<int>>(
"eventsToDisplay");
156 for (
size_t i = 0; i < eventsToDisplayVec.size(); i++) {
167 detectorHolder->initialize();
171 detectorHolder->constructAllLVs();
185 seed_ = time(0) + getpid();
187 ((
seed_ & 0xFFFF0000) >> 16) | ((
seed_ & 0x0000FFFF) << 16);
221 runManager_->SetUserInitialization(physicsListHolder->makePhysicsList());
232 actionHolder->initialize();
235 actionHolder->setCurrArtRun(r);
251 physicsListHolder->initializePhysicsList();
254 UI_ = G4UImanager::GetUIpointer();
275 actionHolder->setCurrArtEvent(e);
276 detectorHolder->setCurrArtEvent(e);
293 actionHolder->setCurrArtRun(r);
base_engine_t & createEngine(seed_t seed)
void endRun(art::Run &) override
artg4tkMain(fhicl::ParameterSet const &p)
unique_ptr< ArtG4RunManager > runManager_
void beginRun(art::Run &r) override
std::map< int, bool > eventsToDisplay_
#define DEFINE_ART_MODULE(klass)
T get(std::string const &key) const
ProducesCollector & producesCollector() noexcept
decltype(auto) get(T &&obj)
ADL-aware version of std::to_string.
MaybeLogger_< ELseverityLevel::ELsev_success, false > LogDebug
EventNumber_t event() const
cet::search_path pathFinder_
void produce(art::Event &e) override