#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 G4StepStatistics, G4StepStatistics, G4StepStatistics, G4StepStatistics, G4StepStatistics, G4StepStatistics, G4StepStatistics, G4StepStatistics, G4StepStatistics, BscTest, BscTest, CastorShowerLibraryMaker, BscTest, CastorShowerLibraryMaker, BscTest, CastorShowerLibraryMaker, BscTest, CastorShowerLibraryMaker, BscTest, CastorShowerLibraryMaker, BscTest, CastorShowerLibraryMaker, BscTest, FP420Test, FP420Test, FP420Test, FP420Test, FP420Test, FP420Test, FP420Test, FP420Test, CaloSD, CaloSD, CaloSD, CaloSD, HcalTB04Analysis, HcalTB04Analysis, HcalTB04Analysis, HcalTB04Analysis, CaloSteppingAction, CaloSteppingAction, SimTracer, CaloSteppingAction, DoCastorAnalysis, SimTracer, CaloSteppingAction, DoCastorAnalysis, SimTracer, CastorTestAnalysis, DoCastorAnalysis, CastorTestAnalysis, DoCastorAnalysis, CastorTestAnalysis, DoCastorAnalysis, CastorTestAnalysis, DoCastorAnalysis, CastorTestAnalysis, CastorTestAnalysis, ZdcTestAnalysis, ZdcTestAnalysis, ZdcTestAnalysis, HcalTB02Analysis, ZdcTestAnalysis, HcalTB02Analysis, ZdcTestAnalysis, SimTracer, SimG4HcalValidation, LaserAlignmentSimulation, ZdcTestAnalysis, HcalForwardAnalysis, SimTracer, SimG4HcalValidation, HcalForwardAnalysis, SimTracer, SimG4HcalValidation, LaserAlignmentSimulation, FP420SD, HcalForwardAnalysis, SimTracer, SimG4HcalValidation, SimG4HGCalValidation, FP420SD, HcalForwardAnalysis, SimTracer, SimG4HGCalValidation, LaserAlignmentSimulation, PPSPixelSD, SimTracer, LaserAlignmentSimulation, CaloTrkProcessing, sim_act::Signaler< T >, sim_act::Signaler< G4Step >, sim_act::Signaler< EndOfEvent >, sim_act::Signaler< BeginOfRun >, sim_act::Signaler< BeginOfEvent >, sim_act::Signaler< BeginOfTrack >, sim_act::Signaler< DDDWorld >, sim_act::Signaler< BeginOfJob >, sim_act::Signaler< EndOfRun >, sim_act::Signaler< EndOfTrack >, CaloTrkProcessing, MaterialBudgetHcalProducer, LaserAlignmentSimulation, TotemSD, MaterialBudgetHcalProducer, MaterialBudgetHcalProducer, MaterialBudgetVolume, LaserAlignmentSimulation, HcalTestAnalysis, MaterialBudgetHcalProducer, MaterialBudgetVolume, HcalTestAnalysis, TkAccumulatingSensitiveDetector, MaterialBudgetVolume, LaserAlignmentSimulation, HcalTestAnalysis, EcalTBH4Trigger, MuonSensitiveDetector, TkAccumulatingSensitiveDetector, MaterialBudgetVolume, HCalSD, HcalTestAnalysis, EcalTBH4Trigger, FiberSD, TkAccumulatingSensitiveDetector, MaterialBudgetVolume, EcalTBH4Trigger, TotemTestGem, FiberSD, TotemTestGem, FiberSD, PrintGeomInfoAction, HGCPassive, simwatcher::BeginOfTrackCounter, MaterialBudgetAction, SimG4FluxProducer, HGCPassive, MaterialBudgetAction, SimG4FluxProducer, HGCPassive, TrackingVerboseAction, TrackingMaterialProducer, MaterialBudgetAction, SimG4FluxProducer, PPSDiamondSD, PrintMaterialBudgetInfo, TrackingVerboseAction, TrackingMaterialProducer, MaterialBudgetAction, TotemRPSD, PrintMaterialBudgetInfo, TrackingVerboseAction, TrackingMaterialProducer, MaterialBudgetAction, TrackingVerboseAction, TrackingMaterialProducer, PrintGeomSummary, TrackingVerboseAction, TrackingMaterialProducer, TimingSD, TrackingMaterialProducer, CheckSecondary, EcalSimHitsValidProducer, CheckSecondary, EcalSimHitsValidProducer, CheckSecondary, EcalSimHitsValidProducer, CheckSecondary, GflashG4Watcher, MaterialBudget, MaterialBudgetForward, GflashG4Watcher, MaterialBudget, MaterialBudgetForward, HGCalTBMBProducer, GflashG4Watcher, MaterialBudget, MaterialBudgetForward, HGCalTBMB, HGCalTBMBProducer, MaterialBudget, MaterialBudgetForward, MaterialBudgetHcal, HGCSD, HGCalTBMB, HGCalTBMBProducer, MaterialBudgetHcal, HGCalTBMB, StoreSecondary, MaterialBudgetHcal, HFNoseSD, HGCalSD, StoreSecondary, HGCScintSD, StoreSecondary, CountProcessesAction, CountProcessesAction, CountProcessesAction, CountProcessesAction, RHStopTracer, RHStopTracer, RHStopTracer, MonopoleSteppingAction, RHStopTracer, MonopoleSteppingAction, MonopoleSteppingAction, CheckOverlap, PrintSensitive, PrintTrackNumberAction, PrintTrackNumberAction, SaveSimTrack, KillSecondariesRunAction, and KillSecondariesTrackAction.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), MatrixUtil.Steps::overwrite(), and Observer< const BeginOfEvent *>::slotForUpdate().