/[PAMELA software]/PamVMC/src/PamRootManager.cxx
ViewVC logotype

Diff of /PamVMC/src/PamRootManager.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by nikolas, Thu Feb 19 17:39:49 2009 UTC revision 1.5 by pam-rm2, Fri Jun 12 18:39:28 2009 UTC
# Line 8  Line 8 
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)
# Line 22  PamRootManager::PamRootManager(const cha Line 23  PamRootManager::PamRootManager(const cha
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));
# Line 55  PamRootManager::PamRootManager() Line 56  PamRootManager::PamRootManager()
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    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.23