#include <CmsShowMainBase.h>
Classes | |
class | SignalTimer |
Protected Member Functions | |
virtual void | eventChangedImp () |
void | eventChangedSlot () |
Private Member Functions | |
void | setPlayLoopImp () |
void | unsetPlayLoopImp () |
Private Attributes | |
std::auto_ptr< SignalTimer > | m_autoLoadTimer |
bool | m_autoLoadTimerRunning |
std::string | m_autoSaveAllViewsFormat |
std::auto_ptr < FWModelChangeManager > | m_changeManager |
std::auto_ptr< FWColorManager > | m_colorManager |
std::string | m_configFileName |
std::auto_ptr < FWConfigurationManager > | m_configurationManager |
fireworks::Context * | m_contextPtr |
std::auto_ptr < FWEventItemsManager > | m_eiManager |
bool | m_forward |
FWGeometry | m_geom |
std::string | m_geometryFilename |
std::auto_ptr< FWGUIManager > | m_guiManager |
bool | m_isPlaying |
bool | m_loop |
FWJobMetadataManager * | m_metadataManagerPtr |
FWNavigatorBase * | m_navigatorPtr |
Float_t | m_playDelay |
std::auto_ptr< FWSelectionManager > | m_selectionManager |
std::auto_ptr < CmsShowTaskExecutor > | m_startupTasks |
std::auto_ptr < FWViewManagerManager > | m_viewManager |
This is the base class to be used for setting up the main loop and navigation. FF and standalone main should derive from this one, since it takes care of most of the set up and navigation logic. Concrete implementations are actually supposed to create a concrete instance of the Context, FWNavigatorBase and FWJobMetadataManager.
Definition at line 49 of file CmsShowMainBase.h.
CmsShowMainBase::CmsShowMainBase | ( | ) |
Definition at line 40 of file CmsShowMainBase.cc.
|
virtual |
Definition at line 62 of file CmsShowMainBase.cc.
References m_selectionManager.
|
pure virtual |
Implemented in CmsShowMain, FWFFLooper, and FWFFService.
Referenced by setupActions().
|
inline |
Definition at line 55 of file CmsShowMainBase.h.
References m_changeManager.
|
pure virtual |
Implemented in CmsShowMain, FWFFLooper, and FWFFService.
Referenced by doFirstEvent(), doLastEvent(), doNextEvent(), doPreviousEvent(), and goToRunEvent().
|
inline |
Definition at line 56 of file CmsShowMainBase.h.
References m_colorManager.
|
inline |
Definition at line 79 of file CmsShowMainBase.h.
References m_configFileName.
Referenced by CmsShowMain::CmsShowMain().
|
inline |
Definition at line 57 of file CmsShowMainBase.h.
References m_configurationManager.
Referenced by setupViewManagers().
void CmsShowMainBase::doFirstEvent | ( | ) |
Definition at line 143 of file CmsShowMainBase.cc.
References checkPosition(), draw(), FWNavigatorBase::firstEvent(), and m_navigatorPtr.
Referenced by setupActions().
void CmsShowMainBase::doLastEvent | ( | ) |
Definition at line 166 of file CmsShowMainBase.cc.
References checkPosition(), draw(), FWNavigatorBase::lastEvent(), and m_navigatorPtr.
Referenced by setupActions().
void CmsShowMainBase::doNextEvent | ( | ) |
Definition at line 151 of file CmsShowMainBase.cc.
References checkPosition(), draw(), m_navigatorPtr, and FWNavigatorBase::nextEvent().
Referenced by setupActions().
void CmsShowMainBase::doPreviousEvent | ( | ) |
Definition at line 159 of file CmsShowMainBase.cc.
References checkPosition(), draw(), m_navigatorPtr, and FWNavigatorBase::previousEvent().
Referenced by setupActions().
void CmsShowMainBase::draw | ( | ) |
Definition at line 183 of file CmsShowMainBase.cc.
References FWBeamSpot::checkBeamSpot(), FWMagField::checkFieldInfo(), fwLog, fireworks::Context::getBeamSpot(), FWNavigatorBase::getCurrentEvent(), fireworks::Context::getField(), FWMagField::getSource(), fwlog::kDebug, FWMagField::kUser, m_autoSaveAllViewsFormat, m_contextPtr, m_eiManager, m_guiManager, m_navigatorPtr, and m_viewManager.
Referenced by CmsShowMain::appendData(), CmsShowMain::autoLoadNewEvent(), doFirstEvent(), doLastEvent(), doNextEvent(), doPreviousEvent(), FWFFLooper::duringLoop(), goToRunEvent(), CmsShowMain::notified(), CmsShowMain::openData(), CmsShowMain::openDataViaURL(), python.Vispa.Gui.PortConnection.PointToPointConnection::paintEvent(), CmsShowMain::postFiltering(), FWFFService::postProcessEvent(), and CmsShowMain::setupDataHandling().
|
inline |
Definition at line 58 of file CmsShowMainBase.h.
References m_eiManager.
Referenced by CmsShowMain::CmsShowMain(), FWFFLooper::FWFFLooper(), FWFFService::FWFFService(), and setupViewManagers().
|
protectedvirtual |
Reimplemented in CmsShowMain.
Definition at line 137 of file CmsShowMainBase.cc.
References FWGUIManager::eventChangedCallback(), and guiManager().
Referenced by CmsShowMain::eventChangedImp(), and eventChangedSlot().
|
protected |
Definition at line 131 of file CmsShowMainBase.cc.
References eventChangedImp().
Referenced by setupActions().
|
inline |
Definition at line 102 of file CmsShowMainBase.h.
References m_forward.
Referenced by FWFFLooper::autoLoadNewEvent(), CmsShowMain::autoLoadNewEvent(), and CmsShowMain::notified().
|
inline |
Definition at line 92 of file CmsShowMainBase.h.
References m_geometryFilename.
Referenced by CmsShowMain::CmsShowMain(), FWFFLooper::FWFFLooper(), and FWFFService::FWFFService().
|
inline |
Definition at line 93 of file CmsShowMainBase.h.
References m_geom.
Referenced by FWFFLooper::beginRun(), and FWFFService::postBeginRun().
void CmsShowMainBase::goToRunEvent | ( | edm::RunNumber_t | run, |
edm::LuminosityBlockNumber_t | lumi, | ||
edm::EventNumber_t | event | ||
) |
Definition at line 174 of file CmsShowMainBase.cc.
References checkPosition(), draw(), FWNavigatorBase::goToRunEvent(), and m_navigatorPtr.
Referenced by setupActions().
|
inline |
Definition at line 62 of file CmsShowMainBase.h.
References m_guiManager.
Referenced by CmsShowMain::appendData(), FWFFLooper::attachTo(), FWFFLooper::autoLoadNewEvent(), CmsShowMain::autoLoadNewEvent(), FWFFLooper::beginRun(), CmsShowMain::checkLiveMode(), FWFFService::checkPosition(), FWFFLooper::checkPosition(), CmsShowMain::checkPosition(), CmsShowMain::CmsShowMain(), CmsShowMain::doExit(), CmsShowMain::eventChangedImp(), eventChangedImp(), CmsShowMain::fileChangedSlot(), CmsShowMain::filterButtonClicked(), loadGeometry(), CmsShowMain::navigatorChangedFilterState(), CmsShowMain::notified(), CmsShowMain::openData(), CmsShowMain::openDataViaURL(), playBackward(), playForward(), FWFFService::postBeginRun(), CmsShowMain::postFiltering(), CmsShowMain::preFiltering(), CmsShowMain::setupDataHandling(), setupViewManagers(), FWFFLooper::showPathsGUI(), FWFFLooper::stopPlaying(), and CmsShowMain::stopPlaying().
|
inline |
Definition at line 114 of file CmsShowMainBase.h.
References m_isPlaying.
Referenced by CmsShowMain::checkLiveMode(), FWFFService::checkPosition(), FWFFLooper::checkPosition(), CmsShowMain::checkPosition(), and CmsShowMain::notified().
void CmsShowMainBase::loadGeometry | ( | ) |
Definition at line 464 of file CmsShowMainBase.cc.
References cmsRelvalreport::exit, fwLog, guiManager(), fwlog::kError, FWGeometry::loadMap(), m_contextPtr, m_geom, m_geometryFilename, fireworks::Context::setGeom(), and FWGUIManager::updateStatus().
Referenced by CmsShowMain::CmsShowMain(), FWFFService::FWFFService(), and FWFFLooper::loadDefaultGeometryFile().
|
inline |
Definition at line 103 of file CmsShowMainBase.h.
References m_loop.
Referenced by FWFFLooper::autoLoadNewEvent(), CmsShowMain::autoLoadNewEvent(), FWFFService::checkPosition(), FWFFLooper::checkPosition(), and CmsShowMain::checkPosition().
|
inline |
Definition at line 59 of file CmsShowMainBase.h.
References m_changeManager.
void CmsShowMainBase::playBackward | ( | ) |
Definition at line 455 of file CmsShowMainBase.cc.
References FWGUIManager::enableActions(), guiManager(), m_forward, m_isPlaying, and startAutoLoadTimer().
Referenced by setupActions().
void CmsShowMainBase::playForward | ( | ) |
Definition at line 446 of file CmsShowMainBase.cc.
References FWGUIManager::enableActions(), guiManager(), m_forward, m_isPlaying, and startAutoLoadTimer().
Referenced by setupActions().
|
pure virtual |
Implemented in CmsShowMain, FWFFLooper, and FWFFService.
Referenced by setupActions().
void CmsShowMainBase::registerPhysicsObject | ( | const FWPhysicsObjectDesc & | iItem | ) |
Definition at line 440 of file CmsShowMainBase.cc.
References m_eiManager.
void CmsShowMainBase::reloadConfiguration | ( | const std::string & | config | ) |
Definition at line 266 of file CmsShowMainBase.cc.
References cmsDriver::config, ExpressReco_HICollisions_FallBack::e, fwLog, fwlog::kDebug, m_configFileName, m_configurationManager, m_eiManager, m_guiManager, and runTheMatrix::msg.
Referenced by setup().
|
inline |
Definition at line 60 of file CmsShowMainBase.h.
References m_selectionManager.
|
inline |
Definition at line 122 of file CmsShowMainBase.h.
References m_autoSaveAllViewsFormat.
Referenced by CmsShowMain::CmsShowMain().
|
inline |
Definition at line 78 of file CmsShowMainBase.h.
References f, and m_configFileName.
Referenced by CmsShowMain::CmsShowMain(), FWFFLooper::FWFFLooper(), and FWFFService::FWFFService().
|
inline |
Definition at line 91 of file CmsShowMainBase.h.
References lut2db_cfg::filename, and m_geometryFilename.
Referenced by CmsShowMain::CmsShowMain(), FWFFLooper::FWFFLooper(), and FWFFService::FWFFService().
|
inline |
Definition at line 115 of file CmsShowMainBase.h.
References m_isPlaying, and relativeConstraints::value.
Referenced by FWFFLooper::autoLoadNewEvent(), FWFFLooper::stopPlaying(), and CmsShowMain::stopPlaying().
void CmsShowMainBase::setPlayDelay | ( | Float_t | val | ) |
Definition at line 397 of file CmsShowMainBase.cc.
References m_playDelay.
Referenced by setupActions().
void CmsShowMainBase::setPlayLoop | ( | ) |
Definition at line 410 of file CmsShowMainBase.cc.
References m_guiManager, m_loop, and setPlayLoopImp().
Referenced by CmsShowMain::CmsShowMain().
|
private |
Definition at line 428 of file CmsShowMainBase.cc.
References m_loop.
Referenced by setPlayLoop(), and setupActions().
void CmsShowMainBase::setup | ( | FWNavigatorBase * | navigator, |
fireworks::Context * | context, | ||
FWJobMetadataManager * | metadataManager | ||
) |
Definition at line 211 of file CmsShowMainBase.cc.
References newFWLiteAna::base, FWGUIManager::clearStatus(), fireworks::Context::commonPrefs(), fireworks::Context::initEveElements(), m_changeManager, m_colorManager, m_configurationManager, m_contextPtr, m_eiManager, m_guiManager, m_metadataManagerPtr, m_navigatorPtr, m_startupTasks, m_viewManager, FWModelChangeManager::newItemSlot(), FWViewManagerManager::registerEventItem(), reloadConfiguration(), and writeToConfigFile().
Referenced by CmsShowMain::CmsShowMain(), FWFFLooper::FWFFLooper(), and FWFFService::FWFFService().
void CmsShowMainBase::setupActions | ( | ) |
Definition at line 69 of file CmsShowMainBase.cc.
References autoLoadNewEvent(), doFirstEvent(), doLastEvent(), doNextEvent(), doPreviousEvent(), eventChangedSlot(), goToRunEvent(), m_autoLoadTimer, m_guiManager, m_navigatorPtr, m_playDelay, FWNavigatorBase::newEvent_, playBackward(), playForward(), quit(), setPlayDelay(), setPlayLoopImp(), cmsshow::sGotoFirstEvent, cmsshow::sGotoLastEvent, cmsshow::sNextEvent, cmsshow::sPreviousEvent, cmsshow::sQuit, stopPlaying(), unsetPlayLoopImp(), and writeToCurrentConfigFile().
Referenced by FWFFLooper::beginRun(), FWFFService::postBeginRun(), and CmsShowMain::setupDataHandling().
void CmsShowMainBase::setupAutoLoad | ( | float | x | ) |
Definition at line 312 of file CmsShowMainBase.cc.
References m_guiManager, m_playDelay, and ExpressReco_HICollisions_FallBack::x.
Referenced by CmsShowMain::CmsShowMain().
void CmsShowMainBase::setupConfiguration | ( | ) |
Definition at line 339 of file CmsShowMainBase.cc.
References ExpressReco_HICollisions_FallBack::e, cmsRelvalreport::exit, fwLog, fwlog::kError, fwlog::kInfo, m_configFileName, m_configurationManager, and m_guiManager.
Referenced by FWFFLooper::beginRun(), CmsShowMain::CmsShowMain(), and FWFFService::postBeginRun().
void CmsShowMainBase::setupDebugSupport | ( | ) |
Definition at line 403 of file CmsShowMainBase.cc.
References m_guiManager.
Referenced by CmsShowMain::CmsShowMain().
void CmsShowMainBase::setupViewManagers | ( | ) |
Definition at line 101 of file CmsShowMainBase.cc.
References FWConfigurationManager::add(), FWViewManagerManager::add(), configurationManager(), eiManager(), FWEventItemsManager::goingToClearItems_, guiManager(), FWJobMetadataManager::initReps(), m_contextPtr, m_metadataManagerPtr, FWTableViewManager::removeAllItems(), FWGUIManager::updateStatus(), and viewManager().
Referenced by FWFFLooper::beginRun(), CmsShowMain::CmsShowMain(), and FWFFService::postBeginRun().
void CmsShowMainBase::startAutoLoadTimer | ( | ) |
Definition at line 323 of file CmsShowMainBase.cc.
References m_autoLoadTimer, m_autoLoadTimerRunning, and m_playDelay.
Referenced by CmsShowMain::autoLoadNewEvent(), FWFFLooper::duringLoop(), playBackward(), and playForward().
|
inline |
Definition at line 68 of file CmsShowMainBase.h.
References m_startupTasks.
Referenced by CmsShowMain::CmsShowMain(), FWFFService::FWFFService(), FWFFLooper::loadDefaultGeometryFile(), FWFFService::postBeginJob(), and FWFFLooper::startingNewLoop().
void CmsShowMainBase::stopAutoLoadTimer | ( | ) |
Definition at line 332 of file CmsShowMainBase.cc.
References m_autoLoadTimer, and m_autoLoadTimerRunning.
Referenced by FWFFLooper::autoLoadNewEvent(), CmsShowMain::autoLoadNewEvent(), FWFFLooper::stopPlaying(), and CmsShowMain::stopPlaying().
|
pure virtual |
Implemented in CmsShowMain, FWFFLooper, and FWFFService.
Referenced by setupActions().
void CmsShowMainBase::unsetPlayLoop | ( | ) |
Definition at line 419 of file CmsShowMainBase.cc.
References m_guiManager, m_loop, and unsetPlayLoopImp().
|
private |
Definition at line 434 of file CmsShowMainBase.cc.
References m_loop.
Referenced by setupActions(), and unsetPlayLoop().
|
inline |
Definition at line 61 of file CmsShowMainBase.h.
References m_viewManager.
Referenced by setupViewManagers().
void CmsShowMainBase::writeToConfigFile | ( | const std::string & | config | ) |
Definition at line 253 of file CmsShowMainBase.cc.
References m_configFileName, m_configurationManager, and AlCaRecoCosmics_cfg::name.
Referenced by setup().
void CmsShowMainBase::writeToCurrentConfigFile | ( | ) |
Definition at line 260 of file CmsShowMainBase.cc.
References m_configFileName, and m_configurationManager.
Referenced by setupActions().
|
private |
Definition at line 151 of file CmsShowMainBase.h.
Referenced by setupActions(), startAutoLoadTimer(), and stopAutoLoadTimer().
|
private |
Definition at line 163 of file CmsShowMainBase.h.
Referenced by startAutoLoadTimer(), and stopAutoLoadTimer().
|
private |
Definition at line 162 of file CmsShowMainBase.h.
Referenced by draw(), and setAutoSaveAllViewsFormat().
|
private |
Definition at line 140 of file CmsShowMainBase.h.
Referenced by changeManager(), modelChangeManager(), and setup().
|
private |
Definition at line 141 of file CmsShowMainBase.h.
Referenced by colorManager(), and setup().
|
private |
Definition at line 168 of file CmsShowMainBase.h.
Referenced by configFilename(), reloadConfiguration(), setConfigFilename(), setupConfiguration(), writeToConfigFile(), and writeToCurrentConfigFile().
|
private |
Definition at line 142 of file CmsShowMainBase.h.
Referenced by configurationManager(), reloadConfiguration(), setup(), setupConfiguration(), writeToConfigFile(), and writeToCurrentConfigFile().
|
private |
Definition at line 157 of file CmsShowMainBase.h.
Referenced by draw(), loadGeometry(), setup(), and setupViewManagers().
|
private |
Definition at line 143 of file CmsShowMainBase.h.
Referenced by draw(), eiManager(), registerPhysicsObject(), reloadConfiguration(), and setup().
|
private |
Definition at line 164 of file CmsShowMainBase.h.
Referenced by forward(), playBackward(), and playForward().
|
private |
Definition at line 170 of file CmsShowMainBase.h.
Referenced by getGeom(), and loadGeometry().
|
private |
Definition at line 169 of file CmsShowMainBase.h.
Referenced by geometryFilename(), loadGeometry(), and setGeometryFilename().
|
private |
Definition at line 144 of file CmsShowMainBase.h.
Referenced by draw(), guiManager(), reloadConfiguration(), setPlayLoop(), setup(), setupActions(), setupAutoLoad(), setupConfiguration(), setupDebugSupport(), and unsetPlayLoop().
|
private |
Definition at line 165 of file CmsShowMainBase.h.
Referenced by isPlaying(), playBackward(), playForward(), and setIsPlaying().
|
private |
Definition at line 166 of file CmsShowMainBase.h.
Referenced by loop(), setPlayLoop(), setPlayLoopImp(), unsetPlayLoop(), and unsetPlayLoopImp().
|
private |
Definition at line 156 of file CmsShowMainBase.h.
Referenced by setup(), and setupViewManagers().
|
private |
Definition at line 155 of file CmsShowMainBase.h.
Referenced by doFirstEvent(), doLastEvent(), doNextEvent(), doPreviousEvent(), draw(), goToRunEvent(), setup(), and setupActions().
|
private |
Definition at line 167 of file CmsShowMainBase.h.
Referenced by setPlayDelay(), setupActions(), setupAutoLoad(), and startAutoLoadTimer().
|
private |
Definition at line 145 of file CmsShowMainBase.h.
Referenced by selectionManager(), and ~CmsShowMainBase().
|
private |
Definition at line 146 of file CmsShowMainBase.h.
Referenced by setup(), and startupTasks().
|
private |
Definition at line 147 of file CmsShowMainBase.h.
Referenced by draw(), setup(), and viewManager().