LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "RootInputFile.h"
Public Types | |
using | RootInputTreePtrArray = std::array< std::unique_ptr< RootInputTree >, NumBranchTypes > |
using | EntryNumber = RootInputTree::EntryNumber |
using | EntryNumbers = RootInputTree::EntryNumbers |
Public Member Functions | |
RootInputFile (RootInputFile const &)=delete | |
RootInputFile & | operator= (RootInputFile const &)=delete |
RootInputFile (std::string const &fileName, std::string const &catalogName, ProcessConfiguration const &processConfiguration, std::string const &logicalFileName, std::unique_ptr< TFile > &&filePtr, EventID const &origEventID, unsigned int eventsToSkip, bool compactSubRunRanges, FastCloningInfoProvider const &fcip, unsigned int treeCacheSize, int64_t treeMaxVirtualSize, int64_t saveMemoryObjectThreashold, bool delayedReadEventProducts, bool delayedReadSubRunProducts, bool delayedReadRunProducts, InputSource::ProcessingMode processingMode, int forcedRunOffset, bool noEventSort, GroupSelectorRules const &groupSelectorRules, std::shared_ptr< DuplicateChecker > duplicateChecker, bool dropDescendantsOfDroppedProducts, bool readIncomingParameterSets, cet::exempt_ptr< RootInputFile > primaryFile, std::vector< std::string > const &secondaryFileNames, RootInputFileSequence *rifSequence, MasterProductRegistry &mpr) | |
void | reportOpened () |
void | close (bool reallyClose) |
std::unique_ptr< ResultsPrincipal > | readResults () |
std::unique_ptr< RunPrincipal > | readRun () |
std::unique_ptr< SubRunPrincipal > | readSubRun (cet::exempt_ptr< RunPrincipal >) |
std::unique_ptr< EventPrincipal > | readEvent () |
bool | readRunForSecondaryFile (RunID) |
bool | readSubRunForSecondaryFile (SubRunID) |
bool | readEventForSecondaryFile (EventID eID) |
std::string const & | fileName () const |
RunAuxiliary & | runAux () |
ResultsAuxiliary & | resultsAux () |
SubRunAuxiliary & | subRunAux () |
EventAuxiliary & | eventAux () |
FileFormatVersion | fileFormatVersion () const |
bool | fastClonable () const |
std::unique_ptr< FileBlock > | createFileBlock () |
template<BranchType BT> | |
void | setEntry (FileIndex::EntryNumber_t entry) |
template<BranchType BT, typename ID > | |
bool | setEntry (ID const &id, bool exact=true) |
void | rewind () |
void | setToLastEntry () |
void | nextEntry () |
void | previousEntry () |
void | advanceEntry (std::size_t n) |
unsigned int | eventsToSkip () const |
int | skipEvents (int offset) |
int | setForcedRunOffset (RunNumber_t const &forcedRunNumber) |
bool | nextEventEntry () |
FileIndex::EntryType | getEntryType () const |
FileIndex::EntryType | getNextEntryTypeWanted () |
std::shared_ptr< FileIndex > | fileIndexSharedPtr () const |
EventID | eventIDForFileIndexPosition () const |
auto const & | secondaryFileNames () const |
auto const & | secondaryFiles () const |
void | openSecondaryFile (int const idx) |
std::unique_ptr< RangeSetHandler > | runRangeSetHandler () |
std::unique_ptr< RangeSetHandler > | subRunRangeSetHandler () |
Definition at line 49 of file RootInputFile.h.
Definition at line 54 of file RootInputFile.h.
Definition at line 55 of file RootInputFile.h.
using art::RootInputFile::RootInputTreePtrArray = std::array<std::unique_ptr<RootInputTree>, NumBranchTypes> |
Definition at line 53 of file RootInputFile.h.
|
delete |
art::RootInputFile::RootInputFile | ( | std::string const & | fileName, |
std::string const & | catalogName, | ||
ProcessConfiguration const & | processConfiguration, | ||
std::string const & | logicalFileName, | ||
std::unique_ptr< TFile > && | filePtr, | ||
EventID const & | origEventID, | ||
unsigned int | eventsToSkip, | ||
bool | compactSubRunRanges, | ||
FastCloningInfoProvider const & | fcip, | ||
unsigned int | treeCacheSize, | ||
int64_t | treeMaxVirtualSize, | ||
int64_t | saveMemoryObjectThreashold, | ||
bool | delayedReadEventProducts, | ||
bool | delayedReadSubRunProducts, | ||
bool | delayedReadRunProducts, | ||
InputSource::ProcessingMode | processingMode, | ||
int | forcedRunOffset, | ||
bool | noEventSort, | ||
GroupSelectorRules const & | groupSelectorRules, | ||
std::shared_ptr< DuplicateChecker > | duplicateChecker, | ||
bool | dropDescendantsOfDroppedProducts, | ||
bool | readIncomingParameterSets, | ||
cet::exempt_ptr< RootInputFile > | primaryFile, | ||
std::vector< std::string > const & | secondaryFileNames, | ||
RootInputFileSequence * | rifSequence, | ||
MasterProductRegistry & | mpr | ||
) |
|
inline |
void art::RootInputFile::close | ( | bool | reallyClose | ) |
Definition at line 557 of file RootInputFile.cc.
std::unique_ptr< FileBlock > art::RootInputFile::createFileBlock | ( | ) |
Definition at line 446 of file RootInputFile.cc.
Referenced by fastClonable().
|
private |
Definition at line 1025 of file RootInputFile.cc.
References art::BranchChildren::appendToDescendants(), art::checkDictionaries(), and E.
Referenced by fillAuxiliary().
|
inline |
Definition at line 124 of file RootInputFile.h.
References auxiliaries_.
EventID art::RootInputFile::eventIDForFileIndexPosition | ( | ) | const |
|
inline |
Definition at line 196 of file RootInputFile.h.
References eventsToSkip_, setForcedRunOffset(), and skipEvents().
|
inlineprivate |
Definition at line 239 of file RootInputFile.h.
References art::InEvent, and treePointers_.
Referenced by nextEventEntry(), and rewind().
|
inlineprivate |
Definition at line 261 of file RootInputFile.h.
References art::InEvent, and treePointers_.
|
inline |
|
inline |
Definition at line 130 of file RootInputFile.h.
References fileFormatVersion_.
|
inline |
Definition at line 213 of file RootInputFile.h.
References eventIDForFileIndexPosition(), and fileIndexSharedPtr_.
|
inline |
|
inlineprivate |
Definition at line 291 of file RootInputFile.h.
References auxiliaries_, and treePointers_.
|
inlineprivate |
Definition at line 300 of file RootInputFile.h.
References auxiliaries_, dropOnInput(), fileFormatVersion_, fileIndex_, fileName_, getEntryNumbers(), initializeDuplicateChecker(), overrideRunNumber(), readCurrentEvent(), readCurrentRun(), readCurrentSubRun(), readEventHistoryTree(), readParentageTree(), sqliteDB_, and treePointers_.
|
private |
Definition at line 572 of file RootInputFile.cc.
References art::errors::DataCorruption, art::rootNames::eventHistoryBranchName(), and art::input::getEntry().
Referenced by resultsTree().
|
private |
|
private |
Definition at line 988 of file RootInputFile.cc.
References art::errors::FileReadError, and art::InEvent.
Referenced by fillAuxiliary().
FileIndex::EntryType art::RootInputFile::getEntryType | ( | ) | const |
Definition at line 457 of file RootInputFile.cc.
References art::FileIndex::kEnd.
Referenced by nextEventEntry().
FileIndex::EntryType art::RootInputFile::getNextEntryTypeWanted | ( | ) |
Definition at line 466 of file RootInputFile.cc.
References art::FileIndex::kEnd, art::FileIndex::kEvent, art::FileIndex::kRun, art::FileIndex::kSubRun, art::SubRunID::next(), art::DecrepitRelicInputSourceImplementation::processingMode_, art::InputSource::Runs, and art::InputSource::RunsAndSubRuns.
Referenced by nextEventEntry().
|
private |
Definition at line 975 of file RootInputFile.cc.
Referenced by fillAuxiliary().
|
inline |
|
inline |
Definition at line 204 of file RootInputFile.h.
References eventTree(), getEntryType(), getNextEntryTypeWanted(), and art::RootInputTree::next().
void art::RootInputFile::openSecondaryFile | ( | int const | idx | ) |
Definition at line 1071 of file RootInputFile.cc.
Referenced by secondaryFiles().
|
delete |
|
private |
Definition at line 928 of file RootInputFile.cc.
References art::RunID::firstRun().
Referenced by fillAuxiliary().
|
private |
Definition at line 939 of file RootInputFile.cc.
|
private |
Definition at line 947 of file RootInputFile.cc.
References art::errors::Configuration.
|
inline |
|
private |
Definition at line 647 of file RootInputFile.cc.
References art::InEvent.
Referenced by fillAuxiliary().
|
private |
Definition at line 736 of file RootInputFile.cc.
References art::InRun, and art::Timestamp::invalidTimestamp().
Referenced by fillAuxiliary().
|
private |
Definition at line 842 of file RootInputFile.cc.
References art::InSubRun, and art::Timestamp::invalidTimestamp().
Referenced by fillAuxiliary().
unique_ptr< EventPrincipal > art::RootInputFile::readEvent | ( | ) |
Definition at line 624 of file RootInputFile.cc.
References art::InEvent, and art::FileIndex::kEvent.
bool art::RootInputFile::readEventForSecondaryFile | ( | EventID | eID | ) |
Definition at line 678 of file RootInputFile.cc.
References art::InEvent.
|
private |
Definition at line 962 of file RootInputFile.cc.
References art::errors::DataCorruption, and art::rootNames::eventHistoryTreeName().
Referenced by fillAuxiliary().
|
private |
Definition at line 336 of file RootInputFile.cc.
References art::couldNotFindTree(), art::errors::DataCorruption, art::thread_safe_registry_via_id< K, M >::emplace(), art::errors::FileReadError, art::input::getEntry(), art::rootNames::parentageBranchName(), art::rootNames::parentageIDBranchName(), and art::rootNames::parentageTreeName().
Referenced by fillAuxiliary().
std::unique_ptr< art::ResultsPrincipal > art::RootInputFile::readResults | ( | ) |
Definition at line 1078 of file RootInputFile.cc.
References art::InResults.
unique_ptr< RunPrincipal > art::RootInputFile::readRun | ( | ) |
Definition at line 718 of file RootInputFile.cc.
References art::InRun, and art::FileIndex::kRun.
bool art::RootInputFile::readRunForSecondaryFile | ( | RunID | rID | ) |
Definition at line 772 of file RootInputFile.cc.
References art::InRun, art::Timestamp::invalidTimestamp(), and art::FileIndex::kRun.
unique_ptr< SubRunPrincipal > art::RootInputFile::readSubRun | ( | cet::exempt_ptr< RunPrincipal > | rp | ) |
Definition at line 825 of file RootInputFile.cc.
References art::InSubRun, and art::FileIndex::kSubRun.
bool art::RootInputFile::readSubRunForSecondaryFile | ( | SubRunID | srID | ) |
Definition at line 882 of file RootInputFile.cc.
References art::InSubRun, art::Timestamp::invalidTimestamp(), and art::FileIndex::kSubRun.
void art::RootInputFile::reportOpened | ( | ) |
Definition at line 553 of file RootInputFile.cc.
|
inline |
Definition at line 114 of file RootInputFile.h.
References auxiliaries_.
|
inlineprivate |
Definition at line 254 of file RootInputFile.h.
References art::InResults, and treePointers_.
|
inlineprivate |
Definition at line 276 of file RootInputFile.h.
References fillHistory(), fillPerBranchTypePresenceFlags(), art::InResults, setIfFastClonable(), treePointers_, and validateFile().
|
inline |
Definition at line 163 of file RootInputFile.h.
References eventTree(), fiBegin_, fiIter_, art::RootInputTree::rewind(), runTree(), and subRunTree().
|
inline |
Definition at line 109 of file RootInputFile.h.
References auxiliaries_.
unique_ptr< RangeSetHandler > art::RootInputFile::runRangeSetHandler | ( | ) |
Definition at line 712 of file RootInputFile.cc.
Referenced by secondaryFiles().
|
inlineprivate |
Definition at line 249 of file RootInputFile.h.
References art::InRun, and treePointers_.
Referenced by rewind().
|
inlineprivate |
Definition at line 271 of file RootInputFile.h.
References art::InRun, and treePointers_.
|
inline |
Definition at line 221 of file RootInputFile.h.
References secondaryFileNames_.
|
inline |
Definition at line 226 of file RootInputFile.h.
References openSecondaryFile(), runRangeSetHandler(), secondaryFiles_, and subRunRangeSetHandler().
|
inline |
|
inline |
Definition at line 152 of file RootInputFile.h.
References fiEnd_, fiIter_, fileIndex_, and art::FileIndex::findPosition().
int art::RootInputFile::setForcedRunOffset | ( | RunNumber_t const & | forcedRunNumber | ) |
|
private |
Definition at line 386 of file RootInputFile.cc.
References art::FastCloningInfoProvider::fastCloningPermitted(), art::FileIndex::kEvent, art::DecrepitRelicInputSourceImplementation::processingMode_, art::FastCloningInfoProvider::remainingEvents(), art::FastCloningInfoProvider::remainingSubRuns(), and art::InputSource::RunsSubRunsAndEvents.
Referenced by resultsTree().
|
inline |
int art::RootInputFile::skipEvents | ( | int | offset | ) |
Definition at line 589 of file RootInputFile.cc.
References art::FileIndex::kEvent.
Referenced by eventsToSkip().
|
inline |
Definition at line 119 of file RootInputFile.h.
References auxiliaries_.
unique_ptr< RangeSetHandler > art::RootInputFile::subRunRangeSetHandler | ( | ) |
Definition at line 819 of file RootInputFile.cc.
Referenced by secondaryFiles().
|
inlineprivate |
Definition at line 244 of file RootInputFile.h.
References art::InSubRun, and treePointers_.
Referenced by rewind().
|
inlineprivate |
Definition at line 266 of file RootInputFile.h.
References art::InSubRun, and treePointers_.
|
private |
Definition at line 536 of file RootInputFile.cc.
References art::errors::DataCorruption, and art::errors::FileReadError.
Referenced by resultsTree().
|
private |
Definition at line 359 of file RootInputFile.h.
Referenced by eventAux(), fillAuxiliary(), resultsAux(), runAux(), and subRunAux().
|
private |
Definition at line 365 of file RootInputFile.h.
|
private |
Definition at line 331 of file RootInputFile.h.
|
private |
Definition at line 338 of file RootInputFile.h.
|
private |
Definition at line 340 of file RootInputFile.h.
|
private |
Definition at line 342 of file RootInputFile.h.
|
private |
Definition at line 341 of file RootInputFile.h.
|
private |
Definition at line 346 of file RootInputFile.h.
|
private |
Definition at line 368 of file RootInputFile.h.
|
private |
Definition at line 337 of file RootInputFile.h.
Referenced by eventsToSkip().
|
private |
Definition at line 357 of file RootInputFile.h.
Referenced by fastClonable().
|
private |
Definition at line 354 of file RootInputFile.h.
Referenced by rewind().
|
private |
Definition at line 355 of file RootInputFile.h.
Referenced by setEntry(), and setToLastEntry().
|
private |
Definition at line 356 of file RootInputFile.h.
Referenced by nextEntry(), previousEntry(), rewind(), setEntry(), and setToLastEntry().
|
private |
Definition at line 351 of file RootInputFile.h.
Referenced by fileFormatVersion(), and fillAuxiliary().
|
private |
Definition at line 353 of file RootInputFile.h.
Referenced by fillAuxiliary(), and setEntry().
Definition at line 352 of file RootInputFile.h.
Referenced by fileIndexSharedPtr().
|
private |
Definition at line 330 of file RootInputFile.h.
Referenced by fileName(), and fillAuxiliary().
|
private |
Definition at line 334 of file RootInputFile.h.
|
private |
Definition at line 344 of file RootInputFile.h.
Definition at line 369 of file RootInputFile.h.
|
private |
Definition at line 333 of file RootInputFile.h.
|
private |
Definition at line 345 of file RootInputFile.h.
|
private |
Definition at line 336 of file RootInputFile.h.
|
private |
Definition at line 364 of file RootInputFile.h.
|
private |
Definition at line 375 of file RootInputFile.h.
|
private |
Definition at line 347 of file RootInputFile.h.
|
private |
Definition at line 376 of file RootInputFile.h.
|
private |
Definition at line 377 of file RootInputFile.h.
|
private |
Definition at line 332 of file RootInputFile.h.
|
private |
Definition at line 343 of file RootInputFile.h.
|
private |
Definition at line 363 of file RootInputFile.h.
|
private |
Definition at line 349 of file RootInputFile.h.
|
private |
Definition at line 379 of file RootInputFile.h.
|
private |
Definition at line 348 of file RootInputFile.h.
Referenced by secondaryFileNames().
|
private |
Definition at line 370 of file RootInputFile.h.
Referenced by secondaryFiles().
|
private |
Definition at line 335 of file RootInputFile.h.
Referenced by fillAuxiliary().
|
private |
Definition at line 378 of file RootInputFile.h.
|
private |
Definition at line 339 of file RootInputFile.h.
Referenced by eventTree(), fillAuxiliary(), resultsTree(), runTree(), setEntry(), and subRunTree().