#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 |
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 () override | |
Public Member Functions inherited from FWConfigurable | |
FWConfigurable () | |
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 77 of file CmsShowNavigator.h.
|
private |
Definition at line 44 of file CmsShowNavigator.h.
|
private |
Definition at line 43 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 |
Definition at line 65 of file CmsShowNavigator.cc.
References m_guiFilter.
|
private |
|
inline |
Definition at line 129 of file CmsShowNavigator.h.
|
private |
Definition at line 540 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), FrontierConditions_GlobalTag_cff::file, fwLog, fwlog::kDebug, FWEventSelector::m_expression, m_files, m_filesNeedUpdate, and m_selectors.
Referenced by applyFiltersFromGUI().
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 928 of file CmsShowNavigator.cc.
References FWConfiguration::addKeyValue(), ALCARECOTkAlBeamHalo_cff::filter, kOn, m_filterMode, m_filterState, m_selectors, alignCSCRings::s, triggerObjects_cff::sel, and tmp.
bool CmsShowNavigator::appendFile | ( | const std::string & | fileName, |
bool | checkFileQueueSize, | ||
bool | live | ||
) |
Definition at line 122 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), MessageLogger_cfi::cerr, FWFileEntry::closeFile(), cppFunctionSkipper::exception, FrontierConditions_GlobalTag_cff::file, FWFileEntry::filters(), fwLog, 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 576 of file CmsShowNavigator.cc.
References addFilter(), changeFilter(), filterStateChanged_, g, FWGUIEventFilter::getFilterMode(), FWGUIEventFilter::guiSelectors(), kOff, kOn, FWEventSelector::m_description, FWEventSelector::m_enabled, FWEventSelector::m_expression, m_filesNeedUpdate, m_filterMode, m_filterState, m_guiFilter, m_selectors, connectstrParser::o, removeFilter(), FWGUIEventFilter::setupDisableFilteringButton(), and updateFileFilters().
Referenced by FWGUIEventFilter::apply().
bool CmsShowNavigator::canEditFiltersExternally | ( | ) |
Definition at line 779 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), FrontierConditions_GlobalTag_cff::file, FWGUIEventFilter::isOpen(), m_files, and m_guiFilter.
Referenced by editFiltersExternally(), and showEventFilterGUI().
|
private |
Definition at line 555 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), FrontierConditions_GlobalTag_cff::file, fwLog, fwlog::kDebug, FWEventSelector::m_expression, m_files, and m_filesNeedUpdate.
Referenced by applyFiltersFromGUI().
void CmsShowNavigator::editFiltersExternally | ( | ) |
Definition at line 800 of file CmsShowNavigator.cc.
References canEditFiltersExternally(), and editFiltersExternally_.
Referenced by FWGUIEventFilter::CloseWindow().
void CmsShowNavigator::eventFilterEnableCallback | ( | Bool_t | ) |
|
inline |
Definition at line 124 of file CmsShowNavigator.h.
void CmsShowNavigator::filterEvents | ( | ) |
void CmsShowNavigator::filterEventsAndReset | ( | ) |
const char * CmsShowNavigator::filterStatusMessage | ( | ) |
Definition at line 768 of file CmsShowNavigator.cc.
References getNSelectedEvents(), getNTotalEvents(), kOff, kOn, and m_filterState.
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 266 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 974 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), mps_fire::i, createfilelist::int, checklumidiff::l, m_currentEvent, m_currentFile, m_files, and dataset::name.
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 968 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::iterator::isSet(), and m_currentFile.
|
inline |
Definition at line 125 of file CmsShowNavigator.h.
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 744 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), FrontierConditions_GlobalTag_cff::file, and m_files.
Referenced by filterStatusMessage(), updateFileFilters(), and FWGUIEventFilter::updateFilterStateLabel().
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 756 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), FrontierConditions_GlobalTag_cff::file, and m_files.
Referenced by filterStatusMessage(), updateFileFilters(), and FWGUIEventFilter::updateFilterStateLabel().
std::vector< std::string > & CmsShowNavigator::getProcessList | ( | ) | const |
Definition at line 962 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 207 of file CmsShowNavigator.cc.
References event(), fwLog, FWTTreeCache::IsLogging(), fwlog::kDebug, m_currentEvent, m_currentFile, FWNavigatorBase::newEvent_, fwlog::presentLogLevel(), setCurrentFile(), ntuplemaker::time, and pileupDistInMC::total.
Referenced by firstEvent(), goToRunEvent(), lastEvent(), nextEvent(), nextSelectedEvent(), previousEvent(), and previousSelectedEvent().
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 250 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), FrontierConditions_GlobalTag_cff::file, goTo(), and m_files.
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 649 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), FrontierConditions_GlobalTag_cff::file, kOn, m_currentEvent, m_currentFile, m_files, and m_filterState.
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 677 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), FrontierConditions_GlobalTag_cff::file, kOn, m_currentEvent, m_currentFile, m_files, and m_filterState.
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 288 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), goTo(), kOn, m_files, m_filterState, and x.
|
private |
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 341 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::end(), goTo(), kOn, plotBeamSpotDB::last, m_currentEvent, m_currentFile, m_files, m_filterState, m_newFileOnNextEvent, nextSelectedEvent(), and x.
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 313 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 75 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), FWFileEntry::closeFile(), cppFunctionSkipper::exception, FrontierConditions_GlobalTag_cff::file, FWFileEntry::filters(), fwLog, CmsShowMain::getVersionCheck(), mps_fire::i, fwlog::kDebug, fwlog::kError, kOff, m_files, m_filterState, m_main, m_selectors, newFile(), setCurrentFile(), and updateFileFilters().
Referenced by Vispa.Main.Application.Application::_readCommandLineAttributes(), Vispa.Main.Application.Application::doubleClickOnFile(), Vispa.Main.Application.Application::openFileDialog(), and Vispa.Main.Application.Application::openRecentFileSlot().
|
private |
|
overridevirtual |
Implements FWNavigatorBase.
Definition at line 407 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 380 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::end(), goTo(), mps_fire::i, m_currentEvent, m_currentFile, m_files, and CmsShowNavigator::FileQueue_t::iterator::previous().
Referenced by previousEvent(), and updateFileFilters().
Int_t CmsShowNavigator::realEntry | ( | Int_t | rawEntry | ) |
|
private |
Definition at line 515 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), f, FrontierConditions_GlobalTag_cff::file, fwLog, fwlog::kDebug, m_files, m_filesNeedUpdate, and m_selectors.
Referenced by applyFiltersFromGUI().
|
inline |
Definition at line 130 of file CmsShowNavigator.h.
void CmsShowNavigator::resumeFilter | ( | ) |
Definition at line 466 of file CmsShowNavigator.cc.
References filterStateChanged_, fwLog, fwlog::kInfo, kOn, and m_filterState.
Referenced by updateFileFilters().
|
private |
Definition at line 184 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 822 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), FrontierConditions_GlobalTag_cff::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 104 of file CmsShowNavigator.h.
References mps_fire::i, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by CmsShowMain::CmsShowMain().
void CmsShowNavigator::showEventFilterGUI | ( | const TGWindow * | p | ) |
Definition at line 806 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 435 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 474 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowMain::context(), CmsShowNavigator::FileQueue_t::end(), fireworks::Context::eventItemsManager(), FrontierConditions_GlobalTag_cff::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 704 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), FrontierConditions_GlobalTag_cff::file, filters, FWGUIEventFilter::guiSelectors(), mps_fire::i, m_files, m_guiFilter, m_selectors, and triggerObjects_cff::sel.
Referenced by updateFileFilters().
void CmsShowNavigator::withdrawFilter | ( | ) |
Definition at line 458 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 137 of file CmsShowNavigator.h.
Referenced by editFiltersExternally(), and showEventFilterGUI().
sigc::signal<void, const TFile*> CmsShowNavigator::fileChanged_ |
Definition at line 134 of file CmsShowNavigator.h.
Referenced by setCurrentFile().
sigc::signal<void, int> CmsShowNavigator::filterStateChanged_ |
Definition at line 138 of file CmsShowNavigator.h.
Referenced by applyFiltersFromGUI(), CmsShowNavigator(), resumeFilter(), setFrom(), toggleFilterEnable(), and withdrawFilter().
|
private |
Definition at line 159 of file CmsShowNavigator.h.
Referenced by frameTitle(), goTo(), isFirstEvent(), isLastEvent(), nextEvent(), nextSelectedEvent(), previousEvent(), previousSelectedEvent(), and updateFileFilters().
|
private |
Definition at line 158 of file CmsShowNavigator.h.
Referenced by appendFile(), frameTitle(), getCurrentEvent(), goTo(), isFirstEvent(), isLastEvent(), nextEvent(), nextSelectedEvent(), previousEvent(), previousSelectedEvent(), and setCurrentFile().
|
private |
Definition at line 157 of file CmsShowNavigator.h.
Referenced by addFilter(), appendFile(), canEditFiltersExternally(), changeFilter(), firstEvent(), frameTitle(), getNSelectedEvents(), getNTotalEvents(), goToRunEvent(), isFirstEvent(), isLastEvent(), lastEvent(), nextEvent(), nextSelectedEvent(), openFile(), previousEvent(), previousSelectedEvent(), removeFilter(), setCurrentFile(), setFrom(), updateFileFilters(), and updateSelectorsInfo().
|
private |
Definition at line 163 of file CmsShowNavigator.h.
Referenced by addFilter(), applyFiltersFromGUI(), changeFilter(), removeFilter(), setFrom(), and updateFileFilters().
|
private |
Definition at line 162 of file CmsShowNavigator.h.
Referenced by addTo(), applyFiltersFromGUI(), setFrom(), showEventFilterGUI(), and updateFileFilters().
|
private |
Definition at line 161 of file CmsShowNavigator.h.
Referenced by addTo(), appendFile(), applyFiltersFromGUI(), filterStatusMessage(), firstEvent(), isFirstEvent(), isLastEvent(), lastEvent(), nextEvent(), openFile(), previousEvent(), resumeFilter(), setFrom(), showEventFilterGUI(), toggleFilterEnable(), updateFileFilters(), and withdrawFilter().
|
private |
Definition at line 171 of file CmsShowNavigator.h.
Referenced by applyFiltersFromGUI(), canEditFiltersExternally(), CmsShowNavigator(), setFrom(), showEventFilterGUI(), toggleFilterEnable(), updateSelectorsInfo(), and ~CmsShowNavigator().
|
private |
Definition at line 170 of file CmsShowNavigator.h.
Referenced by appendFile(), getProcessList(), openFile(), and updateFileFilters().
|
private |
Definition at line 166 of file CmsShowNavigator.h.
Referenced by appendFile().
|
private |
Definition at line 164 of file CmsShowNavigator.h.
Referenced by nextEvent().
|
private |
Definition at line 156 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 136 of file CmsShowNavigator.h.
Referenced by setFrom(), and updateFileFilters().
sigc::signal<void> CmsShowNavigator::preFiltering_ |
Definition at line 135 of file CmsShowNavigator.h.