Correction for TRD - add MakeBranch() to create TRD tree for sdigits.
authorjchudoba <jchudoba@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 28 Jul 2002 16:24:50 +0000 (16:24 +0000)
committerjchudoba <jchudoba@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 28 Jul 2002 16:24:50 +0000 (16:24 +0000)
STEER/AliHits2SDigits.C

index d03c3f30c745b4b42dafcd267933ee7483e24c28..21206bffac394438d31bc397012e87a8fa362598 100644 (file)
@@ -261,6 +261,9 @@ AliTRDdigitizer *InitTRDdigitizer() {
 
   sdTRD->SetParameter(TRDparam);
   sdTRD->InitDetector();
 
   sdTRD->SetParameter(TRDparam);
   sdTRD->InitDetector();
+  if (!sdTRD->MakeBranch()) {
+    cerr<<"Problems with TRD digitizer initialization."<<endl;
+  }
   return sdTRD;
 }
 ////////////////////////////////////////////////////////////////////////
   return sdTRD;
 }
 ////////////////////////////////////////////////////////////////////////