1 /**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * ALICE Experiment at CERN, All rights reserved. *
5 * Primary Authors: Oystein Djuvsland <oysteind@ift.uib.no> *
6 * for The ALICE HLT Project. *
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 #ifndef ALIHLTEMCALDIGITHANDLER_H
18 #define ALIHLTEMCALDIGITHANDLER_H
20 #include "offline/AliHLTCaloDigitHandler.h"
21 #include "AliHLTEMCALDefinitions.h"
23 class AliEMCALCalibData;
25 class AliHLTEMCALDigitHandler : public AliHLTCaloDigitHandler
30 virtual ~AliHLTEMCALDigitHandler();
32 static AliHLTEMCALDigitHandler* Instance();
34 virtual Int_t Init(AliRunLoader* runLoader);
36 virtual AliHLTComponentDataType GetDataType() { return AliHLTEMCALDefinitions::fgkDigitDataType; }
41 virtual Int_t ConvertDigit(AliDigitNew *digit);
43 int GetGainsFromCDB();
48 /** Constructor, private */
49 AliHLTEMCALDigitHandler();
51 /** The one and only instance of class */
52 static AliHLTEMCALDigitHandler *fgkInstance;
54 /** Calibration data */
55 AliEMCALCalibData *fCalibData;
58 AliHLTEMCALDigitHandler(const AliHLTEMCALDigitHandler& );
61 AliHLTEMCALDigitHandler& operator=(const AliHLTEMCALDigitHandler& );
64 #endif // ALIHLTEMCALDIGITHANDLER_H