#include <RootInputFileSequence.h>
Public Types | |
typedef boost::shared_ptr < RootFile > | RootFileSharedPtr |
Static Public Member Functions | |
static void | fillDescription (ParameterSetDescription &desc) |
Private Member Functions | |
std::vector< FileCatalogItem > const & | fileCatalogItems () const |
void | initFile (bool skipBadFiles) |
bool | nextFile (PrincipalCache &cache) |
bool | previousFile (PrincipalCache &cache) |
ProcessConfiguration const & | processConfiguration () const |
boost::shared_ptr < ProductRegistry const > | productRegistry () const |
ProductRegistry & | productRegistryUpdate () const |
int | remainingEvents () const |
int | remainingLuminosityBlocks () const |
void | rewindFile () |
Definition at line 38 of file RootInputFileSequence.h.
typedef boost::shared_ptr<RootFile> edm::RootInputFileSequence::RootFileSharedPtr |
Definition at line 46 of file RootInputFileSequence.h.
|
explicit |
Definition at line 26 of file RootInputFileSequence.cc.
References StorageFactory::activateTimeout(), branchesMustMatch_, fileIter_, fileIterBegin_, fileIterEnd_, StorageFactory::get(), edm::ParameterSet::getUntrackedParameter(), initFile(), inputType_, edm::Service< T >::isAvailable(), numberOfEventsToSkip_, parametersMustMatch_, edm::InputType::Primary, productRegistryUpdate(), rootFile_, edm::InputType::SecondarySource, skipBadFiles_, skipEvents(), StorageFactory::stagein(), edm::BranchDescription::Strict, treeCacheSize_, and edm::ProductRegistry::updateFromInput().
|
virtual |
Definition at line 337 of file RootInputFileSequence.cc.
|
delete |
void edm::RootInputFileSequence::closeFile_ | ( | ) |
Definition at line 132 of file RootInputFileSequence.cc.
References duplicateChecker_, input_, inputType_, edm::InputType::Primary, rootFile_, and edm::InputType::SecondarySource.
Referenced by endJob(), initFile(), and rewind_().
void edm::RootInputFileSequence::dropUnwantedBranches_ | ( | std::vector< std::string > const & | wantedBranches | ) |
Definition at line 588 of file RootInputFileSequence.cc.
References edm::ParameterSet::addUntrackedParameter(), groupSelectorRules_, and cmsCodeRulesChecker::rules.
void edm::RootInputFileSequence::endJob | ( | void | ) |
|
private |
Definition at line 104 of file RootInputFileSequence.cc.
References catalog_, and edm::InputFileCatalog::fileCatalogItems().
Referenced by readOneRandom().
boost::shared_ptr< ProductRegistry const > edm::RootInputFileSequence::fileProductRegistry | ( | ) | const |
Definition at line 271 of file RootInputFileSequence.cc.
References rootFile_.
|
static |
Definition at line 748 of file RootInputFileSequence.cc.
References edm::ParameterSetDescription::addUntracked(), edm::roottree::defaultCacheSize, edm::EventSkipperByID::fillDescription(), edm::GroupSelectorRules::fillDescription(), and edm::DuplicateChecker::fillDescription().
Referenced by edm::PoolSource::fillDescriptions().
ProcessingController::ForwardState edm::RootInputFileSequence::forwardState | ( | ) | const |
Definition at line 784 of file RootInputFileSequence.cc.
References fileIter_, fileIterEnd_, edm::ProcessingController::kAtLastEvent, edm::ProcessingController::kEventsAheadInFile, edm::ProcessingController::kNextFileExists, edm::ProcessingController::kUnknownForward, and rootFile_.
InputSource::ItemType edm::RootInputFileSequence::getNextItemType | ( | ) |
Definition at line 379 of file RootInputFileSequence.cc.
References fileIter_, fileIterEnd_, 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, and rootFile_.
bool edm::RootInputFileSequence::goToEvent | ( | EventID const & | eventID | ) |
Definition at line 462 of file RootInputFileSequence.cc.
References edm::EventID::event(), fileIter_, fileIterBegin_, newFWLiteAna::found, indexesIntoFiles_, initFile(), edm::EventID::luminosityBlock(), rootFile_, edm::EventID::run(), and usingGoToEvent_.
|
private |
Definition at line 145 of file RootInputFileSequence.cc.
References closeFile_(), dropDescendants_, duplicateChecker_, alignCSCRings::e, eventSkipperByID_, edm::hlt::Exception, cms::Exception::explainSelf(), edm::errors::FallbackFileOpenError, fileIter_, fileIterBegin_, fileIterEnd_, fileIterLastOpened_, edm::errors::FileOpenError, groupSelectorRules_, indexesIntoFiles_, input_, RPC_Client_on_RootFile::InputFile, inputType_, labelRawDataLikeMC_, noEventSort_, numberOfEventsToSkip_, orderedProcessHistoryIDs_, dbtoconf::out, dbtoconf::pfn, edm::InputType::Primary, processConfiguration(), edm::InputSource::processingMode(), remainingEvents(), remainingLuminosityBlocks(), edm::InputFile::reportFallbackAttempt(), edm::InputFile::reportSkippedFile(), rootFile_, edm::InputType::SecondaryFile, edm::InputType::SecondarySource, setRun_, treeCacheSize_, treeMaxVirtualSize_, and usingGoToEvent_.
Referenced by goToEvent(), nextFile(), previousFile(), readFile_(), readOneRandom(), readOneSequential(), reset(), rewind_(), RootInputFileSequence(), skipToItem(), and skipToItemInNewFile().
|
private |
Definition at line 276 of file RootInputFileSequence.cc.
References edm::PrincipalCache::adjustEventToNewProductRegistry(), edm::PrincipalCache::adjustIndexesAfterProductRegistryAddition(), branchesMustMatch_, edm::hlt::Exception, fileIter_, fileIterBegin_, fileIterEnd_, initFile(), inputType_, edm::ProductRegistry::merge(), edm::errors::MismatchedInputFiles, parametersMustMatch_, edm::InputType::Primary, productRegistry(), productRegistryUpdate(), rootFile_, findQualityFiles::size, and skipBadFiles_.
Referenced by readFile_(), and skipEvents().
|
delete |
|
private |
Definition at line 306 of file RootInputFileSequence.cc.
References edm::PrincipalCache::adjustEventToNewProductRegistry(), edm::PrincipalCache::adjustIndexesAfterProductRegistryAddition(), branchesMustMatch_, edm::hlt::Exception, fileIter_, fileIterBegin_, fileIterEnd_, initFile(), inputType_, edm::ProductRegistry::merge(), edm::errors::MismatchedInputFiles, parametersMustMatch_, edm::InputType::Primary, productRegistry(), productRegistryUpdate(), rootFile_, and findQualityFiles::size.
Referenced by skipEvents().
|
private |
Definition at line 563 of file RootInputFileSequence.cc.
References input_, and edm::InputSource::processConfiguration().
Referenced by initFile().
|
private |
Definition at line 583 of file RootInputFileSequence.cc.
References input_, and edm::InputSource::productRegistry().
Referenced by nextFile(), and previousFile().
|
private |
Definition at line 578 of file RootInputFileSequence.cc.
References input_, and edm::InputSource::productRegistryUpdate().
Referenced by nextFile(), previousFile(), and RootInputFileSequence().
EventPrincipal * edm::RootInputFileSequence::readEvent | ( | EventPrincipal & | cache, |
boost::shared_ptr< LuminosityBlockPrincipal > | lb | ||
) |
Definition at line 374 of file RootInputFileSequence.cc.
References rootFile_.
boost::shared_ptr< FileBlock > edm::RootInputFileSequence::readFile_ | ( | PrincipalCache & | cache | ) |
Definition at line 114 of file RootInputFileSequence.cc.
References firstFile_, initFile(), nextFile(), rootFile_, and skipBadFiles_.
boost::shared_ptr< LuminosityBlockPrincipal > edm::RootInputFileSequence::readLuminosityBlock_ | ( | boost::shared_ptr< LuminosityBlockPrincipal > | lbCache | ) |
Definition at line 356 of file RootInputFileSequence.cc.
References rootFile_.
boost::shared_ptr< LuminosityBlockAuxiliary > edm::RootInputFileSequence::readLuminosityBlockAuxiliary_ | ( | ) |
Definition at line 346 of file RootInputFileSequence.cc.
References rootFile_.
EventPrincipal * edm::RootInputFileSequence::readOneRandom | ( | ) |
Definition at line 669 of file RootInputFileSequence.cc.
References edm::errors::Configuration, eventsRemainingInFile_, edm::hlt::Exception, fileCatalogItems(), fileIter_, fileIterBegin_, fileIterEnd_, flatDistribution_, initFile(), edm::errors::NotFound, rootFile_, findQualityFiles::size, and skipBadFiles_.
EventPrincipal * edm::RootInputFileSequence::readOneRandomWithID | ( | LuminosityBlockID const & | id | ) |
Definition at line 709 of file RootInputFileSequence.cc.
References edm::errors::Configuration, edm::hlt::Exception, fileIter_, fileIterBegin_, fileIterEnd_, flatDistribution_, newFWLiteAna::found, i, rootFile_, DTTTrigCorrFirst::run, skipBadFiles_, and skipToItem().
EventPrincipal * edm::RootInputFileSequence::readOneSequential | ( | ) |
Definition at line 602 of file RootInputFileSequence.cc.
References edm::errors::Configuration, edm::hlt::Exception, fileIter_, fileIterBegin_, fileIterEnd_, initFile(), rootFile_, and skipBadFiles_.
EventPrincipal * edm::RootInputFileSequence::readOneSequentialWithID | ( | LuminosityBlockID const & | id | ) |
Definition at line 627 of file RootInputFileSequence.cc.
References edm::errors::Configuration, edm::hlt::Exception, fileIter_, fileIterBegin_, fileIterEnd_, newFWLiteAna::found, rootFile_, DTTTrigCorrFirst::run, skipBadFiles_, skipToItem(), and skipToItemInNewFile().
EventPrincipal * edm::RootInputFileSequence::readOneSpecified | ( | EventID const & | id | ) |
Definition at line 652 of file RootInputFileSequence.cc.
References edm::errors::Configuration, event(), edm::hlt::Exception, fileIterBegin_, fileIterEnd_, newFWLiteAna::found, edm::errors::NotFound, rootFile_, DTTTrigCorrFirst::run, skipBadFiles_, and skipToItem().
boost::shared_ptr< RunPrincipal > edm::RootInputFileSequence::readRun_ | ( | boost::shared_ptr< RunPrincipal > | rpCache | ) |
Definition at line 351 of file RootInputFileSequence.cc.
References rootFile_.
boost::shared_ptr< RunAuxiliary > edm::RootInputFileSequence::readRunAuxiliary_ | ( | ) |
Definition at line 341 of file RootInputFileSequence.cc.
References rootFile_.
|
private |
Definition at line 568 of file RootInputFileSequence.cc.
References input_, and edm::InputSource::remainingEvents().
Referenced by initFile().
|
private |
Definition at line 573 of file RootInputFileSequence.cc.
References input_, and edm::InputSource::remainingLuminosityBlocks().
Referenced by initFile().
void edm::RootInputFileSequence::reset | ( | PrincipalCache & | cache | ) |
Definition at line 424 of file RootInputFileSequence.cc.
References fileIter_, fileIterBegin_, fileIterEnd_, firstFile_, initFile(), inputType_, numberOfEventsToSkip_, rootFile_, edm::InputType::SecondarySource, skipBadFiles_, and skipEvents().
ProcessingController::ReverseState edm::RootInputFileSequence::reverseState | ( | ) | const |
Definition at line 800 of file RootInputFileSequence.cc.
References fileIter_, fileIterBegin_, edm::ProcessingController::kAtFirstEvent, edm::ProcessingController::kEventsBackwardsInFile, edm::ProcessingController::kPreviousFileExists, edm::ProcessingController::kUnknownReverse, and rootFile_.
void edm::RootInputFileSequence::rewind_ | ( | ) |
Definition at line 405 of file RootInputFileSequence.cc.
References closeFile_(), fileIter_, fileIterBegin_, firstFile_, initFile(), rewindFile(), and rootFile_.
|
private |
Definition at line 419 of file RootInputFileSequence.cc.
References rootFile_.
Referenced by rewind_().
bool edm::RootInputFileSequence::skipEvents | ( | int | offset, |
PrincipalCache & | cache | ||
) |
Definition at line 443 of file RootInputFileSequence.cc.
References fileIter_, fileIterEnd_, nextFile(), numberOfEventsToSkip_, evf::evtn::offset(), previousFile(), and rootFile_.
Referenced by reset(), and RootInputFileSequence().
bool edm::RootInputFileSequence::skipToItem | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi, | ||
EventNumber_t | event, | ||
bool | currentFileFirst = true |
||
) |
Definition at line 532 of file RootInputFileSequence.cc.
References fileIter_, fileIterBegin_, newFWLiteAna::found, indexesIntoFiles_, initFile(), rootFile_, and skipToItemInNewFile().
Referenced by readOneRandomWithID(), readOneSequentialWithID(), and readOneSpecified().
bool edm::RootInputFileSequence::skipToItemInNewFile | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi, | ||
EventNumber_t | event | ||
) |
Definition at line 514 of file RootInputFileSequence.cc.
References fileIter_, fileIterBegin_, newFWLiteAna::found, indexesIntoFiles_, initFile(), and rootFile_.
Referenced by readOneSequentialWithID(), and skipToItem().
|
private |
Definition at line 96 of file RootInputFileSequence.h.
Referenced by nextFile(), previousFile(), and RootInputFileSequence().
|
private |
Definition at line 88 of file RootInputFileSequence.h.
Referenced by fileCatalogItems().
|
private |
Definition at line 112 of file RootInputFileSequence.h.
Referenced by initFile().
|
private |
Definition at line 111 of file RootInputFileSequence.h.
Referenced by closeFile_(), and initFile().
|
private |
Definition at line 102 of file RootInputFileSequence.h.
Referenced by initFile().
|
private |
Definition at line 103 of file RootInputFileSequence.h.
Referenced by readOneRandom().
|
private |
Definition at line 92 of file RootInputFileSequence.h.
Referenced by forwardState(), getNextItemType(), goToEvent(), initFile(), nextFile(), previousFile(), readOneRandom(), readOneRandomWithID(), readOneSequential(), readOneSequentialWithID(), reset(), reverseState(), rewind_(), RootInputFileSequence(), skipEvents(), skipToItem(), and skipToItemInNewFile().
|
private |
Definition at line 90 of file RootInputFileSequence.h.
Referenced by goToEvent(), initFile(), nextFile(), previousFile(), readOneRandom(), readOneRandomWithID(), readOneSequential(), readOneSequentialWithID(), readOneSpecified(), reset(), reverseState(), rewind_(), RootInputFileSequence(), skipToItem(), and skipToItemInNewFile().
|
private |
Definition at line 91 of file RootInputFileSequence.h.
Referenced by forwardState(), getNextItemType(), initFile(), nextFile(), previousFile(), readOneRandom(), readOneRandomWithID(), readOneSequential(), readOneSequentialWithID(), readOneSpecified(), reset(), RootInputFileSequence(), and skipEvents().
|
private |
Definition at line 93 of file RootInputFileSequence.h.
Referenced by initFile().
|
private |
Definition at line 89 of file RootInputFileSequence.h.
Referenced by getNextItemType(), readFile_(), reset(), and rewind_().
|
private |
Definition at line 98 of file RootInputFileSequence.h.
Referenced by readOneRandom(), and readOneRandomWithID().
|
private |
Definition at line 110 of file RootInputFileSequence.h.
Referenced by dropUnwantedBranches_(), and initFile().
|
private |
Definition at line 99 of file RootInputFileSequence.h.
Referenced by goToEvent(), initFile(), skipToItem(), and skipToItemInNewFile().
|
private |
Definition at line 86 of file RootInputFileSequence.h.
Referenced by closeFile_(), initFile(), processConfiguration(), productRegistry(), productRegistryUpdate(), remainingEvents(), and remainingLuminosityBlocks().
|
private |
Definition at line 87 of file RootInputFileSequence.h.
Referenced by closeFile_(), initFile(), nextFile(), previousFile(), reset(), and RootInputFileSequence().
|
private |
Definition at line 113 of file RootInputFileSequence.h.
Referenced by initFile().
|
private |
Definition at line 105 of file RootInputFileSequence.h.
Referenced by initFile().
|
private |
Definition at line 104 of file RootInputFileSequence.h.
Referenced by initFile(), reset(), RootInputFileSequence(), and skipEvents().
|
private |
Definition at line 100 of file RootInputFileSequence.h.
Referenced by initFile().
|
private |
Definition at line 95 of file RootInputFileSequence.h.
Referenced by nextFile(), previousFile(), and RootInputFileSequence().
|
private |
Definition at line 94 of file RootInputFileSequence.h.
Referenced by closeFile_(), fileProductRegistry(), forwardState(), getNextItemType(), goToEvent(), initFile(), nextFile(), previousFile(), readEvent(), readFile_(), readLuminosityBlock_(), readLuminosityBlockAuxiliary_(), readOneRandom(), readOneRandomWithID(), readOneSequential(), readOneSequentialWithID(), readOneSpecified(), readRun_(), readRunAuxiliary_(), reset(), reverseState(), rewind_(), rewindFile(), RootInputFileSequence(), skipEvents(), skipToItem(), and skipToItemInNewFile().
|
private |
Definition at line 109 of file RootInputFileSequence.h.
Referenced by initFile().
|
private |
Definition at line 106 of file RootInputFileSequence.h.
Referenced by nextFile(), readFile_(), readOneRandom(), readOneRandomWithID(), readOneSequential(), readOneSequentialWithID(), readOneSpecified(), reset(), and RootInputFileSequence().
|
private |
Definition at line 107 of file RootInputFileSequence.h.
Referenced by initFile(), and RootInputFileSequence().
|
private |
Definition at line 108 of file RootInputFileSequence.h.
Referenced by initFile().
|
private |
Definition at line 114 of file RootInputFileSequence.h.
Referenced by goToEvent(), and initFile().