![]() |
![]() |
#include <RootFile.h>
Public Types | |
typedef std::array< RootTree *, NumBranchTypes > | RootTreePtrArray |
Public Member Functions | |
std::shared_ptr < BranchIDListHelper const > | branchIDListHelper () const |
std::shared_ptr < BranchIDListHelper > & | branchIDListHelper () |
bool | branchListIndexesUnchanged () const |
void | close () |
bool | containsItem (RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event) const |
std::unique_ptr< FileBlock > | createFileBlock () const |
EventAuxiliary const & | eventAux () const |
EventID const & | eventID () const |
RootTree const & | eventTree () const |
std::string const & | file () const |
FileFormatVersion | fileFormatVersion () const |
IndexIntoFile::EntryType | getNextItemType (RunNumber_t &run, LuminosityBlockNumber_t &lumi, EventNumber_t &event) |
bool | goToEvent (EventID const &eventID) |
std::array< bool, NumBranchTypes > const & | hasNewlyDroppedBranch () const |
IndexIntoFile::IndexIntoFileItr | indexIntoFileIter () const |
std::shared_ptr< IndexIntoFile const > | indexIntoFileSharedPtr () const |
std::shared_ptr< IndexIntoFile > & | indexIntoFileSharedPtr () |
void | initAssociationsFromSecondary (std::vector< BranchID > const &) |
RootTree const & | lumiTree () const |
bool | modifiedIDs () const |
bool | nextEventEntry () |
RootFile & | operator= (RootFile const &)=delete |
std::shared_ptr < ProductRegistry const > | productRegistry () const |
bool | readCurrentEvent (EventPrincipal &cache) |
void | readEvent (EventPrincipal &cache) |
void | readFakeRun_ (RunPrincipal &runPrincipal) |
std::shared_ptr< RunAuxiliary > | readFakeRunAuxiliary_ () |
void | readLuminosityBlock_ (LuminosityBlockPrincipal &lumiPrincipal) |
std::shared_ptr < LuminosityBlockAuxiliary > | readLuminosityBlockAuxiliary_ () |
void | readRun_ (RunPrincipal &runPrincipal) |
std::shared_ptr< RunAuxiliary > | readRunAuxiliary_ () |
void | reportOpened (std::string const &inputType) |
void | rewind () |
RootFile (std::string const &fileName, ProcessConfiguration const &processConfiguration, std::string const &logicalFileName, std::shared_ptr< InputFile > filePtr, std::shared_ptr< EventSkipperByID > eventSkipperByID, bool skipAnyEvents, int remainingEvents, int remainingLumis, unsigned int nStreams, unsigned int treeCacheSize, int treeMaxVirtualSize, InputSource::ProcessingMode processingMode, RunHelperBase *runHelper, bool noEventSort, ProductSelectorRules const &productSelectorRules, InputType inputType, std::shared_ptr< BranchIDListHelper > branchIDListHelper, std::shared_ptr< ThinnedAssociationsHelper > thinnedAssociationsHelper, std::vector< BranchID > const *associationsFromSecondary, std::shared_ptr< DuplicateChecker > duplicateChecker, bool dropDescendantsOfDroppedProducts, ProcessHistoryRegistry &processHistoryRegistry, std::vector< std::shared_ptr< IndexIntoFile > > const &indexesIntoFiles, std::vector< std::shared_ptr< IndexIntoFile > >::size_type currentIndexIntoFile, std::vector< ProcessHistoryID > &orderedProcessHistoryIDs, bool bypassVersionCheck, bool labelRawDataLikeMC, bool usingGoToEvent, bool enablePrefetching) | |
RootFile (std::string const &fileName, ProcessConfiguration const &processConfiguration, std::string const &logicalFileName, std::shared_ptr< InputFile > filePtr, unsigned int nStreams, int treeMaxVirtualSize, InputSource::ProcessingMode processingMode, RunHelperBase *runHelper, ProductSelectorRules const &productSelectorRules, InputType inputType, std::shared_ptr< BranchIDListHelper > branchIDListHelper, std::shared_ptr< ThinnedAssociationsHelper > thinnedAssociationsHelper, std::vector< BranchID > const *associationsFromSecondary, bool dropDescendantsOfDroppedProducts, ProcessHistoryRegistry &processHistoryRegistry, std::vector< std::shared_ptr< IndexIntoFile > > const &indexesIntoFiles, std::vector< std::shared_ptr< IndexIntoFile > >::size_type currentIndexIntoFile, std::vector< ProcessHistoryID > &orderedProcessHistoryIDs, bool bypassVersionCheck, bool labelRawDataLikeMC, bool enablePrefetching) | |
RootFile (std::string const &fileName, ProcessConfiguration const &processConfiguration, std::string const &logicalFileName, std::shared_ptr< InputFile > filePtr, unsigned int nStreams, int treeMaxVirtualSize, RunHelperBase *runHelper, ProductSelectorRules const &productSelectorRules, InputType inputType, ProcessHistoryRegistry &processHistoryRegistry, std::vector< std::shared_ptr< IndexIntoFile > > const &indexesIntoFiles, std::vector< std::shared_ptr< IndexIntoFile > >::size_type currentIndexIntoFile, std::vector< ProcessHistoryID > &orderedProcessHistoryIDs, bool bypassVersionCheck, bool enablePrefetching) | |
RootFile (RootFile const &)=delete | |
RootTree const & | runTree () const |
void | setAtEventEntry (IndexIntoFile::EntryNumber_t entry) |
bool | setEntryAtEvent (RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event) |
bool | setEntryAtItem (RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event) |
bool | setEntryAtLumi (RunNumber_t run, LuminosityBlockNumber_t lumi) |
bool | setEntryAtNextEventInLumi (RunNumber_t run, LuminosityBlockNumber_t lumi) |
bool | setEntryAtRun (RunNumber_t run) |
void | setPosition (IndexIntoFile::IndexIntoFileItr const &position) |
void | setToLastEntry () |
bool | skipEntries (unsigned int &offset) |
bool | skipEvents (int &offset) |
bool | wasFirstEventJustRead () const |
bool | wasLastEventJustRead () const |
int | whyNotFastClonable () const |
~RootFile () | |
Private Member Functions | |
std::shared_ptr < BranchChildren const > | branchChildren () const |
std::shared_ptr< BranchChildren > & | branchChildren () |
void | dropOnInput (ProductRegistry ®, ProductSelectorRules const &rules, bool dropDescendants, InputType inputType) |
std::shared_ptr < ProductProvenanceRetriever const > | eventProductProvenanceRetriever (size_t index) const |
std::shared_ptr < ProductProvenanceRetriever > & | eventProductProvenanceRetriever (size_t index) |
bool | fillEventAuxiliary (IndexIntoFile::EntryNumber_t entry) |
void | fillEventHistory () |
void | fillIndexIntoFile () |
std::shared_ptr < LuminosityBlockAuxiliary > | fillLumiAuxiliary () |
std::shared_ptr< RunAuxiliary > | fillRunAuxiliary () |
void | fillThisEventAuxiliary () |
void | initializeDuplicateChecker (std::vector< std::shared_ptr< IndexIntoFile > > const &indexesIntoFiles, std::vector< std::shared_ptr< IndexIntoFile > >::size_type currentIndexIntoFile) |
bool | isDuplicateEvent () |
std::shared_ptr < ProductProvenanceRetriever > | makeProductProvenanceRetriever (unsigned int iStreamIndex) |
std::unique_ptr < MakeProvenanceReader > | makeProvenanceReaderMaker (InputType inputType) |
void | markBranchToBeDropped (bool dropDescendants, BranchID const &branchID, std::set< BranchID > &branchesToDrop) const |
std::string const & | newBranchToOldBranch (std::string const &newBranch) const |
void | readEntryDescriptionTree (EntryDescriptionMap &entryDescriptionMap, InputType inputType) |
void | readEventHistoryTree () |
void | readParentageTree (InputType inputType) |
std::shared_ptr< RunAuxiliary const > | savedRunAuxiliary () const |
std::shared_ptr< RunAuxiliary > & | savedRunAuxiliary () |
void | setIfFastClonable (int remainingEvents, int remainingLumis) |
bool | skipThisEntry () |
RootTreePtrArray & | treePointers () |
void | validateFile (InputType inputType, bool usingGoToEvent) |
Definition at line 60 of file RootFile.h.
typedef std::array<RootTree*, NumBranchTypes> edm::RootFile::RootTreePtrArray |
Definition at line 62 of file RootFile.h.
edm::RootFile::RootFile | ( | std::string const & | fileName, |
ProcessConfiguration const & | processConfiguration, | ||
std::string const & | logicalFileName, | ||
std::shared_ptr< InputFile > | filePtr, | ||
std::shared_ptr< EventSkipperByID > | eventSkipperByID, | ||
bool | skipAnyEvents, | ||
int | remainingEvents, | ||
int | remainingLumis, | ||
unsigned int | nStreams, | ||
unsigned int | treeCacheSize, | ||
int | treeMaxVirtualSize, | ||
InputSource::ProcessingMode | processingMode, | ||
RunHelperBase * | runHelper, | ||
bool | noEventSort, | ||
ProductSelectorRules const & | productSelectorRules, | ||
InputType | inputType, | ||
std::shared_ptr< BranchIDListHelper > | branchIDListHelper, | ||
std::shared_ptr< ThinnedAssociationsHelper > | thinnedAssociationsHelper, | ||
std::vector< BranchID > const * | associationsFromSecondary, | ||
std::shared_ptr< DuplicateChecker > | duplicateChecker, | ||
bool | dropDescendantsOfDroppedProducts, | ||
ProcessHistoryRegistry & | processHistoryRegistry, | ||
std::vector< std::shared_ptr< IndexIntoFile > > const & | indexesIntoFiles, | ||
std::vector< std::shared_ptr< IndexIntoFile > >::size_type | currentIndexIntoFile, | ||
std::vector< ProcessHistoryID > & | orderedProcessHistoryIDs, | ||
bool | bypassVersionCheck, | ||
bool | labelRawDataLikeMC, | ||
bool | usingGoToEvent, | ||
bool | enablePrefetching | ||
) |
Definition at line 125 of file RootFile.cc.
|
inline |
Definition at line 93 of file RootFile.h.
|
inline |
Definition at line 124 of file RootFile.h.
edm::RootFile::~RootFile | ( | ) |
Definition at line 513 of file RootFile.cc.
|
delete |
|
inlineprivate |
Definition at line 243 of file RootFile.h.
|
inlineprivate |
Definition at line 244 of file RootFile.h.
|
inline |
Definition at line 205 of file RootFile.h.
|
inline |
Definition at line 206 of file RootFile.h.
|
inline |
Definition at line 177 of file RootFile.h.
void edm::RootFile::close | ( | void | ) |
Definition at line 1148 of file RootFile.cc.
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), and Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent().
bool edm::RootFile::containsItem | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi, | ||
EventNumber_t | event | ||
) | const |
Definition at line 741 of file RootFile.cc.
std::unique_ptr< FileBlock > edm::RootFile::createFileBlock | ( | ) | const |
Definition at line 645 of file RootFile.cc.
|
private |
Definition at line 1666 of file RootFile.cc.
|
inline |
Definition at line 166 of file RootFile.h.
|
inline |
Definition at line 170 of file RootFile.h.
|
inlineprivate |
Definition at line 246 of file RootFile.h.
|
inlineprivate |
Definition at line 247 of file RootFile.h.
|
inline |
Definition at line 171 of file RootFile.h.
|
inline |
Definition at line 164 of file RootFile.h.
|
inline |
Definition at line 174 of file RootFile.h.
|
private |
Definition at line 1179 of file RootFile.cc.
|
private |
Definition at line 1189 of file RootFile.cc.
|
private |
Definition at line 861 of file RootFile.cc.
|
private |
Definition at line 1247 of file RootFile.cc.
|
private |
Definition at line 1271 of file RootFile.cc.
|
private |
Definition at line 1160 of file RootFile.cc.
IndexIntoFile::EntryType edm::RootFile::getNextItemType | ( | RunNumber_t & | run, |
LuminosityBlockNumber_t & | lumi, | ||
EventNumber_t & | event | ||
) |
Definition at line 746 of file RootFile.cc.
bool edm::RootFile::goToEvent | ( | EventID const & | eventID | ) |
Definition at line 1360 of file RootFile.cc.
|
inline |
Definition at line 176 of file RootFile.h.
IndexIntoFile::IndexIntoFileItr edm::RootFile::indexIntoFileIter | ( | ) | const |
Definition at line 671 of file RootFile.cc.
|
inline |
Definition at line 207 of file RootFile.h.
|
inline |
Definition at line 208 of file RootFile.h.
void edm::RootFile::initAssociationsFromSecondary | ( | std::vector< BranchID > const & | associationsFromSecondary | ) |
Definition at line 681 of file RootFile.cc.
|
private |
Definition at line 1641 of file RootFile.cc.
|
private |
Definition at line 730 of file RootFile.cc.
|
inline |
Definition at line 172 of file RootFile.h.
|
private |
Definition at line 1798 of file RootFile.cc.
|
private |
Definition at line 1781 of file RootFile.cc.
|
private |
Definition at line 1657 of file RootFile.cc.
|
inline |
Definition at line 178 of file RootFile.h.
|
private |
Definition at line 662 of file RootFile.cc.
|
inline |
Definition at line 203 of file RootFile.h.
|
inline |
Definition at line 165 of file RootFile.h.
bool edm::RootFile::readCurrentEvent | ( | EventPrincipal & | cache | ) |
Definition at line 1417 of file RootFile.cc.
|
private |
Definition at line 517 of file RootFile.cc.
void edm::RootFile::readEvent | ( | EventPrincipal & | cache | ) |
Definition at line 1394 of file RootFile.cc.
|
private |
Definition at line 1628 of file RootFile.cc.
void edm::RootFile::readFakeRun_ | ( | RunPrincipal & | runPrincipal | ) |
std::shared_ptr<RunAuxiliary> edm::RootFile::readFakeRunAuxiliary_ | ( | ) |
void edm::RootFile::readLuminosityBlock_ | ( | LuminosityBlockPrincipal & | lumiPrincipal | ) |
Definition at line 1573 of file RootFile.cc.
std::shared_ptr< LuminosityBlockAuxiliary > edm::RootFile::readLuminosityBlockAuxiliary_ | ( | ) |
Definition at line 1535 of file RootFile.cc.
|
private |
Definition at line 563 of file RootFile.cc.
void edm::RootFile::readRun_ | ( | RunPrincipal & | runPrincipal | ) |
Definition at line 1516 of file RootFile.cc.
std::shared_ptr< RunAuxiliary > edm::RootFile::readRunAuxiliary_ | ( | ) |
Definition at line 1450 of file RootFile.cc.
void edm::RootFile::reportOpened | ( | std::string const & | inputType | ) |
Definition at line 1134 of file RootFile.cc.
|
inline |
Definition at line 190 of file RootFile.h.
|
inline |
Definition at line 173 of file RootFile.h.
|
inlineprivate |
Definition at line 240 of file RootFile.h.
|
inlineprivate |
Definition at line 241 of file RootFile.h.
void edm::RootFile::setAtEventEntry | ( | IndexIntoFile::EntryNumber_t | entry | ) |
Definition at line 1445 of file RootFile.cc.
bool edm::RootFile::setEntryAtEvent | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi, | ||
EventNumber_t | event | ||
) |
Definition at line 1591 of file RootFile.cc.
|
inline |
Definition at line 180 of file RootFile.h.
bool edm::RootFile::setEntryAtLumi | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi | ||
) |
Definition at line 1599 of file RootFile.cc.
bool edm::RootFile::setEntryAtNextEventInLumi | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi | ||
) |
Definition at line 1615 of file RootFile.cc.
bool edm::RootFile::setEntryAtRun | ( | RunNumber_t | run | ) |
Definition at line 1607 of file RootFile.cc.
|
private |
Definition at line 599 of file RootFile.cc.
void edm::RootFile::setPosition | ( | IndexIntoFile::IndexIntoFileItr const & | position | ) |
Definition at line 676 of file RootFile.cc.
|
inline |
Definition at line 196 of file RootFile.h.
|
inline |
Definition at line 200 of file RootFile.h.
bool edm::RootFile::skipEvents | ( | int & | offset | ) |
Definition at line 1292 of file RootFile.cc.
|
private |
Definition at line 686 of file RootFile.cc.
|
inlineprivate |
Definition at line 216 of file RootFile.h.
|
private |
Definition at line 1087 of file RootFile.cc.
bool edm::RootFile::wasFirstEventJustRead | ( | ) | const |
Definition at line 799 of file RootFile.cc.
bool edm::RootFile::wasLastEventJustRead | ( | ) | const |
Definition at line 792 of file RootFile.cc.
|
inline |
Definition at line 175 of file RootFile.h.
|
private |
Definition at line 289 of file RootFile.h.
|
private |
Definition at line 279 of file RootFile.h.
|
private |
Definition at line 278 of file RootFile.h.
|
private |
Definition at line 287 of file RootFile.h.
|
private |
Definition at line 270 of file RootFile.h.
|
private |
Definition at line 295 of file RootFile.h.
|
private |
Definition at line 290 of file RootFile.h.
|
private |
Definition at line 296 of file RootFile.h.
|
private |
Definition at line 271 of file RootFile.h.
|
private |
Definition at line 285 of file RootFile.h.
|
private |
Definition at line 263 of file RootFile.h.
|
private |
Definition at line 264 of file RootFile.h.
|
private |
Definition at line 293 of file RootFile.h.
|
private |
Definition at line 286 of file RootFile.h.
|
private |
Definition at line 254 of file RootFile.h.
|
private |
Definition at line 272 of file RootFile.h.
|
private |
Definition at line 256 of file RootFile.h.
|
private |
Definition at line 249 of file RootFile.h.
|
private |
Definition at line 255 of file RootFile.h.
|
private |
Definition at line 253 of file RootFile.h.
|
private |
Definition at line 280 of file RootFile.h.
|
private |
Definition at line 269 of file RootFile.h.
|
private |
Definition at line 288 of file RootFile.h.
|
private |
Definition at line 258 of file RootFile.h.
|
private |
Definition at line 260 of file RootFile.h.
|
private |
Definition at line 261 of file RootFile.h.
|
private |
Definition at line 262 of file RootFile.h.
|
private |
Definition at line 257 of file RootFile.h.
|
private |
Definition at line 276 of file RootFile.h.
|
private |
Definition at line 250 of file RootFile.h.
|
private |
Definition at line 273 of file RootFile.h.
|
private |
Definition at line 284 of file RootFile.h.
|
private |
Definition at line 267 of file RootFile.h.
|
private |
Definition at line 259 of file RootFile.h.
|
private |
Definition at line 294 of file RootFile.h.
|
private |
Definition at line 251 of file RootFile.h.
|
private |
Definition at line 252 of file RootFile.h.
|
private |
Definition at line 282 of file RootFile.h.
|
private |
Definition at line 277 of file RootFile.h.
|
private |
Definition at line 291 of file RootFile.h.
|
private |
Definition at line 292 of file RootFile.h.
|
private |
Definition at line 283 of file RootFile.h.
|
private |
Definition at line 274 of file RootFile.h.
|
private |
Definition at line 265 of file RootFile.h.
|
private |
Definition at line 266 of file RootFile.h.
|
private |
Definition at line 281 of file RootFile.h.
|
private |
Definition at line 275 of file RootFile.h.
|
private |
Definition at line 268 of file RootFile.h.