#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 |
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 () |
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 41 of file FWFFLooper.h.
|
private |
Definition at line 97 of file FWFFLooper.h.
FWFFLooper::FWFFLooper | ( | const edm::ParameterSet & | ps | ) |
Definition at line 116 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(), and CmsShowMainBase::setup().
|
virtual |
|
private |
|
virtual |
Override this method if you need to monitor the state of the processing.
Reimplemented from edm::EDLooperBase.
Definition at line 180 of file FWFFLooper.cc.
References CmsShowMainBase::guiManager(), m_pathsGUI, postEndJob(), FWPathsPopup::postModule(), FWPathsPopup::postProcessEvent(), FWPathsPopup::preModule(), edm::ActivityRegistry::watchPostEndJob(), edm::ActivityRegistry::watchPostModule(), edm::ActivityRegistry::watchPostProcessEvent(), and edm::ActivityRegistry::watchPreModule().
|
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 257 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::setIsPlaying(), and CmsShowMainBase::stopAutoLoadTimer().
|
virtual |
Called after all event modules have processed the begin of a Run.
Reimplemented from edm::EDLooperBase.
Definition at line 292 of file FWFFLooper.cc.
References cond::rpcobimon::current, cmsCodeRules.cppFunctionSkipper::exception, FWGUIManager::filterButtonClicked_, edm::EventSetup::find(), edm::EventSetup::get(), edm::Run::getByType(), CmsShowMainBase::getGeom(), CmsShowMainBase::guiManager(), FWGeometry::initMap(), edm::HandleBase::isValid(), loadDefaultGeometryFile(), m_autoReload, m_context, m_firstTime, m_MagField, edm::ESHandle< class >::product(), FWGUIManager::setFilterButtonText(), CmsShowMainBase::setupActions(), CmsShowMainBase::setupConfiguration(), CmsShowMainBase::setupViewManagers(), FWGUIManager::showEventFilterGUI(), FWGUIManager::showEventFilterGUI_, showPathsGUI(), and FWGUIManager::updateStatus().
|
virtual |
Implements CmsShowMainBase.
Definition at line 232 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 = "" | ) |
|
virtual |
Called after all event modules have had a chance to process the Event.
Implements edm::EDLooperBase.
Definition at line 362 of file FWFFLooper.cc.
References 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_isFirstEvent, m_isLastEvent, m_metadataManager, m_navigator, m_nextEventId, m_pathsGUI, m_Rint, edm::ProcessingController::reverseState(), edm::ProcessingController::setTransitionToEvent(), edm::ProcessingController::setTransitionToNextEvent(), edm::ProcessingController::setTransitionToPreviousEvent(), and CmsShowMainBase::startAutoLoadTimer().
|
virtual |
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 467 of file FWFFLooper.cc.
References edm::ModuleChanger::changeModule(), i, edm::EDLooperBase::kContinue, m_scheduledChanges, and edm::EDLooperBase::moduleChanger().
TEveMagField * FWFFLooper::getMagField | ( | ) |
|
private |
Definition at line 172 of file FWFFLooper.cc.
References CmsShowTaskExecutor::addTask(), f, CmsShowMainBase::loadGeometry(), and CmsShowMainBase::startupTasks().
Referenced by beginRun(), and FWFFLooper().
|
private |
void FWFFLooper::postBeginJob | ( | ) |
void FWFFLooper::postEndJob | ( | ) |
Definition at line 225 of file FWFFLooper.cc.
Referenced by attachTo().
|
virtual |
Implements CmsShowMainBase.
Definition at line 450 of file FWFFLooper.cc.
void FWFFLooper::requestChanges | ( | const std::string & | moduleLabel, |
const edm::ParameterSet & | ps | ||
) |
Definition at line 498 of file FWFFLooper.cc.
References m_scheduledChanges, and moduleLabel().
Referenced by FWPathsPopup::scheduleReloadEvent().
void FWFFLooper::setupFieldForPropagator | ( | TEveTrackPropagator * | prop | ) |
void FWFFLooper::showPathsGUI | ( | const TGWindow * | p | ) |
Definition at line 481 of file FWFFLooper.cc.
References CmsShowMainBase::guiManager(), m_pathsGUI, and FWGUIManager::setFilterButtonText().
Referenced by beginRun().
|
virtual |
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 201 of file FWFFLooper.cc.
References CmsShowTaskExecutor::addTask(), f, info, m_pathsGUI, m_Rint, edm::EDLooperBase::scheduleInfo(), FWPathsPopup::setup(), CmsShowTaskExecutor::startDoingTasks(), and CmsShowMainBase::startupTasks().
|
virtual |
Implements CmsShowMainBase.
Definition at line 278 of file FWFFLooper.cc.
References checkPosition(), FWGUIManager::enableActions(), CmsShowMainFrame::enableComplexNavigation(), FWGUIManager::getMainFrame(), CmsShowMainBase::guiManager(), m_autoReload, CmsShowMainBase::setIsPlaying(), and CmsShowMainBase::stopAutoLoadTimer().
|
private |
Definition at line 92 of file FWFFLooper.h.
Referenced by display().
|
private |
Definition at line 82 of file FWFFLooper.h.
|
private |
Definition at line 100 of file FWFFLooper.h.
Referenced by autoLoadNewEvent(), beginRun(), duringLoop(), and stopPlaying().
|
private |
Definition at line 85 of file FWFFLooper.h.
Referenced by beginRun(), and FWFFLooper().
|
private |
Definition at line 87 of file FWFFLooper.h.
|
private |
Definition at line 94 of file FWFFLooper.h.
Referenced by beginRun().
|
private |
Definition at line 101 of file FWFFLooper.h.
Referenced by autoLoadNewEvent(), checkPosition(), and duringLoop().
|
private |
Definition at line 102 of file FWFFLooper.h.
Referenced by autoLoadNewEvent(), checkPosition(), and duringLoop().
|
private |
Definition at line 90 of file FWFFLooper.h.
Referenced by beginRun(), FWFFLooper(), getMagField(), setupFieldForPropagator(), and ~FWFFLooper().
|
private |
Definition at line 84 of file FWFFLooper.h.
Referenced by duringLoop(), and FWFFLooper().
|
private |
Definition at line 83 of file FWFFLooper.h.
Referenced by autoLoadNewEvent(), duringLoop(), and FWFFLooper().
|
private |
Definition at line 99 of file FWFFLooper.h.
Referenced by duringLoop().
|
private |
Definition at line 95 of file FWFFLooper.h.
Referenced by attachTo(), duringLoop(), showPathsGUI(), and startingNewLoop().
|
private |
Definition at line 88 of file FWFFLooper.h.
Referenced by display(), duringLoop(), and startingNewLoop().
|
private |
Definition at line 98 of file FWFFLooper.h.
Referenced by endOfLoop(), and requestChanges().
|
private |
Definition at line 93 of file FWFFLooper.h.