#include <CmsShowMainBase.h>
Classes | |
class | SignalTimer |
Protected Member Functions | |
fireworks::Context * | context () |
virtual void | eventChangedImp () |
void | eventChangedSlot () |
void | sendVersionInfo () |
Private Member Functions | |
void | setPlayLoopImp () |
void | unsetPlayLoopImp () |
Private Attributes | |
std::auto_ptr< SignalTimer > | m_autoLoadTimer |
bool | m_autoLoadTimerRunning |
std::string | m_autoSaveAllViewsFormat |
int | m_autoSaveAllViewsHeight |
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::string | m_simGeometryFilename |
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 49 of file CmsShowMainBase.cc.
References sendVersionInfo().
|
virtualnoexcept |
Definition at line 73 of file CmsShowMainBase.cc.
|
pure virtual |
Implemented in CmsShowMain, FWFFLooper, and FWFFService.
Referenced by setupActions().
|
inline |
Definition at line 55 of file CmsShowMainBase.h.
References m_changeManager.
|
inlinevirtual |
Reimplemented in CmsShowMain.
Definition at line 121 of file CmsShowMainBase.h.
Referenced by playBackward(), playForward(), and stopPlaying().
|
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(), CmsShowMain::setLoadedAnyInputFileAfterStartup(), and CmsShowMain::setupDataHandling().
|
inline |
Definition at line 57 of file CmsShowMainBase.h.
References m_configurationManager.
Referenced by CmsShowMain::CmsShowMain(), CmsShowMain::setLoadedAnyInputFileAfterStartup(), CmsShowMain::setupDataHandling(), and setupViewManagers().
|
inlineprotected |
Definition at line 144 of file CmsShowMainBase.h.
References m_contextPtr.
Referenced by FWFFLooper::beginRun(), and setup().
void CmsShowMainBase::doFirstEvent | ( | ) |
Definition at line 156 of file CmsShowMainBase.cc.
References checkPosition(), draw(), FWNavigatorBase::firstEvent(), and m_navigatorPtr.
Referenced by setupActions().
void CmsShowMainBase::doLastEvent | ( | ) |
Definition at line 179 of file CmsShowMainBase.cc.
References checkPosition(), draw(), FWNavigatorBase::lastEvent(), and m_navigatorPtr.
Referenced by setupActions().
void CmsShowMainBase::doNextEvent | ( | ) |
Definition at line 164 of file CmsShowMainBase.cc.
References checkPosition(), draw(), m_navigatorPtr, and FWNavigatorBase::nextEvent().
Referenced by setupActions().
void CmsShowMainBase::doPreviousEvent | ( | ) |
Definition at line 172 of file CmsShowMainBase.cc.
References checkPosition(), draw(), m_navigatorPtr, and FWNavigatorBase::previousEvent().
Referenced by setupActions().
void CmsShowMainBase::draw | ( | ) |
Definition at line 196 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_autoSaveAllViewsHeight, 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(), Vispa.Gui.PortConnection.PointToPointConnection::paintEvent(), CmsShowMain::postFiltering(), and FWFFService::postProcessEvent().
|
inline |
Definition at line 58 of file CmsShowMainBase.h.
References m_eiManager.
Referenced by CmsShowMain::CmsShowMain(), FWFFLooper::FWFFLooper(), FWFFService::FWFFService(), CmsShowMain::setupDataHandling(), and setupViewManagers().
|
protectedvirtual |
Reimplemented in CmsShowMain.
Definition at line 150 of file CmsShowMainBase.cc.
References FWGUIManager::eventChangedCallback(), and guiManager().
Referenced by CmsShowMain::eventChangedImp(), and eventChangedSlot().
|
protected |
Definition at line 144 of file CmsShowMainBase.cc.
References eventChangedImp().
Referenced by setupActions().
|
inline |
Definition at line 107 of file CmsShowMainBase.h.
References m_forward.
Referenced by FWFFLooper::autoLoadNewEvent(), CmsShowMain::autoLoadNewEvent(), and CmsShowMain::notified().
|
inline |
Definition at line 95 of file CmsShowMainBase.h.
References m_geometryFilename.
Referenced by CmsShowMain::CmsShowMain(), FWFFLooper::FWFFLooper(), and FWFFService::FWFFService().
|
inline |
Definition at line 96 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 187 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 assert(), and 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 119 of file CmsShowMainBase.h.
References m_isPlaying.
Referenced by CmsShowMain::checkKeyBindingsOnPLayEventsStateChanged(), CmsShowMain::checkLiveMode(), FWFFService::checkPosition(), FWFFLooper::checkPosition(), CmsShowMain::checkPosition(), and CmsShowMain::notified().
void CmsShowMainBase::loadGeometry | ( | ) |
Definition at line 492 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 FWFFLooper::beginRun(), CmsShowMain::CmsShowMain(), FWFFService::FWFFService(), and FWFFLooper::loadDefaultGeometryFile().
|
inline |
Definition at line 108 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::partialLoadConfiguration | ( | const std::string & | config | ) |
Definition at line 341 of file CmsShowMainBase.cc.
References m_configurationManager, and m_eiManager.
Referenced by setup().
void CmsShowMainBase::partialWriteToConfigFile | ( | const std::string & | config | ) |
Definition at line 284 of file CmsShowMainBase.cc.
References m_configFileName, m_configurationManager, AlCaHLTBitMon_ParallelJobs::p, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setup().
void CmsShowMainBase::playBackward | ( | ) |
Definition at line 482 of file CmsShowMainBase.cc.
References checkKeyBindingsOnPLayEventsStateChanged(), FWGUIManager::enableActions(), guiManager(), m_forward, m_isPlaying, and startAutoLoadTimer().
Referenced by setupActions().
void CmsShowMainBase::playForward | ( | ) |
Definition at line 472 of file CmsShowMainBase.cc.
References checkKeyBindingsOnPLayEventsStateChanged(), FWGUIManager::enableActions(), guiManager(), m_forward, m_isPlaying, and startAutoLoadTimer().
Referenced by setupActions().
|
pure virtual |
Implemented in FWFFLooper, CmsShowMain, and FWFFService.
Referenced by setupActions().
void CmsShowMainBase::registerPhysicsObject | ( | const FWPhysicsObjectDesc & | iItem | ) |
Definition at line 458 of file CmsShowMainBase.cc.
References m_eiManager.
void CmsShowMainBase::reloadConfiguration | ( | const std::string & | config | ) |
Definition at line 293 of file CmsShowMainBase.cc.
References mps_alisetup::config, alignCSCRings::e, SimpleSAXParser::ParserError::error(), fwLog, fwlog::kDebug, m_configFileName, m_configurationManager, m_eiManager, m_guiManager, visualization-live-secondInstance_cfg::msg, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setup().
|
inline |
Definition at line 60 of file CmsShowMainBase.h.
References m_selectionManager.
Referenced by CmsShowMain::~CmsShowMain().
|
protected |
Definition at line 511 of file CmsShowMainBase.cc.
References flags, fs, h, visualization-live-secondInstance_cfg::msg, sd, and fireworks::setPath().
Referenced by CmsShowMainBase().
|
inline |
Definition at line 128 of file CmsShowMainBase.h.
References fmt, and m_autoSaveAllViewsFormat.
Referenced by CmsShowMain::CmsShowMain().
|
inline |
Definition at line 129 of file CmsShowMainBase.h.
References m_autoSaveAllViewsHeight, and x.
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 94 of file CmsShowMainBase.h.
References lut2db_cfg::filename, and m_geometryFilename.
Referenced by FWFFLooper::beginRun(), CmsShowMain::CmsShowMain(), FWFFLooper::FWFFLooper(), and FWFFService::FWFFService().
void CmsShowMainBase::setPlayDelay | ( | Float_t | val | ) |
Definition at line 415 of file CmsShowMainBase.cc.
References m_playDelay, and SpecificationBuilder_cfi::val().
Referenced by setupActions().
void CmsShowMainBase::setPlayLoop | ( | ) |
Definition at line 428 of file CmsShowMainBase.cc.
References m_guiManager, m_loop, and setPlayLoopImp().
Referenced by CmsShowMain::CmsShowMain().
|
private |
Definition at line 446 of file CmsShowMainBase.cc.
References m_loop.
Referenced by setPlayLoop(), and setupActions().
|
inline |
Definition at line 98 of file CmsShowMainBase.h.
References lut2db_cfg::filename, and m_simGeometryFilename.
Referenced by CmsShowMain::CmsShowMain().
void CmsShowMainBase::setup | ( | FWNavigatorBase * | navigator, |
fireworks::Context * | context, | ||
FWJobMetadataManager * | metadataManager | ||
) |
Definition at line 223 of file CmsShowMainBase.cc.
References newFWLiteAna::base, FWGUIManager::clearStatus(), fireworks::Context::commonPrefs(), context(), fireworks::Context::initEveElements(), m_changeManager, m_colorManager, m_configurationManager, m_contextPtr, m_eiManager, m_guiManager, m_metadataManagerPtr, m_navigatorPtr, m_startupTasks, m_viewManager, HLT_25ns10e33_v2_cff::navigator, FWModelChangeManager::newItemSlot(), partialLoadConfiguration(), partialWriteToConfigFile(), FWViewManagerManager::registerEventItem(), reloadConfiguration(), AlCaHLTBitMon_QueryRunRegistry::string, and writeToConfigFile().
Referenced by CmsShowMain::CmsShowMain(), FWFFLooper::FWFFLooper(), and FWFFService::FWFFService().
void CmsShowMainBase::setupActions | ( | ) |
Definition at line 78 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 347 of file CmsShowMainBase.cc.
References m_guiManager, m_playDelay, and x.
Referenced by CmsShowMain::CmsShowMain().
void CmsShowMainBase::setupConfiguration | ( | ) |
Definition at line 374 of file CmsShowMainBase.cc.
References alignCSCRings::e, SimpleSAXParser::ParserError::error(), cmsRelvalreport::exit, fwLog, fwlog::kError, m_configFileName, m_configurationManager, m_guiManager, and m_metadataManagerPtr.
Referenced by FWFFLooper::beginRun(), FWFFService::postBeginRun(), CmsShowMain::setLoadedAnyInputFileAfterStartup(), and CmsShowMain::setupDataHandling().
void CmsShowMainBase::setupDebugSupport | ( | ) |
Definition at line 421 of file CmsShowMainBase.cc.
References m_guiManager.
Referenced by CmsShowMain::CmsShowMain().
void CmsShowMainBase::setupViewManagers | ( | ) |
Definition at line 110 of file CmsShowMainBase.cc.
References FWViewManagerManager::add(), FWConfigurationManager::add(), configurationManager(), eiManager(), FWEventItemsManager::goingToClearItems_, guiManager(), FWJobMetadataManager::initReps(), m_contextPtr, m_metadataManagerPtr, m_simGeometryFilename, FWTableViewManager::removeAllItems(), AlCaHLTBitMon_QueryRunRegistry::string, FWGUIManager::updateStatus(), and viewManager().
Referenced by FWFFLooper::beginRun(), CmsShowMain::CmsShowMain(), and FWFFService::postBeginRun().
void CmsShowMainBase::startAutoLoadTimer | ( | ) |
Definition at line 358 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 367 of file CmsShowMainBase.cc.
References m_autoLoadTimer, and m_autoLoadTimerRunning.
Referenced by FWFFLooper::autoLoadNewEvent(), CmsShowMain::autoLoadNewEvent(), FWFFLooper::stopPlaying(), and CmsShowMain::stopPlaying().
|
virtual |
Reimplemented in CmsShowMain, FWFFLooper, and FWFFService.
Definition at line 465 of file CmsShowMainBase.cc.
References checkKeyBindingsOnPLayEventsStateChanged(), and m_isPlaying.
Referenced by FWFFLooper::autoLoadNewEvent(), setupActions(), FWFFLooper::stopPlaying(), and CmsShowMain::stopPlaying().
void CmsShowMainBase::unsetPlayLoop | ( | ) |
Definition at line 437 of file CmsShowMainBase.cc.
References m_guiManager, m_loop, and unsetPlayLoopImp().
|
private |
Definition at line 452 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::writePartialToConfigFile | ( | ) |
void CmsShowMainBase::writeToConfigFile | ( | const std::string & | config | ) |
Definition at line 271 of file CmsShowMainBase.cc.
References m_configFileName, m_configurationManager, and mergeVDriftHistosByStation::name.
Referenced by setup().
void CmsShowMainBase::writeToCurrentConfigFile | ( | ) |
Definition at line 278 of file CmsShowMainBase.cc.
References m_configFileName, and m_configurationManager.
Referenced by setupActions().
|
private |
Definition at line 160 of file CmsShowMainBase.h.
Referenced by setupActions(), startAutoLoadTimer(), and stopAutoLoadTimer().
|
private |
Definition at line 173 of file CmsShowMainBase.h.
Referenced by startAutoLoadTimer(), and stopAutoLoadTimer().
|
private |
Definition at line 171 of file CmsShowMainBase.h.
Referenced by draw(), and setAutoSaveAllViewsFormat().
|
private |
Definition at line 172 of file CmsShowMainBase.h.
Referenced by draw(), and setAutoSaveAllViewsHeight().
|
private |
Definition at line 149 of file CmsShowMainBase.h.
Referenced by changeManager(), modelChangeManager(), and setup().
|
private |
Definition at line 150 of file CmsShowMainBase.h.
Referenced by colorManager(), and setup().
|
private |
Definition at line 178 of file CmsShowMainBase.h.
Referenced by configFilename(), partialWriteToConfigFile(), reloadConfiguration(), setConfigFilename(), setupConfiguration(), writeToConfigFile(), and writeToCurrentConfigFile().
|
private |
Definition at line 151 of file CmsShowMainBase.h.
Referenced by configurationManager(), partialLoadConfiguration(), partialWriteToConfigFile(), reloadConfiguration(), setup(), setupConfiguration(), writeToConfigFile(), and writeToCurrentConfigFile().
|
private |
Definition at line 166 of file CmsShowMainBase.h.
Referenced by context(), draw(), loadGeometry(), setup(), and setupViewManagers().
|
private |
Definition at line 152 of file CmsShowMainBase.h.
Referenced by draw(), eiManager(), partialLoadConfiguration(), registerPhysicsObject(), reloadConfiguration(), and setup().
|
private |
Definition at line 174 of file CmsShowMainBase.h.
Referenced by forward(), playBackward(), and playForward().
|
private |
Definition at line 180 of file CmsShowMainBase.h.
Referenced by getGeom(), and loadGeometry().
|
private |
Definition at line 179 of file CmsShowMainBase.h.
Referenced by geometryFilename(), loadGeometry(), and setGeometryFilename().
|
private |
Definition at line 153 of file CmsShowMainBase.h.
Referenced by draw(), guiManager(), reloadConfiguration(), setPlayLoop(), setup(), setupActions(), setupAutoLoad(), setupConfiguration(), setupDebugSupport(), and unsetPlayLoop().
|
private |
Definition at line 175 of file CmsShowMainBase.h.
Referenced by isPlaying(), playBackward(), playForward(), and stopPlaying().
|
private |
Definition at line 176 of file CmsShowMainBase.h.
Referenced by loop(), setPlayLoop(), setPlayLoopImp(), unsetPlayLoop(), and unsetPlayLoopImp().
|
private |
Definition at line 165 of file CmsShowMainBase.h.
Referenced by setup(), setupConfiguration(), and setupViewManagers().
|
private |
Definition at line 164 of file CmsShowMainBase.h.
Referenced by doFirstEvent(), doLastEvent(), doNextEvent(), doPreviousEvent(), draw(), goToRunEvent(), setup(), and setupActions().
|
private |
Definition at line 177 of file CmsShowMainBase.h.
Referenced by setPlayDelay(), setupActions(), setupAutoLoad(), and startAutoLoadTimer().
|
private |
Definition at line 154 of file CmsShowMainBase.h.
Referenced by selectionManager().
|
private |
Definition at line 181 of file CmsShowMainBase.h.
Referenced by setSimGeometryFilename(), and setupViewManagers().
|
private |
Definition at line 155 of file CmsShowMainBase.h.
Referenced by setup(), and startupTasks().
|
private |
Definition at line 156 of file CmsShowMainBase.h.
Referenced by draw(), setup(), and viewManager().