]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Change default names of TPC trees. Use update instead of recreate for the output...
authorjchudoba <jchudoba@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Apr 2002 09:28:04 +0000 (09:28 +0000)
committerjchudoba <jchudoba@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Apr 2002 09:28:04 +0000 (09:28 +0000)
STEER/AliRunDigitizer.cxx

index b52b2b3e477a60fd2b81e1da17e450d524ecfd2b..1888f9f617fb9e2fd7d890b9caa68000f6de9406 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.13  2002/02/13 09:03:32  jchudoba
+Pass option to subtasks. Delete input TTrees. Use gAlice from memory if it is present (user must delete the default one created by aliroot if he/she wants to use gAlice from the input file!). Add new data member to store name of the special TPC TTrees.
+
 Revision 1.12  2001/12/10 16:40:52  jchudoba
 Import gAlice from the signal file before InitGlobal() to allow detectors to use it during initialization
 
@@ -201,8 +204,8 @@ AliRunDigitizer::AliRunDigitizer(Int_t nInputStreams, Int_t sperb) : TTask("AliR
   fTreeD = 0;
   fTreeDTPC = 0;
   fTreeDTRD = 0;
-  fTreeDTPCBaseName = "TreeD_75x40_100x60_";
-  fTreeTPCSBaseName = "TreeS_75x40_100x60_";
+  fTreeDTPCBaseName = "TreeD_75x40_100x60_150x60_";
+  fTreeTPCSBaseName = "TreeS_75x40_100x60_150x60_";
 
   for (i=0; i<kMaxStreamsToMerge; i++) fInputFiles[i]=0;
 }
@@ -353,7 +356,7 @@ Bool_t AliRunDigitizer::InitOutputGlobal()
 
   TString fn;
   fn = fOutputDirName + '/' + fOutputFileName;
-  fOutput = new TFile(fn,"recreate");
+  fOutput = new TFile(fn,"update");
   if (GetDebug()>2) {
     cerr<<"AliRunDigitizer::InitOutputGlobal(): file "<<fn.Data()<<" was opened"<<endl;
   }
@@ -440,7 +443,7 @@ void AliRunDigitizer::FinishGlobal()
 // save unique objects to the output file
 
   fOutput->cd();
-  this->Write();
+  this->Write(0,TObject::kOverwrite);
   if (fCopyTreesFromInput > -1) {
     fInputFiles[fCopyTreesFromInput]->Get("TE")->Clone()->Write();
     gAlice->Write();