1 #ifndef IOPool_Input_RootFile_h
2 #define IOPool_Input_RootFile_h
37 class DaqProvenanceHelper;
38 class DuplicateChecker;
39 class EventSkipperByID;
40 class GroupSelectorRules;
42 class ProvenanceReaderBase;
43 class ProvenanceAdaptor;
55 std::string
const& logicalFileName,
56 boost::shared_ptr<InputFile> filePtr,
57 boost::shared_ptr<EventSkipperByID> eventSkipperByID,
61 unsigned int treeCacheSize,
62 int treeMaxVirtualSize,
68 boost::shared_ptr<DuplicateChecker> duplicateChecker,
69 bool dropDescendantsOfDroppedProducts,
70 std::vector<boost::shared_ptr<IndexIntoFile> >
const& indexesIntoFiles,
71 std::vector<boost::shared_ptr<IndexIntoFile> >::
size_type currentIndexIntoFile,
72 std::vector<ProcessHistoryID>& orderedProcessHistoryIDs,
73 bool bypassVersionCheck,
74 bool labelRawDataLikeMC,
84 boost::shared_ptr<LuminosityBlockPrincipal> lb = boost::shared_ptr<LuminosityBlockPrincipal>());
86 boost::shared_ptr<LuminosityBlockPrincipal> lb = boost::shared_ptr<LuminosityBlockPrincipal>());
88 boost::shared_ptr<LuminosityBlockPrincipal> lb = boost::shared_ptr<LuminosityBlockPrincipal>());
92 boost::shared_ptr<RunPrincipal>
readRun_(boost::shared_ptr<RunPrincipal> rpCache);
93 boost::shared_ptr<LuminosityBlockPrincipal>
readLumi(boost::shared_ptr<LuminosityBlockPrincipal> lbCache);
169 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_
std::unique_ptr< EventPrincipal > secondaryEventPrincipal_
boost::shared_ptr< RunAuxiliary > savedRunAuxiliary_
std::unique_ptr< History > history_
boost::shared_ptr< FileBlock > createFileBlock() const
RootTree const & lumiTree() const
bool skipEvents(int &offset)
FileFormatVersion fileFormatVersion() const
RootFile & operator=(RootFile const &)=delete
bool branchListIndexesUnchanged() const
EventPrincipal * readCurrentEvent(EventPrincipal &cache, boost::shared_ptr< LuminosityBlockPrincipal > lb=boost::shared_ptr< LuminosityBlockPrincipal >())
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()
bool setEntryAtRun(RunNumber_t run)
std::unique_ptr< MakeProvenanceReader > provenanceReaderMaker_
InputSource::ProcessingMode processingMode_
IndexIntoFile::IndexIntoFileItr indexIntoFileIter_
boost::shared_ptr< RunAuxiliary > fillRunAuxiliary()
boost::shared_ptr< BranchMapper > eventBranchMapper_
unsigned int LuminosityBlockNumber_t
EventPrincipal * readEvent(EventPrincipal &cache, boost::shared_ptr< LuminosityBlockPrincipal > lb=boost::shared_ptr< LuminosityBlockPrincipal >())
FileFormatVersion fileFormatVersion_
void setPosition(IndexIntoFile::IndexIntoFileItr const &position)
ProcessConfigurationRegistry::vector_type ProcessConfigurationVector
EventPrincipal * clearAndReadCurrentEvent(EventPrincipal &cache, boost::shared_ptr< LuminosityBlockPrincipal > lb=boost::shared_ptr< LuminosityBlockPrincipal >())
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
IndexIntoFile::EntryNumber_t lastEventEntryNumberRead_
BranchIDListRegistry::collection_type const & branchIDLists()
std::pair< std::string, MonitorElement * > entry
EventAuxiliary const & eventAux() const
int whyNotFastClonable() const
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, GroupSelectorRules const &groupSelectorRules, InputType::InputType inputType, 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 bypassVersionCheck, bool labelRawDataLikeMC, bool usingGoToEvent)
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_()
void dropOnInput(ProductRegistry ®, GroupSelectorRules const &rules, bool dropDescendants, InputType::InputType inputType)
std::string const & file() const
IndexIntoFile::IndexIntoFileItr indexIntoFileBegin_
EventID const & id() const
std::array< RootTree *, NumBranchTypes > RootTreePtrArray
std::unique_ptr< DaqProvenanceHelper > daqProvenanceHelper_
bool branchListIndexesUnchanged_
author Stefano ARGIRO author Bill Tanenbaum
EventPrincipal & secondaryEventPrincipal()
RootTreePtrArray treePointers_
boost::shared_ptr< ProductRegistry const > productRegistry_
static int position[264][3]
std::vector< ProcessHistoryID > & orderedProcessHistoryIDs_
RootTreePtrArray & treePointers()
void overrideRunNumber(RunID &id)
boost::shared_ptr< BranchMapper > makeBranchMapper()
std::vector< value_type > collection_type
boost::shared_ptr< RunPrincipal > readRun_(boost::shared_ptr< RunPrincipal > rpCache)
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)
boost::shared_ptr< BranchIDListRegistry::collection_type const > branchIDLists_
RootTree const & eventTree() const
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
void validateFile(InputType::InputType inputType, bool usingGoToEvent)
boost::shared_ptr< RunAuxiliary > readRunAuxiliary_()
std::vector< EventProcessHistoryID > eventProcessHistoryIDs_
void readEventHistoryTree()
void reportOpened(std::string const &inputType)
boost::shared_ptr< LuminosityBlockPrincipal > readLumi(boost::shared_ptr< LuminosityBlockPrincipal > lbCache)