CMS 3D CMS Logo

Observer< T > Class Template Reference

Description: Adapts the COBRA signal handling for use in the OscarProducer. More...

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

List of all members.

Public Member Functions

 Observer ()
void slotForUpdate (T iT)
 This method is what is called when the signal is actually sent.
virtual ~Observer ()

Protected Member Functions

virtual void update (T)=0
 This routine will be called when the appropriate signal arrives.


Detailed Description

template<class T>
class Observer< T >

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 25 of file Observer.h.


Constructor & Destructor Documentation

template<class T>
Observer< T >::Observer (  )  [inline]

Definition at line 28 of file Observer.h.

00028 {}

template<class T>
virtual Observer< T >::~Observer (  )  [inline, virtual]

Definition at line 29 of file Observer.h.

00029 {}


Member Function Documentation

template<class T>
void Observer< T >::slotForUpdate ( iT  )  [inline]

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 36 of file Observer.h.

00036                              {
00037        update(iT);
00038     }

template<class T>
virtual void Observer< T >::update (  )  [protected, pure virtual]

This routine will be called when the appropriate signal arrives.

Implemented in LaserAlignmentSimulation, LaserAlignmentSimulation, LaserAlignmentSimulation, LaserAlignmentSimulation, LaserAlignmentSimulation, LaserAlignmentSimulation, LaserAlignmentSimulation, CaloSD, CaloSD, CaloSD, CaloTrkProcessing, CaloTrkProcessing, HcalTestAnalysis, HcalTestAnalysis, HcalTestAnalysis, HcalTestAnalysis, HcalTestAnalysis, BscSD, BscSD, BscTest, BscTest, BscTest, BscTest, BscTest, BscTest, BscTest, BscTest, CastorTestAnalysis, CastorTestAnalysis, CastorTestAnalysis, CastorTestAnalysis, CastorTestAnalysis, CastorTestAnalysis, TotemSD, TotemTestGem, TotemTestGem, ZdcTestAnalysis, ZdcTestAnalysis, ZdcTestAnalysis, ZdcTestAnalysis, ZdcTestAnalysis, ZdcTestAnalysis, FP420SD, FP420SD, FP420Test, FP420Test, FP420Test, FP420Test, FP420Test, FP420Test, FP420Test, FP420Test, HcalTB02Analysis, HcalTB02Analysis, HcalTB04Analysis, HcalTB04Analysis, HcalTB04Analysis, HcalTB04Analysis, HcalTB06Analysis, HcalTB06Analysis, HcalTB06Analysis, HcalTB06Analysis, MuonSensitiveDetector, TkAccumulatingSensitiveDetector, TkAccumulatingSensitiveDetector, TkAccumulatingSensitiveDetector, CheckSecondary, CheckSecondary, CheckSecondary, CheckSecondary, StoreSecondary, StoreSecondary, StoreSecondary, CountProcessesAction, CountProcessesAction, CountProcessesAction, CountProcessesAction, GflashG4Watcher, GflashG4Watcher, GflashG4Watcher, simwatcher::BeginOfTrackCounter, KillSecondariesRunAction, KillSecondariesTrackAction, sim_act::Signaler< T >, PrintGeomInfoAction, PrintGeomInfoAction, PrintMaterialBudgetInfo, PrintMaterialBudgetInfo, PrintSensitive, PrintTrackNumberAction, PrintTrackNumberAction, SaveSimTrack, TrackingVerboseAction, TrackingVerboseAction, TrackingVerboseAction, TrackingVerboseAction, TrackingMaterialProducer, TrackingMaterialProducer, TrackingMaterialProducer, TrackingMaterialProducer, TrackingMaterialProducer, CheckOverlap, EcalSimHitsValidProducer, EcalSimHitsValidProducer, EcalSimHitsValidProducer, MaterialBudgetAction, MaterialBudgetAction, MaterialBudgetAction, MaterialBudgetAction, MaterialBudgetAction, MaterialBudgetHcal, MaterialBudgetHcal, MaterialBudgetHcal, MaterialBudgetHcal, SimG4HcalValidation, SimG4HcalValidation, SimG4HcalValidation, SimG4HcalValidation, SimG4HcalValidation, VisG4EventStatus, VisG4EventTwig, VisG4TracksTwig, VisG4TracksTwig, VisG4TracksTwig, VisG4TracksTwig, VisSimProcessor, and VisSimProcessor.

Referenced by Observer< const DDDWorld * >::slotForUpdate().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:29:09 2009 for CMSSW by  doxygen 1.5.4