Raw digits energy converted to GeV.
authorpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Jul 2007 16:29:02 +0000 (16:29 +0000)
committerpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Jul 2007 16:29:02 +0000 (16:29 +0000)
PHOS/AliPHOSGetter.cxx

index 5ac90f3..792cab4 100644 (file)
@@ -748,7 +748,13 @@ Int_t AliPHOSGetter::ReadRaw(AliRawReader *rawReader,Bool_t isOldRCUFormat)
   TClonesArray * digits = Digits() ;
   AliPHOSRawDigiProducer pr;
   pr.MakeDigits(digits,&dc);
-
+  
+  //ADC counts -> GeV
+  for(Int_t i=0; i<digits->GetEntries(); i++) {
+    AliPHOSDigit* digit = (AliPHOSDigit*)digits->At(i);
+    digit->SetEnergy(digit->GetEnergy()/AliPHOSPulseGenerator::GeV2ADC());
+  }
+  
   //!!!!for debug!!!
   Int_t modMax=-111;
   Int_t colMax=-111;