1 #ifndef IOPool_Input_RootFile_h
2 #define IOPool_Input_RootFile_h
36 class BranchIDListHelper;
38 class DaqProvenanceHelper;
39 class DuplicateChecker;
40 class EventSkipperByID;
41 class ProductSelectorRules;
43 class ProvenanceReaderBase;
44 class ProvenanceAdaptor;
57 boost::shared_ptr<InputFile> filePtr,
58 boost::shared_ptr<EventSkipperByID> eventSkipperByID,
62 unsigned int treeCacheSize,
63 int treeMaxVirtualSize,
70 boost::shared_ptr<DuplicateChecker> duplicateChecker,
71 bool dropDescendantsOfDroppedProducts,
72 std::vector<boost::shared_ptr<IndexIntoFile> >
const& indexesIntoFiles,
73 std::vector<boost::shared_ptr<IndexIntoFile> >::
size_type currentIndexIntoFile,
74 std::vector<ProcessHistoryID>& orderedProcessHistoryIDs,
75 bool labelRawDataLikeMC,
77 bool enablePrefetching);
90 boost::shared_ptr<RunPrincipal>
readRun_(boost::shared_ptr<RunPrincipal> runPrincipal);
91 boost::shared_ptr<LuminosityBlockPrincipal>
readLumi(boost::shared_ptr<LuminosityBlockPrincipal> lumiPrincipal);
165 std::vector<boost::shared_ptr<IndexIntoFile> >::
size_type currentIndexIntoFile);
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< BranchListIndexes > branchListIndexes_
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
bool branchListIndexesUnchanged() const
bool setEntryAtNextEventInLumi(RunNumber_t run, LuminosityBlockNumber_t lumi)
ProcessConfigurationVector processConfigurations_
unsigned int EventNumber_t
void checkReleaseVersion()
std::map< std::string, std::string > newBranchToOldBranch_
IndexIntoFile::EntryType getEntryTypeWithSkipping()
void fillEventAuxiliary()
BranchIDLists const & branchIDLists()
bool setEntryAtRun(RunNumber_t run)
std::unique_ptr< MakeProvenanceReader > provenanceReaderMaker_
boost::shared_ptr< BranchIDLists const > branchIDLists_
InputSource::ProcessingMode processingMode_
boost::shared_ptr< LuminosityBlockPrincipal > readLumi(boost::shared_ptr< LuminosityBlockPrincipal > lumiPrincipal)
IndexIntoFile::IndexIntoFileItr indexIntoFileIter_
boost::shared_ptr< RunAuxiliary > fillRunAuxiliary()
boost::shared_ptr< BranchMapper > eventBranchMapper_
std::unique_ptr< FileBlock > createFileBlock() const
unsigned int LuminosityBlockNumber_t
static int position[TOTALCHAMBERS][3]
FileFormatVersion fileFormatVersion_
void setPosition(IndexIntoFile::IndexIntoFileItr const &position)
ProcessConfigurationRegistry::vector_type ProcessConfigurationVector
std::vector< EventProcessHistoryID >::const_iterator eventProcessHistoryIter_
IndexIntoFile::EntryType getNextEntryTypeWanted()
tuple InputFile
Open Root file and provide MEs ############.
boost::shared_ptr< DuplicateChecker > duplicateChecker_
std::string const logicalFile_
IndexIntoFile::IndexIntoFileItr indexIntoFileEnd_
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_
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 treeCacheSize, int treeMaxVirtualSize, InputSource::ProcessingMode processingMode, RunNumber_t const &forcedRunNumber, bool noEventSort, ProductSelectorRules const &productSelectorRules, InputType::InputType inputType, boost::shared_ptr< BranchIDListHelper > branchIDListHelper, boost::shared_ptr< DuplicateChecker > duplicateChecker, bool dropDescendantsOfDroppedProducts, std::vector< boost::shared_ptr< IndexIntoFile > > const &indexesIntoFiles, std::vector< boost::shared_ptr< IndexIntoFile > >::size_type currentIndexIntoFile, std::vector< ProcessHistoryID > &orderedProcessHistoryIDs, bool labelRawDataLikeMC, bool usingGoToEvent, bool enablePrefetching)
EventPrincipal * readEvent(EventPrincipal &cache)
std::pair< std::string, MonitorElement * > entry
EventAuxiliary const & eventAux() const
int whyNotFastClonable() const
std::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
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
bool wasFirstEventJustRead() const
boost::shared_ptr< EventSelectionIDVector > eventSelectionIDs_
IndexIntoFile & indexIntoFile_
bool goToEvent(EventID const &eventID)
void setAtEventEntry(IndexIntoFile::EntryNumber_t entry)
std::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
boost::shared_ptr< IndexIntoFile > indexIntoFileSharedPtr_
ProcessConfiguration const & processConfiguration_
void setIfFastClonable(int remainingEvents, int remainingLumis)
std::unique_ptr< MakeProvenanceReader > makeProvenanceReaderMaker() const
void readEntryDescriptionTree()
boost::shared_ptr< LuminosityBlockAuxiliary > fillLumiAuxiliary()
boost::shared_ptr< LuminosityBlockAuxiliary > readLuminosityBlockAuxiliary_()
std::string const & file() const
IndexIntoFile::IndexIntoFileItr indexIntoFileBegin_
boost::shared_ptr< RunPrincipal > readRun_(boost::shared_ptr< RunPrincipal > runPrincipal)
EventID const & id() const
std::array< RootTree *, NumBranchTypes > RootTreePtrArray
std::unique_ptr< DaqProvenanceHelper > daqProvenanceHelper_
bool branchListIndexesUnchanged_
RootTreePtrArray treePointers_
boost::shared_ptr< ProductRegistry const > productRegistry_
std::vector< ProcessHistoryID > & orderedProcessHistoryIDs_
RootTreePtrArray & treePointers()
void overrideRunNumber(RunID &id)
boost::shared_ptr< BranchMapper > makeBranchMapper()
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)
EventPrincipal * readCurrentEvent(EventPrincipal &cache)
RootTree const & eventTree() const
IndexIntoFile::IndexIntoFileItr indexIntoFileIter() const
std::string const & newBranchToOldBranch(std::string const &newBranch) const
boost::shared_ptr< EventSkipperByID > eventSkipperByID_
TTree * eventHistoryTree_
void dropOnInput(ProductRegistry ®, ProductSelectorRules const &rules, bool dropDescendants, InputType::InputType inputType)
boost::shared_ptr< ProductRegistry const > productRegistry() const
void validateFile(InputType::InputType inputType, bool usingGoToEvent)
boost::shared_ptr< RunAuxiliary > readRunAuxiliary_()
std::vector< EventProcessHistoryID > eventProcessHistoryIDs_
void readEventHistoryTree()
void reportOpened(std::string const &inputType)