#include <FWFileEntry.h>
Classes | |
struct | Filter |
Public Member Functions | |
void | closeFile () |
fwlite::Event * | event () |
TFile * | file () |
std::list< Filter * > & | filters () |
int | firstSelectedEvent () |
FWFileEntry (const std::string &name, bool checkVersion) | |
FWTTreeCache * | fwTreeCache () |
FWTEventList * | globalSelection () |
bool | hasActiveFilters () |
bool | hasSelectedEvents () |
bool | isEventSelected (int event) |
int | lastEvent () |
int | lastSelectedEvent () |
void | needUpdate () |
void | NewEventItemCallIn (const FWEventItem *it) |
int | nextSelectedEvent (int event) |
void | openFile (bool) |
int | previousSelectedEvent (int event) |
void | RemovingEventItemCallIn (const FWEventItem *it) |
TTree * | tree () |
void | updateFilters (const FWEventItemsManager *eiMng, bool isOR) |
virtual | ~FWFileEntry () |
Private Member Functions | |
bool | filterEventsWithCustomParser (Filter *filter) |
FWFileEntry (const FWFileEntry &)=delete | |
std::string | getBranchName (const FWEventItem *it) const |
const FWFileEntry & | operator= (const FWFileEntry &)=delete |
void | runFilter (Filter *fe, const FWEventItemsManager *eiMng) |
Private Attributes | |
fwlite::Event * | m_event |
TTree * | m_eventTree |
TFile * | m_file |
std::list< Filter * > | m_filterEntries |
FWTEventList * | m_globalEventList |
std::string | m_name |
bool | m_needUpdate |
Definition at line 36 of file FWFileEntry.h.
FWFileEntry::FWFileEntry | ( | const std::string & | name, |
bool | checkVersion | ||
) |
|
virtual |
Definition at line 37 of file FWFileEntry.cc.
References mps_fire::i, m_filterEntries, and m_globalEventList.
|
privatedelete |
void FWFileEntry::closeFile | ( | ) |
Definition at line 141 of file FWFileEntry.cc.
References m_event, m_eventTree, and m_file.
Referenced by CmsShowNavigator::appendFile(), CmsShowNavigator::openFile(), and Vispa.Main.Application.Application::tabCloseRequest().
|
inline |
|
inline |
Definition at line 59 of file FWFileEntry.h.
|
private |
Definition at line 419 of file FWFileEntry.cc.
References edm::HLTGlobalStatus::accept(), fwlite::Event::atEnd(), FWTEventList::Enter(), ALCARECOTkAlBeamHalo_cff::filter, filters(), RemoveAddSevLevel::flag, fwLog, fwlite::Handle< T >::getByLabel(), mps_fire::i, edm::EventBase::id(), iEvent, fwlog::kDebug, fwlog::kWarning, list(), m_event, FWFileEntry::Filter::m_eventList, FWEventSelector::m_expression, m_file, FWFileEntry::Filter::m_needsUpdate, FWFileEntry::Filter::m_selector, FWEventSelector::m_triggerProcess, TriggerAnalyzer::passed, corrVsCorr::selection, edm::TriggerNames::size(), AlCaHLTBitMon_QueryRunRegistry::string, fwlite::Event::to(), fwlite::Event::toBegin(), edm::TriggerNames::triggerIndex(), and fwlite::Event::triggerNames().
Referenced by runFilter().
Definition at line 65 of file FWFileEntry.h.
Referenced by CmsShowNavigator::appendFile(), filterEventsWithCustomParser(), and CmsShowNavigator::openFile().
int FWFileEntry::firstSelectedEvent | ( | ) |
FWTTreeCache * FWFileEntry::fwTreeCache | ( | ) |
Definition at line 519 of file FWFileEntry.cc.
References m_eventTree, m_file, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by NewEventItemCallIn(), and RemovingEventItemCallIn().
|
private |
Definition at line 527 of file FWFileEntry.cc.
References edm::TypeWithDict::byName(), fwlite::Event::getBranchNameFor(), m_event, FWEventItem::moduleLabel(), edm::TypeWithDict::name(), FWEventItem::processName(), FWEventItem::productInstanceLabel(), FWEventItem::type(), edm::TypeWithDict::typeInfo(), and edm::wrappedClassName().
Referenced by NewEventItemCallIn(), and RemovingEventItemCallIn().
|
inline |
Definition at line 62 of file FWFileEntry.h.
bool FWFileEntry::hasActiveFilters | ( | ) |
Definition at line 220 of file FWFileEntry.cc.
References m_filterEntries.
bool FWFileEntry::hasSelectedEvents | ( | ) |
bool FWFileEntry::isEventSelected | ( | int | event | ) |
Definition at line 156 of file FWFileEntry.cc.
References training_settings::idx, and m_globalEventList.
|
inline |
Definition at line 79 of file FWFileEntry.h.
int FWFileEntry::lastSelectedEvent | ( | ) |
|
inline |
Definition at line 84 of file FWFileEntry.h.
References ALCARECOTkAlBeamHalo_cff::filter, and AlCaHLTBitMon_QueryRunRegistry::string.
void FWFileEntry::NewEventItemCallIn | ( | const FWEventItem * | it | ) |
Definition at line 537 of file FWFileEntry.cc.
References fwTreeCache(), getBranchName(), and FWTTreeCache::IsLogging().
Referenced by openFile().
int FWFileEntry::nextSelectedEvent | ( | int | event | ) |
Definition at line 187 of file FWFileEntry.cc.
References training_settings::idx, list(), m_globalEventList, and heppy_batch::val.
void FWFileEntry::openFile | ( | bool | checkVersion | ) |
Definition at line 45 of file FWFileEntry.cc.
References fireworks::acceptDataFormatsVersion(), b, fireworks::Context::eventItemsManager(), fwLog, utils::gErrorIgnoreLevel, FWGUIManager::getContext(), fireworks::getDecomposedVersion(), FWTTreeCache::GetDefaultCacheSize(), FWGUIManager::getGUIManager(), FWTTreeCache::IsLogging(), FWTTreeCache::IsPrefetching(), fwlog::kInfo, m_event, m_eventTree, m_file, m_name, mps_check::msg, NewEventItemCallIn(), FWEventItemsManager::newItem_, edm::ProcessConfiguration::processName(), edm::ProcessConfiguration::releaseVersion(), RemovingEventItemCallIn(), fwlite::Event::size(), fireworks::supportedDataFormatsVersion(), findQualityFiles::v, and x.
Referenced by Vispa.Main.Application.Application::_readCommandLineAttributes(), Vispa.Main.Application.Application::doubleClickOnFile(), FWFileEntry(), Vispa.Main.Application.Application::openFileDialog(), and Vispa.Main.Application.Application::openRecentFileSlot().
|
privatedelete |
int FWFileEntry::previousSelectedEvent | ( | int | event | ) |
Definition at line 202 of file FWFileEntry.cc.
References training_settings::idx, list(), m_globalEventList, and heppy_batch::val.
void FWFileEntry::RemovingEventItemCallIn | ( | const FWEventItem * | it | ) |
Definition at line 548 of file FWFileEntry.cc.
References fwTreeCache(), getBranchName(), and FWTTreeCache::IsLogging().
Referenced by openFile().
|
private |
Definition at line 277 of file FWFileEntry.cc.
References b, FWEventItemsManager::begin(), edm::TypeWithDict::byName(), end, FWEventItemsManager::end(), filterEventsWithCustomParser(), runEdmFileComparison::found, fwLog, fwlite::Event::getBranchNameFor(), FWEventItem::getPrimaryData(), FWEventItem::hasEvent(), mps_fire::i, FWTTreeCache::IsPrefetching(), fwlog::kDebug, fwlog::kError, fwlog::kInfo, fwlog::kWarning, m_event, FWFileEntry::Filter::m_eventList, m_eventTree, FWEventSelector::m_expression, m_file, FWFileEntry::Filter::m_needsUpdate, FWFileEntry::Filter::m_selector, FWEventSelector::m_triggerProcess, FWEventItem::moduleLabel(), dataset::name, edm::TypeWithDict::name(), FWEventItem::processName(), FWEventItem::productInstanceLabel(), mps_fire::result, FWEventItem::setEvent(), AlCaHLTBitMon_QueryRunRegistry::string, FWEventItem::type(), edm::TypeWithDict::typeInfo(), and edm::wrappedClassName().
Referenced by updateFilters().
|
inline |
Definition at line 61 of file FWFileEntry.h.
Referenced by ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::beginLoop(), MetTreeProducer.MetTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::fillTree(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::process(), MetTreeProducer.MetTreeProducer::process(), and python.cmstools.EventTree::SetAlias().
void FWFileEntry::updateFilters | ( | const FWEventItemsManager * | eiMng, |
bool | isOR | ||
) |
Definition at line 232 of file FWFileEntry.cc.
References FWTEventList::Add(), fwLog, fwlog::kDebug, m_eventTree, m_file, m_filterEntries, m_globalEventList, m_needUpdate, and runFilter().
|
private |
Definition at line 103 of file FWFileEntry.h.
Referenced by closeFile(), filterEventsWithCustomParser(), getBranchName(), openFile(), and runFilter().
|
private |
Definition at line 102 of file FWFileEntry.h.
Referenced by closeFile(), fwTreeCache(), openFile(), runFilter(), and updateFilters().
|
private |
Definition at line 101 of file FWFileEntry.h.
Referenced by closeFile(), filterEventsWithCustomParser(), fwTreeCache(), openFile(), runFilter(), and updateFilters().
Definition at line 107 of file FWFileEntry.h.
Referenced by hasActiveFilters(), updateFilters(), and ~FWFileEntry().
|
private |
Definition at line 108 of file FWFileEntry.h.
Referenced by firstSelectedEvent(), hasSelectedEvents(), isEventSelected(), lastSelectedEvent(), nextSelectedEvent(), previousSelectedEvent(), updateFilters(), and ~FWFileEntry().
|
private |
Definition at line 100 of file FWFileEntry.h.
Referenced by openFile().
|
private |
Definition at line 105 of file FWFileEntry.h.
Referenced by updateFilters().