Revision 5d3037c7f727c290629f70b382cdb650d8e23c3f authored by Rene Brun on 17 August 2002, 21:38:19 UTC, committed by Rene Brun on 17 August 2002, 21:38:19 UTC
New data member fFileNumber containing the current file number (default=0). New static member Int_t fgMaxTreeSize (default value 1.9 Gbytes). New functions ; Int_t GetFileNumber() Int_t GetmaxTreeSize() void setMaxTreeSize(Int_t maxsize) The automatic file overflow is called by TTree::Fill and implemented in the new function ChangeFile: TFile *TTree::ChangeFile(TFile *file) { // called by TTree::Fill when file has reached its maximum fgMaxTreeSize. // Create a new file. If the original file is named "myfile.root", // subsequent files are named "myfile_1.root", "myfile_2.root", etc. // // Return pointer to new file // Currently, the automatic change of file is restricted // to the case where the Tree is in the top level directory. // The file should not contain sub-directories. // // Before switching to a new file, the Tree header is written // to the current file, then the current file is closed. // // To process the multiple files created by ChangeFile, one must use // a TChain. // // fgMaxTreeSize can be set via the static function TTree::SetMaxTreeSize. // The default value of fgMaxTreeSize is 1.9 Gigabytes. // // If the current file contains other objects like TH1 and TTree, // these objects are automatically moved to the new file. // // IMPORTANT NOTE: // Be careful when writing the final Tree header to the file! // Don't do: // TFile *file = new TFile("myfile.root","recreate"); // TTree *T = new TTree("T","title"); // T->Fill(); //loop // file->Write(); // file->Close(); // but do the following: // TFile *file = new TFile("myfile.root","recreate"); // TTree *T = new TTree("T","title"); // T->Fill(); //loop // file = T->GetCurrentFile(); //to get the pointer to the current file // file->Write(); // file->Close(); git-svn-id: http://root.cern.ch/svn/root/trunk@5143 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent a41dc49
File | Mode | Size |
---|---|---|
GWin32GUI.cxx | -rw-r--r-- | 22.0 KB |
ShowMembers.cxx | -rw-r--r-- | 9.9 KB |
TContextMenuItem.cxx | -rw-r--r-- | 2.4 KB |
TCritSection.cxx | -rw-r--r-- | 1.8 KB |
TGWin32.cxx | -rw-r--r-- | 59.2 KB |
TGWin32Brush.cxx | -rw-r--r-- | 5.2 KB |
TGWin32Marker.cxx | -rw-r--r-- | 2.3 KB |
TGWin32Object.cxx | -rw-r--r-- | 61.7 KB |
TGWin32Pen.cxx | -rw-r--r-- | 3.6 KB |
TGWin32StatusBar.cxx | -rw-r--r-- | 6.5 KB |
TGWin32WindowsObject.cxx | -rw-r--r-- | 53.3 KB |
TVirtualMenuItem.cxx | -rw-r--r-- | 11.3 KB |
TWin32Application.cxx | -rw-r--r-- | 7.5 KB |
TWin32BrowserImp.cxx | -rw-r--r-- | 21.9 KB |
TWin32CallBackList.cxx | -rw-r--r-- | 5.1 KB |
TWin32Canvas.cxx | -rw-r--r-- | 23.8 KB |
TWin32CommCtrl.cxx | -rw-r--r-- | 10.4 KB |
TWin32Command.cxx | -rw-r--r-- | 2.2 KB |
TWin32ContextMenuImp.cxx | -rw-r--r-- | 14.4 KB |
TWin32ControlBarImp.cxx | -rw-r--r-- | 19.9 KB |
TWin32CustomMenuItem.cxx | -rw-r--r-- | 142 bytes |
TWin32Dialog.cxx | -rw-r--r-- | 11.9 KB |
TWin32GuiFactory.cxx | -rw-r--r-- | 4.0 KB |
TWin32InspectImp.cxx | -rw-r--r-- | 21.3 KB |
TWin32ListViewCtrl.cxx | -rw-r--r-- | 14.6 KB |
TWin32Menu.cxx | -rw-r--r-- | 5.3 KB |
TWin32MenuItem.cxx | -rw-r--r-- | 3.8 KB |
TWin32SimpleEditCtrl.cxx | -rw-r--r-- | 4.9 KB |
TWin32TreeViewCtrl.cxx | -rw-r--r-- | 14.2 KB |
Win32ContextMenu.cxx | -rw-r--r-- | 110 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...