#include <FWFFLooper.h>
Private Types | |
typedef std::map< std::string, edm::ParameterSet > | ModuleChanges |
Private Member Functions | |
FWFFLooper (const FWFFLooper &) | |
void | loadDefaultGeometryFile (void) |
const FWFFLooper & | operator= (const FWFFLooper &) |
Private Attributes | |
bool | m_AllowStep |
edm::Service< FWFFHelper > | m_appHelper |
bool | m_autoReload |
std::auto_ptr< fireworks::Context > | m_context |
TEveManager * | m_EveManager |
bool | m_firstTime |
edm::ESWatcher< DisplayGeomRecord > | m_geomWatcher |
bool | m_isFirstEvent |
bool | m_isLastEvent |
TEveMagField * | m_MagField |
std::auto_ptr < FWFFMetadataManager > | m_metadataManager |
std::auto_ptr< FWFFNavigator > | m_navigator |
edm::EventID | m_nextEventId |
FWPathsPopup * | m_pathsGUI |
TRint * | m_Rint |
ModuleChanges | m_scheduledChanges |
bool | m_ShowEvent |
Additional Inherited Members | |
Public Types inherited from edm::EDLooperBase | |
enum | Status { kContinue, kStop } |
Protected Member Functions inherited from CmsShowMainBase | |
virtual void | eventChangedImp () |
void | eventChangedSlot () |
void | sendVersionInfo () |
Protected Member Functions inherited from edm::EDLooperBase | |
ModuleChanger const * | moduleChanger () const |
This only returns a non-zero value during the call to endOfLoop. More... | |
ScheduleInfo const * | scheduleInfo () const |
This returns a non-zero value after the constructor has been called. More... | |
Definition at line 44 of file FWFFLooper.h.
|
private |
Definition at line 103 of file FWFFLooper.h.
FWFFLooper::FWFFLooper | ( | const edm::ParameterSet & | ps | ) |
Definition at line 131 of file FWFFLooper.cc.
References CmsShowMainBase::eiManager(), CmsShowMainBase::geometryFilename(), edm::ParameterSet::getUntrackedParameter(), loadDefaultGeometryFile(), m_context, m_MagField, m_metadataManager, m_navigator, CmsShowMainBase::setConfigFilename(), FWEventItemsManager::setContext(), CmsShowMainBase::setGeometryFilename(), CmsShowMainBase::setup(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
|
private |
|
virtual |
Override this method if you need to monitor the state of the processing.
Reimplemented from edm::EDLooperBase.
Definition at line 196 of file FWFFLooper.cc.
References CmsShowMainBase::guiManager(), m_pathsGUI, postEndJob(), FWPathsPopup::postModuleEvent(), FWPathsPopup::preModuleEvent(), edm::ActivityRegistry::watchPostEndJob(), edm::ActivityRegistry::watchPostModuleEvent(), and edm::ActivityRegistry::watchPreModuleEvent().
|
virtual |
This actually needs to be different from the standalone case because nextEvent() / previousEvent() will immediately interrupt the GUI event loop and fall back to the looper.
Implements CmsShowMainBase.
Definition at line 272 of file FWFFLooper.cc.
References FWGUIManager::enableActions(), CmsShowMainFrame::enableComplexNavigation(), CmsShowMainBase::forward(), FWGUIManager::getMainFrame(), CmsShowMainBase::guiManager(), CmsShowMainBase::loop(), m_autoReload, m_isFirstEvent, m_isLastEvent, m_navigator, CmsShowMainBase::stopAutoLoadTimer(), and CmsShowMainBase::stopPlaying().
|
overridevirtual |
Called after all event modules have processed the begin of a Run.
Reimplemented from edm::EDLooperBase.
Definition at line 307 of file FWFFLooper.cc.
References edm::ESWatcher< T >::check(), cond::rpcobimon::current, cppFunctionSkipper::exception, FWGUIManager::filterButtonClicked_, edm::EventSetup::find(), fwLog, edm::EventSetup::get(), edm::Run::getByLabel(), CmsShowMainBase::getGeom(), CmsShowMainBase::guiManager(), FWGeometry::initMap(), edm::HandleBase::isValid(), fwlog::kInfo, CmsShowMainBase::loadGeometry(), m_autoReload, m_context, m_firstTime, m_geomWatcher, m_MagField, edm::ESHandle< class >::product(), FWGUIManager::setFilterButtonText(), CmsShowMainBase::setGeometryFilename(), CmsShowMainBase::setupActions(), CmsShowMainBase::setupConfiguration(), CmsShowMainBase::setupViewManagers(), FWGUIManager::showEventFilterGUI(), FWGUIManager::showEventFilterGUI_, showPathsGUI(), and FWGUIManager::updateStatus().
|
virtual |
Implements CmsShowMainBase.
Definition at line 247 of file FWFFLooper.cc.
References FWGUIManager::disableNext(), FWGUIManager::disablePrevious(), CSGAction::enable(), CmsShowMainFrame::enableComplexNavigation(), CmsShowMainFrame::enableNavigatorControls(), FWGUIManager::getMainFrame(), CmsShowMainBase::guiManager(), CmsShowMainBase::isPlaying(), CmsShowMainBase::loop(), m_isFirstEvent, m_isLastEvent, and FWGUIManager::playEventsAction().
Referenced by duringLoop(), and stopPlaying().
void FWFFLooper::display | ( | const std::string & | info = "" | ) |
|
overridevirtual |
Called after all event modules have had a chance to process the Event.
Implements edm::EDLooperBase.
Definition at line 387 of file FWFFLooper.cc.
References edm::ESWatcher< T >::check(), checkPosition(), CmsShowMainBase::draw(), edm::ProcessingController::forwardState(), FWPathsPopup::hasChanges(), edm::ProcessingController::kAtFirstEvent, edm::ProcessingController::kAtLastEvent, edm::EDLooperBase::kContinue, FWFFNavigator::kFirstEvent, FWFFNavigator::kLastEvent, FWFFNavigator::kNextEvent, FWFFNavigator::kPreviousEvent, edm::EDLooperBase::kStop, m_autoReload, m_geomWatcher, m_isFirstEvent, m_isLastEvent, m_metadataManager, m_navigator, m_nextEventId, m_pathsGUI, m_Rint, FWPathsPopup::postEvent(), edm::ProcessingController::reverseState(), edm::ProcessingController::setTransitionToEvent(), edm::ProcessingController::setTransitionToNextEvent(), edm::ProcessingController::setTransitionToPreviousEvent(), and CmsShowMainBase::startAutoLoadTimer().
|
overridevirtual |
This is called at the end of looping. We always continue because we want the transition set in the ProcessingController to happen.
Implements edm::EDLooperBase.
Definition at line 500 of file FWFFLooper.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, edm::ModuleChanger::changeModule(), alignCSCRings::e, fwLog, i, edm::EDLooperBase::kContinue, fwlog::kError, m_scheduledChanges, edm::EDLooperBase::moduleChanger(), and cms::Exception::what().
TEveMagField * FWFFLooper::getMagField | ( | ) |
|
private |
Definition at line 188 of file FWFFLooper.cc.
References CmsShowTaskExecutor::addTask(), f, CmsShowMainBase::loadGeometry(), and CmsShowMainBase::startupTasks().
Referenced by FWFFLooper().
|
private |
void FWFFLooper::postBeginJob | ( | ) |
void FWFFLooper::postEndJob | ( | ) |
Definition at line 240 of file FWFFLooper.cc.
Referenced by attachTo().
|
virtual |
Implements CmsShowMainBase.
Definition at line 483 of file FWFFLooper.cc.
void FWFFLooper::remakeGeometry | ( | const DisplayGeomRecord & | dgRec | ) |
Definition at line 546 of file FWFFLooper.cc.
References fwLog, relativeConstraints::geom, edm::eventsetup::EventSetupRecord::get(), fwlog::kInfo, edm::ESHandle< class >::product(), and FWGeometryTableViewManager::setGeoManagerRuntime().
void FWFFLooper::requestChanges | ( | const std::string & | moduleLabel, |
const edm::ParameterSet & | ps | ||
) |
Definition at line 538 of file FWFFLooper.cc.
References m_scheduledChanges.
Referenced by FWPathsPopup::scheduleReloadEvent().
void FWFFLooper::setupFieldForPropagator | ( | TEveTrackPropagator * | prop | ) |
void FWFFLooper::showPathsGUI | ( | const TGWindow * | p | ) |
Definition at line 521 of file FWFFLooper.cc.
References CmsShowMainBase::guiManager(), m_pathsGUI, and FWGUIManager::setFilterButtonText().
Referenced by beginRun().
|
overridevirtual |
Called before system starts to loop over the events. The argument is a count of how many loops have been processed. For the first time through the events the argument will be 0.
Implements edm::EDLooperBase.
Definition at line 216 of file FWFFLooper.cc.
References CmsShowTaskExecutor::addTask(), assert(), f, info(), m_pathsGUI, m_Rint, edm::EDLooperBase::scheduleInfo(), FWPathsPopup::setup(), CmsShowTaskExecutor::startDoingTasks(), and CmsShowMainBase::startupTasks().
|
virtual |
Reimplemented from CmsShowMainBase.
Definition at line 293 of file FWFFLooper.cc.
References checkPosition(), FWGUIManager::enableActions(), CmsShowMainFrame::enableComplexNavigation(), FWGUIManager::getMainFrame(), CmsShowMainBase::guiManager(), m_autoReload, CmsShowMainBase::stopAutoLoadTimer(), and CmsShowMainBase::stopPlaying().
|
private |
Definition at line 98 of file FWFFLooper.h.
Referenced by display().
|
private |
Definition at line 88 of file FWFFLooper.h.
|
private |
Definition at line 106 of file FWFFLooper.h.
Referenced by autoLoadNewEvent(), beginRun(), duringLoop(), and stopPlaying().
|
private |
Definition at line 91 of file FWFFLooper.h.
Referenced by beginRun(), and FWFFLooper().
|
private |
Definition at line 93 of file FWFFLooper.h.
|
private |
Definition at line 100 of file FWFFLooper.h.
Referenced by beginRun().
|
private |
Definition at line 110 of file FWFFLooper.h.
Referenced by beginRun(), and duringLoop().
|
private |
Definition at line 107 of file FWFFLooper.h.
Referenced by autoLoadNewEvent(), checkPosition(), and duringLoop().
|
private |
Definition at line 108 of file FWFFLooper.h.
Referenced by autoLoadNewEvent(), checkPosition(), and duringLoop().
|
private |
Definition at line 96 of file FWFFLooper.h.
Referenced by beginRun(), FWFFLooper(), getMagField(), setupFieldForPropagator(), and ~FWFFLooper().
|
private |
Definition at line 90 of file FWFFLooper.h.
Referenced by duringLoop(), and FWFFLooper().
|
private |
Definition at line 89 of file FWFFLooper.h.
Referenced by autoLoadNewEvent(), duringLoop(), and FWFFLooper().
|
private |
Definition at line 105 of file FWFFLooper.h.
Referenced by duringLoop().
|
private |
Definition at line 101 of file FWFFLooper.h.
Referenced by attachTo(), duringLoop(), showPathsGUI(), and startingNewLoop().
|
private |
Definition at line 94 of file FWFFLooper.h.
Referenced by display(), duringLoop(), and startingNewLoop().
|
private |
Definition at line 104 of file FWFFLooper.h.
Referenced by endOfLoop(), and requestChanges().
|
private |
Definition at line 99 of file FWFFLooper.h.