Extending to beam test analysis
[u/mrichter/AliRoot.git] / PHOS / AliPHOSDigitizer.cxx
index c65aa7674aa2f4213c5e69c7ab9a67121de3c013..43b9a6342aed118c45c471f1aca9e88fd9b11c71 100644 (file)
@@ -767,7 +767,7 @@ void AliPHOSDigitizer::WriteDigits(Int_t event)
   
   // -- Create Digitizer branch
   Int_t splitlevel = 0 ;
-  const AliPHOSDigitizer * d = gime->Digitizer(GetName()) ;
+  const AliPHOSDigitizer * d = dynamic_cast<const AliPHOSDigitizer *>(gime->Digitizer()) ;
   TBranch * digitizerBranch = treeD->Branch("AliPHOSDigitizer", "AliPHOSDigitizer", &d,bufferSize,splitlevel); 
   digitizerBranch->SetTitle(GetName());