#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.
|
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.
|
inline |
Definition at line 79 of file CmsShowMainBase.h.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CmsShowMain::CmsShowMain(), CmsShowMain::setLoadedAnyInputFileAfterStartup(), and CmsShowMain::setupDataHandling().
|
inline |
Definition at line 57 of file CmsShowMainBase.h.
Referenced by CmsShowMain::CmsShowMain(), CmsShowMain::setLoadedAnyInputFileAfterStartup(), CmsShowMain::setupDataHandling(), and setupViewManagers().
|
inlineprotected |
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(), goToRunEvent(), CmsShowMain::notified(), CmsShowMain::openData(), CmsShowMain::openDataViaURL(), Vispa.Gui.PortConnection.PointToPointConnection::paintEvent(), and CmsShowMain::postFiltering().
|
inline |
Definition at line 58 of file CmsShowMainBase.h.
Referenced by CmsShowMain::CmsShowMain(), 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.
Referenced by CmsShowMain::autoLoadNewEvent(), and CmsShowMain::notified().
|
inline |
|
inline |
Definition at line 96 of file CmsShowMainBase.h.
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.
Referenced by CmsShowMain::appendData(), CmsShowMain::autoLoadNewEvent(), CmsShowMain::checkLiveMode(), CmsShowMain::checkPosition(), CmsShowMain::CmsShowMain(), CmsShowMain::doExit(), CmsShowMain::eventChangedImp(), eventChangedImp(), CmsShowMain::fileChangedSlot(), CmsShowMain::filterButtonClicked(), loadGeometry(), CmsShowMain::navigatorChangedFilterState(), CmsShowMain::notified(), CmsShowMain::openData(), CmsShowMain::openDataViaURL(), playBackward(), playForward(), CmsShowMain::postFiltering(), CmsShowMain::preFiltering(), CmsShowMain::setupDataHandling(), setupViewManagers(), and CmsShowMain::stopPlaying().
|
inline |
Definition at line 119 of file CmsShowMainBase.h.
Referenced by CmsShowMain::checkKeyBindingsOnPLayEventsStateChanged(), CmsShowMain::checkLiveMode(), 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(), and FWFFLooper::loadDefaultGeometryFile().
|
inline |
Definition at line 108 of file CmsShowMainBase.h.
References heppy_batch::val, and x().
Referenced by CmsShowMain::autoLoadNewEvent(), and CmsShowMain::checkPosition().
|
inline |
Definition at line 59 of file CmsShowMainBase.h.
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, MillePedeFileConverter_cfg::e, SimpleSAXParser::ParserError::error(), fwLog, fwlog::kDebug, m_configFileName, m_configurationManager, m_eiManager, m_guiManager, mps_alisetup::msg, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setup().
|
inline |
Definition at line 60 of file CmsShowMainBase.h.
Referenced by CmsShowMain::~CmsShowMain().
|
protected |
Definition at line 511 of file CmsShowMainBase.cc.
References flags, mps_alisetup::msg, sd, and fireworks::setPath().
Referenced by CmsShowMainBase().
|
inline |
Definition at line 128 of file CmsShowMainBase.h.
Referenced by CmsShowMain::CmsShowMain().
|
inline |
Definition at line 129 of file CmsShowMainBase.h.
Referenced by CmsShowMain::CmsShowMain().
|
inline |
Definition at line 78 of file CmsShowMainBase.h.
References f.
Referenced by CmsShowMain::CmsShowMain().
|
inline |
Definition at line 94 of file CmsShowMainBase.h.
References corrVsCorr::filename.
Referenced by CmsShowMain::CmsShowMain().
void CmsShowMainBase::setPlayDelay | ( | Float_t | val | ) |
Definition at line 415 of file CmsShowMainBase.cc.
References m_playDelay, and heppy_batch::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 corrVsCorr::filename.
Referenced by CmsShowMain::CmsShowMain().
void CmsShowMainBase::setup | ( | FWNavigatorBase * | navigator, |
fireworks::Context * | context, | ||
FWJobMetadataManager * | metadataManager | ||
) |
Definition at line 223 of file CmsShowMainBase.cc.
References runEdmFileComparison::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, particleFlowRecHitECAL_cfi::navigator, FWModelChangeManager::newItemSlot(), partialLoadConfiguration(), partialWriteToConfigFile(), FWViewManagerManager::registerEventItem(), reloadConfiguration(), AlCaHLTBitMon_QueryRunRegistry::string, and writeToConfigFile().
Referenced by CmsShowMain::CmsShowMain().
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 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 MillePedeFileConverter_cfg::e, SimpleSAXParser::ParserError::error(), cmsRelvalreport::exit, fwLog, fwlog::kError, m_configFileName, m_configurationManager, m_guiManager, and m_metadataManagerPtr.
Referenced by 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 CmsShowMain::CmsShowMain().
void CmsShowMainBase::startAutoLoadTimer | ( | ) |
Definition at line 358 of file CmsShowMainBase.cc.
References m_autoLoadTimer, m_autoLoadTimerRunning, and m_playDelay.
Referenced by CmsShowMain::autoLoadNewEvent(), playBackward(), and playForward().
|
inline |
Definition at line 68 of file CmsShowMainBase.h.
References particleFlowRecHitECAL_cfi::navigator, and GeneralSetup::setup().
Referenced by CmsShowMain::CmsShowMain().
void CmsShowMainBase::stopAutoLoadTimer | ( | ) |
Definition at line 367 of file CmsShowMainBase.cc.
References m_autoLoadTimer, and m_autoLoadTimerRunning.
Referenced by CmsShowMain::autoLoadNewEvent(), 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.
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 dataset::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().
|
private |
Definition at line 172 of file CmsShowMainBase.h.
Referenced by draw().
|
private |
Definition at line 149 of file CmsShowMainBase.h.
Referenced by setup().
|
private |
Definition at line 150 of file CmsShowMainBase.h.
Referenced by setup().
|
private |
Definition at line 178 of file CmsShowMainBase.h.
Referenced by partialWriteToConfigFile(), reloadConfiguration(), setupConfiguration(), writeToConfigFile(), and writeToCurrentConfigFile().
|
private |
Definition at line 151 of file CmsShowMainBase.h.
Referenced by partialLoadConfiguration(), partialWriteToConfigFile(), reloadConfiguration(), setup(), setupConfiguration(), writeToConfigFile(), and writeToCurrentConfigFile().
|
private |
Definition at line 166 of file CmsShowMainBase.h.
Referenced by draw(), loadGeometry(), setup(), and setupViewManagers().
|
private |
Definition at line 152 of file CmsShowMainBase.h.
Referenced by draw(), partialLoadConfiguration(), registerPhysicsObject(), reloadConfiguration(), and setup().
|
private |
Definition at line 174 of file CmsShowMainBase.h.
Referenced by playBackward(), and playForward().
|
private |
Definition at line 180 of file CmsShowMainBase.h.
Referenced by loadGeometry().
|
private |
Definition at line 179 of file CmsShowMainBase.h.
Referenced by loadGeometry().
|
private |
Definition at line 153 of file CmsShowMainBase.h.
Referenced by draw(), reloadConfiguration(), setPlayLoop(), setup(), setupActions(), setupAutoLoad(), setupConfiguration(), setupDebugSupport(), and unsetPlayLoop().
|
private |
Definition at line 175 of file CmsShowMainBase.h.
Referenced by playBackward(), playForward(), and stopPlaying().
|
private |
Definition at line 176 of file CmsShowMainBase.h.
Referenced by 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.
|
private |
Definition at line 181 of file CmsShowMainBase.h.
Referenced by setupViewManagers().
|
private |
Definition at line 155 of file CmsShowMainBase.h.
Referenced by setup().
|
private |
Definition at line 156 of file CmsShowMainBase.h.