Correction for TRD - add MakeBranch() to create TRD tree for sdigits.
[u/mrichter/AliRoot.git] / STEER / AliHits2SDigits.C
index d03c3f30c745b4b42dafcd267933ee7483e24c28..21206bffac394438d31bc397012e87a8fa362598 100644 (file)
@@ -261,6 +261,9 @@ AliTRDdigitizer *InitTRDdigitizer() {
 
   sdTRD->SetParameter(TRDparam);
   sdTRD->InitDetector();
+  if (!sdTRD->MakeBranch()) {
+    cerr<<"Problems with TRD digitizer initialization."<<endl;
+  }
   return sdTRD;
 }
 ////////////////////////////////////////////////////////////////////////