#include <RootPrimaryFileSequence.h>
Static Public Member Functions | |
static void | fillDescription (ParameterSetDescription &desc) |
Private Member Functions | |
std::shared_ptr < DuplicateChecker const > | duplicateChecker () const |
std::shared_ptr < DuplicateChecker > & | duplicateChecker () |
std::shared_ptr < EventSkipperByID const > | eventSkipperByID () const |
std::shared_ptr < EventSkipperByID > & | eventSkipperByID () |
virtual void | initFile_ (bool skipBadFiles) override |
virtual RootFileSharedPtr | makeRootFile (std::shared_ptr< InputFile > filePtr) override |
bool | nextFile () |
bool | previousFile () |
int | remainingEvents () const |
int | remainingLuminosityBlocks () const |
void | rewindFile () |
Private Attributes | |
BranchDescription::MatchMode | branchesMustMatch_ |
edm::propagate_const < std::shared_ptr < DuplicateChecker > > | duplicateChecker_ |
bool | enablePrefetching_ |
edm::propagate_const < std::shared_ptr < EventSkipperByID > > | eventSkipperByID_ |
bool | firstFile_ |
int | initialNumberOfEventsToSkip_ |
PoolSource & | input_ |
bool | noEventSort_ |
std::vector< ProcessHistoryID > | orderedProcessHistoryIDs_ |
unsigned int | treeCacheSize_ |
bool | usingGoToEvent_ |
Additional Inherited Members | |
Protected Types inherited from edm::RootInputFileSequence | |
typedef std::shared_ptr< RootFile > | RootFileSharedPtr |
Protected Member Functions inherited from edm::RootInputFileSequence | |
bool | atFirstFile () const |
bool | atLastFile () const |
std::string const & | fallbackFileName () const |
std::vector< FileCatalogItem > const & | fileCatalogItems () const |
std::string const & | fileName () const |
std::vector< std::shared_ptr < IndexIntoFile > > const & | indexesIntoFiles () const |
void | initFile (bool skipBadFiles) |
void | initTheFile (bool skipBadFiles, bool deleteIndexIntoFile, InputSource *input, char const *inputTypeName, InputType inputType) |
std::string const & | lfn () const |
size_t | lfnHash () const |
std::string const & | logicalFileName () const |
bool | noFiles () const |
bool | noMoreFiles () const |
size_t | numberOfFiles () const |
std::shared_ptr< RootFile const > | rootFile () const |
std::shared_ptr< RootFile > & | rootFile () |
size_t | sequenceNumberOfFile () const |
void | setAtFileSequenceNumber (size_t offset) |
void | setAtFirstFile () |
void | setAtNextFile () |
void | setAtPreviousFile () |
void | setIndexIntoFile (size_t index) |
void | setNoMoreFiles () |
bool | skipToItemInNewFile (RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event) |
bool | skipToItemInNewFile (RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event, size_t fileNameHash) |
bool | usedFallback () const |
Definition at line 34 of file RootPrimaryFileSequence.h.
|
explicit |
Definition at line 21 of file RootPrimaryFileSequence.cc.
References branchesMustMatch_, enablePrefetching_, edm::RootInputFileSequence::fileName(), StorageFactory::get(), edm::ParameterSet::getUntrackedParameter(), edm::RootInputFileSequence::initFile(), initialNumberOfEventsToSkip_, input_, edm::Service< T >::isAvailable(), edm::RootInputFileSequence::noMoreFiles(), edm::InputSource::productRegistryUpdate(), edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::setAtFirstFile(), edm::RootInputFileSequence::setAtNextFile(), edm::PoolSource::skipBadFiles(), skipEvents(), StorageFactory::stagein(), edm::BranchDescription::Strict, AlCaHLTBitMon_QueryRunRegistry::string, treeCacheSize_, and edm::ProductRegistry::updateFromInput().
|
virtual |
Definition at line 67 of file RootPrimaryFileSequence.cc.
|
delete |
|
overridevirtual |
Implements edm::RootInputFileSequence.
Definition at line 95 of file RootPrimaryFileSequence.cc.
References duplicateChecker_, input_, edm::RootInputFileSequence::lfn(), edm::RootInputFileSequence::rootFile(), and edm::RootInputFileSequence::usedFallback().
Referenced by endJob(), and rewind_().
|
inlineprivate |
Definition at line 71 of file RootPrimaryFileSequence.h.
References duplicateChecker_, and edm::get_underlying_safe().
Referenced by makeRootFile().
|
inlineprivate |
Definition at line 72 of file RootPrimaryFileSequence.h.
References duplicateChecker_, and edm::get_underlying_safe().
void edm::RootPrimaryFileSequence::endJob | ( | void | ) |
Definition at line 71 of file RootPrimaryFileSequence.cc.
References closeFile_().
|
inlineprivate |
Definition at line 69 of file RootPrimaryFileSequence.h.
References eventSkipperByID_, and edm::get_underlying_safe().
Referenced by makeRootFile().
|
inlineprivate |
Definition at line 70 of file RootPrimaryFileSequence.h.
References eventSkipperByID_, and edm::get_underlying_safe().
|
static |
Definition at line 323 of file RootPrimaryFileSequence.cc.
References edm::ParameterSetDescription::addUntracked(), edm::roottree::defaultCacheSize, edm::EventSkipperByID::fillDescription(), edm::DuplicateChecker::fillDescription(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edm::PoolSource::fillDescriptions().
ProcessingController::ForwardState edm::RootPrimaryFileSequence::forwardState | ( | ) | const |
Definition at line 344 of file RootPrimaryFileSequence.cc.
References edm::RootInputFileSequence::atLastFile(), edm::ProcessingController::kAtLastEvent, edm::ProcessingController::kEventsAheadInFile, edm::ProcessingController::kNextFileExists, edm::ProcessingController::kUnknownForward, edm::RootInputFileSequence::noMoreFiles(), and edm::RootInputFileSequence::rootFile().
InputSource::ItemType edm::RootPrimaryFileSequence::getNextItemType | ( | RunNumber_t & | run, |
LuminosityBlockNumber_t & | lumi, | ||
EventNumber_t & | event | ||
) |
Definition at line 192 of file RootPrimaryFileSequence.cc.
References assert(), edm::RootInputFileSequence::atLastFile(), firstFile_, edm::InputSource::IsEvent, edm::InputSource::IsFile, edm::InputSource::IsLumi, edm::InputSource::IsRun, edm::InputSource::IsStop, edm::IndexIntoFile::kEnd, edm::IndexIntoFile::kEvent, edm::IndexIntoFile::kLumi, edm::IndexIntoFile::kRun, edm::RootInputFileSequence::noMoreFiles(), and edm::RootInputFileSequence::rootFile().
bool edm::RootPrimaryFileSequence::goToEvent | ( | EventID const & | eventID | ) |
Definition at line 259 of file RootPrimaryFileSequence.cc.
References assert(), begin, end, edm::EventID::event(), newFWLiteAna::found, edm::RootInputFileSequence::indexesIntoFiles(), edm::RootInputFileSequence::initFile(), edm::EventID::luminosityBlock(), edm::RootInputFileSequence::rootFile(), edm::EventID::run(), edm::RootInputFileSequence::sequenceNumberOfFile(), edm::RootInputFileSequence::setAtFileSequenceNumber(), findQualityFiles::size, and usingGoToEvent_.
|
overrideprivatevirtual |
Implements edm::RootInputFileSequence.
Definition at line 107 of file RootPrimaryFileSequence.cc.
References duplicateChecker_, edm::RootInputFileSequence::initTheFile(), input_, edm::Primary, and usingGoToEvent_.
|
overrideprivatevirtual |
Implements edm::RootInputFileSequence.
Definition at line 116 of file RootPrimaryFileSequence.cc.
References edm::InputSource::branchIDListHelper(), edm::PoolSource::bypassVersionCheck(), edm::PoolSource::dropDescendants(), duplicateChecker(), enablePrefetching_, eventSkipperByID(), edm::RootInputFileSequence::fileName(), edm::RootInputFileSequence::indexesIntoFiles(), initialNumberOfEventsToSkip_, input_, edm::PoolSource::labelRawDataLikeMC(), edm::RootInputFileSequence::logicalFileName(), noEventSort_, edm::PoolSource::nStreams(), orderedProcessHistoryIDs_, edm::Primary, edm::InputSource::processConfiguration(), edm::InputSource::processHistoryRegistryForUpdate(), edm::InputSource::processingMode(), edm::PoolSource::productSelectorRules(), remainingEvents(), remainingLuminosityBlocks(), edm::PoolSource::runHelper(), edm::RootInputFileSequence::sequenceNumberOfFile(), edm::InputSource::thinnedAssociationsHelper(), treeCacheSize_, edm::PoolSource::treeMaxVirtualSize(), and usingGoToEvent_.
|
private |
Definition at line 150 of file RootPrimaryFileSequence.cc.
References branchesMustMatch_, Exception, edm::RootInputFileSequence::fileName(), edm::RootInputFileSequence::initFile(), input_, edm::ProductRegistry::merge(), edm::errors::MismatchedInputFiles, edm::RootInputFileSequence::noMoreFiles(), edm::InputSource::productRegistryUpdate(), edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::setAtNextFile(), edm::PoolSource::skipBadFiles(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by readFile_(), and skipEvents().
|
delete |
|
private |
Definition at line 170 of file RootPrimaryFileSequence.cc.
References edm::RootInputFileSequence::atFirstFile(), branchesMustMatch_, Exception, edm::RootInputFileSequence::fileName(), edm::RootInputFileSequence::initFile(), input_, edm::ProductRegistry::merge(), edm::errors::MismatchedInputFiles, edm::InputSource::productRegistryUpdate(), edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::setAtPreviousFile(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by skipEvents().
std::unique_ptr< FileBlock > edm::RootPrimaryFileSequence::readFile_ | ( | ) |
Definition at line 76 of file RootPrimaryFileSequence.cc.
References assert(), firstFile_, edm::RootInputFileSequence::initFile(), input_, nextFile(), edm::RootInputFileSequence::rootFile(), and edm::PoolSource::skipBadFiles().
|
private |
Definition at line 313 of file RootPrimaryFileSequence.cc.
References input_, and edm::InputSource::remainingEvents().
Referenced by makeRootFile().
|
private |
Definition at line 318 of file RootPrimaryFileSequence.cc.
References input_, and edm::InputSource::remainingLuminosityBlocks().
Referenced by makeRootFile().
ProcessingController::ReverseState edm::RootPrimaryFileSequence::reverseState | ( | ) | const |
Definition at line 359 of file RootPrimaryFileSequence.cc.
References edm::RootInputFileSequence::atFirstFile(), edm::ProcessingController::kAtFirstEvent, edm::ProcessingController::kEventsBackwardsInFile, edm::ProcessingController::kPreviousFileExists, edm::ProcessingController::kUnknownReverse, and edm::RootInputFileSequence::rootFile().
void edm::RootPrimaryFileSequence::rewind_ | ( | ) |
Definition at line 218 of file RootPrimaryFileSequence.cc.
References edm::RootInputFileSequence::atFirstFile(), closeFile_(), firstFile_, edm::RootInputFileSequence::initFile(), initialNumberOfEventsToSkip_, rewindFile(), edm::RootInputFileSequence::rootFile(), edm::RootInputFileSequence::setAtFirstFile(), and skipEvents().
|
private |
Definition at line 237 of file RootPrimaryFileSequence.cc.
References edm::RootInputFileSequence::rootFile().
Referenced by rewind_().
bool edm::RootPrimaryFileSequence::skipEvents | ( | int | offset | ) |
Definition at line 243 of file RootPrimaryFileSequence.cc.
References assert(), nextFile(), previousFile(), edm::RootInputFileSequence::rootFile(), and edm::RootInputFileSequence::setNoMoreFiles().
Referenced by rewind_(), and RootPrimaryFileSequence().
|
private |
Definition at line 66 of file RootPrimaryFileSequence.h.
Referenced by nextFile(), previousFile(), and RootPrimaryFileSequence().
|
private |
Definition at line 78 of file RootPrimaryFileSequence.h.
Referenced by closeFile_(), duplicateChecker(), and initFile_().
|
private |
Definition at line 80 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile(), and RootPrimaryFileSequence().
|
private |
Definition at line 74 of file RootPrimaryFileSequence.h.
Referenced by eventSkipperByID().
|
private |
Definition at line 65 of file RootPrimaryFileSequence.h.
Referenced by getNextItemType(), readFile_(), and rewind_().
|
private |
Definition at line 75 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile(), rewind_(), and RootPrimaryFileSequence().
|
private |
Definition at line 64 of file RootPrimaryFileSequence.h.
Referenced by closeFile_(), initFile_(), makeRootFile(), nextFile(), previousFile(), readFile_(), remainingEvents(), remainingLuminosityBlocks(), and RootPrimaryFileSequence().
|
private |
Definition at line 76 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 67 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 77 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile(), and RootPrimaryFileSequence().
|
private |
Definition at line 79 of file RootPrimaryFileSequence.h.
Referenced by goToEvent(), initFile_(), and makeRootFile().