28 orderedProcessHistoryIDs_(),
30 initialNumberOfEventsToSkip_(pset.getUntrackedParameter<unsigned
int>(
"skipEvents")),
31 noEventSort_(pset.getUntrackedParameter<
bool>(
"noEventSort")),
32 treeCacheSize_(noEventSort_ ? pset.getUntrackedParameter<unsigned
int>(
"cacheSize") : 0
U),
34 usingGoToEvent_(
false),
35 enablePrefetching_(
false),
36 enforceGUIDInFileName_(pset.getUntrackedParameter<
bool>(
"enforceGUIDInFileName")) {
86 return std::make_unique<FileBlock>();
88 return rootFile()->createFileBlock();
113 return std::make_shared<RootFile>(
fileName(),
136 currentIndexIntoFile,
158 if (!mergeInfo.empty()) {
177 if (!mergeInfo.empty()) {
239 while (offset != 0) {
240 bool atEnd =
rootFile()->skipEvents(offset);
241 if ((offset > 0 || atEnd) && !
nextFile()) {
264 bool closedOriginalFile =
false;
286 closedOriginalFile =
true;
295 if (closedOriginalFile) {
299 rootFile()->setPosition(originalPosition);
311 ->setComment(
"Skip the first 'skipEvents' events that otherwise would have been processed.");
314 "True: Process runs, lumis and events in the order they appear in the file (but see notes 1 and 2).\n" 315 "False: Process runs, lumis and events in each file in numerical order (run#, lumi#, event#) (but see note " 317 "Note 1: Events within the same lumi will always be processed contiguously.\n" 318 "Note 2: Lumis within the same run will always be processed contiguously.\n" 319 "Note 3: Any sorting occurs independently in each input file (no sorting across input files).");
321 ->setComment(
"Size of ROOT TTree prefetch cache. Affects performance.");
325 "'strict': Branches in each input file must match those in the first file.\n" 326 "'permissive': Branches in each input file may be any subset of those in the first file.");
329 "True: file name part is required to be equal to the GUID of the file\n" 330 "False: file name can be anything");
338 if (!
rootFile()->wasLastEventJustRead()) {
352 if (!
rootFile()->wasFirstEventJustRead()) {
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
unsigned int treeCacheSize_
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
InputSource::ItemType getNextItemType(RunNumber_t &run, LuminosityBlockNumber_t &lumi, EventNumber_t &event)
void closeFile_() override
def create(alignables, pedeDump, additionalData, outputFile, config)
void initFile_(bool skipBadFiles) override
ProcessingController::ForwardState forwardState() const
bool skipEvents(int offset)
unsigned long long EventNumber_t
static void fillDescription(ParameterSetDescription &desc)
static void fillDescription(ParameterSetDescription &desc)
std::unique_ptr< FileBlock > readFile_()
LuminosityBlockNumber_t luminosityBlock() const
unsigned int const defaultCacheSize
int initialNumberOfEventsToSkip_
unsigned int LuminosityBlockNumber_t
static std::string const input
RunHelperBase * runHelper()
ProcessingController::ReverseState reverseState() const
bool goToEvent(EventID const &eventID)
static const StorageFactory * get(void)
void stagein(const std::string &url) const
RootFileSharedPtr makeRootFile(std::shared_ptr< InputFile > filePtr) override
std::vector< ProcessHistoryID > orderedProcessHistoryIDs_
RootPrimaryFileSequence(ParameterSet const &pset, PoolSource &input, InputFileCatalog const &catalog)
std::string merge(ProductRegistry const &other, std::string const &fileName, BranchDescription::MatchMode branchesMustMatch=BranchDescription::Permissive)
unsigned int nStreams() const
bool dropDescendants() const
bool bypassVersionCheck() const
~RootPrimaryFileSequence() override
int treeMaxVirtualSize() const
bool skipBadFiles() const
std::shared_ptr< EventSkipperByID const > eventSkipperByID() const
bool labelRawDataLikeMC() const
edm::propagate_const< std::shared_ptr< DuplicateChecker > > duplicateChecker_
BranchDescription::MatchMode branchesMustMatch_
bool enforceGUIDInFileName_
static void fillDescription(ParameterSetDescription &desc)
void updateFromInput(ProductList const &other)
int remainingEvents() const
std::shared_ptr< DuplicateChecker const > duplicateChecker() const
int remainingLuminosityBlocks() const
ProductSelectorRules const & productSelectorRules() const