#include <CmsShowNavigator.h>
Classes | |
struct | FileQueue_t |
Public Types | |
enum | EFilterMode { kOr = 1, kAnd = 2 } |
enum | EFilterState { kOff, kOn, kWithdrawn } |
Public Types inherited from FWNavigatorBase | |
enum | EFilterMode { kOr = 1, kAnd = 2 } |
enum | EFilterState { kOff, kOn, kWithdrawn } |
Public Member Functions | |
void | activateNewFileOnNextEvent () |
void | addTo (FWConfiguration &) const override |
bool | appendFile (const std::string &fileName, bool checkFileQueueSize, bool live) |
void | applyFiltersFromGUI () |
bool | canEditFiltersExternally () |
CmsShowNavigator (const CmsShowMain &) | |
void | editFiltersExternally () |
void | eventFilterEnableCallback (Bool_t) |
bool | filesNeedUpdate () const |
void | filterEvents () |
void | filterEventsAndReset () |
const char * | filterStatusMessage () |
void | firstEvent () override |
const char * | frameTitle () |
const edm::EventBase * | getCurrentEvent () const override |
std::string | getCurrentGlobalTag () |
int | getFilterState () |
int | getNSelectedEvents () override |
int | getNTotalEvents () override |
std::vector< std::string > & | getProcessList () const |
void | goTo (FileQueue_i fi, int event) |
void | goToRunEvent (edm::RunNumber_t, edm::LuminosityBlockNumber_t, edm::EventNumber_t) override |
bool | isFirstEvent () override |
bool | isLastEvent () override |
void | lastEvent () override |
void | nextEvent () override |
bool | nextSelectedEvent () override |
bool | openFile (const std::string &fileName) |
void | previousEvent () override |
bool | previousSelectedEvent () override |
Int_t | realEntry (Int_t rawEntry) |
void | resetNewFileOnNextEvent () |
void | resumeFilter () |
void | setFrom (const FWConfiguration &) override |
void | setMaxNumberOfFilesToChain (unsigned int i) |
void | showEventFilterGUI (const TGWindow *p) |
void | toggleFilterEnable () |
void | withdrawFilter () |
~CmsShowNavigator () override | |
Public Member Functions inherited from FWNavigatorBase | |
FWNavigatorBase (const CmsShowMainBase &) | |
FWNavigatorBase (const FWNavigatorBase &)=delete | |
const FWNavigatorBase & | operator= (const FWNavigatorBase &)=delete |
~FWNavigatorBase () override | |
Public Member Functions inherited from FWConfigurable | |
FWConfigurable () | |
FWConfigurable (const FWConfigurable &)=delete | |
const FWConfigurable & | operator= (const FWConfigurable &)=delete |
virtual | ~FWConfigurable () |
Public Attributes | |
sigc::signal< void(bool)> | editFiltersExternally_ |
sigc::signal< void(const TFile *)> | fileChanged_ |
sigc::signal< void(int)> | filterStateChanged_ |
sigc::signal< void(bool)> | postFiltering_ |
sigc::signal< void()> | preFiltering_ |
Public Attributes inherited from FWNavigatorBase | |
sigc::signal< void()> | newEvent_ |
Private Types | |
typedef FileQueue_t::iterator | FileQueue_i |
typedef FQBase_t::iterator | FQBase_i |
typedef std::list< FWFileEntry * > | FQBase_t |
Private Member Functions | |
void | addFilter (FWEventSelector *) |
void | changeFilter (FWEventSelector *, bool filterNeedUpdate) |
CmsShowNavigator (const CmsShowNavigator &) | |
void | newFile (FileQueue_i) |
const CmsShowNavigator & | operator= (const CmsShowNavigator &) |
void | removeFilter (std::list< FWEventSelector *>::iterator) |
void | setCurrentFile (FileQueue_i) |
void | updateFileFilters () |
void | updateSelectorsInfo () |
Private Attributes | |
int | m_currentEvent |
FileQueue_i | m_currentFile |
FileQueue_t | m_files |
bool | m_filesNeedUpdate |
int | m_filterMode |
EFilterState | m_filterState |
FWGUIEventFilter * | m_guiFilter |
const CmsShowMain & | m_main |
unsigned int | m_maxNumberOfFilesToChain |
bool | m_newFileOnNextEvent |
std::list< FWEventSelector * > | m_selectors |
Definition at line 36 of file CmsShowNavigator.h.
|
private |
Definition at line 72 of file CmsShowNavigator.h.
|
private |
Definition at line 43 of file CmsShowNavigator.h.
|
private |
Definition at line 42 of file CmsShowNavigator.h.
CmsShowNavigator::CmsShowNavigator | ( | const CmsShowMain & | main | ) |
Definition at line 46 of file CmsShowNavigator.cc.
References filterStateChanged_, m_guiFilter, and FWGUIEventFilter::updateFilterStateLabel().
|
override |
|
private |
|
inline |
|
private |
Definition at line 447 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), geometryDiff::file, fwLog, fwlog::kDebug, FWEventSelector::m_expression, m_files, m_filesNeedUpdate, and m_selectors.
Referenced by applyFiltersFromGUI().
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 753 of file CmsShowNavigator.cc.
References FWConfiguration::addKeyValue(), ALCARECOTkAlBeamHalo_cff::filter, kOn, m_filterMode, m_filterState, m_selectors, alignCSCRings::s, EgammaValidation_Wenu_cff::sel, and createJobs::tmp.
bool CmsShowNavigator::appendFile | ( | const std::string & | fileName, |
bool | checkFileQueueSize, | ||
bool | live | ||
) |
Definition at line 109 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), DMR_cfg::cerr, cppFunctionSkipper::exception, geometryDiff::file, MillePedeFileConverter_cfg::fileName, fwLog, CmsShowMain::getGlobalTagCheck(), CmsShowMain::getVersionCheck(), mps_fire::i, CmsShowNavigator::FileQueue_t::iterator::isSet(), fwlog::kDebug, fwlog::kError, kOff, fwlog::kWarning, m_currentFile, m_files, m_filterState, m_main, m_maxNumberOfFilesToChain, m_selectors, newFile(), setCurrentFile(), and updateFileFilters().
void CmsShowNavigator::applyFiltersFromGUI | ( | ) |
Definition at line 476 of file CmsShowNavigator.cc.
References addFilter(), changeFilter(), filterStateChanged_, g, FWGUIEventFilter::getFilterMode(), FWGUIEventFilter::guiSelectors(), kOff, kOn, m_filesNeedUpdate, m_filterMode, m_filterState, m_guiFilter, m_selectors, EcalTangentSkim_cfg::o, removeFilter(), FWGUIEventFilter::setupDisableFilteringButton(), and updateFileFilters().
Referenced by FWGUIEventFilter::apply().
bool CmsShowNavigator::canEditFiltersExternally | ( | ) |
Definition at line 631 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), geometryDiff::file, FWGUIEventFilter::isOpen(), m_files, and m_guiFilter.
Referenced by editFiltersExternally(), and showEventFilterGUI().
|
private |
Definition at line 459 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), geometryDiff::file, fwLog, fwlog::kDebug, FWEventSelector::m_expression, m_files, and m_filesNeedUpdate.
Referenced by applyFiltersFromGUI().
void CmsShowNavigator::editFiltersExternally | ( | ) |
Definition at line 648 of file CmsShowNavigator.cc.
References canEditFiltersExternally(), and editFiltersExternally_.
Referenced by FWGUIEventFilter::CloseWindow().
void CmsShowNavigator::eventFilterEnableCallback | ( | Bool_t | ) |
|
inline |
void CmsShowNavigator::filterEvents | ( | ) |
void CmsShowNavigator::filterEventsAndReset | ( | ) |
const char * CmsShowNavigator::filterStatusMessage | ( | ) |
Definition at line 622 of file CmsShowNavigator.cc.
References getNSelectedEvents(), getNTotalEvents(), kOff, kOn, and m_filterState.
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 235 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), goTo(), kOn, m_files, m_filterState, and x.
const char * CmsShowNavigator::frameTitle | ( | ) |
Definition at line 792 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), mps_fire::i, createfilelist::int, cmsLHEtoEOSManager::l, m_currentEvent, m_currentFile, m_files, and Skims_PA_cff::name.
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 788 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::iterator::isSet(), and m_currentFile.
std::string CmsShowNavigator::getCurrentGlobalTag | ( | ) |
Definition at line 816 of file CmsShowNavigator.cc.
References m_files, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 604 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), geometryDiff::file, and m_files.
Referenced by filterStatusMessage(), updateFileFilters(), and FWGUIEventFilter::updateFilterStateLabel().
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 613 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), geometryDiff::file, and m_files.
Referenced by filterStatusMessage(), updateFileFilters(), and FWGUIEventFilter::updateFilterStateLabel().
std::vector< std::string > & CmsShowNavigator::getProcessList | ( | ) | const |
Definition at line 784 of file CmsShowNavigator.cc.
References CmsShowMain::context(), m_main, fireworks::Context::metadataManager(), and FWJobMetadataManager::processNamesInJob().
Referenced by FWGUIEventFilter::addSelector().
void CmsShowNavigator::goTo | ( | FileQueue_i | fi, |
int | event | ||
) |
Definition at line 183 of file CmsShowNavigator.cc.
References edmPickEvents::event, fwLog, FWTTreeCache::IsLogging(), fwlog::kDebug, m_currentEvent, m_currentFile, FWNavigatorBase::newEvent_, fwlog::presentLogLevel(), setCurrentFile(), protons_cff::time, and dqmMemoryStats::total.
Referenced by firstEvent(), goToRunEvent(), lastEvent(), nextEvent(), nextSelectedEvent(), previousEvent(), and previousSelectedEvent().
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 223 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), geometryDiff::file, goTo(), m_files, and writedatasetfile::run.
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 533 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), geometryDiff::file, kOn, m_currentEvent, m_currentFile, m_files, and m_filterState.
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 553 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), geometryDiff::file, kOn, m_currentEvent, m_currentFile, m_files, and m_filterState.
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 250 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), goTo(), kOn, m_files, m_filterState, and x.
|
private |
Referenced by appendFile(), and openFile().
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 290 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::end(), goTo(), kOn, dqmdumpme::last, m_currentEvent, m_currentFile, m_files, m_filterState, m_newFileOnNextEvent, nextSelectedEvent(), and x.
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 268 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::end(), goTo(), mps_fire::i, m_currentEvent, m_currentFile, and m_files.
Referenced by nextEvent(), and updateFileFilters().
bool CmsShowNavigator::openFile | ( | const std::string & | fileName | ) |
Definition at line 70 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), cppFunctionSkipper::exception, geometryDiff::file, MillePedeFileConverter_cfg::fileName, fwLog, CmsShowMain::getGlobalTagCheck(), CmsShowMain::getVersionCheck(), mps_fire::i, fwlog::kDebug, fwlog::kError, kOff, m_files, m_filterState, m_main, m_selectors, newFile(), setCurrentFile(), and updateFileFilters().
|
private |
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 342 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), goTo(), kOn, m_currentEvent, m_currentFile, m_files, m_filterState, previousSelectedEvent(), and x.
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 321 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::end(), goTo(), mps_fire::i, m_currentEvent, m_currentFile, and m_files.
Referenced by previousEvent(), and updateFileFilters().
Int_t CmsShowNavigator::realEntry | ( | Int_t | rawEntry | ) |
|
private |
Definition at line 427 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), f, geometryDiff::file, fwLog, fwlog::kDebug, m_files, m_filesNeedUpdate, and m_selectors.
Referenced by applyFiltersFromGUI().
|
inline |
void CmsShowNavigator::resumeFilter | ( | ) |
Definition at line 386 of file CmsShowNavigator.cc.
References filterStateChanged_, fwLog, fwlog::kInfo, kOn, and m_filterState.
Referenced by updateFileFilters().
|
private |
Definition at line 164 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), fileChanged_, fwLog, mps_fire::i, fwlog::kDebug, fwlog::kInfo, m_currentFile, m_files, and fwlog::presentLogLevel().
Referenced by appendFile(), goTo(), and openFile().
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 661 of file CmsShowNavigator.cc.
References cms::cuda::assert(), CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), geometryDiff::file, filterStateChanged_, mps_fire::i, FWConfiguration::keyValues(), kOff, kOn, FWEventSelector::m_description, FWEventSelector::m_enabled, FWEventSelector::m_expression, m_files, m_filesNeedUpdate, m_filterMode, m_filterState, m_guiFilter, m_selectors, FWEventSelector::m_triggerProcess, postFiltering_, FWGUIEventFilter::reset(), alignCSCRings::s, FWGUIEventFilter::show(), updateFileFilters(), FWConfiguration::value(), FWConfiguration::valueForKey(), and x.
|
inline |
Definition at line 99 of file CmsShowNavigator.h.
References mps_fire::i, and m_maxNumberOfFilesToChain.
Referenced by CmsShowMain::CmsShowMain().
void CmsShowNavigator::showEventFilterGUI | ( | const TGWindow * | p | ) |
Definition at line 650 of file CmsShowNavigator.cc.
References canEditFiltersExternally(), FWGUIEventFilter::CloseWindow(), editFiltersExternally_, m_filterMode, m_filterState, m_guiFilter, m_selectors, and FWGUIEventFilter::show().
Referenced by CmsShowMain::setupDataHandling().
void CmsShowNavigator::toggleFilterEnable | ( | ) |
Definition at line 361 of file CmsShowNavigator.cc.
References filterStateChanged_, fwLog, fwlog::kInfo, kOff, kOn, m_filterState, m_guiFilter, FWGUIEventFilter::setupDisableFilteringButton(), and updateFileFilters().
Referenced by FWGUIEventFilter::disableFilters().
|
private |
Definition at line 392 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowMain::context(), CmsShowNavigator::FileQueue_t::end(), fireworks::Context::eventItemsManager(), geometryDiff::file, fwLog, getNSelectedEvents(), getNTotalEvents(), fwlog::kDebug, kOr, kWithdrawn, m_currentEvent, m_files, m_filesNeedUpdate, m_filterMode, m_filterState, m_main, nextSelectedEvent(), postFiltering_, fwlog::presentLogLevel(), previousSelectedEvent(), resumeFilter(), updateSelectorsInfo(), and withdrawFilter().
Referenced by appendFile(), applyFiltersFromGUI(), openFile(), setFrom(), and toggleFilterEnable().
|
private |
Definition at line 573 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), geometryDiff::file, filters, FWGUIEventFilter::guiSelectors(), mps_fire::i, m_files, m_guiFilter, m_selectors, and EgammaValidation_Wenu_cff::sel.
Referenced by updateFileFilters().
void CmsShowNavigator::withdrawFilter | ( | ) |
Definition at line 380 of file CmsShowNavigator.cc.
References filterStateChanged_, fwLog, fwlog::kInfo, kWithdrawn, and m_filterState.
Referenced by updateFileFilters().
sigc::signal<void(bool)> CmsShowNavigator::editFiltersExternally_ |
Definition at line 132 of file CmsShowNavigator.h.
Referenced by editFiltersExternally(), and showEventFilterGUI().
sigc::signal<void(const TFile*)> CmsShowNavigator::fileChanged_ |
Definition at line 129 of file CmsShowNavigator.h.
Referenced by setCurrentFile().
sigc::signal<void(int)> CmsShowNavigator::filterStateChanged_ |
Definition at line 133 of file CmsShowNavigator.h.
Referenced by applyFiltersFromGUI(), CmsShowNavigator(), resumeFilter(), setFrom(), toggleFilterEnable(), and withdrawFilter().
|
private |
Definition at line 154 of file CmsShowNavigator.h.
Referenced by frameTitle(), goTo(), isFirstEvent(), isLastEvent(), nextEvent(), nextSelectedEvent(), previousEvent(), previousSelectedEvent(), and updateFileFilters().
|
private |
Definition at line 153 of file CmsShowNavigator.h.
Referenced by appendFile(), frameTitle(), getCurrentEvent(), goTo(), isFirstEvent(), isLastEvent(), nextEvent(), nextSelectedEvent(), previousEvent(), previousSelectedEvent(), and setCurrentFile().
|
private |
Definition at line 152 of file CmsShowNavigator.h.
Referenced by addFilter(), appendFile(), canEditFiltersExternally(), changeFilter(), firstEvent(), frameTitle(), getCurrentGlobalTag(), getNSelectedEvents(), getNTotalEvents(), goToRunEvent(), isFirstEvent(), isLastEvent(), lastEvent(), nextEvent(), nextSelectedEvent(), openFile(), previousEvent(), previousSelectedEvent(), removeFilter(), setCurrentFile(), setFrom(), updateFileFilters(), and updateSelectorsInfo().
|
private |
Definition at line 158 of file CmsShowNavigator.h.
Referenced by addFilter(), applyFiltersFromGUI(), changeFilter(), filesNeedUpdate(), removeFilter(), setFrom(), and updateFileFilters().
|
private |
Definition at line 157 of file CmsShowNavigator.h.
Referenced by addTo(), applyFiltersFromGUI(), setFrom(), showEventFilterGUI(), and updateFileFilters().
|
private |
Definition at line 156 of file CmsShowNavigator.h.
Referenced by addTo(), appendFile(), applyFiltersFromGUI(), filterStatusMessage(), firstEvent(), getFilterState(), isFirstEvent(), isLastEvent(), lastEvent(), nextEvent(), openFile(), previousEvent(), resumeFilter(), setFrom(), showEventFilterGUI(), toggleFilterEnable(), updateFileFilters(), and withdrawFilter().
|
private |
Definition at line 166 of file CmsShowNavigator.h.
Referenced by applyFiltersFromGUI(), canEditFiltersExternally(), CmsShowNavigator(), setFrom(), showEventFilterGUI(), toggleFilterEnable(), updateSelectorsInfo(), and ~CmsShowNavigator().
|
private |
Definition at line 165 of file CmsShowNavigator.h.
Referenced by appendFile(), getProcessList(), openFile(), and updateFileFilters().
|
private |
Definition at line 161 of file CmsShowNavigator.h.
Referenced by appendFile(), and setMaxNumberOfFilesToChain().
|
private |
Definition at line 159 of file CmsShowNavigator.h.
Referenced by activateNewFileOnNextEvent(), nextEvent(), and resetNewFileOnNextEvent().
|
private |
Definition at line 151 of file CmsShowNavigator.h.
Referenced by addFilter(), addTo(), appendFile(), applyFiltersFromGUI(), openFile(), removeFilter(), setFrom(), showEventFilterGUI(), and updateSelectorsInfo().
sigc::signal<void(bool)> CmsShowNavigator::postFiltering_ |
Definition at line 131 of file CmsShowNavigator.h.
Referenced by setFrom(), and updateFileFilters().
sigc::signal<void()> CmsShowNavigator::preFiltering_ |
Definition at line 130 of file CmsShowNavigator.h.