]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/PHOS/AliHLTPHOSEnergyEqualizer.cxx
New classes for PHOS DA / calibration tasks (Oystein)
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSEnergyEqualizer.cxx
CommitLineData
5c6503dc 1
2/**************************************************************************
3 * This file is property of and copyright by the ALICE HLT Project *
4 * All rights reserved. *
5 * *
6 * Primary Authors: Oystein Djuvsland *
7 * *
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 **************************************************************************/
16
17ClassDef(AliHLTPHOSEnergyEqualizer);
18
19using namespace PhosHLTConst;
20
21AliHLTPHOSEnergyEqualizer::AliHLTPHOSEnergyEqualizer() :
22 AliHLTPHOSBase(),
23 fDigitContainerPtr(0),
24 fGlobalHighGainFactor(0),
25 fGlobalLowGainFactor(0),
26 fGlobalConversion(true)
27{
28
29}
30
31Int_t
32AliHLTPHOSEnergyEqualizer::MakeDigits(AliHLTPHOSRcuCellEnergyDataStruct *cellEnergies)
33{
34
35 Int_t nDigits = fDigitDataStruct-fNDigits;
36 if(fGlobalConversion)
37 {
38 for(Int_t i = 0; i < fCnt; i++)
39 {
40 if(
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;
44 }
45 }
46 else
47 //not implemented yet