CMS 3D CMS Logo

RunManagerMTWorker.cc
Go to the documentation of this file.
13 
20 
28 
34 
38 
41 
43 
45 
49 
50 #include "G4Event.hh"
51 #include "G4Run.hh"
52 #include "G4SystemOfUnits.hh"
53 #include "G4Threading.hh"
54 #include "G4UImanager.hh"
55 #include "G4WorkerThread.hh"
56 #include "G4WorkerRunManagerKernel.hh"
57 #include "G4StateManager.hh"
58 #include "G4TransportationManager.hh"
59 
60 #include <atomic>
61 #include <thread>
62 #include <sstream>
63 #include <vector>
64 
65 // from https://hypernews.cern.ch/HyperNews/CMS/get/edmFramework/3302/2.html
66 namespace {
67  std::atomic<int> thread_counter{ 0 };
68 
69  int get_new_thread_index() {
70  return thread_counter++;
71  }
72 
73  thread_local int s_thread_index = get_new_thread_index();
74 
75  int getThreadIndex() { return s_thread_index; }
76 
77  void createWatchers(const edm::ParameterSet& iP,
78  SimActivityRegistry* iReg,
79  std::vector<std::shared_ptr<SimWatcher> >& oWatchers,
80  std::vector<std::shared_ptr<SimProducer> >& oProds,
81  int thisThreadID
82  )
83  {
84  if(!iP.exists("Watchers")) { return; }
85 
86  std::vector<edm::ParameterSet> watchers =
87  iP.getParameter<std::vector<edm::ParameterSet> >("Watchers");
88 
89  for(auto & watcher : watchers) {
90  std::unique_ptr<SimWatcherMakerBase> maker(
91  SimWatcherFactory::get()->create(watcher.getParameter<std::string>("type"))
92  );
93  if(maker==nullptr) {
95  << "Unable to find the requested Watcher <"
96  << watcher.getParameter<std::string>("type");
97  }
98  std::shared_ptr<SimWatcher> watcherTemp;
99  std::shared_ptr<SimProducer> producerTemp;
100  maker->make(watcher,*(iReg),watcherTemp,producerTemp);
101  oWatchers.push_back(watcherTemp);
102  if(producerTemp) {
103  oProds.push_back(producerTemp);
104  }
105  }
106  }
107 }
108 
110  std::unique_ptr<CustomUIsession> UIsession;
111  std::unique_ptr<RunAction> userRunAction;
112  std::unique_ptr<SimRunInterface> runInterface;
113  std::unique_ptr<SimActivityRegistry> registry;
114  std::unique_ptr<SimTrackManager> trackManager;
115  std::vector<SensitiveTkDetector*> sensTkDets;
116  std::vector<SensitiveCaloDetector*> sensCaloDets;
117  std::vector<std::shared_ptr<SimWatcher> > watchers;
118  std::vector<std::shared_ptr<SimProducer> > producers;
119  std::unique_ptr<G4Run> currentRun;
120  std::unique_ptr<G4Event> currentEvent;
121  std::unique_ptr<G4RunManagerKernel> kernel;
123  bool threadInitialized = false;
124  bool runTerminated = false;
125 };
126 
128 
130  m_generator(iConfig.getParameter<edm::ParameterSet>("Generator")),
131  m_InToken(iC.consumes<edm::HepMCProduct>(iConfig.getParameter<edm::ParameterSet>("Generator").getParameter<edm::InputTag>("HepMCProductLabel"))),
132  m_theLHCTlinkToken(iC.consumes<edm::LHCTransportLinkContainer>(iConfig.getParameter<edm::InputTag>("theLHCTlinkTag"))),
133  m_nonBeam(iConfig.getParameter<bool>("NonBeamEvent")),
134  m_pUseMagneticField(iConfig.getParameter<bool>("UseMagneticField")),
135  m_EvtMgrVerbosity(iConfig.getUntrackedParameter<int>("G4EventManagerVerbosity",0)),
136  m_pField(iConfig.getParameter<edm::ParameterSet>("MagneticField")),
137  m_pRunAction(iConfig.getParameter<edm::ParameterSet>("RunAction")),
138  m_pEventAction(iConfig.getParameter<edm::ParameterSet>("EventAction")),
139  m_pStackingAction(iConfig.getParameter<edm::ParameterSet>("StackingAction")),
140  m_pTrackingAction(iConfig.getParameter<edm::ParameterSet>("TrackingAction")),
141  m_pSteppingAction(iConfig.getParameter<edm::ParameterSet>("SteppingAction")),
142  m_pCustomUIsession(iConfig.getUntrackedParameter<edm::ParameterSet>("CustomUIsession")),
143  m_p(iConfig)
144 {
145  initializeTLS();
146  m_simEvent.reset(nullptr);
147  m_sVerbose.reset(nullptr);
148  std::vector<edm::ParameterSet> watchers =
149  iConfig.getParameter<std::vector<edm::ParameterSet> >("Watchers");
150  m_hasWatchers = (watchers.empty()) ? false : true;
151 }
152 
154  if(m_tls && !m_tls->runTerminated) { terminateRun(); }
155 }
156 
158  terminateRun();
159 }
160 
162  if(m_tls) { return; }
163  m_tls = new TLSData;
164  m_tls->registry.reset(new SimActivityRegistry());
165 
166  edm::Service<SimActivityRegistry> otherRegistry;
167  //Look for an outside SimActivityRegistry
168  // this is used by the visualization code
169  int thisID = getThreadIndex();
170  if(otherRegistry){
171  m_tls->registry->connect(*otherRegistry);
172  if(thisID > 0) {
173  throw edm::Exception(edm::errors::Configuration) << "SimActivityRegistry service (i.e. visualization) is not supported for more than 1 thread. If this use case is needed, RunManagerMTWorker has to be updated.";
174  }
175  }
176  if(m_hasWatchers) {
178  }
179 }
180 
182  // I guess everything initialized here should be in thread_local storage
183  initializeTLS();
184 
185  int thisID = getThreadIndex();
186 
187  edm::LogVerbatim("SimG4CoreApplication")
188  << "RunManagerMTWorker::initializeThread " << thisID;
189 
190  // Initialize per-thread output
191  G4Threading::G4SetThreadId( thisID );
192  G4UImanager::GetUIpointer()->SetUpForAThread( thisID );
194  if(uitype == "MessageLogger") {
195  m_tls->UIsession.reset(new CustomUIsession());
196  }
197  else if(uitype == "MessageLoggerThreadPrefix") {
199  }
200  else if(uitype == "FilePerThread") {
202  }
203  else {
205  << "Invalid value of CustomUIsession.Type '" << uitype
206  << "', valid are MessageLogger, MessageLoggerThreadPrefix, FilePerThread";
207  }
208 
209  // Initialize worker part of shared resources (geometry, physics)
210  G4WorkerThread::BuildGeometryAndPhysicsVector();
211 
212  // Create worker run manager
213  m_tls->kernel.reset(G4WorkerRunManagerKernel::GetRunManagerKernel());
214  if(!m_tls->kernel) { m_tls->kernel.reset(new G4WorkerRunManagerKernel()); }
215 
216  // Define G4 exception handler
217  G4StateManager::GetStateManager()->SetExceptionHandler(new ExceptionHandler());
218 
219  // Set the geometry for the worker, share from master
221 
222  // we need the track manager now
223  m_tls->trackManager.reset(new SimTrackManager());
224 
225  // Get DDCompactView, or would it be better to get the object from
226  // runManagerMaster instead of EventSetup in here?
228  es.get<IdealGeometryRecord>().get(pDD);
229 
230  // setup the magnetic field
232  {
233  const GlobalPoint g(0.,0.,0.);
234 
236  es.get<IdealMagneticFieldRecord>().get(pMF);
237 
238  sim::FieldBuilder fieldBuilder(pMF.product(), m_pField);
239  CMSFieldManager* fieldManager = new CMSFieldManager();
240  G4TransportationManager * tM =
241  G4TransportationManager::GetTransportationManager();
242  tM->SetFieldManager(fieldManager);
243  fieldBuilder.build( fieldManager, tM->GetPropagatorInField());
244  }
245 
246  // attach sensitive detector
247  AttachSD attach;
248  std::pair< std::vector<SensitiveTkDetector*>,
249  std::vector<SensitiveCaloDetector*> > sensDets =
250  attach.create(*pDD, runManagerMaster.catalog(), m_p,
251  m_tls->trackManager.get(),
252  *(m_tls->registry.get()));
253 
254  m_tls->sensTkDets.swap(sensDets.first);
255  m_tls->sensCaloDets.swap(sensDets.second);
256 
257  edm::LogVerbatim("SimG4CoreApplication")
258  << " RunManagerMTWorker: Sensitive Detector building finished; found "
259  << m_tls->sensTkDets.size() << " Tk type Producers, and "
260  << m_tls->sensCaloDets.size() << " Calo type producers ";
261 
262  // Set the physics list for the worker, share from master
263  PhysicsList *physicsList = runManagerMaster.physicsListForWorker();
264 
265  edm::LogVerbatim("SimG4CoreApplication")
266  << "RunManagerMTWorker: start initialisation of PhysicsList for the thread";
267 
268  // Geant4 UI commands in PreInit state
269  if(!runManagerMaster.G4Commands().empty()) {
270  G4cout << "RunManagerMTWorker: Requested UI commands: " << G4endl;
271  for(const std::string& command: runManagerMaster.G4Commands()) {
272  G4cout << " " << command << G4endl;
273  G4UImanager::GetUIpointer()->ApplyCommand(command);
274  }
275  }
276  G4StateManager::GetStateManager()->SetNewState(G4State_Init);
277 
278  physicsList->InitializeWorker();
279  m_tls->kernel->SetPhysics(physicsList);
280  m_tls->kernel->InitializePhysics();
281 
282  const bool kernelInit = m_tls->kernel->RunInitialization();
283  if(!kernelInit) {
285  << "RunManagerMTWorker: Geant4 kernel initialization failed";
286  }
287  //tell all interesting parties that we are beginning the job
288  BeginOfJob aBeginOfJob(&es);
289  m_tls->registry->beginOfJobSignal_(&aBeginOfJob);
290 
291  G4int sv = m_p.getParameter<int>("SteppingVerbosity");
292  G4double elim = m_p.getParameter<double>("StepVerboseThreshold")*CLHEP::GeV;
293  std::vector<int> ve = m_p.getParameter<std::vector<int> >("VerboseEvents");
294  std::vector<int> vn = m_p.getParameter<std::vector<int> >("VertexNumber");
295  std::vector<int> vt = m_p.getParameter<std::vector<int> >("VerboseTracks");
296 
297  if(sv > 0) {
298  m_sVerbose.reset(new CMSSteppingVerbose(sv, elim, ve, vn, vt));
299  }
301 
302  edm::LogVerbatim("SimG4CoreApplication")
303  << "RunManagerMTWorker::initializeThread done for the thread " << thisID;
304 
305  G4StateManager::GetStateManager()->SetNewState(G4State_Idle);
306 }
307 
309  m_tls->runInterface.reset(new SimRunInterface(this, false));
311  m_tls->runInterface.get(),false));
312  m_tls->userRunAction->SetMaster(false);
313  Connect(m_tls->userRunAction.get());
314 
315  G4EventManager * eventManager = m_tls->kernel->GetEventManager();
316  eventManager->SetVerboseLevel(m_EvtMgrVerbosity);
317 
318  EventAction * userEventAction =
320  m_tls->trackManager.get(), m_sVerbose.get());
321  Connect(userEventAction);
322  eventManager->SetUserAction(userEventAction);
323 
324  TrackingAction* userTrackingAction =
325  new TrackingAction(userEventAction, m_pTrackingAction, m_sVerbose.get());
326  Connect(userTrackingAction);
327  eventManager->SetUserAction(userTrackingAction);
328 
329  SteppingAction* userSteppingAction =
330  new SteppingAction(userEventAction,m_pSteppingAction,m_sVerbose.get(),m_hasWatchers);
331  Connect(userSteppingAction);
332  eventManager->SetUserAction(userSteppingAction);
333 
334  eventManager->SetUserAction(new StackingAction(userTrackingAction,
336 
337 }
338 
340 {
341  runAction->m_beginOfRunSignal.connect(m_tls->registry->beginOfRunSignal_);
342  runAction->m_endOfRunSignal.connect(m_tls->registry->endOfRunSignal_);
343 }
344 
346 {
347  eventAction->m_beginOfEventSignal.connect(m_tls->registry->beginOfEventSignal_);
348  eventAction->m_endOfEventSignal.connect(m_tls->registry->endOfEventSignal_);
349 }
350 
352 {
353  trackingAction->m_beginOfTrackSignal.connect(m_tls->registry->beginOfTrackSignal_);
354  trackingAction->m_endOfTrackSignal.connect(m_tls->registry->endOfTrackSignal_);
355 }
356 
358 {
359  steppingAction->m_g4StepSignal.connect(m_tls->registry->g4StepSignal_);
360 }
361 
363  initializeTLS();
364  return m_tls->trackManager.get();
365 }
366 std::vector<SensitiveTkDetector*>& RunManagerMTWorker::sensTkDetectors() {
367  initializeTLS();
368  return m_tls->sensTkDets;
369 }
370 std::vector<SensitiveCaloDetector*>& RunManagerMTWorker::sensCaloDetectors() {
371  initializeTLS();
372  return m_tls->sensCaloDets;
373 }
374 std::vector<std::shared_ptr<SimProducer> > RunManagerMTWorker::producers() {
375  initializeTLS();
376  return m_tls->producers;
377 }
378 
380  m_tls->currentRun.reset(new G4Run());
381  G4StateManager::GetStateManager()->SetNewState(G4State_GeomClosed);
382  if (m_tls->userRunAction) { m_tls->userRunAction->BeginOfRunAction(m_tls->currentRun.get()); }
383 }
384 
386  if(!m_tls || m_tls->runTerminated) { return; }
387  if(m_tls->userRunAction) {
388  m_tls->userRunAction->EndOfRunAction(m_tls->currentRun.get());
389  m_tls->userRunAction.reset();
390  }
391  m_tls->currentEvent.reset();
392  m_simEvent.reset();
393 
394  if(m_tls->kernel) {
395  m_tls->kernel->RunTermination();
396  }
397 
398  m_tls->runTerminated = true;
399 }
400 
402  RunManagerMT& runManagerMaster) {
403  // The initialization and begin/end run is a bit convoluted due to
404  // - Geant4 deals per-thread
405  // - OscarMTProducer deals per-stream
406  // and framework/TBB is free to schedule work in streams to the
407  // threads as it likes.
408  //
409  // We have to do the per-thread initialization, and per-thread
410  // per-run initialization here by ourselves.
411 
412  if(!(m_tls && m_tls->threadInitialized)) {
413  LogDebug("SimG4CoreApplication")
414  << "RunManagerMTWorker::produce(): stream "
415  << inpevt.streamID() << " thread " << getThreadIndex() << " initializing";
416  initializeThread(runManagerMaster, es);
417  m_tls->threadInitialized = true;
418  }
419  // Initialize run
420  if(inpevt.id().run() != m_tls->currentRunNumber) {
421  if(m_tls->currentRunNumber != 0 && !m_tls->runTerminated) {
422  // If previous run in this thread was not terminated via endRun() call, terminate it now
423  terminateRun();
424  }
425  initializeRun();
426  m_tls->currentRunNumber = inpevt.id().run();
427  }
428  m_tls->runInterface->setRunManagerMTWorker(this); // For UserActions
429 
430  m_tls->currentEvent.reset(generateEvent(inpevt));
431 
432  m_simEvent.reset(new G4SimEvent());
433  m_simEvent->hepEvent(m_generator.genEvent());
435  if (m_generator.genVertex() != nullptr ) {
436  auto genVertex = m_generator.genVertex();
437  m_simEvent->collisionPoint(
438  math::XYZTLorentzVectorD(genVertex->x()/centimeter,
439  genVertex->y()/centimeter,
440  genVertex->z()/centimeter,
441  genVertex->t()/second));
442  }
443  if (m_tls->currentEvent->GetNumberOfPrimaryVertex()==0) {
444  std::stringstream ss;
445  ss << "RunManagerMTWorker::produce(): event " << inpevt.id().event()
446  << " with no G4PrimaryVertices \n" ;
447  throw SimG4Exception(ss.str());
448 
449  } else {
450  if(!m_tls->kernel) {
451  std::stringstream ss;
452  ss << " RunManagerMT::produce(): "
453  << " no G4WorkerRunManagerKernel yet for thread index"
454  << getThreadIndex() << ", id " << std::hex
455  << std::this_thread::get_id() << " \n";
456  throw SimG4Exception(ss.str());
457  }
458 
459  edm::LogVerbatim("SimG4CoreApplication")
460  << " RunManagerMTWorker::produce: start Event " << inpevt.id().event()
461  << " stream id " << inpevt.streamID()
462  << " thread index " << getThreadIndex()
463  << " of weight " << m_simEvent->weight()
464  << " with " << m_simEvent->nTracks() << " tracks and "
465  << m_simEvent->nVertices()
466  << " vertices, generated by " << m_simEvent->nGenParts() << " particles ";
467 
468  m_tls->kernel->GetEventManager()->ProcessOneEvent(m_tls->currentEvent.get());
469 
470  edm::LogVerbatim("SimG4CoreApplication")
471  << " RunManagerMTWorker::produce: ended Event " << inpevt.id().event();
472  }
473 }
474 
476  if(m_tls->runTerminated) { return; }
477  G4Track* t = m_tls->kernel->GetEventManager()->GetTrackingManager()->GetTrack();
478  t->SetTrackStatus(fStopAndKill) ;
479 
480  // CMS-specific act
481  //
482  TrackingAction* uta =
483  static_cast<TrackingAction *>(m_tls->kernel->GetEventManager()->GetUserTrackingAction());
484  uta->PostUserTrackingAction(t) ;
485 
486  m_tls->currentEvent->SetEventAborted();
487  m_tls->kernel->GetEventManager()->GetStackManager()->clear();
488  m_tls->kernel->GetEventManager()->GetTrackingManager()->EventAborted();
489 }
490 
491 void RunManagerMTWorker::abortRun(bool softAbort) {
492  if (!softAbort) { abortEvent(); }
493  m_tls->currentRun.reset();
494  terminateRun();
495 }
496 
498  m_tls->currentEvent.reset();
499  m_simEvent.reset();
500 
501  // 64 bits event ID in CMSSW converted into Geant4 event ID
502  G4int evtid = (G4int)inpevt.id().event();
503  G4Event * evt = new G4Event(evtid);
504 
506 
507  inpevt.getByToken(m_InToken, HepMCEvt);
508 
509  m_generator.setGenEvent(HepMCEvt->GetEvent());
510 
511  // required to reset the GenParticle Id for particles transported
512  // along the beam pipe
513  // to their original value for SimTrack creation
514  resetGenParticleId( inpevt );
515 
516  if (!m_nonBeam)
517  {
518  m_generator.HepMC2G4(HepMCEvt->GetEvent(),evt);
519  }
520  else
521  {
522  m_generator.nonBeamEvent2G4(HepMCEvt->GetEvent(),evt);
523  }
524 
525  return evt;
526 }
527 
529 {
531  inpevt.getByToken( m_theLHCTlinkToken, theLHCTlink );
532  if ( theLHCTlink.isValid() ) {
533  m_tls->trackManager->setLHCTransportLink( theLHCTlink.product() );
534  }
535 }
#define LogDebug(id)
RunNumber_t run() const
Definition: EventID.h:39
edm::ParameterSet m_pSteppingAction
T getParameter(std::string const &) const
EventNumber_t event() const
Definition: EventID.h:41
std::vector< std::shared_ptr< SimWatcher > > watchers
const SensitiveDetectorCatalog & catalog() const
Definition: RunManagerMT.h:77
T getUntrackedParameter(std::string const &, T const &) const
virtual const math::XYZTLorentzVector * genVertex() const
Definition: Generator.h:30
const double GeV
Definition: MathUtil.h:16
std::unique_ptr< G4Event > currentEvent
virtual const double eventWeight() const
Definition: Generator.h:31
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:14
def create(alignables, pedeDump, additionalData, outputFile, config)
virtual const HepMC::GenEvent * genEvent() const
Definition: Generator.h:29
SimActivityRegistry::G4StepSignal m_g4StepSignal
SimTrackManager * GetSimTrackManager()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:579
void HepMC2G4(const HepMC::GenEvent *g, G4Event *e)
Definition: Generator.cc:107
std::unique_ptr< SimRunInterface > runInterface
std::unique_ptr< CMSSteppingVerbose > m_sVerbose
SimActivityRegistry::EndOfRunSignal m_endOfRunSignal
Definition: RunAction.h:25
bool exists(std::string const &parameterName) const
checks if a parameter exists
std::vector< SensitiveTkDetector * > sensTkDets
SimActivityRegistry::EndOfEventSignal m_endOfEventSignal
Definition: EventAction.h:51
static void createWatchers(const edm::ParameterSet &iP, SimActivityRegistry &iReg, std::vector< std::shared_ptr< SimWatcher > > &oWatchers, std::vector< std::shared_ptr< SimProducer > > &oProds)
Definition: RunManager.cc:86
#define nullptr
edm::EDGetTokenT< edm::HepMCProduct > m_InToken
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
std::unique_ptr< G4RunManagerKernel > kernel
U second(std::pair< T, U > const &p)
std::unique_ptr< SimActivityRegistry > registry
edm::ParameterSet m_pEventAction
const DDDWorld & world() const
Definition: RunManagerMT.h:73
RunAction
list of unwanted particles (gluons and quarks)
std::unique_ptr< SimTrackManager > trackManager
std::unique_ptr< CustomUIsession > UIsession
std::unique_ptr< G4SimEvent > m_simEvent
static thread_local TLSData * m_tls
edm::ParameterSet m_pRunAction
std::vector< SensitiveCaloDetector * > sensCaloDets
std::vector< SensitiveTkDetector * > & sensTkDetectors()
void resetGenParticleId(const edm::Event &inpevt)
std::unique_ptr< RunAction > userRunAction
void initializeThread(RunManagerMT &runManagerMaster, const edm::EventSetup &es)
void setGenEvent(const HepMC::GenEvent *inpevt)
Definition: Generator.h:25
SimActivityRegistry::EndOfTrackSignal m_endOfTrackSignal
bool isValid() const
Definition: HandleBase.h:74
std::vector< std::shared_ptr< SimProducer > > producers
void abortRun(bool softAbort=false)
RunManagerMTWorker(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&i)
void connect(Observer< const T * > *iObs)
does not take ownership of memory
Definition: Signaler.h:59
PhysicsList * physicsListForWorker() const
Definition: RunManagerMT.h:88
const HepMC::GenEvent * GetEvent() const
Definition: HepMCProduct.h:38
std::pair< std::vector< SensitiveTkDetector * >, std::vector< SensitiveCaloDetector * > > create(const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *, SimActivityRegistry &reg) const
Definition: AttachSD.cc:17
T const * product() const
Definition: Handle.h:81
std::vector< SensitiveCaloDetector * > & sensCaloDetectors()
edm::ParameterSet m_pTrackingAction
void produce(const edm::Event &inpevt, const edm::EventSetup &es, RunManagerMT &runManagerMaster)
std::unique_ptr< G4Run > currentRun
edm::ParameterSet m_pField
G4VPhysicalVolume * GetWorldVolumeForWorker() const
Definition: DDDWorld.h:24
G4Event * generateEvent(const edm::Event &inpevt)
edm::EDGetTokenT< edm::LHCTransportLinkContainer > m_theLHCTlinkToken
void nonBeamEvent2G4(const HepMC::GenEvent *g, G4Event *e)
Definition: Generator.cc:572
list command
Definition: mps_check.py:24
static void WorkerSetAsWorld(G4VPhysicalVolume *pv)
Definition: DDDWorld.cc:38
SimActivityRegistry::BeginOfRunSignal m_beginOfRunSignal
Definition: RunAction.h:24
const std::vector< std::string > & G4Commands() const
Definition: RunManagerMT.h:81
edm::EventID id() const
Definition: EventBase.h:60
HLT enums.
edm::ParameterSet m_pCustomUIsession
std::vector< std::shared_ptr< SimProducer > > producers()
T get() const
Definition: EventSetup.h:68
StreamID streamID() const
Definition: Event.h:96
std::vector< LHCTransportLink > LHCTransportLinkContainer
void PostUserTrackingAction(const G4Track *aTrack) override
unsigned int RunNumber_t
edm::ParameterSet m_p
T const * product() const
Definition: ESHandle.h:84
SimActivityRegistry::BeginOfEventSignal m_beginOfEventSignal
Definition: EventAction.h:50
T get(const Candidate &c)
Definition: component.h:55
edm::ParameterSet m_pStackingAction
void Connect(RunAction *)
SimActivityRegistry::BeginOfTrackSignal m_beginOfTrackSignal