#include <RootPrimaryFileSequence.h>
Public Types | |
typedef std::shared_ptr< RootFile > | RootFileSharedPtr |
Static Public Member Functions | |
static void | fillDescription (ParameterSetDescription &desc) |
Private Member Functions | |
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_ |
bool | bypassVersionCheck_ |
bool | dropDescendants_ |
std::shared_ptr< DuplicateChecker > | duplicateChecker_ |
bool | enablePrefetching_ |
std::shared_ptr< EventSkipperByID > | eventSkipperByID_ |
bool | firstFile_ |
int | initialNumberOfEventsToSkip_ |
PoolSource & | input_ |
bool | labelRawDataLikeMC_ |
bool | noEventSort_ |
unsigned int | nStreams_ |
std::vector< ProcessHistoryID > | orderedProcessHistoryIDs_ |
ProductSelectorRules | productSelectorRules_ |
RunNumber_t | setRun_ |
bool | skipBadFiles_ |
unsigned int | treeCacheSize_ |
int const | treeMaxVirtualSize_ |
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 |
RootFileSharedPtr const & | rootFile () const |
RootFileSharedPtr & | 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 33 of file RootPrimaryFileSequence.h.
typedef std::shared_ptr<RootFile> edm::RootPrimaryFileSequence::RootFileSharedPtr |
Definition at line 44 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(), skipBadFiles_, skipEvents(), StorageFactory::stagein(), edm::BranchDescription::Strict, AlCaHLTBitMon_QueryRunRegistry::string, treeCacheSize_, and edm::ProductRegistry::updateFromInput().
|
virtual |
Definition at line 83 of file RootPrimaryFileSequence.cc.
|
delete |
|
overridevirtual |
Implements edm::RootInputFileSequence.
Definition at line 111 of file RootPrimaryFileSequence.cc.
References duplicateChecker_, input_, edm::RootInputFileSequence::lfn(), edm::RootInputFileSequence::rootFile(), and edm::RootInputFileSequence::usedFallback().
Referenced by endJob(), and rewind_().
void edm::RootPrimaryFileSequence::endJob | ( | void | ) |
Definition at line 87 of file RootPrimaryFileSequence.cc.
References closeFile_().
|
static |
Definition at line 340 of file RootPrimaryFileSequence.cc.
References edm::ParameterSetDescription::addUntracked(), edm::roottree::defaultCacheSize, edm::EventSkipperByID::fillDescription(), edm::ProductSelectorRules::fillDescription(), edm::DuplicateChecker::fillDescription(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edm::PoolSource::fillDescriptions().
ProcessingController::ForwardState edm::RootPrimaryFileSequence::forwardState | ( | ) | const |
Definition at line 376 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 208 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 275 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 123 of file RootPrimaryFileSequence.cc.
References duplicateChecker_, edm::RootInputFileSequence::initTheFile(), input_, edm::Primary, and usingGoToEvent_.
|
overrideprivatevirtual |
Implements edm::RootInputFileSequence.
Definition at line 132 of file RootPrimaryFileSequence.cc.
References edm::InputSource::branchIDListHelper(), bypassVersionCheck_, dropDescendants_, duplicateChecker_, enablePrefetching_, eventSkipperByID_, edm::RootInputFileSequence::fileName(), edm::RootInputFileSequence::indexesIntoFiles(), initialNumberOfEventsToSkip_, input_, labelRawDataLikeMC_, edm::RootInputFileSequence::logicalFileName(), noEventSort_, nStreams_, orderedProcessHistoryIDs_, edm::Primary, edm::InputSource::processConfiguration(), edm::InputSource::processHistoryRegistryForUpdate(), edm::InputSource::processingMode(), productSelectorRules_, remainingEvents(), remainingLuminosityBlocks(), edm::RootInputFileSequence::sequenceNumberOfFile(), setRun_, edm::InputSource::thinnedAssociationsHelper(), treeCacheSize_, treeMaxVirtualSize_, and usingGoToEvent_.
|
private |
Definition at line 166 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(), skipBadFiles_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by readFile_(), and skipEvents().
|
delete |
|
private |
Definition at line 186 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 92 of file RootPrimaryFileSequence.cc.
References assert(), firstFile_, edm::RootInputFileSequence::initFile(), nextFile(), edm::RootInputFileSequence::rootFile(), and skipBadFiles_.
|
private |
Definition at line 330 of file RootPrimaryFileSequence.cc.
References input_, and edm::InputSource::remainingEvents().
Referenced by makeRootFile().
|
private |
Definition at line 335 of file RootPrimaryFileSequence.cc.
References input_, and edm::InputSource::remainingLuminosityBlocks().
Referenced by makeRootFile().
ProcessingController::ReverseState edm::RootPrimaryFileSequence::reverseState | ( | ) | const |
Definition at line 391 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 234 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 253 of file RootPrimaryFileSequence.cc.
References edm::RootInputFileSequence::rootFile().
Referenced by rewind_().
bool edm::RootPrimaryFileSequence::skipEvents | ( | int | offset | ) |
Definition at line 259 of file RootPrimaryFileSequence.cc.
References assert(), nextFile(), previousFile(), edm::RootInputFileSequence::rootFile(), and edm::RootInputFileSequence::setNoMoreFiles().
Referenced by rewind_(), and RootPrimaryFileSequence().
|
private |
Definition at line 67 of file RootPrimaryFileSequence.h.
Referenced by nextFile(), previousFile(), and RootPrimaryFileSequence().
|
private |
Definition at line 75 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 81 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 80 of file RootPrimaryFileSequence.h.
Referenced by closeFile_(), initFile_(), and makeRootFile().
|
private |
Definition at line 84 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile(), and RootPrimaryFileSequence().
|
private |
Definition at line 71 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 66 of file RootPrimaryFileSequence.h.
Referenced by getNextItemType(), readFile_(), and rewind_().
|
private |
Definition at line 72 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile(), rewind_(), and RootPrimaryFileSequence().
|
private |
Definition at line 65 of file RootPrimaryFileSequence.h.
Referenced by closeFile_(), initFile_(), makeRootFile(), nextFile(), previousFile(), remainingEvents(), remainingLuminosityBlocks(), and RootPrimaryFileSequence().
|
private |
Definition at line 82 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 73 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 70 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 68 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 79 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 78 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 74 of file RootPrimaryFileSequence.h.
Referenced by nextFile(), readFile_(), and RootPrimaryFileSequence().
|
private |
Definition at line 76 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile(), and RootPrimaryFileSequence().
|
private |
Definition at line 77 of file RootPrimaryFileSequence.h.
Referenced by makeRootFile().
|
private |
Definition at line 83 of file RootPrimaryFileSequence.h.
Referenced by goToEvent(), initFile_(), and makeRootFile().