Changes needed to run simulation and reconstrruction in the same AliRoot session
[u/mrichter/AliRoot.git] / PHOS / AliPHOSDigitizer.cxx
index bb3b29b441f9c49820a15f7027dc906b8277fce3..f9e8693858cc13b37e50f607e05fb4472e5a60a6 100644 (file)
@@ -18,6 +18,9 @@
 /* History of cvs commits:
  *
  * $Log$
+ * Revision 1.85  2005/05/28 14:19:04  schutz
+ * Compilation warnings fixed by T.P.
+ *
  */
 
 //_________________________________________________________________________
@@ -147,6 +150,10 @@ AliPHOSDigitizer::AliPHOSDigitizer(AliRunDigitizer * rd):
 //____________________________________________________________________________ 
   AliPHOSDigitizer::~AliPHOSDigitizer()
 {
+  AliPHOSGetter * gime = AliPHOSGetter::Instance(GetTitle()) ;
+
+  // Clean Digitizer from the white board
+  gime->PhosLoader()->CleanDigitizer() ;
   // dtor
   delete [] fInputFileNames ; 
   delete [] fEventNames ;