2 /**************************************************************************
3 * This file is property of and copyright by the ALICE HLT Project *
4 * All rights reserved. *
6 * Primary Authors: Oystein Djuvsland *
8 * Permission to use, copy, modify and distribute this software and its *
9 * documentation strictly for non-commercial purposes is hereby granted *
10 * without fee, provided that the above copyright notice appears in all *
11 * copies and that both the copyright notice and this permission notice *
12 * appear in the supporting documentation. The authors make no claims *
13 * about the suitability of this software for any purpose. It is *
14 * provided "as is" without express or implied warranty. *
15 **************************************************************************/
17 ClassDef(AliHLTPHOSEnergyEqualizer);
19 using namespace PhosHLTConst;
21 AliHLTPHOSEnergyEqualizer::AliHLTPHOSEnergyEqualizer() :
23 fDigitContainerPtr(0),
24 fGlobalHighGainFactor(0),
25 fGlobalLowGainFactor(0),
26 fGlobalConversion(true)
32 AliHLTPHOSEnergyEqualizer::MakeDigits(AliHLTPHOSRcuCellEnergyDataStruct *cellEnergies)
35 Int_t nDigits = fDigitDataStruct-fNDigits;
38 for(Int_t i = 0; i < fCnt; i++)
41 fDigitContainerPtr->fDigitDataStruct[nDigits].fModule = cellEnergies->fValidData.fModuleID;
42 fDigitContainerPtr->fDigitDataStruct[nDigits].fX = cellEnergies->fValidData.fX + (cellEnergies->fRcuX)*N_XCOLUMNS_RCU;
43 fDigitContainerPtr->fDigitDataStruct[nDigits].fZ = cellEnergies->fValidData.fZ + (cellEnergies->fRcuZ)*N_ZROWS_RCU;