]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
SDigits tree to sutisfy Savannha bug
authoralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Jun 2010 06:49:09 +0000 (06:49 +0000)
committeralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Jun 2010 06:49:09 +0000 (06:49 +0000)
T0/AliT0.cxx

index 1d9f9bedef68f8a6b2d3495b4fd58e5e02f42828..9a760058f6139cb46085b7d9e9fbda1a37439ce0 100644 (file)
@@ -185,6 +185,7 @@ void AliT0::MakeBranch(Option_t* option)
   const char *cH = strstr(option,"H");
   const char *cD = strstr(option,"D");
   const char *cR = strstr(option,"R");
   const char *cH = strstr(option,"H");
   const char *cD = strstr(option,"D");
   const char *cR = strstr(option,"R");
+  const char *cS = strstr(option,"S");
 
     if (cH && fLoader->TreeH())
   {
 
     if (cH && fLoader->TreeH())
   {
@@ -207,6 +208,14 @@ void AliT0::MakeBranch(Option_t* option)
       MakeBranchInTree(fLoader->TreeR(), branchname,
                       &fRecPoints, 405, 0);
     } 
       MakeBranchInTree(fLoader->TreeR(), branchname,
                       &fRecPoints, 405, 0);
     } 
+  if (cS && fLoader->TreeS())
+    {
+      if (fDigits == 0x0) fDigits  = new AliT0digit();
+      //     MakeBranchInTree(fLoader->TreeD(), branchname,
+      //                      &fDigits, 405, 0);
+      fLoader->TreeS()->Branch(branchname,"AliT0digit",&fDigits,405,1);
+      //   fLoader->TreeD()->Print();
+    } 
   
 }    
 
   
 }    
 
@@ -253,6 +262,13 @@ void AliT0::SetTreeAddress()
     TBranch* branch = treeR->GetBranch ("T0");
     if (branch) branch->SetAddress(&fRecPoints);
   }
     TBranch* branch = treeR->GetBranch ("T0");
     if (branch) branch->SetAddress(&fRecPoints);
   }
+  // SDigitizer for Federico
+  TTree *treeS = fLoader->TreeS();
+  if (treeS) {
+    if (fDigits == 0x0)  fDigits  = new AliT0digit();
+    TBranch* branch = treeS->GetBranch ("T0");
+    if (branch) branch->SetAddress(&fDigits);
+  }
  
 }
 
  
 }