From 0488b68a2579fab9091b4daba6be38aef4002543 Mon Sep 17 00:00:00 2001 From: policheh Date: Wed, 18 Jul 2007 16:29:54 +0000 Subject: [PATCH] Raw Sdigits energy converted to GeV. --- PHOS/AliPHOS.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/PHOS/AliPHOS.cxx b/PHOS/AliPHOS.cxx index a5ee04d407c..c5367b4867e 100644 --- a/PHOS/AliPHOS.cxx +++ b/PHOS/AliPHOS.cxx @@ -16,6 +16,9 @@ /* History of cvs commits: * * $Log$ + * Revision 1.112 2007/02/25 22:59:13 policheh + * Digits2Raw(): ALTRO buffer and mapping created per each DDL. + * * Revision 1.111 2007/02/18 15:21:47 kharlov * Corrections for memory leak in Digits2Raw due to AliAltroMapping * @@ -660,6 +663,12 @@ Bool_t AliPHOS::Raw2SDigits(AliRawReader* rawReader) AliPHOSRawDigiProducer pr; pr.MakeDigits(sdigits,&dc); + //ADC counts -> GeV + for(Int_t i=0; iGetEntries(); i++) { + AliPHOSDigit* sdigit = (AliPHOSDigit*)sdigits->At(i); + sdigit->SetEnergy(sdigit->GetEnergy()/AliPHOSPulseGenerator::GeV2ADC()); + } + Int_t bufferSize = 32000 ; TBranch * sdigitsBranch = tree->Branch("PHOS",&sdigits,bufferSize); tree->Fill(); -- 2.39.3