19 |
} |
} |
20 |
|
|
21 |
|
|
22 |
TString fileName = TString(gSystem->Getenv("PWD"))+"/"+projectName; |
//TString fileName = TString(gSystem->Getenv("PWD"))+"/"+projectName; |
23 |
|
TString fileName = projectName; |
24 |
fileName += ".root"; |
fileName += ".root"; |
25 |
|
|
26 |
|
//TString treeTitle(projectName); |
27 |
TString treeTitle(projectName); |
//treeTitle += " tree"; |
28 |
treeTitle += " tree"; |
TString treeTitle = "pamtest tree"; |
29 |
|
TString treeTitle1 = "pamtest"; |
30 |
|
|
31 |
TTree::SetMaxTreeSize(1000*Long64_t(2000000000)); |
TTree::SetMaxTreeSize(1000*Long64_t(2000000000)); |
32 |
|
|
38 |
|
|
39 |
case kWrite: |
case kWrite: |
40 |
fFile = new TFile(fileName, "recreate"); |
fFile = new TFile(fileName, "recreate"); |
41 |
fTree = new TTree(projectName, treeTitle); |
//fTree = new TTree(projectName, treeTitle); |
42 |
|
fTree = new TTree(treeTitle1, treeTitle); |
43 |
;; |
;; |
44 |
} |
} |
45 |
|
|
65 |
{ |
{ |
66 |
fFile->cd(); |
fFile->cd(); |
67 |
delete fFile; |
delete fFile; |
68 |
delete fDirectory; |
//delete fDirectory; |
69 |
fgInstance = 0; |
fgInstance = 0; |
70 |
} |
} |
71 |
|
|