#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, 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 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 532 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), mergeVDriftHistosByStation::file, fwLog, fwlog::kDebug, FWEventSelector::m_expression, m_files, m_filesNeedUpdate, and m_selectors.
Referenced by applyFiltersFromGUI().
|
virtual |
Implements FWNavigatorBase.
Definition at line 920 of file CmsShowNavigator.cc.
References FWConfiguration::addKeyValue(), alcazmumu_cfi::filter, kOn, m_filterMode, m_filterState, m_selectors, alignCSCRings::s, EgammaValidation_Wenu_cff::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(), dtNoiseDBValidation_cfg::cerr, FWFileEntry::closeFile(), cppFunctionSkipper::exception, mergeVDriftHistosByStation::file, FWFileEntry::filters(), fwLog, CmsShowMain::getVersionCheck(), 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 568 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, python.connectstrParser::o, removeFilter(), FWGUIEventFilter::setupDisableFilteringButton(), and updateFileFilters().
Referenced by FWGUIEventFilter::apply().
bool CmsShowNavigator::canEditFiltersExternally | ( | ) |
Definition at line 771 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), mergeVDriftHistosByStation::file, FWGUIEventFilter::isOpen(), m_files, and m_guiFilter.
Referenced by editFiltersExternally(), and showEventFilterGUI().
|
private |
Definition at line 547 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), mergeVDriftHistosByStation::file, fwLog, fwlog::kDebug, FWEventSelector::m_expression, m_files, and m_filesNeedUpdate.
Referenced by applyFiltersFromGUI().
void CmsShowNavigator::editFiltersExternally | ( | ) |
Definition at line 792 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 760 of file CmsShowNavigator.cc.
References getNSelectedEvents(), getNTotalEvents(), kOff, kOn, and m_filterState.
|
virtual |
Implements FWNavigatorBase.
Definition at line 258 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 966 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), i, prof2calltree::l, m_currentEvent, m_currentFile, m_files, and mergeVDriftHistosByStation::name.
|
virtual |
Implements FWNavigatorBase.
Definition at line 960 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::iterator::isSet(), and m_currentFile.
|
inline |
|
virtual |
Implements FWNavigatorBase.
Definition at line 736 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), mergeVDriftHistosByStation::file, and m_files.
Referenced by filterStatusMessage(), updateFileFilters(), and FWGUIEventFilter::updateFilterStateLabel().
|
virtual |
Implements FWNavigatorBase.
Definition at line 748 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), mergeVDriftHistosByStation::file, and m_files.
Referenced by filterStatusMessage(), updateFileFilters(), and FWGUIEventFilter::updateFilterStateLabel().
std::vector< std::string > & CmsShowNavigator::getProcessList | ( | ) | const |
Definition at line 954 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 205 of file CmsShowNavigator.cc.
References event(), fwLog, fwlog::kDebug, m_currentEvent, m_currentFile, FWNavigatorBase::newEvent_, fwlog::presentLogLevel(), setCurrentFile(), cond::rpcobgas::time, and pileupDistInMC::total.
Referenced by firstEvent(), goToRunEvent(), lastEvent(), nextEvent(), nextSelectedEvent(), previousEvent(), and previousSelectedEvent().
|
virtual |
Implements FWNavigatorBase.
Definition at line 242 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), mergeVDriftHistosByStation::file, goTo(), cmsHarvester::index, and m_files.
|
virtual |
Implements FWNavigatorBase.
Definition at line 641 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), mergeVDriftHistosByStation::file, kOn, m_currentEvent, m_currentFile, m_files, and m_filterState.
|
virtual |
Implements FWNavigatorBase.
Definition at line 669 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), mergeVDriftHistosByStation::file, kOn, archive::lastFile, m_currentEvent, m_currentFile, m_files, and m_filterState.
|
virtual |
Implements FWNavigatorBase.
Definition at line 280 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), goTo(), kOn, m_files, m_filterState, and x.
|
private |
|
virtual |
Implements FWNavigatorBase.
Definition at line 333 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 x.
|
virtual |
Implements FWNavigatorBase.
Definition at line 305 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(), cppFunctionSkipper::exception, mergeVDriftHistosByStation::file, FWFileEntry::filters(), fwLog, CmsShowMain::getVersionCheck(), 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 |
|
virtual |
Implements FWNavigatorBase.
Definition at line 399 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), goTo(), kOn, m_currentEvent, m_currentFile, m_files, m_filterState, previousSelectedEvent(), and x.
|
virtual |
Implements FWNavigatorBase.
Definition at line 372 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 507 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), f, mergeVDriftHistosByStation::file, fwLog, fwlog::kDebug, m_files, m_filesNeedUpdate, and m_selectors.
Referenced by applyFiltersFromGUI().
|
inline |
void CmsShowNavigator::resumeFilter | ( | ) |
Definition at line 458 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, fwlog::kInfo, m_currentFile, m_files, and fwlog::presentLogLevel().
Referenced by appendFile(), goTo(), and openFile().
|
virtual |
Implements FWNavigatorBase.
Definition at line 814 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), dbtoconf::conf, CmsShowNavigator::FileQueue_t::end(), mergeVDriftHistosByStation::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(), alignCSCRings::s, FWGUIEventFilter::show(), updateFileFilters(), FWConfiguration::value(), relativeConstraints::value, FWConfiguration::valueForKey(), and x.
|
inline |
Definition at line 104 of file CmsShowNavigator.h.
References i, and m_maxNumberOfFilesToChain.
Referenced by CmsShowMain::CmsShowMain().
void CmsShowNavigator::showEventFilterGUI | ( | const TGWindow * | p | ) |
Definition at line 798 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 427 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 466 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowMain::context(), CmsShowNavigator::FileQueue_t::end(), fireworks::Context::eventItemsManager(), mergeVDriftHistosByStation::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 696 of file CmsShowNavigator.cc.
References CmsShowNavigator::FileQueue_t::begin(), CmsShowNavigator::FileQueue_t::end(), mergeVDriftHistosByStation::file, filters, trackerHitRTTI::gs, FWGUIEventFilter::guiSelectors(), i, m_files, m_guiFilter, m_selectors, and EgammaValidation_Wenu_cff::sel.
Referenced by updateFileFilters().
void CmsShowNavigator::withdrawFilter | ( | ) |
Definition at line 450 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(), filesNeedUpdate(), 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(), getFilterState(), 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(), and setMaxNumberOfFilesToChain().
|
private |
Definition at line 164 of file CmsShowNavigator.h.
Referenced by activateNewFileOnNextEvent(), nextEvent(), and resetNewFileOnNextEvent().
|
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.