#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::unique_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::unique_ptr< FWFFMetadataManager > | m_metadataManager |
std::unique_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 | |
fireworks::Context * | context () |
virtual void | eventChangedImp () |
void | eventChangedSlot () |
void | sendVersionInfo () |
Protected Member Functions inherited from edm::EDLooperBase | |
ModuleChanger * | moduleChanger () |
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 42 of file FWFFLooper.h.
|
private |
Definition at line 102 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(), CmsShowMainBase::setup(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
override |
|
private |
|
overridevirtual |
Override this method if you need to monitor the state of the processing.
Reimplemented from edm::EDLooperBase.
Definition at line 175 of file FWFFLooper.cc.
References CmsShowMainBase::guiManager(), m_pathsGUI, postEndJob(), FWPathsPopup::postModuleEvent(), FWPathsPopup::preModuleEvent(), edm::ActivityRegistry::watchPostEndJob(), edm::ActivityRegistry::watchPostModuleEvent(), and edm::ActivityRegistry::watchPreModuleEvent().
|
overridevirtual |
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 237 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 264 of file FWFFLooper.cc.
References edm::ConditionsInRunBlock::BAvgCurrent, edm::ESWatcher< T >::check(), CmsShowMainBase::context(), cppFunctionSkipper::exception, FWGUIManager::filterButtonClicked_, edm::EventSetup::find(), fwLog, edm::EventSetup::get(), get, edm::Run::getByLabel(), fireworks::Context::getField(), CmsShowMainBase::getGeom(), CmsShowMainBase::guiManager(), FWRecoGeometry::idToName, FWGeometry::initMap(), edm::HandleBase::isValid(), fwlog::kInfo, CmsShowMainBase::loadGeometry(), m_autoReload, RunInfo::m_avg_current, m_context, m_firstTime, m_geomWatcher, m_MagField, edm::ESHandle< T >::product(), FWMagField::setFFFieldMag(), FWGUIManager::setFilterButtonText(), CmsShowMainBase::setGeometryFilename(), CmsShowMainBase::setupActions(), CmsShowMainBase::setupConfiguration(), CmsShowMainBase::setupViewManagers(), FWGUIManager::showEventFilterGUI(), FWGUIManager::showEventFilterGUI_, showPathsGUI(), and FWGUIManager::updateStatus().
|
overridevirtual |
Implements CmsShowMainBase.
Definition at line 215 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 333 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 423 of file FWFFLooper.cc.
References beam_dqm_sourceclient-live_cfg::cerr, edm::ModuleChanger::changeModule(), MillePedeFileConverter_cfg::e, fwLog, mps_fire::i, edm::EDLooperBase::kContinue, fwlog::kError, m_scheduledChanges, and edm::EDLooperBase::moduleChanger().
TEveMagField * FWFFLooper::getMagField | ( | ) |
|
private |
Definition at line 169 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 210 of file FWFFLooper.cc.
Referenced by attachTo().
|
overridevirtual |
Implements CmsShowMainBase.
Definition at line 408 of file FWFFLooper.cc.
void FWFFLooper::remakeGeometry | ( | const DisplayGeomRecord & | dgRec | ) |
Definition at line 455 of file FWFFLooper.cc.
References fwLog, relativeConstraints::geom, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get(), fwlog::kInfo, and FWGeometryTableViewManager::setGeoManagerRuntime().
void FWFFLooper::requestChanges | ( | const std::string & | moduleLabel, |
const edm::ParameterSet & | ps | ||
) |
Definition at line 449 of file FWFFLooper.cc.
References m_scheduledChanges, and HerwigMaxPtPartonFilter_cfi::moduleLabel.
Referenced by FWPathsPopup::scheduleReloadEvent().
void FWFFLooper::setupFieldForPropagator | ( | TEveTrackPropagator * | prop | ) |
void FWFFLooper::showPathsGUI | ( | const TGWindow * | p | ) |
Definition at line 437 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 189 of file FWFFLooper.cc.
References CmsShowTaskExecutor::addTask(), cms::cuda::assert(), KineDebug3::count(), f, info(), m_pathsGUI, m_Rint, edm::EDLooperBase::scheduleInfo(), FWPathsPopup::setup(), CmsShowTaskExecutor::startDoingTasks(), and CmsShowMainBase::startupTasks().
|
overridevirtual |
Reimplemented from CmsShowMainBase.
Definition at line 253 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 97 of file FWFFLooper.h.
Referenced by display().
|
private |
Definition at line 87 of file FWFFLooper.h.
|
private |
Definition at line 105 of file FWFFLooper.h.
Referenced by autoLoadNewEvent(), beginRun(), duringLoop(), and stopPlaying().
|
private |
Definition at line 90 of file FWFFLooper.h.
Referenced by beginRun(), and FWFFLooper().
|
private |
Definition at line 92 of file FWFFLooper.h.
|
private |
Definition at line 99 of file FWFFLooper.h.
Referenced by beginRun().
|
private |
Definition at line 109 of file FWFFLooper.h.
Referenced by beginRun(), and duringLoop().
|
private |
Definition at line 106 of file FWFFLooper.h.
Referenced by autoLoadNewEvent(), checkPosition(), and duringLoop().
|
private |
Definition at line 107 of file FWFFLooper.h.
Referenced by autoLoadNewEvent(), checkPosition(), and duringLoop().
|
private |
Definition at line 95 of file FWFFLooper.h.
Referenced by beginRun(), FWFFLooper(), getMagField(), setupFieldForPropagator(), and ~FWFFLooper().
|
private |
Definition at line 89 of file FWFFLooper.h.
Referenced by duringLoop(), and FWFFLooper().
|
private |
Definition at line 88 of file FWFFLooper.h.
Referenced by autoLoadNewEvent(), duringLoop(), and FWFFLooper().
|
private |
Definition at line 104 of file FWFFLooper.h.
Referenced by duringLoop().
|
private |
Definition at line 100 of file FWFFLooper.h.
Referenced by attachTo(), duringLoop(), showPathsGUI(), and startingNewLoop().
|
private |
Definition at line 93 of file FWFFLooper.h.
Referenced by display(), duringLoop(), and startingNewLoop().
|
private |
Definition at line 103 of file FWFFLooper.h.
Referenced by endOfLoop(), and requestChanges().
|
private |
Definition at line 98 of file FWFFLooper.h.