1 #ifndef IOPool_Input_RootFile_h
2 #define IOPool_Input_RootFile_h
39 class BranchIDListHelper;
40 class ProductProvenanceRetriever;
41 class DaqProvenanceHelper;
42 class DuplicateChecker;
43 class EventSkipperByID;
44 class ProcessHistoryRegistry;
45 class ProductSelectorRules;
47 class ProvenanceReaderBase;
48 class ProvenanceAdaptor;
64 std::shared_ptr<InputFile> filePtr,
65 std::shared_ptr<EventSkipperByID> eventSkipperByID,
69 unsigned int nStreams,
70 unsigned int treeCacheSize,
71 int treeMaxVirtualSize,
78 std::shared_ptr<ThinnedAssociationsHelper> thinnedAssociationsHelper,
79 std::vector<BranchID>
const& associationsFromSecondary,
80 std::shared_ptr<DuplicateChecker> duplicateChecker,
81 bool dropDescendantsOfDroppedProducts,
83 std::vector<std::shared_ptr<IndexIntoFile> >
const& indexesIntoFiles,
84 std::vector<std::shared_ptr<IndexIntoFile> >::
size_type currentIndexIntoFile,
85 std::vector<ProcessHistoryID>& orderedProcessHistoryIDs,
86 bool bypassVersionCheck,
87 bool labelRawDataLikeMC,
89 bool enablePrefetching);
177 std::vector<std::shared_ptr<IndexIntoFile> >::
size_type currentIndexIntoFile);
void dropOnInput(ProductRegistry ®, ProductSelectorRules const &rules, bool dropDescendants, InputType inputType)
EventID const & eventID() const
bool setEntryAtItem(RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event)
std::shared_ptr< ThinnedAssociationsHelper > thinnedAssociationsHelper_
std::unique_ptr< ProvenanceAdaptor > provenanceAdaptor_
std::unique_ptr< History > history_
RootTree const & lumiTree() const
std::shared_ptr< BranchIDLists const > branchIDLists_
bool skipEvents(int &offset)
std::shared_ptr< BranchIDListHelper const > branchIDListHelper() const
FileFormatVersion fileFormatVersion() const
std::shared_ptr< LuminosityBlockAuxiliary > fillLumiAuxiliary()
RootFile & operator=(RootFile const &)=delete
void readEntryDescriptionTree(EntryDescriptionMap &entryDescriptionMap, InputType inputType)
bool branchListIndexesUnchanged() const
bool setEntryAtNextEventInLumi(RunNumber_t run, LuminosityBlockNumber_t lumi)
std::map< std::string, std::string > newBranchToOldBranch_
bool setEntryAtRun(RunNumber_t run)
void readRun_(RunPrincipal &runPrincipal)
std::unique_ptr< MakeProvenanceReader > provenanceReaderMaker_
unsigned long long EventNumber_t
InputSource::ProcessingMode processingMode_
IndexIntoFile::IndexIntoFileItr indexIntoFileIter_
std::unique_ptr< FileBlock > createFileBlock() const
bool readCurrentEvent(EventPrincipal &cache)
std::shared_ptr< ProductRegistry const > productRegistry() const
unsigned int LuminosityBlockNumber_t
bool fillEventAuxiliary(IndexIntoFile::EntryNumber_t entry)
std::vector< EventSelectionID > EventSelectionIDVector
FileFormatVersion fileFormatVersion_
void setPosition(IndexIntoFile::IndexIntoFileItr const &position)
std::vector< EventProcessHistoryID >::const_iterator eventProcessHistoryIter_
bool containsItem(RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event) const
std::string const logicalFile_
std::vector< BranchListIndex > BranchListIndexes
IndexIntoFile::IndexIntoFileItr indexIntoFileEnd_
void readParentageTree(InputType inputType)
std::shared_ptr< IndexIntoFile > indexIntoFileSharedPtr() const
bool wasLastEventJustRead() const
bool setEntryAtLumi(RunNumber_t run, LuminosityBlockNumber_t lumi)
virtual std::unique_ptr< ProvenanceReaderBase > makeReader(RootTree &eventTree, DaqProvenanceHelper const *daqProvenanceHelper) const =0
RootTree const & runTree() const
IndexIntoFile::EntryNumber_t lastEventEntryNumberRead_
std::shared_ptr< BranchIDListHelper > branchIDListHelper_
std::shared_ptr< RunAuxiliary > readRunAuxiliary_()
EventAuxiliary const & eventAux() const
EventSelectionIDVector eventSelectionIDs_
std::shared_ptr< LuminosityBlockAuxiliary > readLuminosityBlockAuxiliary_()
int whyNotFastClonable() const
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, RunNumber_t const &forcedRunNumber, 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)
std::shared_ptr< RunAuxiliary > fillRunAuxiliary()
std::vector< std::shared_ptr< ProductProvenanceRetriever > > eventProductProvenanceRetrievers_
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
IndexIntoFile::EntryType getNextItemType(RunNumber_t &run, LuminosityBlockNumber_t &lumi, EventNumber_t &event)
BranchListIndexes branchListIndexes_
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
bool wasFirstEventJustRead() const
IndexIntoFile & indexIntoFile_
std::shared_ptr< InputFile > filePtr_
void readEvent(EventPrincipal &cache)
bool goToEvent(EventID const &eventID)
std::unique_ptr< ThinnedAssociationsHelper > fileThinnedAssociationsHelper_
std::shared_ptr< EventSkipperByID > eventSkipperByID_
void setAtEventEntry(IndexIntoFile::EntryNumber_t entry)
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
ProcessConfiguration const & processConfiguration_
std::shared_ptr< ProductRegistry const > productRegistry_
void setIfFastClonable(int remainingEvents, int remainingLumis)
std::map< EntryDescriptionID, EventEntryDescription > EntryDescriptionMap
std::shared_ptr< BranchChildren > branchChildren_
std::shared_ptr< ProductProvenanceRetriever > makeProductProvenanceRetriever(unsigned int iStreamIndex)
std::string const & file() const
IndexIntoFile::IndexIntoFileItr indexIntoFileBegin_
EventID const & id() const
std::array< RootTree *, NumBranchTypes > RootTreePtrArray
std::unique_ptr< DaqProvenanceHelper > daqProvenanceHelper_
bool branchListIndexesUnchanged_
void readLuminosityBlock_(LuminosityBlockPrincipal &lumiPrincipal)
RootTreePtrArray treePointers_
static int position[264][3]
void initializeDuplicateChecker(std::vector< std::shared_ptr< IndexIntoFile > > const &indexesIntoFiles, std::vector< std::shared_ptr< IndexIntoFile > >::size_type currentIndexIntoFile)
std::shared_ptr< DuplicateChecker > duplicateChecker_
std::vector< ProcessHistoryID > & orderedProcessHistoryIDs_
void initAssociationsFromSecondary(std::vector< BranchID > const &)
RootTreePtrArray & treePointers()
void overrideRunNumber(RunID &id)
std::unique_ptr< MakeProvenanceReader > makeProvenanceReaderMaker(InputType inputType)
std::vector< ParentageID > parentageIDLookup_
void fillThisEventAuxiliary()
bool setEntryAtEvent(RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event)
ProcessHistoryRegistry * processHistoryRegistry_
void markBranchToBeDropped(bool dropDescendants, BranchID const &branchID, std::set< BranchID > &branchesToDrop) const
RootTree const & eventTree() const
void validateFile(InputType inputType, bool usingGoToEvent)
IndexIntoFile::IndexIntoFileItr indexIntoFileIter() const
std::shared_ptr< IndexIntoFile > indexIntoFileSharedPtr_
std::string const & newBranchToOldBranch(std::string const &newBranch) const
TTree * eventHistoryTree_
std::shared_ptr< RunAuxiliary > savedRunAuxiliary_
std::vector< EventProcessHistoryID > eventProcessHistoryIDs_
void readEventHistoryTree()
void reportOpened(std::string const &inputType)