Branches for TRD digits are created only during the digitisation
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 Oct 2001 06:57:33 +0000 (06:57 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 Oct 2001 06:57:33 +0000 (06:57 +0000)
TRD/AliTRD.cxx

index 6102621..390340b 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.31  2001/08/30 09:30:30  hristov
+The split level of branches is set to 99
+
 Revision 1.30  2001/05/28 17:07:58  hristov
 Last minute changes; ExB correction in AliTRDclusterizerV1; taking into account of material in G10 TEC frames and material between TEC planes (C.Blume,S.Sedykh)
 
@@ -993,22 +996,26 @@ void AliTRD::MakeBranch(Option_t* option, const char *file)
   //Int_t  buffersize = 4000;
   //Char_t branchname[15];
 
+  const char *cD = strstr(option,"D");
+
   AliDetector::MakeBranch(option,file);
 
   Int_t buffersize = 64000;
 
-  fDigitsArray = new AliTRDdataArrayI();
-  MakeBranchInTree(gAlice->TreeD() 
+  if (cD) {
+    fDigitsArray = new AliTRDdataArrayI();
+    MakeBranchInTree(gAlice->TreeD() 
                    ,"TRDdigits", fDigitsArray->IsA()->GetName()
                    ,&fDigitsArray,buffersize,99,file);
 
-  for (Int_t iDict = 0; iDict < AliTRDdigitsManager::NDict(); iDict++) {
-    Char_t branchname[15];
-    sprintf(branchname,"TRDdictionary%d",iDict);
-    fDictionaryArray[iDict] = new AliTRDdataArrayI();
-    MakeBranchInTree(gAlice->TreeD() 
-                     ,branchname,fDictionaryArray[iDict]->IsA()->GetName()
-                     ,&fDictionaryArray[iDict],buffersize,99,file);
+    for (Int_t iDict = 0; iDict < AliTRDdigitsManager::NDict(); iDict++) {
+      Char_t branchname[15];
+      sprintf(branchname,"TRDdictionary%d",iDict);
+      fDictionaryArray[iDict] = new AliTRDdataArrayI();
+      MakeBranchInTree(gAlice->TreeD() 
+                       ,branchname,fDictionaryArray[iDict]->IsA()->GetName()
+                       ,&fDictionaryArray[iDict],buffersize,99,file);
+    }
   }
 }