#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::unique_ptr< SignalTimer > | m_autoLoadTimer |
bool | m_autoLoadTimerRunning |
std::string | m_autoSaveAllViewsFormat |
int | m_autoSaveAllViewsHeight |
std::unique_ptr< FWModelChangeManager > | m_changeManager |
std::unique_ptr< FWColorManager > | m_colorManager |
std::string | m_configFileName |
std::unique_ptr< FWConfigurationManager > | m_configurationManager |
fireworks::Context * | m_contextPtr |
std::unique_ptr< FWEventItemsManager > | m_eiManager |
bool | m_forward |
FWGeometry | m_geom |
std::string | m_geometryFilename |
std::unique_ptr< FWGUIManager > | m_guiManager |
bool | m_isPlaying |
bool | m_loop |
FWJobMetadataManager * | m_metadataManagerPtr |
FWNavigatorBase * | m_navigatorPtr |
Float_t | m_playDelay |
std::unique_ptr< FWSelectionManager > | m_selectionManager |
std::string | m_simGeometryFilename |
std::unique_ptr< CmsShowTaskExecutor > | m_startupTasks |
std::string | m_TGeoName |
std::unique_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 50 of file CmsShowMainBase.cc.
References sendVersionInfo().
|
virtualnoexcept |
Definition at line 72 of file CmsShowMainBase.cc.
|
pure virtual |
Implemented in CmsShowMain, and FWFFLooper.
Referenced by setupActions().
|
inline |
Definition at line 54 of file CmsShowMainBase.h.
References m_changeManager.
|
inlinevirtual |
Reimplemented in CmsShowMain.
Definition at line 120 of file CmsShowMainBase.h.
Referenced by playBackward(), playForward(), and stopPlaying().
|
pure virtual |
Implemented in CmsShowMain, and FWFFLooper.
Referenced by doFirstEvent(), doLastEvent(), doNextEvent(), doPreviousEvent(), and goToRunEvent().
|
inline |
Definition at line 55 of file CmsShowMainBase.h.
References m_colorManager.
|
inline |
Definition at line 75 of file CmsShowMainBase.h.
References m_configFileName.
Referenced by CmsShowMain::CmsShowMain(), CmsShowMain::setLoadedAnyInputFileAfterStartup(), and CmsShowMain::setupDataHandling().
|
inline |
Definition at line 56 of file CmsShowMainBase.h.
References m_configurationManager.
Referenced by CmsShowMain::CmsShowMain(), CmsShowMain::setLoadedAnyInputFileAfterStartup(), CmsShowMain::setupDataHandling(), and setupViewManagers().
|
inlineprotected |
Definition at line 143 of file CmsShowMainBase.h.
References m_contextPtr.
Referenced by FWFFLooper::beginRun(), and setup().
void CmsShowMainBase::doFirstEvent | ( | ) |
Definition at line 147 of file CmsShowMainBase.cc.
References checkPosition(), draw(), FWNavigatorBase::firstEvent(), and m_navigatorPtr.
Referenced by setupActions().
void CmsShowMainBase::doLastEvent | ( | ) |
Definition at line 164 of file CmsShowMainBase.cc.
References checkPosition(), draw(), FWNavigatorBase::lastEvent(), and m_navigatorPtr.
Referenced by setupActions().
void CmsShowMainBase::doNextEvent | ( | ) |
Definition at line 153 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 176 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(), and CmsShowMain::postFiltering().
|
inline |
Definition at line 57 of file CmsShowMainBase.h.
References m_eiManager.
Referenced by CmsShowMain::CmsShowMain(), FWFFLooper::FWFFLooper(), CmsShowMain::setupDataHandling(), and setupViewManagers().
|
protectedvirtual |
Reimplemented in CmsShowMain.
Definition at line 145 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 106 of file CmsShowMainBase.h.
References m_forward.
Referenced by FWFFLooper::autoLoadNewEvent(), CmsShowMain::autoLoadNewEvent(), and CmsShowMain::notified().
|
inline |
Definition at line 91 of file CmsShowMainBase.h.
References m_geometryFilename.
Referenced by CmsShowMain::CmsShowMain(), CmsShowMain::fileChangedSlot(), and FWFFLooper::FWFFLooper().
|
inline |
Definition at line 92 of file CmsShowMainBase.h.
References m_geom.
Referenced by FWFFLooper::beginRun().
void CmsShowMainBase::goToRunEvent | ( | edm::RunNumber_t | run, |
edm::LuminosityBlockNumber_t | lumi, | ||
edm::EventNumber_t | event | ||
) |
Definition at line 170 of file CmsShowMainBase.cc.
References checkPosition(), draw(), FWNavigatorBase::goToRunEvent(), m_navigatorPtr, and writedatasetfile::run.
Referenced by setupActions().
|
inline |
Definition at line 61 of file CmsShowMainBase.h.
References cms::cuda::assert(), and m_guiManager.
Referenced by CmsShowMain::appendData(), FWFFLooper::attachTo(), FWFFLooper::autoLoadNewEvent(), CmsShowMain::autoLoadNewEvent(), FWFFLooper::beginRun(), CmsShowMain::checkLiveMode(), 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(), CmsShowMain::postFiltering(), CmsShowMain::preFiltering(), CmsShowMain::setupDataHandling(), setupViewManagers(), FWFFLooper::showPathsGUI(), FWFFLooper::stopPlaying(), and CmsShowMain::stopPlaying().
|
inline |
Definition at line 118 of file CmsShowMainBase.h.
References m_isPlaying.
Referenced by CmsShowMain::checkKeyBindingsOnPLayEventsStateChanged(), CmsShowMain::checkLiveMode(), FWFFLooper::checkPosition(), CmsShowMain::checkPosition(), and CmsShowMain::notified().
void CmsShowMainBase::loadGeometry | ( | ) |
Definition at line 395 of file CmsShowMainBase.cc.
References beamvalidation::exit(), fwLog, guiManager(), fwlog::kError, FWGeometry::loadMap(), m_geom, m_geometryFilename, and FWGUIManager::updateStatus().
Referenced by FWFFLooper::beginRun(), CmsShowMain::CmsShowMain(), and FWFFLooper::loadDefaultGeometryFile().
|
inline |
Definition at line 107 of file CmsShowMainBase.h.
References m_loop.
Referenced by FWFFLooper::autoLoadNewEvent(), CmsShowMain::autoLoadNewEvent(), FWFFLooper::checkPosition(), and CmsShowMain::checkPosition().
|
inline |
Definition at line 58 of file CmsShowMainBase.h.
References m_changeManager.
void CmsShowMainBase::partialLoadConfiguration | ( | const std::string & | config | ) |
Definition at line 297 of file CmsShowMainBase.cc.
References m_configurationManager, m_eiManager, and Skims_PA_cff::name.
Referenced by setup().
void CmsShowMainBase::partialWriteToConfigFile | ( | const std::string & | config | ) |
Definition at line 253 of file CmsShowMainBase.cc.
References m_configFileName, m_configurationManager, Skims_PA_cff::name, AlCaHLTBitMon_ParallelJobs::p, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setup().
void CmsShowMainBase::playBackward | ( | ) |
Definition at line 387 of file CmsShowMainBase.cc.
References checkKeyBindingsOnPLayEventsStateChanged(), FWGUIManager::enableActions(), guiManager(), m_forward, m_isPlaying, and startAutoLoadTimer().
Referenced by setupActions().
void CmsShowMainBase::playForward | ( | ) |
Definition at line 379 of file CmsShowMainBase.cc.
References checkKeyBindingsOnPLayEventsStateChanged(), FWGUIManager::enableActions(), guiManager(), m_forward, m_isPlaying, and startAutoLoadTimer().
Referenced by setupActions().
|
pure virtual |
Implemented in FWFFLooper, and CmsShowMain.
Referenced by setupActions().
void CmsShowMainBase::registerPhysicsObject | ( | const FWPhysicsObjectDesc & | iItem | ) |
Definition at line 372 of file CmsShowMainBase.cc.
References m_eiManager.
void CmsShowMainBase::reloadConfiguration | ( | const std::string & | config | ) |
Definition at line 258 of file CmsShowMainBase.cc.
References DiMuonV_cfg::config, MillePedeFileConverter_cfg::e, fwLog, fwlog::kDebug, m_configFileName, m_configurationManager, m_eiManager, m_guiManager, mps_check::msg, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setup().
|
inline |
Definition at line 59 of file CmsShowMainBase.h.
References m_selectionManager.
Referenced by CmsShowMain::~CmsShowMain().
|
protected |
Definition at line 407 of file CmsShowMainBase.cc.
References HLT_2024v14_cff::flags, compareTotals::fs, h, mps_check::msg, and fireworks::setPath().
Referenced by CmsShowMainBase().
|
inline |
Definition at line 127 of file CmsShowMainBase.h.
References m_autoSaveAllViewsFormat.
Referenced by CmsShowMain::CmsShowMain().
|
inline |
Definition at line 128 of file CmsShowMainBase.h.
References m_autoSaveAllViewsHeight, and x.
Referenced by CmsShowMain::CmsShowMain().
|
inline |
Definition at line 74 of file CmsShowMainBase.h.
References f, and m_configFileName.
Referenced by CmsShowMain::CmsShowMain(), and FWFFLooper::FWFFLooper().
|
inline |
Definition at line 90 of file CmsShowMainBase.h.
References corrVsCorr::filename, and m_geometryFilename.
Referenced by FWFFLooper::beginRun(), CmsShowMain::CmsShowMain(), and FWFFLooper::FWFFLooper().
void CmsShowMainBase::setPlayDelay | ( | Float_t | val | ) |
Definition at line 347 of file CmsShowMainBase.cc.
References m_playDelay, and heppy_batch::val.
Referenced by setupActions().
void CmsShowMainBase::setPlayLoop | ( | ) |
Definition at line 354 of file CmsShowMainBase.cc.
References m_guiManager, m_loop, and setPlayLoopImp().
Referenced by CmsShowMain::CmsShowMain().
|
private |
Definition at line 368 of file CmsShowMainBase.cc.
References m_loop.
Referenced by setPlayLoop(), and setupActions().
|
inline |
Definition at line 94 of file CmsShowMainBase.h.
References corrVsCorr::filename, m_simGeometryFilename, and m_TGeoName.
Referenced by CmsShowMain::CmsShowMain().
void CmsShowMainBase::setup | ( | FWNavigatorBase * | navigator, |
fireworks::Context * | context, | ||
FWJobMetadataManager * | metadataManager | ||
) |
Definition at line 199 of file CmsShowMainBase.cc.
References edmMakeDummyCfis::base, FWGUIManager::clearStatus(), fireworks::Context::commonPrefs(), context(), fireworks::Context::initEveElements(), m_changeManager, m_colorManager, m_configurationManager, m_contextPtr, m_eiManager, m_geom, m_guiManager, m_metadataManagerPtr, m_navigatorPtr, m_startupTasks, m_viewManager, HLT_2024v14_cff::navigator, FWModelChangeManager::newItemSlot(), partialLoadConfiguration(), partialWriteToConfigFile(), FWViewManagerManager::registerEventItem(), reloadConfiguration(), fireworks::Context::setGeom(), AlCaHLTBitMon_QueryRunRegistry::string, and writeToConfigFile().
Referenced by CmsShowMain::CmsShowMain(), and FWFFLooper::FWFFLooper().
void CmsShowMainBase::setupActions | ( | ) |
Definition at line 74 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(), and CmsShowMain::setupDataHandling().
void CmsShowMainBase::setupAutoLoad | ( | float | x | ) |
Definition at line 301 of file CmsShowMainBase.cc.
References m_guiManager, m_playDelay, and x.
Referenced by CmsShowMain::CmsShowMain().
void CmsShowMainBase::setupConfiguration | ( | ) |
Definition at line 322 of file CmsShowMainBase.cc.
References MillePedeFileConverter_cfg::e, beamvalidation::exit(), fwLog, fwlog::kError, m_configFileName, m_configurationManager, m_guiManager, and m_metadataManagerPtr.
Referenced by FWFFLooper::beginRun(), CmsShowMain::setLoadedAnyInputFileAfterStartup(), and CmsShowMain::setupDataHandling().
void CmsShowMainBase::setupDebugSupport | ( | ) |
Definition at line 349 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, m_TGeoName, FWTableViewManager::removeAllItems(), AlCaHLTBitMon_QueryRunRegistry::string, FWGUIManager::updateStatus(), and viewManager().
Referenced by FWFFLooper::beginRun(), and CmsShowMain::CmsShowMain().
void CmsShowMainBase::startAutoLoadTimer | ( | ) |
Definition at line 310 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 66 of file CmsShowMainBase.h.
References m_startupTasks.
Referenced by CmsShowMain::CmsShowMain(), FWFFLooper::loadDefaultGeometryFile(), and FWFFLooper::startingNewLoop().
void CmsShowMainBase::stopAutoLoadTimer | ( | ) |
Definition at line 317 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, and FWFFLooper.
Definition at line 374 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 361 of file CmsShowMainBase.cc.
References m_guiManager, m_loop, and unsetPlayLoopImp().
|
private |
Definition at line 370 of file CmsShowMainBase.cc.
References m_loop.
Referenced by setupActions(), and unsetPlayLoop().
|
inline |
Definition at line 60 of file CmsShowMainBase.h.
References m_viewManager.
Referenced by setupViewManagers().
void CmsShowMainBase::writePartialToConfigFile | ( | ) |
void CmsShowMainBase::writeToConfigFile | ( | const std::string & | config | ) |
Definition at line 246 of file CmsShowMainBase.cc.
References m_configFileName, m_configurationManager, and Skims_PA_cff::name.
Referenced by setup().
void CmsShowMainBase::writeToCurrentConfigFile | ( | ) |
Definition at line 251 of file CmsShowMainBase.cc.
References m_configFileName, and m_configurationManager.
Referenced by setupActions().
|
private |
Definition at line 157 of file CmsShowMainBase.h.
Referenced by setupActions(), startAutoLoadTimer(), and stopAutoLoadTimer().
|
private |
Definition at line 170 of file CmsShowMainBase.h.
Referenced by startAutoLoadTimer(), and stopAutoLoadTimer().
|
private |
Definition at line 168 of file CmsShowMainBase.h.
Referenced by draw(), and setAutoSaveAllViewsFormat().
|
private |
Definition at line 169 of file CmsShowMainBase.h.
Referenced by draw(), and setAutoSaveAllViewsHeight().
|
private |
Definition at line 148 of file CmsShowMainBase.h.
Referenced by changeManager(), modelChangeManager(), and setup().
|
private |
Definition at line 149 of file CmsShowMainBase.h.
Referenced by colorManager(), and setup().
|
private |
Definition at line 175 of file CmsShowMainBase.h.
Referenced by configFilename(), partialWriteToConfigFile(), reloadConfiguration(), setConfigFilename(), setupConfiguration(), writeToConfigFile(), and writeToCurrentConfigFile().
|
private |
Definition at line 150 of file CmsShowMainBase.h.
Referenced by configurationManager(), partialLoadConfiguration(), partialWriteToConfigFile(), reloadConfiguration(), setup(), setupConfiguration(), writeToConfigFile(), and writeToCurrentConfigFile().
|
private |
Definition at line 163 of file CmsShowMainBase.h.
Referenced by context(), draw(), setup(), and setupViewManagers().
|
private |
Definition at line 151 of file CmsShowMainBase.h.
Referenced by draw(), eiManager(), partialLoadConfiguration(), registerPhysicsObject(), reloadConfiguration(), and setup().
|
private |
Definition at line 171 of file CmsShowMainBase.h.
Referenced by forward(), playBackward(), and playForward().
|
private |
Definition at line 177 of file CmsShowMainBase.h.
Referenced by getGeom(), loadGeometry(), and setup().
|
private |
Definition at line 176 of file CmsShowMainBase.h.
Referenced by geometryFilename(), loadGeometry(), and setGeometryFilename().
|
private |
Definition at line 152 of file CmsShowMainBase.h.
Referenced by draw(), guiManager(), reloadConfiguration(), setPlayLoop(), setup(), setupActions(), setupAutoLoad(), setupConfiguration(), setupDebugSupport(), and unsetPlayLoop().
|
private |
Definition at line 172 of file CmsShowMainBase.h.
Referenced by isPlaying(), playBackward(), playForward(), and stopPlaying().
|
private |
Definition at line 173 of file CmsShowMainBase.h.
Referenced by loop(), setPlayLoop(), setPlayLoopImp(), unsetPlayLoop(), and unsetPlayLoopImp().
|
private |
Definition at line 162 of file CmsShowMainBase.h.
Referenced by setup(), setupConfiguration(), and setupViewManagers().
|
private |
Definition at line 161 of file CmsShowMainBase.h.
Referenced by doFirstEvent(), doLastEvent(), doNextEvent(), doPreviousEvent(), draw(), goToRunEvent(), setup(), and setupActions().
|
private |
Definition at line 174 of file CmsShowMainBase.h.
Referenced by setPlayDelay(), setupActions(), setupAutoLoad(), and startAutoLoadTimer().
|
private |
Definition at line 153 of file CmsShowMainBase.h.
Referenced by selectionManager().
|
private |
Definition at line 178 of file CmsShowMainBase.h.
Referenced by setSimGeometryFilename(), and setupViewManagers().
|
private |
Definition at line 154 of file CmsShowMainBase.h.
Referenced by setup(), and startupTasks().
|
private |
Definition at line 179 of file CmsShowMainBase.h.
Referenced by setSimGeometryFilename(), and setupViewManagers().
|
private |
Definition at line 155 of file CmsShowMainBase.h.
Referenced by draw(), setup(), and viewManager().