]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Added TreeS to GetEvent().
authorbuncic <buncic@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Feb 2001 16:22:25 +0000 (16:22 +0000)
committerbuncic <buncic@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Feb 2001 16:22:25 +0000 (16:22 +0000)
STEER/AliRun.cxx

index 9bf1c1d3e8ce690fbf24e01658f06f2d035b9406..adc5e47e3faa9bcd4af7669efcd5e45789fda1d2 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.51  2001/02/02 15:16:20  morsch
+SetHighWaterMark method added to mark last particle in event.
+
 Revision 1.50  2001/01/27 10:32:00  hristov
 Leave the loop when primaries are filled (I.Hrivnacova)
 
@@ -850,7 +853,16 @@ Int_t AliRun::GetEvent(Int_t event)
   if (!fTreeD) {
     // Warning("GetEvent","cannot find Digits Tree for event:%d\n",event);
   }
-  
+
+  file->cd();
+
+  // Get SDigits Tree header from file
+  sprintf(treeName,"TreeS%d",event);
+  fTreeS = (TTree*)gDirectory->Get(treeName);
+  if (!fTreeS) {
+    // Warning("GetEvent","cannot find SDigits Tree for event:%d\n",event);
+  }
+
   file->cd();
   
   // Get Reconstruct Tree header from file
@@ -889,7 +901,6 @@ TGeometry *AliRun::GetGeometry()
   TIter next(fModules);
   AliModule *detector;
   while((detector = (AliModule*)next())) {
-    detector->SetTreeAddress();
     TList *dnodes=detector->Nodes();
     Int_t j;
     TNode *node, *node1;