#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, bool checkGlobalTag) | |
FWFileEntry (const FWFileEntry &)=delete | |
FWTTreeCache * | fwTreeCache () |
const std::string & | getGlobalTag () const |
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, bool) |
const FWFileEntry & | operator= (const FWFileEntry &)=delete |
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) |
std::string | getBranchName (const FWEventItem *it) const |
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_globalTag |
std::string | m_name |
bool | m_needUpdate |
Definition at line 36 of file FWFileEntry.h.
FWFileEntry::FWFileEntry | ( | const std::string & | name, |
bool | checkVersion, | ||
bool | checkGlobalTag | ||
) |
|
virtual |
Definition at line 46 of file FWFileEntry.cc.
References mps_fire::i, m_filterEntries, and m_globalEventList.
|
delete |
void FWFileEntry::closeFile | ( | ) |
Definition at line 214 of file FWFileEntry.cc.
References m_event, m_eventTree, m_file, and gpuVertexFinder::printf().
Referenced by CmsShowNavigator::appendFile(), and CmsShowNavigator::openFile().
|
inline |
Definition at line 53 of file FWFileEntry.h.
References m_event.
Referenced by Types.EventID::cppID().
|
inline |
|
private |
Definition at line 456 of file FWFileEntry.cc.
References edm::HLTGlobalStatus::accept(), fwlite::Event::atEnd(), FWTEventList::Enter(), alcazmumu_cfi::filter, filters(), fwLog, fwlite::Handle< T >::getByLabel(), mps_fire::i, edm::EventBase::id(), iEvent, dqmiolumiharvest::j, fwlog::kDebug, fwlog::kWarning, m_event, FWFileEntry::Filter::m_eventList, FWEventSelector::m_expression, m_file, FWFileEntry::Filter::m_needsUpdate, FWFileEntry::Filter::m_selector, FWEventSelector::m_triggerProcess, corrVsCorr::selection, edm::TriggerNames::size(), AlCaHLTBitMon_QueryRunRegistry::string, fwlite::Event::to(), fwlite::Event::toBegin(), edm::TriggerNames::triggerIndex(), L1TMuonDQMOffline_cfi::triggerNames, and fwlite::Event::triggerNames().
Referenced by runFilter().
|
inline |
Definition at line 58 of file FWFileEntry.h.
References m_filterEntries.
Referenced by CmsShowNavigator::appendFile(), filterEventsWithCustomParser(), and CmsShowNavigator::openFile().
int FWFileEntry::firstSelectedEvent | ( | ) |
FWTTreeCache * FWFileEntry::fwTreeCache | ( | ) |
Definition at line 547 of file FWFileEntry.cc.
References cms::cuda::assert(), m_eventTree, and m_file.
Referenced by NewEventItemCallIn(), and RemovingEventItemCallIn().
|
private |
Definition at line 553 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 |
|
inline |
bool FWFileEntry::hasActiveFilters | ( | ) |
Definition at line 281 of file FWFileEntry.cc.
References m_filterEntries.
bool FWFileEntry::hasSelectedEvents | ( | ) |
bool FWFileEntry::isEventSelected | ( | int | event | ) |
|
inline |
int FWFileEntry::lastSelectedEvent | ( | ) |
|
inline |
void FWFileEntry::NewEventItemCallIn | ( | const FWEventItem * | it | ) |
Definition at line 560 of file FWFileEntry.cc.
References fwTreeCache(), getBranchName(), FWTTreeCache::IsLogging(), and gpuVertexFinder::printf().
Referenced by openFile().
int FWFileEntry::nextSelectedEvent | ( | int | event | ) |
Definition at line 250 of file FWFileEntry.cc.
References m_globalEventList, and hgcalPerformanceValidation::val.
void FWFileEntry::openFile | ( | bool | checkVersion, |
bool | checkGlobalTag | ||
) |
Definition at line 53 of file FWFileEntry.cc.
References fireworks::acceptDataFormatsVersion(), b, gather_cfg::cout, createTree::dd, fireworks::Context::eventItemsManager(), fwLog, FWGUIManager::getContext(), fireworks::getDecomposedVersion(), FWTTreeCache::GetDefaultCacheSize(), FWGUIManager::getGUIManager(), edm::ParameterSet::getParameter(), mps_fire::i, gpuClustering::id, edm::pset::Registry::insertMapped(), edm::pset::Registry::instance(), FWTTreeCache::IsLogging(), FWTTreeCache::IsPrefetching(), B2GTnPMonitor_cfi::item, fwlog::kDebug, fwlog::kInfo, m_event, m_eventTree, m_file, m_globalTag, m_name, mps_check::msg, mergeVDriftHistosByStation::name, NewEventItemCallIn(), FWEventItemsManager::newItem_, gpuVertexFinder::printf(), edm::processConfiguration, edm::ProcessConfiguration::processName(), TrackValidation_cff::pset, edm::ProcessConfiguration::releaseVersion(), RemovingEventItemCallIn(), fwlite::Event::size(), AlCaHLTBitMon_QueryRunRegistry::string, fireworks::supportedDataFormatsVersion(), edm::ParameterSet::tbl(), and findQualityFiles::v.
Referenced by FWFileEntry().
|
delete |
int FWFileEntry::previousSelectedEvent | ( | int | event | ) |
Definition at line 264 of file FWFileEntry.cc.
References m_globalEventList, and hgcalPerformanceValidation::val.
void FWFileEntry::RemovingEventItemCallIn | ( | const FWEventItem * | it | ) |
Definition at line 569 of file FWFileEntry.cc.
References fwTreeCache(), getBranchName(), FWTTreeCache::IsLogging(), and gpuVertexFinder::printf().
Referenced by openFile().
|
private |
Definition at line 327 of file FWFileEntry.cc.
References b, FWEventItemsManager::begin(), edm::TypeWithDict::byName(), FWEventItemsManager::end(), dataset::end, filterEventsWithCustomParser(), newFWLiteAna::found, fwLog, fwlite::Event::getBranchNameFor(), FWEventItem::getPrimaryData(), FWEventItem::hasEvent(), mps_fire::i, FWTTreeCache::IsPrefetching(), B2GTnPMonitor_cfi::item, 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(), mergeVDriftHistosByStation::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 54 of file FWFileEntry.h.
References m_eventTree.
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 291 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 98 of file FWFileEntry.h.
Referenced by closeFile(), event(), filterEventsWithCustomParser(), getBranchName(), openFile(), and runFilter().
|
private |
Definition at line 97 of file FWFileEntry.h.
Referenced by closeFile(), fwTreeCache(), lastEvent(), openFile(), runFilter(), tree(), and updateFilters().
|
private |
Definition at line 96 of file FWFileEntry.h.
Referenced by closeFile(), file(), filterEventsWithCustomParser(), fwTreeCache(), openFile(), runFilter(), and updateFilters().
|
private |
Definition at line 103 of file FWFileEntry.h.
Referenced by filters(), hasActiveFilters(), updateFilters(), and ~FWFileEntry().
|
private |
Definition at line 104 of file FWFileEntry.h.
Referenced by firstSelectedEvent(), globalSelection(), hasSelectedEvents(), isEventSelected(), lastSelectedEvent(), nextSelectedEvent(), previousSelectedEvent(), updateFilters(), and ~FWFileEntry().
|
private |
Definition at line 101 of file FWFileEntry.h.
Referenced by getGlobalTag(), and openFile().
|
private |
Definition at line 95 of file FWFileEntry.h.
Referenced by openFile().
|
private |
Definition at line 100 of file FWFileEntry.h.
Referenced by needUpdate(), and updateFilters().