Update mode for digits instead of recreate to avoid problems with multievent jobs...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 May 2004 11:56:25 +0000 (11:56 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 May 2004 11:56:25 +0000 (11:56 +0000)
PMD/AliPMDDigitizer.cxx

index df8010e..44b45b7 100644 (file)
@@ -775,7 +775,7 @@ void AliPMDDigitizer::Exec(Option_t *option)
     {
       cerr<<"AliPMDDigitizer::Exec : Can not find PMD or PMDLoader\n";
     }
-  fPMDLoader->LoadDigits("recreate");
+  fPMDLoader->LoadDigits("update");
   TTree* treeD = fPMDLoader->TreeD();
   if (treeD == 0x0)
     {
@@ -822,9 +822,9 @@ void AliPMDDigitizer::Exec(Option_t *option)
          ResetDigit();
        } // supermodule loop
     } // detector loop
-  ResetCellADC();
-
   fPMDLoader->WriteDigits("OVERWRITE");  
+  fPMDLoader->UnloadDigits();
+  ResetCellADC();
 }
 //____________________________________________________________________________