CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
RunManagerMTWorker Class Reference

#include <RunManagerMTWorker.h>

Classes

struct  TLSData
 

Public Member Functions

void abortEvent ()
 
void abortRun (bool softAbort=false)
 
void beginRun (const RunManagerMT &runManagerMaster, const edm::EventSetup &es)
 
void Connect (RunAction *)
 
void Connect (EventAction *)
 
void Connect (TrackingAction *)
 
void Connect (SteppingAction *)
 
void endRun ()
 
SimTrackManagerGetSimTrackManager ()
 
void produce (const edm::Event &inpevt, const edm::EventSetup &es, const RunManagerMT &runManagerMaster)
 
std::vector< std::shared_ptr
< SimProducer > > 
producers ()
 
 RunManagerMTWorker (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&i)
 
std::vector
< SensitiveCaloDetector * > & 
sensCaloDetectors ()
 
std::vector
< SensitiveTkDetector * > & 
sensTkDetectors ()
 
G4SimEventsimEvent ()
 
 ~RunManagerMTWorker ()
 

Private Member Functions

G4Event * generateEvent (const edm::Event &inpevt)
 
void initializeRun ()
 
void initializeThread (const RunManagerMT &runManagerMaster, const edm::EventSetup &es)
 
void initializeTLS ()
 
void initializeUserActions ()
 
void resetGenParticleId (const edm::Event &inpevt)
 
void terminateRun ()
 

Private Attributes

const int m_EvtMgrVerbosity
 
Generator m_generator
 
edm::EDGetTokenT
< edm::HepMCProduct
m_InToken
 
const bool m_nonBeam
 
edm::ParameterSet m_p
 
edm::ParameterSet m_pCustomUIsession
 
edm::ParameterSet m_pEventAction
 
edm::ParameterSet m_pField
 
edm::ParameterSet m_pRunAction
 
edm::ParameterSet m_pStackingAction
 
edm::ParameterSet m_pSteppingAction
 
edm::ParameterSet m_pTrackingAction
 
const bool m_pUseMagneticField
 
std::unique_ptr< G4SimEventm_simEvent
 
edm::EDGetTokenT
< edm::LHCTransportLinkContainer
m_theLHCTlinkToken
 

Static Private Attributes

static thread_local TLSDatam_tls = 0
 

Detailed Description

Definition at line 38 of file RunManagerMTWorker.h.

Constructor & Destructor Documentation

RunManagerMTWorker::RunManagerMTWorker ( const edm::ParameterSet iConfig,
edm::ConsumesCollector &&  i 
)

Definition at line 130 of file RunManagerMTWorker.cc.

RunManagerMTWorker::~RunManagerMTWorker ( )

Definition at line 149 of file RunManagerMTWorker.cc.

Member Function Documentation

void RunManagerMTWorker::abortEvent ( )

Definition at line 444 of file RunManagerMTWorker.cc.

Referenced by SimRunInterface::abortEvent().

void RunManagerMTWorker::abortRun ( bool  softAbort = false)

Definition at line 476 of file RunManagerMTWorker.cc.

Referenced by SimRunInterface::abortRun().

void RunManagerMTWorker::beginRun ( const RunManagerMT runManagerMaster,
const edm::EventSetup es 
)
void RunManagerMTWorker::Connect ( RunAction runAction)

Definition at line 317 of file RunManagerMTWorker.cc.

Referenced by SimRunInterface::Connect().

void RunManagerMTWorker::Connect ( EventAction eventAction)

Definition at line 323 of file RunManagerMTWorker.cc.

void RunManagerMTWorker::Connect ( TrackingAction trackingAction)

Definition at line 329 of file RunManagerMTWorker.cc.

void RunManagerMTWorker::Connect ( SteppingAction steppingAction)

Definition at line 335 of file RunManagerMTWorker.cc.

void RunManagerMTWorker::endRun ( void  )

Definition at line 156 of file RunManagerMTWorker.cc.

G4Event * RunManagerMTWorker::generateEvent ( const edm::Event inpevt)
private

Definition at line 482 of file RunManagerMTWorker.cc.

SimTrackManager * RunManagerMTWorker::GetSimTrackManager ( )

Definition at line 340 of file RunManagerMTWorker.cc.

Referenced by SimRunInterface::SimRunInterface().

void RunManagerMTWorker::initializeRun ( )
private

Definition at line 358 of file RunManagerMTWorker.cc.

void RunManagerMTWorker::initializeThread ( const RunManagerMT runManagerMaster,
const edm::EventSetup es 
)
private

Definition at line 179 of file RunManagerMTWorker.cc.

void RunManagerMTWorker::initializeTLS ( )
private

Definition at line 160 of file RunManagerMTWorker.cc.

void RunManagerMTWorker::initializeUserActions ( )
private

Definition at line 287 of file RunManagerMTWorker.cc.

void RunManagerMTWorker::produce ( const edm::Event inpevt,
const edm::EventSetup es,
const RunManagerMT runManagerMaster 
)

Definition at line 379 of file RunManagerMTWorker.cc.

std::vector< std::shared_ptr< SimProducer > > RunManagerMTWorker::producers ( )

Definition at line 352 of file RunManagerMTWorker.cc.

void RunManagerMTWorker::resetGenParticleId ( const edm::Event inpevt)
private

Definition at line 513 of file RunManagerMTWorker.cc.

std::vector< SensitiveCaloDetector * > & RunManagerMTWorker::sensCaloDetectors ( )

Definition at line 348 of file RunManagerMTWorker.cc.

std::vector< SensitiveTkDetector * > & RunManagerMTWorker::sensTkDetectors ( )

Definition at line 344 of file RunManagerMTWorker.cc.

G4SimEvent* RunManagerMTWorker::simEvent ( )
inline

Definition at line 51 of file RunManagerMTWorker.h.

References m_simEvent.

Referenced by SimRunInterface::simEvent().

51 { return m_simEvent.get(); }
std::unique_ptr< G4SimEvent > m_simEvent
void RunManagerMTWorker::terminateRun ( )
private

Definition at line 364 of file RunManagerMTWorker.cc.

Member Data Documentation

const int RunManagerMTWorker::m_EvtMgrVerbosity
private

Definition at line 78 of file RunManagerMTWorker.h.

Generator RunManagerMTWorker::m_generator
private

Definition at line 73 of file RunManagerMTWorker.h.

edm::EDGetTokenT<edm::HepMCProduct> RunManagerMTWorker::m_InToken
private

Definition at line 74 of file RunManagerMTWorker.h.

const bool RunManagerMTWorker::m_nonBeam
private

Definition at line 76 of file RunManagerMTWorker.h.

edm::ParameterSet RunManagerMTWorker::m_p
private

Definition at line 86 of file RunManagerMTWorker.h.

edm::ParameterSet RunManagerMTWorker::m_pCustomUIsession
private

Definition at line 85 of file RunManagerMTWorker.h.

edm::ParameterSet RunManagerMTWorker::m_pEventAction
private

Definition at line 81 of file RunManagerMTWorker.h.

edm::ParameterSet RunManagerMTWorker::m_pField
private

Definition at line 79 of file RunManagerMTWorker.h.

edm::ParameterSet RunManagerMTWorker::m_pRunAction
private

Definition at line 80 of file RunManagerMTWorker.h.

edm::ParameterSet RunManagerMTWorker::m_pStackingAction
private

Definition at line 82 of file RunManagerMTWorker.h.

edm::ParameterSet RunManagerMTWorker::m_pSteppingAction
private

Definition at line 84 of file RunManagerMTWorker.h.

edm::ParameterSet RunManagerMTWorker::m_pTrackingAction
private

Definition at line 83 of file RunManagerMTWorker.h.

const bool RunManagerMTWorker::m_pUseMagneticField
private

Definition at line 77 of file RunManagerMTWorker.h.

std::unique_ptr<G4SimEvent> RunManagerMTWorker::m_simEvent
private

Definition at line 91 of file RunManagerMTWorker.h.

Referenced by simEvent().

edm::EDGetTokenT<edm::LHCTransportLinkContainer> RunManagerMTWorker::m_theLHCTlinkToken
private

Definition at line 75 of file RunManagerMTWorker.h.

thread_local RunManagerMTWorker::TLSData * RunManagerMTWorker::m_tls = 0
staticprivate

Definition at line 88 of file RunManagerMTWorker.h.