#include <SimG4Core/Notification/interface/Observer.h>
Public Member Functions | |
Observer () | |
void | slotForUpdate (T iT) |
virtual | ~Observer () |
Protected Member Functions | |
virtual void | update (T)=0 |
This routine will be called when the appropriate signal arrives. More... | |
Description: Adapts the COBRA signal handling for use in the OscarProducer
Usage: If a class that is loaded by OscarProducer, via its configuraiton file, inherits from Observer<T>, (e.g., Observer<const BeginOfTrack*>), the OscarProducer will make sure the appropriate signal is sent to an object of that class (e.g., the object will see the BeginOfTrack signal). To handle the signal the class must override the 'void update(T)' method (e.g., void update(const BeginOfTrack*)).
Definition at line 23 of file Observer.h.
Definition at line 25 of file Observer.h.
Definition at line 26 of file Observer.h.
This method is what is called when the signal is actually sent. The signal is not sent directly to 'update' because if we did 1) If the user did not declare 'update' to be 'public' then we get a compilation failure 2) we would not have a 'hook' to allow the 'pre' and 'post' functions to be called
Definition at line 33 of file Observer.h.
This routine will be called when the appropriate signal arrives.
Implemented in sim_act::Signaler< T >, CountProcessesAction, BscTest, FP420Test, CastorShowerLibraryMaker, HcalTB04Analysis, CastorTestAnalysis, ZdcTestAnalysis, DoCastorAnalysis, SimG4HGCalValidation, CaloSteppingAction, HcalForwardAnalysis, SimG4HcalValidation, HGCPassive, HcalTestAnalysis, CheckSecondary, SimG4FluxProducer, StoreSecondary, LaserAlignmentSimulation, G4StepStatistics, EcalTBH4Trigger, SimTracer, sim_act::Signaler< G4Step >, CaloTrkProcessing, TrackingVerboseAction, MaterialBudgetAction, TrackingMaterialProducer, EcalSimHitsValidProducer, GflashG4Watcher, MaterialBudget, MaterialBudgetForward, HGCalTBMB, MaterialBudgetHcal, MonopoleSteppingAction, BscTest, FP420Test, CaloSD, PrintTrackNumberAction, LaserAlignmentSimulation, sim_act::Signaler< EndOfTrack >, G4StepStatistics, SimTracer, MaterialBudgetAction, TrackingVerboseAction, TrackingMaterialProducer, MaterialBudget, MaterialBudgetForward, HGCalTBMB, MaterialBudgetHcal, RHStopTracer, CountProcessesAction, BscTest, FP420Test, CastorShowerLibraryMaker, CastorTestAnalysis, ZdcTestAnalysis, DoCastorAnalysis, LaserAlignmentSimulation, sim_act::Signaler< EndOfRun >, G4StepStatistics, SimTracer, MaterialBudgetAction, TrackingMaterialProducer, PrintTrackNumberAction, LaserAlignmentSimulation, G4StepStatistics, sim_act::Signaler< EndOfEvent >, BscTest, FP420Test, CastorShowerLibraryMaker, HcalTB04Analysis, CastorTestAnalysis, ZdcTestAnalysis, DoCastorAnalysis, CaloSteppingAction, HcalTB02Analysis, HcalForwardAnalysis, SimG4HcalValidation, TotemTestGem, HcalTestAnalysis, CheckSecondary, EcalTBH4Trigger, SimTracer, EcalSimHitsValidProducer, GflashG4Watcher, sim_act::Signaler< DDDWorld >, G4StepStatistics, SimTracer, BscTest, FP420Test, CaloSD, CheckSecondary, StoreSecondary, CountProcessesAction, SaveSimTrack, KillSecondariesTrackAction, LaserAlignmentSimulation, sim_act::Signaler< BeginOfTrack >, G4StepStatistics, SimTracer, TkAccumulatingSensitiveDetector, simwatcher::BeginOfTrackCounter, MaterialBudgetAction, TrackingVerboseAction, TrackingMaterialProducer, MaterialBudget, MaterialBudgetForward, HGCalTBMB, MaterialBudgetHcal, RHStopTracer, MonopoleSteppingAction, BscTest, FP420Test, CastorShowerLibraryMaker, HcalTB04Analysis, CastorTestAnalysis, ZdcTestAnalysis, DoCastorAnalysis, CaloSteppingAction, HcalForwardAnalysis, SimG4HcalValidation, HGCPassive, HcalTestAnalysis, SimG4FluxProducer, PrintMaterialBudgetInfo, PrintGeomSummary, CountProcessesAction, PrintGeomInfoAction, CheckOverlap, PrintSensitive, KillSecondariesRunAction, LaserAlignmentSimulation, sim_act::Signaler< BeginOfRun >, G4StepStatistics, CaloSD, FP420SD, SimTracer, FiberSD, MaterialBudgetAction, TrackingVerboseAction, MaterialBudget, MaterialBudgetForward, RHStopTracer, MonopoleSteppingAction, BscTest, FP420Test, CastorShowerLibraryMaker, CastorTestAnalysis, ZdcTestAnalysis, DoCastorAnalysis, HcalTestAnalysis, SimG4HGCalValidation, CaloSteppingAction, SimG4HcalValidation, PrintMaterialBudgetInfo, PrintGeomSummary, PrintGeomInfoAction, sim_act::Signaler< BeginOfJob >, G4StepStatistics, SimTracer, TkAccumulatingSensitiveDetector, HCalSD, FiberSD, TrackingMaterialProducer, HGCSD, HFNoseSD, HGCalSD, HGCScintSD, MaterialBudgetHcal, MonopoleSteppingAction, LaserAlignmentSimulation, sim_act::Signaler< BeginOfEvent >, BscTest, FP420Test, CastorShowerLibraryMaker, HcalTB04Analysis, CastorTestAnalysis, ZdcTestAnalysis, DoCastorAnalysis, SimG4HGCalValidation, HcalTB02Analysis, CaloSteppingAction, HcalForwardAnalysis, SimG4HcalValidation, HGCPassive, CaloTrkProcessing, TotemTestGem, HcalTestAnalysis, SimG4FluxProducer, CheckSecondary, StoreSecondary, EcalTBH4Trigger, G4StepStatistics, CaloSD, FP420SD, SimTracer, PPSPixelSD, TotemSD, MuonSensitiveDetector, PPSDiamondSD, TkAccumulatingSensitiveDetector, FiberSD, TotemRPSD, TimingSD, TrackingVerboseAction, TrackingMaterialProducer, EcalSimHitsValidProducer, GflashG4Watcher, and RHStopTracer.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), MatrixUtil.Steps::overwrite(), and Observer< const DDDWorld * >::slotForUpdate().