swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
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
Tip revision: 6c9118fb23c981c28a53dc215c68f2be00c04e3e authored by Jonas Rembser on 12 April 2024, 19:22:15 UTC
[RF] Enable `roofit_multiprocess` on the CI
[RF] Enable `roofit_multiprocess` on the CI
Tip revision: 6c9118f
File | Mode | Size |
---|---|---|
README | ||
alien | ||
asimage | ||
base | ||
build | ||
cint | ||
clib | ||
config | ||
cont | ||
dcache | ||
eg | ||
etc | ||
g3d | ||
geom | ||
geompainter | ||
gl | ||
gpad | ||
graf | ||
gui | ||
hbook | ||
hist | ||
histpainter | ||
html | ||
icons | ||
io | ||
krb5auth | ||
mac | ||
main | ||
man | ||
math | ||
matrix | ||
mc | ||
meta | ||
minuit | ||
mysql | ||
net | ||
newdelete | ||
pgsql | ||
physics | ||
postscript | ||
proof | ||
proofd | ||
proofplayer | ||
pythia | ||
pythia6 | ||
rfio | ||
rint | ||
roofit | ||
roofitcore | ||
rootd | ||
roots | ||
rootx | ||
sapdb | ||
srputils | ||
table | ||
test | ||
thread | ||
tree | ||
treeplayer | ||
treeviewer | ||
tutorials | ||
unix | ||
utils | ||
venus | ||
vms | ||
win32 | ||
win32gdk | ||
winnt | ||
x11 | ||
x11ttf | ||
x3d | ||
zip | ||
.cvsignore | -rw-r--r-- | 33 bytes |
LICENSE | -rw-r--r-- | 1.6 KB |
Makefile | -rw-r--r-- | 21.4 KB |
configure | -rwxr-xr-x | 54.0 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...