Tomas's corrections
authoralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 26 Apr 2004 12:01:50 +0000 (12:01 +0000)
committeralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 26 Apr 2004 12:01:50 +0000 (12:01 +0000)
FMD/AliFMDDigitizer.cxx

index 2e26081db51a2612960e2e1c569ade7c9823e9cf..08b23751d042aa71d2da0d104c8d8e499f7e370e 100644 (file)
@@ -197,6 +197,7 @@ void AliFMDDigitizer::Exec(Option_t * /*option*/)
        }               //track loop
     }               
 //if FMD
+   }
 
  
   // Put noise and make ADC signal
@@ -222,6 +223,7 @@ void AliFMDDigitizer::Exec(Option_t * /*option*/)
      } //iSector
    } //iRing
 
+   pOutFMD->LoadDigits("update");
    TTree* treeD = pOutFMD->TreeD();
 
    if (treeD == 0x0) {
@@ -235,12 +237,12 @@ void AliFMDDigitizer::Exec(Option_t * /*option*/)
    brD = treeD->GetBranch("FMD");
 
 
-   treeD->Fill();  //this operator does not work for events >1
+   treeD->Fill();
 
    pOutFMD->WriteDigits("OVERWRITE");
    pOutFMD->UnloadHits();
-   inRL->GetAliRun() ->ResetDigits();
-   }
+   pOutFMD->UnloadDigits();
+   fFMD->ResetDigits();
 }