#include <VisFramework/VisFrameworkBase/interface/VisEventObserver.h>
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 |
IgState * | m_state |
Definition at line 25 of file VisEventObserver.h.
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 }
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().
sigc::connection VisEventObserver::m_connection [private] |
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().