gAlice now only read by AliRunDigitizer. Therefore it is just deleted in AliTRDmerge.C
[u/mrichter/AliRoot.git] / TRD / AliTRDdigitizer.cxx
index f41b4b33b6e540b55c148075fe9ca011c9ed1d03..9c6c06b250d3f98556a6393df89eb87f5ac8999c 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.37  2002/04/29 11:50:47  cblume
+Change initialization of gAlice in the merging case
+
 Revision 1.36  2002/04/12 12:13:23  cblume
 Add Jiris changes
 
@@ -438,6 +441,13 @@ void AliTRDdigitizer::Exec(Option_t* option)
       printf("Add input stream %d\n",iInput);
     }
 
+    // check if the input tree exists
+    if (!fManager->GetInputTreeTRDS(iInput)) {
+      printf("<AliTRDdigitizer::Exec> ");
+      printf("Input stream %d does not exist\n",iInput);
+      return;
+    } 
+
     // Read the s-digits via digits manager
     sdigitsManager = new AliTRDdigitsManager();
     sdigitsManager->SetDebug(fDebug);