1 #ifndef IOPool_Input_RootFile_h
2 #define IOPool_Input_RootFile_h
15 #include "boost/shared_ptr.hpp"
16 #include "boost/utility.hpp"
17 #include "boost/array.hpp"
38 class DuplicateChecker;
39 class ProvenanceAdaptor;
40 class GroupSelectorRules;
41 class EventSkipperByID;
49 std::string
const& logicalFileName,
50 boost::shared_ptr<InputFile> filePtr,
51 boost::shared_ptr<EventSkipperByID> eventSkipperByID,
55 unsigned int treeCacheSize,
56 int treeMaxVirtualSize,
62 boost::shared_ptr<DuplicateChecker> duplicateChecker,
63 bool dropDescendantsOfDroppedProducts,
64 std::vector<boost::shared_ptr<IndexIntoFile> >
const& indexesIntoFiles,
65 std::vector<boost::shared_ptr<IndexIntoFile> >::
size_type currentIndexIntoFile,
66 std::vector<ProcessHistoryID>& orderedProcessHistoryIDs,
72 boost::shared_ptr<RootFile> rootFilePtr,
73 boost::shared_ptr<LuminosityBlockPrincipal> lb = boost::shared_ptr<LuminosityBlockPrincipal>());
75 boost::shared_ptr<RootFile> rootFilePtr,
76 boost::shared_ptr<LuminosityBlockPrincipal> lb = boost::shared_ptr<LuminosityBlockPrincipal>());
80 boost::shared_ptr<RunPrincipal>
readRun_(boost::shared_ptr<RunPrincipal> rpCache);
81 boost::shared_ptr<LuminosityBlockPrincipal>
readLumi(boost::shared_ptr<LuminosityBlockPrincipal> lbCache);
133 void validateFile(
bool secondaryFile,
bool usingGoToEvent);
151 std::vector<boost::shared_ptr<IndexIntoFile> >::
size_type currentIndexIntoFile);
EventID const & eventID() const
bool setEntryAtItem(RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event)
boost::shared_ptr< BranchChildren > branchChildren_
boost::shared_ptr< IndexIntoFile > indexIntoFileSharedPtr() const
boost::shared_ptr< BranchListIndexes > branchListIndexes_
boost::shared_ptr< FileBlock > createFileBlock() const
RootTree const & lumiTree() const
bool skipEvents(int &offset)
FileFormatVersion fileFormatVersion() const
boost::array< bool, NumBranchTypes > const & hasNewlyDroppedBranch() const
bool branchListIndexesUnchanged() const
unsigned int EventNumber_t
boost::array< bool, NumBranchTypes > hasNewlyDroppedBranch_
std::map< std::string, std::string > newBranchToOldBranch_
IndexIntoFile::EntryType getEntryTypeWithSkipping()
void fillEventAuxiliary()
bool setEntryAtRun(RunNumber_t run)
boost::array< RootTree *, NumBranchTypes > RootTreePtrArray
InputSource::ProcessingMode processingMode_
boost::shared_ptr< History > history_
IndexIntoFile::IndexIntoFileItr indexIntoFileIter_
boost::shared_ptr< RunAuxiliary > fillRunAuxiliary()
unsigned int LuminosityBlockNumber_t
static int position[TOTALCHAMBERS][3]
FileFormatVersion fileFormatVersion_
void setPosition(IndexIntoFile::IndexIntoFileItr const &position)
std::vector< EventProcessHistoryID >::const_iterator eventProcessHistoryIter_
IndexIntoFile::EntryType getNextEntryTypeWanted()
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, bool secondaryFile, 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 usingGoToEvent)
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)
EventPrincipal * readEvent(EventPrincipal &cache, boost::shared_ptr< RootFile > rootFilePtr, boost::shared_ptr< LuminosityBlockPrincipal > lb=boost::shared_ptr< LuminosityBlockPrincipal >())
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
void dropOnInput(ProductRegistry ®, GroupSelectorRules const &rules, bool dropDescendants, bool secondaryFile)
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
EventPrincipal * readCurrentEvent(EventPrincipal &cache, boost::shared_ptr< RootFile > rootFilePtr, boost::shared_ptr< LuminosityBlockPrincipal > lb=boost::shared_ptr< LuminosityBlockPrincipal >())
boost::shared_ptr< EventSelectionIDVector > eventSelectionIDs_
IndexIntoFile & indexIntoFile_
bool goToEvent(EventID const &eventID)
void setAtEventEntry(IndexIntoFile::EntryNumber_t entry)
boost::shared_ptr< IndexIntoFile > indexIntoFileSharedPtr_
ProcessConfiguration const & processConfiguration_
void setIfFastClonable(int remainingEvents, int remainingLumis)
void readEntryDescriptionTree()
boost::shared_ptr< LuminosityBlockAuxiliary > fillLumiAuxiliary()
boost::shared_ptr< LuminosityBlockAuxiliary > readLuminosityBlockAuxiliary_()
std::string const & file() const
IndexIntoFile::IndexIntoFileItr indexIntoFileBegin_
EventID const & id() const
bool branchListIndexesUnchanged_
author Stefano ARGIRO author Bill Tanenbaum
RootTreePtrArray treePointers_
boost::shared_ptr< ProductRegistry const > productRegistry_
boost::shared_ptr< BranchMapper > makeBranchMapper(RootTree &rootTree, BranchType const &type) const
std::vector< ProcessHistoryID > & orderedProcessHistoryIDs_
RootTreePtrArray & treePointers()
void overrideRunNumber(RunID &id)
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)
boost::shared_ptr< ProvenanceAdaptor > provenanceAdaptor_
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_
void validateFile(bool secondaryFile, bool usingGoToEvent)
boost::shared_ptr< ProductRegistry const > productRegistry() const
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)