CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes | Private Member Functions
SimActivityRegistry Class Reference

#include <SimG4Core/Notification/interface/SimActivityRegistry.h>

Public Types

typedef sim_act::Signaler< BeginOfEventBeginOfEventSignal
 
typedef sim_act::Signaler< BeginOfJobBeginOfJobSignal
 
typedef sim_act::Signaler< BeginOfRunBeginOfRunSignal
 
typedef sim_act::Signaler< BeginOfTrackBeginOfTrackSignal
 
typedef sim_act::Signaler< DDDWorldDDDWorldSignal
 
typedef sim_act::Signaler< EndOfEventEndOfEventSignal
 
typedef sim_act::Signaler< EndOfRunEndOfRunSignal
 
typedef sim_act::Signaler< EndOfTrackEndOfTrackSignal
 
typedef sim_act::Signaler< G4Step > G4StepSignal
 

Public Member Functions

void connect (Observer< const BeginOfEvent * > *iObject)
 
void connect (Observer< const BeginOfJob * > *iObject)
 
void connect (Observer< const BeginOfRun * > *iObject)
 
void connect (Observer< const BeginOfTrack * > *iObject)
 
void connect (Observer< const DDDWorld * > *iObject)
 
void connect (Observer< const EndOfEvent * > *iObject)
 
void connect (Observer< const EndOfRun * > *iObject)
 
void connect (Observer< const EndOfTrack * > *iObject)
 
void connect (Observer< const G4Step * > *iObject)
 
void connect (SimActivityRegistry &iOther)
 forwards our signals to slots connected to iOther More...
 
 SimActivityRegistry ()
 
void watchBeginOfEvent (const BeginOfEventSignal::slot_type &iSlot)
 
void watchBeginOfJob (const BeginOfJobSignal::slot_type &iSlot)
 
void watchBeginOfRun (const BeginOfRunSignal::slot_type &iSlot)
 
void watchBeginOfTrack (const BeginOfTrackSignal::slot_type &iSlot)
 
void watchDDDWorld (const DDDWorldSignal::slot_type &iSlot)
 
void watchEndOfEvent (const EndOfEventSignal::slot_type &iSlot)
 
void watchEndOfRun (const EndOfRunSignal::slot_type &iSlot)
 
void watchEndOfTrack (const EndOfTrackSignal::slot_type &iSlot)
 
void watchG4Step (const G4StepSignal::slot_type &iSlot)
 

Public Attributes

BeginOfEventSignal beginOfEventSignal_
 
BeginOfJobSignal beginOfJobSignal_
 
BeginOfRunSignal beginOfRunSignal_
 
BeginOfTrackSignal beginOfTrackSignal_
 
DDDWorldSignal dddWorldSignal_
 
EndOfEventSignal endOfEventSignal_
 
EndOfRunSignal endOfRunSignal_
 
EndOfTrackSignal endOfTrackSignal_
 
G4StepSignal g4StepSignal_
 

Private Member Functions

const SimActivityRegistryoperator= (const SimActivityRegistry &)=delete
 
 SimActivityRegistry (const SimActivityRegistry &)=delete
 

Detailed Description

Description: Holds the various signals emitted in the simulation framework

Usage: <usage>

Definition at line 43 of file SimActivityRegistry.h.

Member Typedef Documentation

◆ BeginOfEventSignal

Definition at line 63 of file SimActivityRegistry.h.

◆ BeginOfJobSignal

Definition at line 48 of file SimActivityRegistry.h.

◆ BeginOfRunSignal

Definition at line 58 of file SimActivityRegistry.h.

◆ BeginOfTrackSignal

Definition at line 68 of file SimActivityRegistry.h.

◆ DDDWorldSignal

Definition at line 53 of file SimActivityRegistry.h.

◆ EndOfEventSignal

Definition at line 83 of file SimActivityRegistry.h.

◆ EndOfRunSignal

Definition at line 78 of file SimActivityRegistry.h.

◆ EndOfTrackSignal

Definition at line 88 of file SimActivityRegistry.h.

◆ G4StepSignal

Definition at line 73 of file SimActivityRegistry.h.

Constructor & Destructor Documentation

◆ SimActivityRegistry() [1/2]

SimActivityRegistry::SimActivityRegistry ( )
inline

Definition at line 45 of file SimActivityRegistry.h.

45 {}

◆ SimActivityRegistry() [2/2]

SimActivityRegistry::SimActivityRegistry ( const SimActivityRegistry )
privatedelete

Member Function Documentation

◆ connect() [1/10]

void SimActivityRegistry::connect ( Observer< const BeginOfEvent * > *  iObject)
inline

Definition at line 66 of file SimActivityRegistry.h.

Referenced by o2o_db_cfgmap.DbManagerDAQ::update_hashmap().

◆ connect() [2/10]

void SimActivityRegistry::connect ( Observer< const BeginOfJob * > *  iObject)
inline

◆ connect() [3/10]

void SimActivityRegistry::connect ( Observer< const BeginOfRun * > *  iObject)
inline

Definition at line 61 of file SimActivityRegistry.h.

Referenced by o2o_db_cfgmap.DbManagerDAQ::update_hashmap().

◆ connect() [4/10]

void SimActivityRegistry::connect ( Observer< const BeginOfTrack * > *  iObject)
inline

Definition at line 71 of file SimActivityRegistry.h.

Referenced by o2o_db_cfgmap.DbManagerDAQ::update_hashmap().

◆ connect() [5/10]

void SimActivityRegistry::connect ( Observer< const DDDWorld * > *  iObject)
inline

Definition at line 56 of file SimActivityRegistry.h.

Referenced by o2o_db_cfgmap.DbManagerDAQ::update_hashmap().

◆ connect() [6/10]

void SimActivityRegistry::connect ( Observer< const EndOfEvent * > *  iObject)
inline

Definition at line 86 of file SimActivityRegistry.h.

Referenced by o2o_db_cfgmap.DbManagerDAQ::update_hashmap().

◆ connect() [7/10]

void SimActivityRegistry::connect ( Observer< const EndOfRun * > *  iObject)
inline

Definition at line 81 of file SimActivityRegistry.h.

Referenced by o2o_db_cfgmap.DbManagerDAQ::update_hashmap().

◆ connect() [8/10]

void SimActivityRegistry::connect ( Observer< const EndOfTrack * > *  iObject)
inline

Definition at line 91 of file SimActivityRegistry.h.

96 :
97  SimActivityRegistry(const SimActivityRegistry&) = delete; // stop default

Referenced by o2o_db_cfgmap.DbManagerDAQ::update_hashmap().

◆ connect() [9/10]

void SimActivityRegistry::connect ( Observer< const G4Step * > *  iObject)
inline

Definition at line 76 of file SimActivityRegistry.h.

Referenced by o2o_db_cfgmap.DbManagerDAQ::update_hashmap().

◆ connect() [10/10]

void SimActivityRegistry::connect ( SimActivityRegistry iOther)

◆ operator=()

const SimActivityRegistry& SimActivityRegistry::operator= ( const SimActivityRegistry )
privatedelete

◆ watchBeginOfEvent()

void SimActivityRegistry::watchBeginOfEvent ( const BeginOfEventSignal::slot_type iSlot)
inline

Definition at line 65 of file SimActivityRegistry.h.

65 { beginOfEventSignal_.connect(iSlot); }

References beginOfEventSignal_, and sim_act::Signaler< T >::connect().

◆ watchBeginOfJob()

void SimActivityRegistry::watchBeginOfJob ( const BeginOfJobSignal::slot_type iSlot)
inline

Definition at line 50 of file SimActivityRegistry.h.

50 { beginOfJobSignal_.connect(iSlot); }

References beginOfJobSignal_, and sim_act::Signaler< T >::connect().

◆ watchBeginOfRun()

void SimActivityRegistry::watchBeginOfRun ( const BeginOfRunSignal::slot_type iSlot)
inline

Definition at line 60 of file SimActivityRegistry.h.

60 { beginOfRunSignal_.connect(iSlot); }

References beginOfRunSignal_, and sim_act::Signaler< T >::connect().

◆ watchBeginOfTrack()

void SimActivityRegistry::watchBeginOfTrack ( const BeginOfTrackSignal::slot_type iSlot)
inline

Definition at line 70 of file SimActivityRegistry.h.

70 { beginOfTrackSignal_.connect(iSlot); }

References beginOfTrackSignal_, and sim_act::Signaler< T >::connect().

◆ watchDDDWorld()

void SimActivityRegistry::watchDDDWorld ( const DDDWorldSignal::slot_type iSlot)
inline

Definition at line 55 of file SimActivityRegistry.h.

55 { dddWorldSignal_.connect(iSlot); }

References sim_act::Signaler< T >::connect(), and dddWorldSignal_.

◆ watchEndOfEvent()

void SimActivityRegistry::watchEndOfEvent ( const EndOfEventSignal::slot_type iSlot)
inline

Definition at line 85 of file SimActivityRegistry.h.

85 { endOfEventSignal_.connect(iSlot); }

References sim_act::Signaler< T >::connect(), and endOfEventSignal_.

◆ watchEndOfRun()

void SimActivityRegistry::watchEndOfRun ( const EndOfRunSignal::slot_type iSlot)
inline

Definition at line 80 of file SimActivityRegistry.h.

80 { endOfRunSignal_.connect(iSlot); }

References sim_act::Signaler< T >::connect(), and endOfRunSignal_.

◆ watchEndOfTrack()

void SimActivityRegistry::watchEndOfTrack ( const EndOfTrackSignal::slot_type iSlot)
inline

Definition at line 90 of file SimActivityRegistry.h.

90 { endOfTrackSignal_.connect(iSlot); }

References sim_act::Signaler< T >::connect(), and endOfTrackSignal_.

◆ watchG4Step()

void SimActivityRegistry::watchG4Step ( const G4StepSignal::slot_type iSlot)
inline

Definition at line 75 of file SimActivityRegistry.h.

75 { g4StepSignal_.connect(iSlot); }

References sim_act::Signaler< T >::connect(), and g4StepSignal_.

Member Data Documentation

◆ beginOfEventSignal_

BeginOfEventSignal SimActivityRegistry::beginOfEventSignal_

Definition at line 64 of file SimActivityRegistry.h.

Referenced by RunManager::Connect(), connect(), and watchBeginOfEvent().

◆ beginOfJobSignal_

BeginOfJobSignal SimActivityRegistry::beginOfJobSignal_

Definition at line 49 of file SimActivityRegistry.h.

Referenced by connect(), RunManager::initG4(), and watchBeginOfJob().

◆ beginOfRunSignal_

BeginOfRunSignal SimActivityRegistry::beginOfRunSignal_

◆ beginOfTrackSignal_

BeginOfTrackSignal SimActivityRegistry::beginOfTrackSignal_

Definition at line 69 of file SimActivityRegistry.h.

Referenced by RunManager::Connect(), connect(), and watchBeginOfTrack().

◆ dddWorldSignal_

DDDWorldSignal SimActivityRegistry::dddWorldSignal_

◆ endOfEventSignal_

EndOfEventSignal SimActivityRegistry::endOfEventSignal_

Definition at line 84 of file SimActivityRegistry.h.

Referenced by RunManager::Connect(), connect(), and watchEndOfEvent().

◆ endOfRunSignal_

EndOfRunSignal SimActivityRegistry::endOfRunSignal_

◆ endOfTrackSignal_

EndOfTrackSignal SimActivityRegistry::endOfTrackSignal_

Definition at line 89 of file SimActivityRegistry.h.

Referenced by RunManager::Connect(), connect(), and watchEndOfTrack().

◆ g4StepSignal_

G4StepSignal SimActivityRegistry::g4StepSignal_

Definition at line 74 of file SimActivityRegistry.h.

Referenced by RunManager::Connect(), connect(), and watchG4Step().

SimActivityRegistry::endOfEventSignal_
EndOfEventSignal endOfEventSignal_
Definition: SimActivityRegistry.h:84
SimActivityRegistry::dddWorldSignal_
DDDWorldSignal dddWorldSignal_
Definition: SimActivityRegistry.h:54
SimActivityRegistry::g4StepSignal_
G4StepSignal g4StepSignal_
Definition: SimActivityRegistry.h:74
sim_act::Signaler::connect
void connect(Observer< const T * > *iObs)
does not take ownership of memory
Definition: Signaler.h:55
SimActivityRegistry::endOfTrackSignal_
EndOfTrackSignal endOfTrackSignal_
Definition: SimActivityRegistry.h:89
SimActivityRegistry::SimActivityRegistry
SimActivityRegistry()
Definition: SimActivityRegistry.h:45
SimActivityRegistry::beginOfEventSignal_
BeginOfEventSignal beginOfEventSignal_
Definition: SimActivityRegistry.h:64
SimActivityRegistry::endOfRunSignal_
EndOfRunSignal endOfRunSignal_
Definition: SimActivityRegistry.h:79
SimActivityRegistry::beginOfJobSignal_
BeginOfJobSignal beginOfJobSignal_
Definition: SimActivityRegistry.h:49
SimActivityRegistry::beginOfTrackSignal_
BeginOfTrackSignal beginOfTrackSignal_
Definition: SimActivityRegistry.h:69
SimActivityRegistry
Definition: SimActivityRegistry.h:43
SimActivityRegistry::beginOfRunSignal_
BeginOfRunSignal beginOfRunSignal_
Definition: SimActivityRegistry.h:59