Skip to content
Snippets Groups Projects
Commit f09047d6 authored by Philippe Canal's avatar Philippe Canal
Browse files

Add TFileMerger::kKeepCompression to request full 'fast' cloning

parent 334eff81
No related branches found
No related tags found
Loading
......@@ -81,7 +81,8 @@ public:
kAllIncremental = kIncremental | kAll, // Merge incrementally all type of objects.
kOnlyListed = BIT(4), // Only the objects specified in fObjectNames list
kSkipListed = BIT(5) // Skip objects specified in fObjectNames list
kSkipListed = BIT(5), // Skip objects specified in fObjectNames list
kKeepCompression= BIT(6) // Keep compression level unchanged for each input files
};
TFileMerger(Bool_t isLocal = kTRUE, Bool_t histoOneGo = kTRUE);
virtual ~TFileMerger();
......
......@@ -353,6 +353,7 @@ Bool_t TFileMerger::MergeRecursive(TDirectory *target, TList *sourcelist, Int_t
// kNonResetable : merge only the objects without a MergeAfterReset member function.
// kOnlyListed : merge only objects listed in fObjectNames
// kSkipListed : skip merging of objects listed in fObjectNames
// kKeepCompression : Keep compression level of the buffer as it is in each the original input files.
Bool_t status = kTRUE;
Bool_t onlyListed = kFALSE;
if (fPrintLevel > 0) {
......@@ -380,7 +381,7 @@ Bool_t TFileMerger::MergeRecursive(TDirectory *target, TList *sourcelist, Int_t
TFileMergeInfo info(target);
if ((fFastMethod && !fCompressionChange)) {
if (fFastMethod && ((type&kKeepCompression) || !fCompressionChange) ) {
info.fOptions.Append(" fast");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment