1 #ifndef IOPool_Input_RootFile_h
2 #define IOPool_Input_RootFile_h
38 class BranchIDListHelper;
39 class ProductProvenanceRetriever;
40 class DaqProvenanceHelper;
41 class DuplicateChecker;
42 class EventSkipperByID;
43 class ProcessHistoryRegistry;
44 class ProductSelectorRules;
46 class ProvenanceReaderBase;
61 boost::shared_ptr<InputFile> filePtr,
62 boost::shared_ptr<EventSkipperByID> eventSkipperByID,
66 unsigned int nStreams,
67 unsigned int treeCacheSize,
68 int treeMaxVirtualSize,
75 boost::shared_ptr<DuplicateChecker> duplicateChecker,
76 bool dropDescendantsOfDroppedProducts,
78 std::vector<boost::shared_ptr<IndexIntoFile> >
const& indexesIntoFiles,
79 std::vector<boost::shared_ptr<IndexIntoFile> >::
size_type currentIndexIntoFile,
80 std::vector<ProcessHistoryID>& orderedProcessHistoryIDs,
81 bool bypassVersionCheck,
82 bool labelRawDataLikeMC,
84 bool enablePrefetching);
171 std::vector<boost::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::unique_ptr< ProvenanceAdaptor > provenanceAdaptor_
boost::shared_ptr< BranchChildren > branchChildren_
boost::shared_ptr< IndexIntoFile > indexIntoFileSharedPtr() const
boost::shared_ptr< RunAuxiliary > savedRunAuxiliary_
std::unique_ptr< History > history_
boost::shared_ptr< BranchIDListHelper const > branchIDListHelper() const
std::vector< BranchIDList > BranchIDLists
RootTree const & lumiTree() const
bool skipEvents(int &offset)
FileFormatVersion fileFormatVersion() const
RootFile & operator=(RootFile const &)=delete
void readEntryDescriptionTree(EntryDescriptionMap &entryDescriptionMap, InputType inputType)
bool branchListIndexesUnchanged() const
bool setEntryAtNextEventInLumi(RunNumber_t run, LuminosityBlockNumber_t lumi)
unsigned int EventNumber_t
std::map< std::string, std::string > newBranchToOldBranch_
BranchIDLists const & branchIDLists()
bool setEntryAtRun(RunNumber_t run)
void readRun_(RunPrincipal &runPrincipal)
std::unique_ptr< MakeProvenanceReader > provenanceReaderMaker_
boost::shared_ptr< BranchIDLists const > branchIDLists_
InputSource::ProcessingMode processingMode_
IndexIntoFile::IndexIntoFileItr indexIntoFileIter_
boost::shared_ptr< RunAuxiliary > fillRunAuxiliary()
std::unique_ptr< FileBlock > createFileBlock() const
bool readCurrentEvent(EventPrincipal &cache)
unsigned int LuminosityBlockNumber_t
static int position[TOTALCHAMBERS][3]
bool fillEventAuxiliary(IndexIntoFile::EntryNumber_t entry)
std::vector< EventSelectionID > EventSelectionIDVector
FileFormatVersion fileFormatVersion_
void setPosition(IndexIntoFile::IndexIntoFileItr const &position)
std::vector< EventProcessHistoryID >::const_iterator eventProcessHistoryIter_
boost::shared_ptr< DuplicateChecker > duplicateChecker_
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)
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
boost::shared_ptr< BranchIDListHelper > branchIDListHelper_
IndexIntoFile::EntryNumber_t lastEventEntryNumberRead_
EventAuxiliary const & eventAux() const
EventSelectionIDVector eventSelectionIDs_
int whyNotFastClonable() const
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
IndexIntoFile::EntryType getNextItemType(RunNumber_t &run, LuminosityBlockNumber_t &lumi, EventNumber_t &event)
BranchListIndexes branchListIndexes_
unsigned int offset(bool)
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
std::vector< boost::shared_ptr< ProductProvenanceRetriever > > eventProductProvenanceRetrievers_
bool wasFirstEventJustRead() const
IndexIntoFile & indexIntoFile_
void readEvent(EventPrincipal &cache)
bool goToEvent(EventID const &eventID)
void setAtEventEntry(IndexIntoFile::EntryNumber_t entry)
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
boost::shared_ptr< IndexIntoFile > indexIntoFileSharedPtr_
ProcessConfiguration const & processConfiguration_
RootFile(std::string const &fileName, ProcessConfiguration const &processConfiguration, std::string const &logicalFileName, boost::shared_ptr< InputFile > filePtr, boost::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, boost::shared_ptr< BranchIDListHelper > branchIDListHelper, boost::shared_ptr< DuplicateChecker > duplicateChecker, bool dropDescendantsOfDroppedProducts, ProcessHistoryRegistry &processHistoryRegistry, std::vector< boost::shared_ptr< IndexIntoFile > > const &indexesIntoFiles, std::vector< boost::shared_ptr< IndexIntoFile > >::size_type currentIndexIntoFile, std::vector< ProcessHistoryID > &orderedProcessHistoryIDs, bool bypassVersionCheck, bool labelRawDataLikeMC, bool usingGoToEvent, bool enablePrefetching)
void setIfFastClonable(int remainingEvents, int remainingLumis)
std::map< EntryDescriptionID, EventEntryDescription > EntryDescriptionMap
boost::shared_ptr< LuminosityBlockAuxiliary > fillLumiAuxiliary()
boost::shared_ptr< LuminosityBlockAuxiliary > readLuminosityBlockAuxiliary_()
boost::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_
boost::shared_ptr< ProductRegistry const > productRegistry_
std::vector< ProcessHistoryID > & orderedProcessHistoryIDs_
RootTreePtrArray & treePointers()
void overrideRunNumber(RunID &id)
std::unique_ptr< MakeProvenanceReader > makeProvenanceReaderMaker(InputType inputType)
boost::shared_ptr< InputFile > filePtr_
void initializeDuplicateChecker(std::vector< boost::shared_ptr< IndexIntoFile > > const &indexesIntoFiles, std::vector< boost::shared_ptr< IndexIntoFile > >::size_type currentIndexIntoFile)
std::vector< ParentageID > parentageIDLookup_
void fillThisEventAuxiliary()
bool setEntryAtEvent(RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event)
ProcessHistoryRegistry * processHistoryRegistry_
RootTree const & eventTree() const
void validateFile(InputType inputType, bool usingGoToEvent)
IndexIntoFile::IndexIntoFileItr indexIntoFileIter() const
std::string const & newBranchToOldBranch(std::string const &newBranch) const
boost::shared_ptr< EventSkipperByID > eventSkipperByID_
TTree * eventHistoryTree_
boost::shared_ptr< ProductRegistry const > productRegistry() const
boost::shared_ptr< RunAuxiliary > readRunAuxiliary_()
std::vector< EventProcessHistoryID > eventProcessHistoryIDs_
void readEventHistoryTree()
void reportOpened(std::string const &inputType)