I’m following the instruction from: root.cern.ch/drupal/content/hand … root-files to use the TProofOutputFile. The problem is that the output file contains two copies of the TTree I’m saving.
This applies to the example that you referred to, in the ProofNtuple::SlaveTerminate method.
TProofOutputFile only makes sure that the file information is transferred correctly.
The way objects are saved to the file is up to you.
The fact is that the last AutoSave automatic call makes a copy of the TTree with, in your case, 96% of the entries. The final Write saves the complete TTree; if the kOverwrite bit is not specified it will create a new copy.
As you may have seen, we have some new functionality for automatically saving outputs to a file (root.cern.ch/drupal/content/handling-outputs); but this is available in the trunk and 5.34/02 only.
[quote=“ganis”]This applies to the example that you referred to, in the ProofNtuple::SlaveTerminate method.
TProofOutputFile only makes sure that the file information is transferred correctly.
The way objects are saved to the file is up to you.
The fact is that the last AutoSave automatic call makes a copy of the TTree with, in your case, 96% of the entries. The final Write saves the complete TTree; if the kOverwrite bit is not specified it will create a new copy.
As you may have seen, we have some new functionality for automatically saving outputs to a file (root.cern.ch/drupal/content/handling-outputs); but this is available in the trunk and 5.34/02 only.[/quote]
ok, thanks. Are this new features complemetary or alternative to TProofOutputFile?