8 |
#include <TROOT.h> |
#include <TROOT.h> |
9 |
ClassImp(PamRootManager) |
ClassImp(PamRootManager) |
10 |
|
|
11 |
|
using namespace std; |
12 |
PamRootManager* PamRootManager::fgInstance = 0; |
PamRootManager* PamRootManager::fgInstance = 0; |
13 |
|
|
14 |
PamRootManager::PamRootManager(const char* projectName, FileMode fileMode) |
PamRootManager::PamRootManager(const char* projectName, FileMode fileMode) |
23 |
TString fileName = TString(gSystem->Getenv("PWD"))+"/"+projectName; |
TString fileName = TString(gSystem->Getenv("PWD"))+"/"+projectName; |
24 |
fileName += ".root"; |
fileName += ".root"; |
25 |
|
|
26 |
|
cout<<"OUTPUT ROOTFILE: "<<fileName<<endl; |
27 |
TString treeTitle(projectName); |
TString treeTitle("pamtest"); |
28 |
treeTitle += " tree"; |
treeTitle += " tree"; |
29 |
|
|
30 |
TTree::SetMaxTreeSize(1000*Long64_t(2000000000)); |
TTree::SetMaxTreeSize(1000*Long64_t(2000000000)); |
56 |
return; |
return; |
57 |
} |
} |
58 |
|
|
59 |
fgInstance = this; |
fgInstance = this; |
60 |
} |
} |
61 |
|
|
62 |
PamRootManager::~PamRootManager() |
PamRootManager::~PamRootManager() |
63 |
{ |
{ |
64 |
fFile->cd(); |
fFile->cd(); |
65 |
delete fFile; |
delete fFile; |
66 |
delete fDirectory; |
//delete fDirectory; |
67 |
fgInstance = 0; |
fgInstance = 0; |
68 |
} |
} |
69 |
|
|