#include "nusimdata/SimulationBase/MCParticle.h"
#include "nusimdata/SimulationBase/MCTruth.h"
#include "art/Framework/Core/EDProducer.h"
#include "art/Framework/Core/ModuleMacros.h"
#include "art/Framework/Principal/Event.h"
#include "art/Framework/Principal/Run.h"
#include "artg4tk/geantInit/ArtG4DetectorConstruction.hh"
#include "artg4tk/geantInit/ArtG4RunManager.hh"
#include "artg4tk/geantInit/ArtG4EventAction.hh"
#include "artg4tk/geantInit/ArtG4PrimaryGeneratorAction.hh"
#include "artg4tk/geantInit/ArtG4StackingAction.hh"
#include "artg4tk/geantInit/ArtG4SteppingAction.hh"
#include "artg4tk/geantInit/ArtG4TrackingAction.hh"
#include "larg4/pluginActions/MCTruthEventAction_service.h"
#include "larg4/pluginActions/ParticleListAction_service.h"
#include "art/Framework/Services/Optional/RandomNumberGenerator.h"
#include "art/Framework/Services/Registry/ServiceHandle.h"
#include "artg4tk/services/ActionHolder_service.hh"
#include "artg4tk/services/DetectorHolder_service.hh"
#include "artg4tk/services/PhysicsListHolder_service.hh"
#include "lardataalg/MCDumpers/MCDumpers.h"
#include "lardataobj/Simulation/GeneratedParticleInfo.h"
#include "nug4/ParticleNavigation/ParticleList.h"
#include "nurandom/RandomUtils/NuRandomService.h"
#include "Geant4/G4UImanager.hh"
#include "Geant4/G4UIterminal.hh"
#include <atomic>
#include <string>
#include <set>
#include <map>
#include <memory>
#include <vector>
Go to the source code of this file.
afterEvent_ |
( |
p.get< std::string > |
"afterEvent","pass" | ) |
|
Definition at line 137 of file larg4Main_module.cc.
139 produces<std::map<int,std::set<int>>>();
140 produces<std::vector<simb::MCParticle>>();
141 produces<art::Assns<simb::MCTruth, simb::MCParticle, sim::GeneratedParticleInfo>>();
145 art::ServiceHandle<artg4tk::ActionHolderService> actionHolder;
146 art::ServiceHandle<artg4tk::DetectorHolderService> detectorHolder;
148 if (initializeDetectors_) {
149 detectorHolder->initialize();
151 detectorHolder->constructAllLVs();
152 initializeDetectors_ =
false;
156 actionHolder->callArtProduces(producesCollector());
157 detectorHolder->callArtProduces(producesCollector());
160 if (seed_ > 900000000) {
161 throw cet::exception(
"largeant:BadSeedValue")
162 <<
"The provided largeant seed value: " << seed_ <<
" is invalid! Maximum seed value is 9E8.";
166 (
void)art::ServiceHandle<rndm::NuRandomService>()->createEngine(*
this,
"G4Engine",
p,
"seed");
171 pauseAfterEvent_ =
true;
afterEvent_(p.get< std::string >("afterEvent","pass"))
rmvlevel_ |
( |
p.get< int > |
"rmvlevel", 0 | ) |
|
uiAtBeginRun_ |
( |
p.get< bool > |
"uiAtBeginRun", false | ) |
|