#include <CmsShowMainBase.h>
Classes | |
class | SignalTimer |
Protected Member Functions | |
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 |
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().
|
virtual |
Definition at line 72 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.
|
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 155 of file CmsShowMainBase.cc.
References checkPosition(), draw(), FWNavigatorBase::firstEvent(), and m_navigatorPtr.
Referenced by setupActions().
void CmsShowMainBase::doLastEvent | ( | ) |
Definition at line 178 of file CmsShowMainBase.cc.
References checkPosition(), draw(), FWNavigatorBase::lastEvent(), and m_navigatorPtr.
Referenced by setupActions().
void CmsShowMainBase::doNextEvent | ( | ) |
Definition at line 163 of file CmsShowMainBase.cc.
References checkPosition(), draw(), m_navigatorPtr, and FWNavigatorBase::nextEvent().
Referenced by setupActions().
void CmsShowMainBase::doPreviousEvent | ( | ) |
Definition at line 171 of file CmsShowMainBase.cc.
References checkPosition(), draw(), m_navigatorPtr, and FWNavigatorBase::previousEvent().
Referenced by setupActions().
void CmsShowMainBase::draw | ( | ) |
Definition at line 195 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(), 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(), CmsShowMain::setupDataHandling(), and setupViewManagers().
|
protectedvirtual |
Reimplemented in CmsShowMain.
Definition at line 149 of file CmsShowMainBase.cc.
References FWGUIManager::eventChangedCallback(), and guiManager().
Referenced by CmsShowMain::eventChangedImp(), and eventChangedSlot().
|
protected |
Definition at line 143 of file CmsShowMainBase.cc.
References eventChangedImp().
Referenced by setupActions().
|
inline |
Definition at line 104 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 186 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 116 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 478 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 105 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 469 of file CmsShowMainBase.cc.
References FWGUIManager::enableActions(), guiManager(), m_forward, m_isPlaying, and startAutoLoadTimer().
Referenced by setupActions().
void CmsShowMainBase::playForward | ( | ) |
Definition at line 460 of file CmsShowMainBase.cc.
References 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 454 of file CmsShowMainBase.cc.
References m_eiManager.
void CmsShowMainBase::reloadConfiguration | ( | const std::string & | config | ) |
Definition at line 278 of file CmsShowMainBase.cc.
References HDQMDatabaseProducer::config, alignCSCRings::e, SimpleSAXParser::ParserError::error(), fwLog, fwlog::kDebug, m_configFileName, m_configurationManager, m_eiManager, m_guiManager, and lumiQueryAPI::msg.
Referenced by setup().
|
inline |
Definition at line 60 of file CmsShowMainBase.h.
References m_selectionManager.
Referenced by CmsShowMain::~CmsShowMain().
|
protected |
Definition at line 497 of file CmsShowMainBase.cc.
References flags, h, lumiQueryAPI::msg, sd, and fireworks::setPath().
Referenced by CmsShowMainBase().
|
inline |
Definition at line 124 of file CmsShowMainBase.h.
References fmt, and 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 FWFFLooper::beginRun(), CmsShowMain::CmsShowMain(), FWFFLooper::FWFFLooper(), and FWFFService::FWFFService().
|
inline |
Definition at line 117 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 411 of file CmsShowMainBase.cc.
References m_playDelay.
Referenced by setupActions().
void CmsShowMainBase::setPlayLoop | ( | ) |
Definition at line 424 of file CmsShowMainBase.cc.
References m_guiManager, m_loop, and setPlayLoopImp().
Referenced by CmsShowMain::CmsShowMain().
|
private |
Definition at line 442 of file CmsShowMainBase.cc.
References m_loop.
Referenced by setPlayLoop(), and setupActions().
|
inline |
Definition at line 95 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(), 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 77 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 325 of file CmsShowMainBase.cc.
References m_guiManager, m_playDelay, and vdt::x.
Referenced by CmsShowMain::CmsShowMain().
void CmsShowMainBase::setupConfiguration | ( | ) |
Definition at line 352 of file CmsShowMainBase.cc.
References alignCSCRings::e, SimpleSAXParser::ParserError::error(), 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 417 of file CmsShowMainBase.cc.
References m_guiManager.
Referenced by CmsShowMain::CmsShowMain().
void CmsShowMainBase::setupViewManagers | ( | ) |
Definition at line 109 of file CmsShowMainBase.cc.
References FWConfigurationManager::add(), FWViewManagerManager::add(), configurationManager(), eiManager(), FWEventItemsManager::goingToClearItems_, guiManager(), FWJobMetadataManager::initReps(), m_contextPtr, m_metadataManagerPtr, m_simGeometryFilename, FWTableViewManager::removeAllItems(), FWGUIManager::updateStatus(), and viewManager().
Referenced by FWFFLooper::beginRun(), CmsShowMain::CmsShowMain(), and FWFFService::postBeginRun().
void CmsShowMainBase::startAutoLoadTimer | ( | ) |
Definition at line 336 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 345 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 433 of file CmsShowMainBase.cc.
References m_guiManager, m_loop, and unsetPlayLoopImp().
|
private |
Definition at line 448 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 265 of file CmsShowMainBase.cc.
References m_configFileName, m_configurationManager, and mergeVDriftHistosByStation::name.
Referenced by setup().
void CmsShowMainBase::writeToCurrentConfigFile | ( | ) |
Definition at line 272 of file CmsShowMainBase.cc.
References m_configFileName, and m_configurationManager.
Referenced by setupActions().
|
private |
Definition at line 154 of file CmsShowMainBase.h.
Referenced by setupActions(), startAutoLoadTimer(), and stopAutoLoadTimer().
|
private |
Definition at line 166 of file CmsShowMainBase.h.
Referenced by startAutoLoadTimer(), and stopAutoLoadTimer().
|
private |
Definition at line 165 of file CmsShowMainBase.h.
Referenced by draw(), and setAutoSaveAllViewsFormat().
|
private |
Definition at line 143 of file CmsShowMainBase.h.
Referenced by changeManager(), modelChangeManager(), and setup().
|
private |
Definition at line 144 of file CmsShowMainBase.h.
Referenced by colorManager(), and setup().
|
private |
Definition at line 171 of file CmsShowMainBase.h.
Referenced by configFilename(), reloadConfiguration(), setConfigFilename(), setupConfiguration(), writeToConfigFile(), and writeToCurrentConfigFile().
|
private |
Definition at line 145 of file CmsShowMainBase.h.
Referenced by configurationManager(), reloadConfiguration(), setup(), setupConfiguration(), writeToConfigFile(), and writeToCurrentConfigFile().
|
private |
Definition at line 160 of file CmsShowMainBase.h.
Referenced by draw(), loadGeometry(), setup(), and setupViewManagers().
|
private |
Definition at line 146 of file CmsShowMainBase.h.
Referenced by draw(), eiManager(), registerPhysicsObject(), reloadConfiguration(), and setup().
|
private |
Definition at line 167 of file CmsShowMainBase.h.
Referenced by forward(), playBackward(), and playForward().
|
private |
Definition at line 173 of file CmsShowMainBase.h.
Referenced by getGeom(), and loadGeometry().
|
private |
Definition at line 172 of file CmsShowMainBase.h.
Referenced by geometryFilename(), loadGeometry(), and setGeometryFilename().
|
private |
Definition at line 147 of file CmsShowMainBase.h.
Referenced by draw(), guiManager(), reloadConfiguration(), setPlayLoop(), setup(), setupActions(), setupAutoLoad(), setupConfiguration(), setupDebugSupport(), and unsetPlayLoop().
|
private |
Definition at line 168 of file CmsShowMainBase.h.
Referenced by isPlaying(), playBackward(), playForward(), and setIsPlaying().
|
private |
Definition at line 169 of file CmsShowMainBase.h.
Referenced by loop(), setPlayLoop(), setPlayLoopImp(), unsetPlayLoop(), and unsetPlayLoopImp().
|
private |
Definition at line 159 of file CmsShowMainBase.h.
Referenced by setup(), and setupViewManagers().
|
private |
Definition at line 158 of file CmsShowMainBase.h.
Referenced by doFirstEvent(), doLastEvent(), doNextEvent(), doPreviousEvent(), draw(), goToRunEvent(), setup(), and setupActions().
|
private |
Definition at line 170 of file CmsShowMainBase.h.
Referenced by setPlayDelay(), setupActions(), setupAutoLoad(), and startAutoLoadTimer().
|
private |
Definition at line 148 of file CmsShowMainBase.h.
Referenced by selectionManager().
|
private |
Definition at line 174 of file CmsShowMainBase.h.
Referenced by setSimGeometryFilename(), and setupViewManagers().
|
private |
Definition at line 149 of file CmsShowMainBase.h.
Referenced by setup(), and startupTasks().
|
private |
Definition at line 150 of file CmsShowMainBase.h.
Referenced by draw(), setup(), and viewManager().