Writing digits in the output file
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Feb 2004 15:45:54 +0000 (15:45 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Feb 2004 15:45:54 +0000 (15:45 +0000)
START/AliSTARTDigitizer.cxx

index 64b8fe9852031377da47ff1cfeda1ebb926d6eca..18dbd7836dec8a2f2a4efc02fbdd0ec27ca93b35 100644 (file)
@@ -293,26 +293,12 @@ void AliSTARTDigitizer::Exec(Option_t* /*option*/)
 
 // trick to find out output dir:
 
-
-/*
-   // trick to find out output dir:
-    TTree *outTree = fManager->GetTreeD();
-    if (!outTree) {
-      cerr<<"something wrong with output...."<<endl;
-      exit(111);
-    }
-
     Char_t nameDigits[20];
+    sprintf(nameDigits,"START_D_%d",fManager->GetOutputEventNr());
     TDirectory *wd = gDirectory;
-    outTree->GetDirectory()->cd();
+    outgime->GetDigitsDataLoader()->GetDirectory()->cd();
     fdigits->Write(nameDigits);
-    cout<<nameDigits<<endl;
     wd->cd();
-*/  
-
-     Char_t nameDigits[20];
-    sprintf(nameDigits,"START_D_%d",fManager->GetOutputEventNr());
-    fdigits->Write(nameDigits);
 
     //    outgime->WriteDigits("OVERWRITE");
   }