@@ -179,7 +179,6 @@ namespace edm::rntuple_temp {
179179 noRunLumiSort_(processingOptions.noRunLumiSort),
180180 noEventSort_(processingOptions.noEventSort),
181181 enforceGUIDInFileName_(fileOptions.enforceGUIDInFileName),
182- whyNotFastClonable_(0 ),
183182 hasNewlyDroppedBranch_(),
184183 branchListIndexesUnchanged_(false ),
185184 eventAuxCache_(),
@@ -405,11 +404,6 @@ namespace edm::rntuple_temp {
405404 // propagate_const<T> has no reset() function
406405 provenanceReaderMaker_ = std::unique_ptr<MakeProvenanceReader>(makeProvenanceReaderMaker (inputType).release ());
407406
408- // Merge into the hashed registries.
409- if (eventSkipperByID_ && eventSkipperByID_->somethingToSkip ()) {
410- whyNotFastClonable_ += FileBlock::EventsOrLumisSelectedByID;
411- }
412-
413407 initializeDuplicateChecker (crossFileInfo.indexesIntoFiles , crossFileInfo.currentIndexIntoFile );
414408 indexIntoFileIter_ = indexIntoFileBegin_ = indexIntoFile_.begin (
415409 processingOptions.noRunLumiSort
@@ -528,9 +522,6 @@ namespace edm::rntuple_temp {
528522 }
529523 }
530524
531- // Determine if this file is fast clonable.
532- setIfFastClonable (processingOptions.remainingEvents , processingOptions.remainingLumis );
533-
534525 // We are done with our initial reading of EventAuxiliary.
535526 indexIntoFile_.doneFileInitialization ();
536527
@@ -630,51 +621,6 @@ namespace edm::rntuple_temp {
630621 }
631622 }
632623
633- void RootFile::setIfFastClonable (int remainingEvents, int remainingLumis) {
634- if (fileFormatVersion ().noMetaDataTrees () and !fileFormatVersion ().storedProductProvenanceUsed ()) {
635- // we must avoid copying the old branch which stored the per product per event provenance
636- whyNotFastClonable_ += FileBlock::FileTooOld;
637- return ;
638- }
639- if (!fileFormatVersion ().splitProductIDs ()) {
640- whyNotFastClonable_ += FileBlock::FileTooOld;
641- return ;
642- }
643- if (processingMode_ != InputSource::RunsLumisAndEvents) {
644- whyNotFastClonable_ += FileBlock::NotProcessingEvents;
645- return ;
646- }
647- // Find entry for first event in file
648- IndexIntoFile::IndexIntoFileItr it = indexIntoFileBegin_;
649- while (it != indexIntoFileEnd_ && it.getEntryType () != IndexIntoFile::kEvent ) {
650- ++it;
651- }
652- if (it == indexIntoFileEnd_) {
653- whyNotFastClonable_ += FileBlock::NoEventsInFile;
654- return ;
655- }
656-
657- // From here on, record all reasons we can't fast clone.
658- IndexIntoFile::SortOrder sortOrder =
659- (noRunLumiSort_ ? IndexIntoFile::entryOrder
660- : (noEventSort_ ? IndexIntoFile::firstAppearanceOrder : IndexIntoFile::numericalOrder));
661- if (!indexIntoFile_.iterationWillBeInEntryOrder (sortOrder)) {
662- whyNotFastClonable_ += (noEventSort_ ? FileBlock::RunOrLumiNotContiguous : FileBlock::EventsToBeSorted);
663- }
664- if (skipAnyEvents_) {
665- whyNotFastClonable_ += FileBlock::InitialEventsSkipped;
666- }
667- if (remainingEvents >= 0 && eventTree_.entries () > remainingEvents) {
668- whyNotFastClonable_ += FileBlock::MaxEventsTooSmall;
669- }
670- if (remainingLumis >= 0 && lumiTree_.entries () > remainingLumis) {
671- whyNotFastClonable_ += FileBlock::MaxLumisTooSmall;
672- }
673- if (duplicateChecker_ && !duplicateChecker_->checkDisabled () && !duplicateChecker_->noDuplicatesInFile ()) {
674- whyNotFastClonable_ += FileBlock::DuplicateEventsRemoved;
675- }
676- }
677-
678624 std::shared_ptr<FileBlock> RootFile::createFileBlock () {
679625 std::vector<TTree*> processBlockTrees;
680626 std::vector<std::string> processesWithProcessBlockTrees;
@@ -693,7 +639,7 @@ namespace edm::rntuple_temp {
693639 runTree_.metaTree (),
694640 std::move (processBlockTrees),
695641 std::move (processesWithProcessBlockTrees),
696- whyNotFastClonable () ,
642+ 0 ,
697643 hasNewlyDroppedBranch (),
698644 file_,
699645 branchListIndexesUnchanged (),
0 commit comments