CMS 3D CMS Logo

VisEventObserver Class Reference

#include <VisFramework/VisFrameworkBase/interface/VisEventObserver.h>

Inheritance diagram for VisEventObserver:

VisEventSetupService VisQueuedTwig VisBasicClusterCollectionTwig VisBasicClusterTwig VisCaloGeometryTwig VisCaloJetTwig VisCaloMETTwig VisCaloTowerTwig VisCandidateTwig VisCSCALCTDigiTwig VisCSCCLCTDigiTwig VisCSCComparatorDigiTwig VisCSCCorrelatedLCTDigiTwig VisCSCGeometryTwig VisCSCRecHit2DTwig VisCSCRPCDigiTwig VisCSCSeg2HETwig VisCSCSegmentTwig VisCSCStripDigiTwig VisCSCWireDigiTwig VisCuTkGeometryTwig VisDT2DSegmentTwig VisDT4DSegmentTwig VisDTDigiTwig VisDTGeometryTwig VisDTRecHitsTwig VisEcalRecHitTwig VisEcalUncalibratedRecHitTwig VisEventIdTwig VisFEDRawDataCollectionTwig VisG4EventTwig VisG4TrackPtTwig VisG4TracksTwig VisGenJetCollectionTwig VisGenJetTwig VisGenMETTwig VisGsfPFRecTrackTwig VisGsfTrackTwig VisHBHERecHitTwig VisHcalDetTwig VisHepMCProductTwig VisHFDataFrameTwig VisHFRecHitTwig VisHORecHitTwig VisJetTagTwig VisL1GlobalTriggerReadoutRecordTwig VisL1MuDTChambPhContainerTwig VisL1MuDTChambThContainerTwig VisL1MuDTTrackContainerTwig VisMETTwig VisMuonEnergyTwig VisMuonTwig VisPCaloHitTwig VisPFClusterTwig VisPFRecHitTwig VisPFRecTrackTwig VisPixelDigiTwig VisPSimHitTwig VisRecoToolsTwig VisRefitTrackTwig VisRPCDigiTwig VisRPCGeometryTwig VisRPCRecHitTwig VisSimTrackTwig VisSimVertexTwig VisSuperClusterCollectionTwig VisSuperClusterTwig VisTkIdealHelixTracksTwig VisTkRecTrackDetsTwig VisTkRecTracksTwig VisTkSimHitTwig VisTkSimTrackTwig VisTrackerClusterTwig VisTrackerDigiTwig VisTrackerGeometryTwig VisTrackerPiClusterTwig VisTrackerPiDigiTwig VisTrackerPiRechitTwig VisTrackerRechit2DMatchedTwig VisTrackerRechit2DTwig VisTrackingParticleTwig VisTrackingRecHitTwig VisTrackTwig VisTrajectorySeedTwig VisTriggerResultsTwig

List of all members.

Public Member Functions

void init (void)
virtual void onNewEvent (const edm::Event &event, const edm::EventSetup &eventSetup)=0
 VisEventObserver (IgState *state)
virtual ~VisEventObserver (void)

Private Attributes

sigc::connection m_connection
IgStatem_state


Detailed Description

Definition at line 25 of file VisEventObserver.h.


Constructor & Destructor Documentation

VisEventObserver::VisEventObserver ( IgState state  ) 

Definition at line 18 of file VisEventObserver.cc.

References ASSERT, lat::CreateCallback(), DBSPlugin::get(), init(), and m_state.

00019     : m_state (state)
00020 {    
00021     ASSERT (m_state);
00022 
00023     if (VisEventProcessorService *procService = VisEventProcessorService::get (m_state)) 
00024     {
00025         procService->onProcessorStarted (
00026             lat::CreateCallback (this, 
00027                                  &VisEventObserver::init));
00028     }
00029     init ();
00030 }

VisEventObserver::~VisEventObserver ( void   )  [virtual]

Definition at line 53 of file VisEventObserver.cc.

References m_connection.

00054 {    
00055     m_connection.disconnect ();
00056 }


Member Function Documentation

void VisEventObserver::init ( void   ) 

Reimplemented in VisTkRecTracksTwig.

Definition at line 33 of file VisEventObserver.cc.

References DBSPlugin::get(), LFfwvis, LOG, m_connection, m_state, onNewEvent(), and GsfMatrixTools::trace().

Referenced by VisEventObserver().

00034 {    
00035     LOG (1, trace, LFfwvis, "VisEventObserver[" << "base class"
00036          << "]::init()\n");
00037     
00038     IgQtLock ();
00039     
00040     if (VisEventProcessorService *procService = VisEventProcessorService::get (m_state)) 
00041     {
00042         if (m_connection) 
00043         {
00044             m_connection.disconnect ();
00045         }
00046         
00047         m_connection = (*procService)->postProcessEventSignal().connect (
00048             sigc::mem_fun (this, 
00049                            &VisEventObserver::onNewEvent));
00050     }
00051 }

virtual void VisEventObserver::onNewEvent ( const edm::Event event,
const edm::EventSetup eventSetup 
) [pure virtual]

Implemented in VisCaloGeometryTwig, VisCSCGeometryTwig, VisDTGeometryTwig, VisEventSetupService, VisRPCGeometryTwig, VisTrackerGeometryTwig, VisEventIdTwig, VisFEDRawDataCollectionTwig, VisQueuedTwig, VisCuTkGeometryTwig, VisBasicClusterCollectionTwig, VisBasicClusterTwig, VisEcalRecHitTwig, VisEcalUncalibratedRecHitTwig, VisSuperClusterCollectionTwig, VisSuperClusterTwig, VisHBHERecHitTwig, VisHFDataFrameTwig, VisHFRecHitTwig, VisHORecHitTwig, VisCaloMETTwig, VisGenMETTwig, VisMETTwig, VisMuonEnergyTwig, VisMuonTwig, VisRefitTrackTwig, VisTrackTwig, VisCSCALCTDigiTwig, VisCSCCLCTDigiTwig, VisCSCComparatorDigiTwig, VisCSCCorrelatedLCTDigiTwig, VisCSCRecHit2DTwig, VisCSCRPCDigiTwig, VisCSCSegmentTwig, VisCSCStripDigiTwig, VisCSCWireDigiTwig, VisDT2DSegmentTwig, VisDT4DSegmentTwig, VisDTDigiTwig, VisDTRecHitsTwig, VisRPCDigiTwig, VisRPCRecHitTwig, VisGsfPFRecTrackTwig, VisPFClusterTwig, VisPFRecHitTwig, VisPFRecTrackTwig, VisTrackingParticleTwig, VisCaloJetTwig, VisCaloTowerTwig, VisCandidateTwig, VisGenJetCollectionTwig, VisGenJetTwig, VisJetTagTwig, VisCSCSeg2HETwig, VisRecoToolsTwig, VisGsfTrackTwig, VisPixelDigiTwig, VisTkIdealHelixTracksTwig, VisTkRecTrackDetsTwig, VisTkRecTracksTwig, VisTrackerClusterTwig, VisTrackerDigiTwig, VisTrackerPiClusterTwig, VisTrackerPiDigiTwig, VisTrackerPiRechitTwig, VisTrackerRechit2DMatchedTwig, VisTrackerRechit2DTwig, VisTrackingRecHitTwig, VisTrajectorySeedTwig, VisL1GlobalTriggerReadoutRecordTwig, VisL1MuDTChambPhContainerTwig, VisL1MuDTChambThContainerTwig, VisL1MuDTTrackContainerTwig, VisTriggerResultsTwig, VisHepMCProductTwig, VisPCaloHitTwig, VisPSimHitTwig, VisSimTrackTwig, VisSimVertexTwig, VisTkSimHitTwig, and VisTkSimTrackTwig.

Referenced by init().


Member Data Documentation

sigc::connection VisEventObserver::m_connection [private]

Definition at line 41 of file VisEventObserver.h.

Referenced by init(), and ~VisEventObserver().

IgState* VisEventObserver::m_state [private]

Reimplemented in VisEventSetupService, VisFEDRawDataCollectionTwig, VisQueuedTwig, VisL1GlobalTriggerReadoutRecordTwig, VisL1MuDTChambPhContainerTwig, VisL1MuDTChambThContainerTwig, VisL1MuDTTrackContainerTwig, and VisTriggerResultsTwig.

Definition at line 40 of file VisEventObserver.h.

Referenced by init(), and VisEventObserver().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:35:21 2009 for CMSSW by  doxygen 1.5.4