LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "RootInputFileSequence.h"
Classes | |
struct | Config |
Public Types | |
using | RootInputFileSharedPtr = std::shared_ptr< RootInputFile > |
using | EntryNumber = input::EntryNumber |
Private Member Functions | |
void | initFile (bool skipBadFiles) |
bool | nextFile () |
bool | previousFile () |
void | rewindFile () |
std::vector< FileCatalogItem > const & | fileCatalogItems () const |
ProcessConfiguration const & | processConfiguration () const |
bool | primary () const |
Definition at line 36 of file RootInputFileSequence.h.
Definition at line 40 of file RootInputFileSequence.h.
using art::RootInputFileSequence::RootInputFileSharedPtr = std::shared_ptr<RootInputFile> |
Definition at line 39 of file RootInputFileSequence.h.
|
delete |
art::RootInputFileSequence::RootInputFileSequence | ( | fhicl::TableFragment< Config > const & | config, |
InputFileCatalog & | catalog, | ||
FastCloningInfoProvider const & | fcip, | ||
InputSource::ProcessingMode | pMode, | ||
MasterProductRegistry & | mpr, | ||
ProcessConfiguration const & | processConfig | ||
) |
Definition at line 30 of file RootInputFileSequence.cc.
References catalog_, compactSubRunRanges_, art::errors::Configuration, delayedReadEventProducts_, delayedReadRunProducts_, delayedReadSubRunProducts_, dropDescendants_, duplicateChecker_, e, eventsToSkip_, fastCloningInfo_, fileCatalogItems(), fileIndexes_, art::InputFileCatalog::fileSources(), art::EventID::firstEvent(), art::RunID::firstRun(), art::SubRunID::firstSubRun(), forcedRunOffset_, art::InputFileCatalog::getNextFile(), groupSelectorRules_, initFile(), art::errors::InvalidNumber, art::errors::LogicError, art::RunID::maxRun(), mpr_, noEventSort_, origEventID_, pendingClose_, primary(), processConfiguration_, processingMode_, readParameterSets_, rootFile_, art::SubRunID::run(), art::RunID::run(), saveMemoryObjectThreshold_, secondaryFileNames(), secondaryFileNames_, setRun_, skipBadFiles_, treeCacheSize_, and treeMaxVirtualSize_.
void art::RootInputFileSequence::closeFile_ | ( | ) |
Definition at line 291 of file RootInputFileSequence.cc.
References catalog_, duplicateChecker_, eventsToSkip_, art::InputFileCatalog::finish(), art::detail::logFileAction(), pendingClose_, primary(), and rootFile_.
Referenced by endJob(), and initFile().
|
inline |
Definition at line 207 of file RootInputFileSequence.h.
References delayedReadEventProducts_.
|
inline |
Definition at line 219 of file RootInputFileSequence.h.
References delayedReadRunProducts_.
|
inline |
Definition at line 213 of file RootInputFileSequence.h.
References delayedReadSubRunProducts_.
void art::RootInputFileSequence::endJob | ( | ) |
|
inline |
Definition at line 177 of file RootInputFileSequence.h.
References eventsToSkip_.
|
inline |
Definition at line 183 of file RootInputFileSequence.h.
References fastCloningInfo_.
|
private |
Definition at line 260 of file RootInputFileSequence.cc.
References catalog_, and art::InputFileCatalog::fileCatalogItems().
Referenced by processingMode(), and RootInputFileSequence().
void art::RootInputFileSequence::finish | ( | ) |
Definition at line 311 of file RootInputFileSequence.cc.
References pendingClose_.
Referenced by processingMode().
input::ItemType art::RootInputFileSequence::getNextItemType | ( | ) |
Definition at line 642 of file RootInputFileSequence.cc.
References catalog_, firstFile_, art::InputFileCatalog::hasNextFile(), art::input::IsEvent, art::input::IsFile, art::input::IsRun, art::input::IsStop, art::input::IsSubRun, art::FileIndex::kEnd, art::FileIndex::kEvent, art::FileIndex::kRun, art::FileIndex::kSubRun, and rootFile_.
|
private |
Definition at line 317 of file RootInputFileSequence.cc.
References catalog_, closeFile_(), compactSubRunRanges_, art::InputFileCatalog::currentFile(), art::InputFileCatalog::currentIndex(), delayedReadEventProducts_, delayedReadRunProducts_, delayedReadSubRunProducts_, dropDescendants_, duplicateChecker_, e, eventsToSkip_, fastCloningInfo_, fileIndexes_, art::FileCatalogItem::fileName(), art::errors::FileOpenError, forcedRunOffset_, groupSelectorRules_, art::InputFileCatalog::indexEnd, art::detail::logFileAction(), art::FileCatalogItem::logicalFileName(), mpr_, noEventSort_, art::Open, origEventID_, processConfiguration(), processingMode_, readParameterSets_, rootFile_, saveMemoryObjectThreshold_, secondaryFileNames_, treeCacheSize_, treeMaxVirtualSize_, and art::FileCatalog::url().
Referenced by nextFile(), previousFile(), processingMode(), readFile_(), readIt(), RootInputFileSequence(), and seekToEvent().
|
private |
Definition at line 440 of file RootInputFileSequence.cc.
References catalog_, art::InputFileCatalog::getNextFile(), initFile(), and skipBadFiles_.
Referenced by processingMode(), readFile_(), and skip().
std::unique_ptr< RootInputFile > art::RootInputFileSequence::openSecondaryFile | ( | std::string const & | name, |
cet::exempt_ptr< RootInputFile > | primaryFile | ||
) |
Definition at line 389 of file RootInputFileSequence.cc.
References compactSubRunRanges_, delayedReadEventProducts_, delayedReadRunProducts_, delayedReadSubRunProducts_, dropDescendants_, e, eventsToSkip_, fastCloningInfo_, art::errors::FileOpenError, forcedRunOffset_, groupSelectorRules_, art::detail::logFileAction(), mpr_, noEventSort_, art::Open, origEventID_, processConfiguration(), processingMode_, readParameterSets_, saveMemoryObjectThreshold_, treeCacheSize_, and treeMaxVirtualSize_.
|
delete |
|
inline |
|
private |
Definition at line 451 of file RootInputFileSequence.cc.
References catalog_, art::InputFileCatalog::currentIndex(), art::InputFileCatalog::indexEnd, initFile(), art::InputFileCatalog::isSearchable(), art::InputFileCatalog::rewindTo(), and rootFile_.
Referenced by processingMode(), and skip().
|
private |
Definition at line 711 of file RootInputFileSequence.cc.
Referenced by closeFile_(), processingMode(), and RootInputFileSequence().
|
private |
Definition at line 717 of file RootInputFileSequence.cc.
References processConfiguration_.
Referenced by initFile(), openSecondaryFile(), and processingMode().
|
inline |
Definition at line 225 of file RootInputFileSequence.h.
References fileCatalogItems(), finish(), initFile(), nextFile(), previousFile(), primary(), processConfiguration(), processingMode_, rewindFile(), and art::RootInputFileSequence::Config::skipBadFiles.
unique_ptr< EventPrincipal > art::RootInputFileSequence::readEvent_ | ( | ) |
Definition at line 519 of file RootInputFileSequence.cc.
References rootFile_, and rootFileForLastReadEvent_.
Referenced by readIt().
std::unique_ptr< FileBlock > art::RootInputFileSequence::readFile_ | ( | ) |
Definition at line 272 of file RootInputFileSequence.cc.
References firstFile_, initFile(), nextFile(), rootFile_, and skipBadFiles_.
std::unique_ptr< RunPrincipal > art::RootInputFileSequence::readIt | ( | RunID const & | id | ) |
Definition at line 597 of file RootInputFileSequence.cc.
References B, catalog_, E, fileIndexes_, art::InputFileCatalog::getNextFile(), initFile(), art::InRun, art::InputFileCatalog::isSearchable(), readRun_(), art::InputFileCatalog::rewindTo(), and rootFile_.
std::unique_ptr< SubRunPrincipal > art::RootInputFileSequence::readIt | ( | SubRunID const & | id, |
cet::exempt_ptr< RunPrincipal > | rp | ||
) |
Definition at line 550 of file RootInputFileSequence.cc.
References catalog_, fileIndexes_, art::InputFileCatalog::getNextFile(), initFile(), art::InSubRun, art::InputFileCatalog::isSearchable(), readSubRun_(), art::InputFileCatalog::rewindTo(), and rootFile_.
unique_ptr< EventPrincipal > art::RootInputFileSequence::readIt | ( | EventID const & | id, |
bool | exact = false |
||
) |
Definition at line 475 of file RootInputFileSequence.cc.
References catalog_, fileIndexes_, art::InputFileCatalog::getNextFile(), art::InEvent, initFile(), art::InputFileCatalog::isSearchable(), readEvent_(), art::InputFileCatalog::rewindTo(), rootFile_, and rootFileForLastReadEvent_.
std::unique_ptr< RunPrincipal > art::RootInputFileSequence::readRun_ | ( | ) |
Definition at line 636 of file RootInputFileSequence.cc.
References rootFile_.
Referenced by readIt().
std::unique_ptr< SubRunPrincipal > art::RootInputFileSequence::readSubRun_ | ( | cet::exempt_ptr< RunPrincipal > | rp | ) |
Definition at line 591 of file RootInputFileSequence.cc.
References rootFile_.
Referenced by readIt().
void art::RootInputFileSequence::rewind_ | ( | ) |
Definition at line 673 of file RootInputFileSequence.cc.
References catalog_, duplicateChecker_, art::errors::FileOpenError, firstFile_, art::InputFileCatalog::isSearchable(), and art::InputFileCatalog::rewind().
|
private |
Definition at line 689 of file RootInputFileSequence.cc.
References rootFile_.
Referenced by processingMode().
|
inline |
Definition at line 156 of file RootInputFileSequence.h.
References rootFile_, runRangeSetHandler(), and subRunRangeSetHandler().
|
inline |
Definition at line 150 of file RootInputFileSequence.h.
References rootFileForLastReadEvent_.
std::unique_ptr< RangeSetHandler > art::RootInputFileSequence::runRangeSetHandler | ( | ) |
Definition at line 538 of file RootInputFileSequence.cc.
References rootFile_.
Referenced by rootFile().
|
inline |
Definition at line 201 of file RootInputFileSequence.h.
References saveMemoryObjectThreshold_.
|
inline |
Definition at line 165 of file RootInputFileSequence.h.
References secondaryFileNames_.
Referenced by RootInputFileSequence().
Definition at line 215 of file RootInputFileSequence.cc.
References catalog_, fileIndexes_, art::InputFileCatalog::getNextFile(), art::InEvent, initFile(), art::InputFileCatalog::isSearchable(), art::InputFileCatalog::rewindTo(), and rootFile_.
EventID art::RootInputFileSequence::seekToEvent | ( | off_t | offset, |
bool | exact = false |
||
) |
Definition at line 253 of file RootInputFileSequence.cc.
References rootFile_, and skip().
void art::RootInputFileSequence::skip | ( | int | offset | ) |
Definition at line 696 of file RootInputFileSequence.cc.
References nextFile(), previousFile(), and rootFile_.
Referenced by seekToEvent().
std::unique_ptr< RangeSetHandler > art::RootInputFileSequence::subRunRangeSetHandler | ( | ) |
Definition at line 544 of file RootInputFileSequence.cc.
References rootFile_.
Referenced by rootFile().
|
inline |
Definition at line 189 of file RootInputFileSequence.h.
References treeCacheSize_.
|
inline |
Definition at line 195 of file RootInputFileSequence.h.
References treeMaxVirtualSize_.
|
private |
Definition at line 248 of file RootInputFileSequence.h.
Referenced by closeFile_(), fileCatalogItems(), getNextItemType(), initFile(), nextFile(), previousFile(), readIt(), rewind_(), RootInputFileSequence(), and seekToEvent().
|
private |
Definition at line 254 of file RootInputFileSequence.h.
Referenced by initFile(), openSecondaryFile(), and RootInputFileSequence().
|
private |
Definition at line 260 of file RootInputFileSequence.h.
Referenced by delayedReadEventProducts(), initFile(), openSecondaryFile(), and RootInputFileSequence().
|
private |
Definition at line 262 of file RootInputFileSequence.h.
Referenced by delayedReadRunProducts(), initFile(), openSecondaryFile(), and RootInputFileSequence().
|
private |
Definition at line 261 of file RootInputFileSequence.h.
Referenced by delayedReadSubRunProducts(), initFile(), openSecondaryFile(), and RootInputFileSequence().
|
private |
Definition at line 267 of file RootInputFileSequence.h.
Referenced by initFile(), openSecondaryFile(), and RootInputFileSequence().
|
private |
Definition at line 266 of file RootInputFileSequence.h.
Referenced by closeFile_(), initFile(), rewind_(), and RootInputFileSequence().
|
private |
Definition at line 253 of file RootInputFileSequence.h.
Referenced by closeFile_(), eventsToSkip(), initFile(), openSecondaryFile(), and RootInputFileSequence().
|
private |
Definition at line 270 of file RootInputFileSequence.h.
Referenced by fastCloningInfo(), initFile(), openSecondaryFile(), and RootInputFileSequence().
|
private |
Definition at line 251 of file RootInputFileSequence.h.
Referenced by initFile(), readIt(), RootInputFileSequence(), and seekToEvent().
|
private |
Definition at line 249 of file RootInputFileSequence.h.
Referenced by getNextItemType(), readFile_(), and rewind_().
|
private |
Definition at line 263 of file RootInputFileSequence.h.
Referenced by initFile(), openSecondaryFile(), and RootInputFileSequence().
|
private |
Definition at line 265 of file RootInputFileSequence.h.
Referenced by initFile(), openSecondaryFile(), and RootInputFileSequence().
|
private |
Definition at line 274 of file RootInputFileSequence.h.
Referenced by initFile(), openSecondaryFile(), and RootInputFileSequence().
|
private |
Definition at line 255 of file RootInputFileSequence.h.
Referenced by initFile(), openSecondaryFile(), and RootInputFileSequence().
|
private |
Definition at line 252 of file RootInputFileSequence.h.
Referenced by initFile(), openSecondaryFile(), origEventID(), and RootInputFileSequence().
|
private |
Definition at line 275 of file RootInputFileSequence.h.
Referenced by closeFile_(), finish(), and RootInputFileSequence().
|
private |
Definition at line 272 of file RootInputFileSequence.h.
Referenced by processConfiguration(), and RootInputFileSequence().
|
private |
Definition at line 271 of file RootInputFileSequence.h.
Referenced by initFile(), openSecondaryFile(), processingMode(), and RootInputFileSequence().
|
private |
Definition at line 268 of file RootInputFileSequence.h.
Referenced by initFile(), openSecondaryFile(), and RootInputFileSequence().
|
private |
Definition at line 250 of file RootInputFileSequence.h.
Referenced by closeFile_(), getNextItemType(), initFile(), previousFile(), readEvent_(), readFile_(), readIt(), readRun_(), readSubRun_(), rewindFile(), rootFile(), RootInputFileSequence(), runRangeSetHandler(), seekToEvent(), skip(), and subRunRangeSetHandler().
|
private |
Definition at line 269 of file RootInputFileSequence.h.
Referenced by readEvent_(), readIt(), and rootFileForLastReadEvent().
|
private |
Definition at line 259 of file RootInputFileSequence.h.
Referenced by initFile(), openSecondaryFile(), RootInputFileSequence(), and saveMemoryObjectThreshold().
|
private |
Definition at line 273 of file RootInputFileSequence.h.
Referenced by initFile(), RootInputFileSequence(), and secondaryFileNames().
|
private |
Definition at line 264 of file RootInputFileSequence.h.
Referenced by RootInputFileSequence().
|
private |
Definition at line 256 of file RootInputFileSequence.h.
Referenced by nextFile(), readFile_(), and RootInputFileSequence().
|
private |
Definition at line 257 of file RootInputFileSequence.h.
Referenced by initFile(), openSecondaryFile(), RootInputFileSequence(), and treeCacheSize().
|
private |
Definition at line 258 of file RootInputFileSequence.h.
Referenced by initFile(), openSecondaryFile(), RootInputFileSequence(), and treeMaxVirtualSize().