#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 |
const edm::ESGetToken< TGeoManager, DisplayGeomRecord > | m_displayGeomToken |
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 |
const edm::ESGetToken< FWRecoGeometry, FWRecoGeometryRecord > | m_recoGeomToken |
TRint * | m_Rint |
const edm::ESGetToken< RunInfo, RunInfoRcd > | m_runInfoToken |
ModuleChanges | m_scheduledChanges |
bool | m_ShowEvent |
Additional Inherited Members | |
Public Types inherited from edm::EDLooperBase | |
enum | Status { kContinue, kStop } |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
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... | |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
Definition at line 48 of file FWFFLooper.h.
|
private |
Definition at line 108 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 178 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 240 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 267 of file FWFFLooper.cc.
References edm::ConditionsInRunBlock::BAvgCurrent, edm::ESWatcher< T >::check(), CmsShowMainBase::context(), cppFunctionSkipper::exception, FWGUIManager::filterButtonClicked_, edm::EventSetup::find(), fwLog, edm::Run::getByLabel(), edm::EventSetup::getData(), fireworks::Context::getField(), CmsShowMainBase::getGeom(), CmsShowMainBase::guiManager(), FWGeometry::initMap(), edm::HandleBase::isValid(), fwlog::kInfo, CmsShowMainBase::loadGeometry(), m_autoReload, RunInfo::m_avg_current, m_context, m_firstTime, m_geomWatcher, m_MagField, m_recoGeomToken, m_runInfoToken, 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 218 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 DMR_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 172 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 213 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, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get(), fwlog::kInfo, m_displayGeomToken, 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 192 of file FWFFLooper.cc.
References CmsShowTaskExecutor::addTask(), cms::cuda::assert(), submitPVResolutionJobs::count, f, info(), m_pathsGUI, m_Rint, edm::EDLooperBase::scheduleInfo(), FWPathsPopup::setup(), CmsShowTaskExecutor::startDoingTasks(), and CmsShowMainBase::startupTasks().
|
overridevirtual |
Reimplemented from CmsShowMainBase.
Definition at line 256 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 103 of file FWFFLooper.h.
Referenced by display().
|
private |
Definition at line 93 of file FWFFLooper.h.
|
private |
Definition at line 111 of file FWFFLooper.h.
Referenced by autoLoadNewEvent(), beginRun(), duringLoop(), and stopPlaying().
|
private |
Definition at line 96 of file FWFFLooper.h.
Referenced by beginRun(), and FWFFLooper().
|
private |
Definition at line 118 of file FWFFLooper.h.
Referenced by remakeGeometry().
|
private |
Definition at line 98 of file FWFFLooper.h.
|
private |
Definition at line 105 of file FWFFLooper.h.
Referenced by beginRun().
|
private |
Definition at line 115 of file FWFFLooper.h.
Referenced by beginRun(), and duringLoop().
|
private |
Definition at line 112 of file FWFFLooper.h.
Referenced by autoLoadNewEvent(), checkPosition(), and duringLoop().
|
private |
Definition at line 113 of file FWFFLooper.h.
Referenced by autoLoadNewEvent(), checkPosition(), and duringLoop().
|
private |
Definition at line 101 of file FWFFLooper.h.
Referenced by beginRun(), FWFFLooper(), getMagField(), setupFieldForPropagator(), and ~FWFFLooper().
|
private |
Definition at line 95 of file FWFFLooper.h.
Referenced by duringLoop(), and FWFFLooper().
|
private |
Definition at line 94 of file FWFFLooper.h.
Referenced by autoLoadNewEvent(), duringLoop(), and FWFFLooper().
|
private |
Definition at line 110 of file FWFFLooper.h.
Referenced by duringLoop().
|
private |
Definition at line 106 of file FWFFLooper.h.
Referenced by attachTo(), duringLoop(), showPathsGUI(), and startingNewLoop().
|
private |
Definition at line 116 of file FWFFLooper.h.
Referenced by beginRun().
|
private |
Definition at line 99 of file FWFFLooper.h.
Referenced by display(), duringLoop(), and startingNewLoop().
|
private |
Definition at line 117 of file FWFFLooper.h.
Referenced by beginRun().
|
private |
Definition at line 109 of file FWFFLooper.h.
Referenced by endOfLoop(), and requestChanges().
|
private |
Definition at line 104 of file FWFFLooper.h.