#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 () |
virtual void | addTo (FWConfiguration &) const |
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 () |
virtual void | firstEvent () |
const char * | frameTitle () |
virtual const edm::EventBase * | getCurrentEvent () const |
int | getFilterState () |
int | getNSelectedEvents () |
int | getNTotalEvents () |
std::vector< std::string > & | getProcessList () const |
void | goTo (FileQueue_i fi, int event) |
virtual void | goToRunEvent (edm::RunNumber_t, edm::LuminosityBlockNumber_t, edm::EventNumber_t) |
virtual bool | isFirstEvent () |
virtual bool | isLastEvent () |
virtual void | lastEvent () |
virtual void | nextEvent () |
virtual bool | nextSelectedEvent () |
bool | openFile (const std::string &fileName) |
virtual void | previousEvent () |
virtual bool | previousSelectedEvent () |
Int_t | realEntry (Int_t rawEntry) |
void | resetNewFileOnNextEvent () |
void | resumeFilter () |
virtual void | setFrom (const FWConfiguration &) |
void | setMaxNumberOfFilesToChain (unsigned int i) |
void | showEventFilterGUI (const TGWindow *p) |
void | toggleFilterEnable () |
void | withdrawFilter () |
virtual | ~CmsShowNavigator () |
Public Member Functions inherited from FWNavigatorBase | |
FWNavigatorBase (const CmsShowMainBase &) | |
virtual | ~FWNavigatorBase () |
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 > | 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 37 of file CmsShowNavigator.h.
|
private |
Definition at line 78 of file CmsShowNavigator.h.
|
private |
Definition at line 45 of file CmsShowNavigator.h.
|
private |
Definition at line 44 of file CmsShowNavigator.h.
CmsShowNavigator::CmsShowNavigator | ( | const CmsShowMain & | main | ) |
Definition at line 44 of file CmsShowNavigator.cc.
References filterStateChanged_, m_guiFilter, and FWGUIEventFilter::updateFilterStateLabel().
|
virtual |
Definition at line 63 of file CmsShowNavigator.cc.
References m_guiFilter.
|
private |
|
inline |
|
private |
Definition at line 523 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), dbtoweb::file, fwLog, fwlog::kDebug, FWEventSelector::m_expression, m_files, m_filesNeedUpdate, and m_selectors.
Referenced by applyFiltersFromGUI().
|
virtual |
Implements FWNavigatorBase.
Definition at line 911 of file CmsShowNavigator.cc.
References FWConfiguration::addKeyValue(), align_tpl::filter, kOn, m_filterMode, m_filterState, m_selectors, asciidump::s, runTheMatrix::sel, and tmp.
bool CmsShowNavigator::appendFile | ( | const std::string & | fileName, |
bool | checkFileQueueSize, | ||
bool | live | ||
) |
Definition at line 120 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), ExpressReco_HICollisions_FallBack::cerr, FWFileEntry::closeFile(), cmsCodeRules.cppFunctionSkipper::exception, dbtoweb::file, FWFileEntry::filters(), fwLog, i, CmsShowNavigator::FileQueue_t::iterator::isSet(), fwlog::kDebug, fwlog::kError, kOff, fwlog::kWarning, m_currentFile, m_files, m_filterState, m_maxNumberOfFilesToChain, m_selectors, newFile(), setCurrentFile(), and updateFileFilters().
void CmsShowNavigator::applyFiltersFromGUI | ( | ) |
Definition at line 559 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 762 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), dbtoweb::file, FWGUIEventFilter::isOpen(), m_files, and m_guiFilter.
Referenced by editFiltersExternally(), and showEventFilterGUI().
|
private |
Definition at line 538 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), dbtoweb::file, fwLog, fwlog::kDebug, FWEventSelector::m_expression, m_files, and m_filesNeedUpdate.
Referenced by applyFiltersFromGUI().
void CmsShowNavigator::editFiltersExternally | ( | ) |
Definition at line 783 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 751 of file CmsShowNavigator.cc.
References getNSelectedEvents(), getNTotalEvents(), kOff, kOn, and m_filterState.
|
virtual |
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 ExpressReco_HICollisions_FallBack::x.
const char * CmsShowNavigator::frameTitle | ( | ) |
Definition at line 957 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), i, prof2calltree::l, m_currentEvent, m_currentFile, m_files, and AlCaRecoCosmics_cfg::name.
|
virtual |
Implements FWNavigatorBase.
Definition at line 951 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::iterator::isSet(), and m_currentFile.
|
inline |
|
virtual |
Implements FWNavigatorBase.
Definition at line 727 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), dbtoweb::file, and m_files.
Referenced by filterStatusMessage(), updateFileFilters(), and FWGUIEventFilter::updateFilterStateLabel().
|
virtual |
Implements FWNavigatorBase.
Definition at line 739 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), dbtoweb::file, and m_files.
Referenced by filterStatusMessage(), updateFileFilters(), and FWGUIEventFilter::updateFilterStateLabel().
std::vector< std::string > & CmsShowNavigator::getProcessList | ( | ) | const |
Definition at line 945 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 201 of file CmsShowNavigator.cc.
References event(), fwLog, fwlog::kDebug, m_currentEvent, m_currentFile, FWNavigatorBase::newEvent_, fwlog::presentLogLevel(), setCurrentFile(), and pileupDistInMC::total.
Referenced by firstEvent(), goToRunEvent(), lastEvent(), nextEvent(), nextSelectedEvent(), previousEvent(), and previousSelectedEvent().
|
virtual |
Implements FWNavigatorBase.
Definition at line 234 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), dbtoweb::file, goTo(), getHLTprescales::index, and m_files.
|
virtual |
Implements FWNavigatorBase.
Definition at line 632 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), dbtoweb::file, kOn, m_currentEvent, m_currentFile, m_files, and m_filterState.
|
virtual |
Implements FWNavigatorBase.
Definition at line 660 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), dbtoweb::file, kOn, m_currentEvent, m_currentFile, m_files, and m_filterState.
|
virtual |
Implements FWNavigatorBase.
Definition at line 272 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), goTo(), kOn, m_files, m_filterState, and ExpressReco_HICollisions_FallBack::x.
|
private |
|
virtual |
Implements FWNavigatorBase.
Definition at line 325 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::end(), goTo(), kOn, prof2calltree::last, m_currentEvent, m_currentFile, m_files, m_filterState, m_newFileOnNextEvent, nextSelectedEvent(), and ExpressReco_HICollisions_FallBack::x.
|
virtual |
Implements FWNavigatorBase.
Definition at line 297 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::end(), goTo(), i, m_currentEvent, m_currentFile, and m_files.
Referenced by nextEvent(), and updateFileFilters().
bool CmsShowNavigator::openFile | ( | const std::string & | fileName | ) |
Definition at line 73 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), FWFileEntry::closeFile(), cmsCodeRules.cppFunctionSkipper::exception, dbtoweb::file, FWFileEntry::filters(), fwLog, i, fwlog::kDebug, fwlog::kError, kOff, m_files, m_filterState, m_selectors, newFile(), setCurrentFile(), and updateFileFilters().
Referenced by python.Vispa.Main.Application.Application::_readCommandLineAttributes(), python.Vispa.Main.Application.Application::doubleClickOnFile(), python.Vispa.Main.Application.Application::openFileDialog(), and python.Vispa.Main.Application.Application::openRecentFileSlot().
|
private |
|
virtual |
Implements FWNavigatorBase.
Definition at line 391 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), goTo(), kOn, m_currentEvent, m_currentFile, m_files, m_filterState, previousSelectedEvent(), and ExpressReco_HICollisions_FallBack::x.
|
virtual |
Implements FWNavigatorBase.
Definition at line 364 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::end(), goTo(), 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 498 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), f, dbtoweb::file, fwLog, fwlog::kDebug, m_files, m_filesNeedUpdate, and m_selectors.
Referenced by applyFiltersFromGUI().
|
inline |
void CmsShowNavigator::resumeFilter | ( | ) |
Definition at line 450 of file CmsShowNavigator.cc.
References filterStateChanged_, fwLog, fwlog::kInfo, kOn, and m_filterState.
Referenced by updateFileFilters().
|
private |
Definition at line 182 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), fileChanged_, fwLog, i, fwlog::kDebug, m_currentFile, m_files, and fwlog::presentLogLevel().
Referenced by appendFile(), goTo(), and openFile().
|
virtual |
Implements FWNavigatorBase.
Definition at line 805 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), dbtoconf::conf, CmsShowNavigator::FileQueue_t::end(), dbtoweb::file, filterStateChanged_, 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(), asciidump::s, FWGUIEventFilter::show(), updateFileFilters(), FWConfiguration::value(), relativeConstraints::value, FWConfiguration::valueForKey(), and ExpressReco_HICollisions_FallBack::x.
|
inline |
Definition at line 105 of file CmsShowNavigator.h.
References i, and m_maxNumberOfFilesToChain.
Referenced by CmsShowMain::CmsShowMain().
void CmsShowNavigator::showEventFilterGUI | ( | const TGWindow * | p | ) |
Definition at line 789 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 419 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 458 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowMain::context(), CmsShowNavigator::FileQueue_t::end(), fireworks::Context::eventItemsManager(), dbtoweb::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 687 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), dbtoweb::file, filters, FWGUIEventFilter::guiSelectors(), i, m_files, m_guiFilter, m_selectors, and runTheMatrix::sel.
Referenced by updateFileFilters().
void CmsShowNavigator::withdrawFilter | ( | ) |
Definition at line 442 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 138 of file CmsShowNavigator.h.
Referenced by editFiltersExternally(), and showEventFilterGUI().
sigc::signal<void, const TFile*> CmsShowNavigator::fileChanged_ |
Definition at line 135 of file CmsShowNavigator.h.
Referenced by setCurrentFile().
sigc::signal<void, int> CmsShowNavigator::filterStateChanged_ |
Definition at line 139 of file CmsShowNavigator.h.
Referenced by applyFiltersFromGUI(), CmsShowNavigator(), resumeFilter(), setFrom(), toggleFilterEnable(), and withdrawFilter().
|
private |
Definition at line 160 of file CmsShowNavigator.h.
Referenced by frameTitle(), goTo(), isFirstEvent(), isLastEvent(), nextEvent(), nextSelectedEvent(), previousEvent(), previousSelectedEvent(), and updateFileFilters().
|
private |
Definition at line 159 of file CmsShowNavigator.h.
Referenced by appendFile(), frameTitle(), getCurrentEvent(), goTo(), isFirstEvent(), isLastEvent(), nextEvent(), nextSelectedEvent(), previousEvent(), previousSelectedEvent(), and setCurrentFile().
|
private |
Definition at line 158 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 164 of file CmsShowNavigator.h.
Referenced by addFilter(), applyFiltersFromGUI(), changeFilter(), filesNeedUpdate(), removeFilter(), setFrom(), and updateFileFilters().
|
private |
Definition at line 163 of file CmsShowNavigator.h.
Referenced by addTo(), applyFiltersFromGUI(), setFrom(), showEventFilterGUI(), and updateFileFilters().
|
private |
Definition at line 162 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 172 of file CmsShowNavigator.h.
Referenced by applyFiltersFromGUI(), canEditFiltersExternally(), CmsShowNavigator(), setFrom(), showEventFilterGUI(), toggleFilterEnable(), updateSelectorsInfo(), and ~CmsShowNavigator().
|
private |
Definition at line 171 of file CmsShowNavigator.h.
Referenced by getProcessList(), and updateFileFilters().
|
private |
Definition at line 167 of file CmsShowNavigator.h.
Referenced by appendFile(), and setMaxNumberOfFilesToChain().
|
private |
Definition at line 165 of file CmsShowNavigator.h.
Referenced by activateNewFileOnNextEvent(), nextEvent(), and resetNewFileOnNextEvent().
|
private |
Definition at line 157 of file CmsShowNavigator.h.
Referenced by addFilter(), addTo(), appendFile(), applyFiltersFromGUI(), openFile(), removeFilter(), setFrom(), showEventFilterGUI(), and updateSelectorsInfo().
sigc::signal<void> CmsShowNavigator::postFiltering_ |
Definition at line 137 of file CmsShowNavigator.h.
Referenced by setFrom(), and updateFileFilters().
sigc::signal<void> CmsShowNavigator::preFiltering_ |
Definition at line 136 of file CmsShowNavigator.h.