]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/EMCAL/offline/AliHLTEMCALDigitHandler.h
added DigitPublisher class and relative modifications to the Geometry. added example...
[u/mrichter/AliRoot.git] / HLT / EMCAL / offline / AliHLTEMCALDigitHandler.h
1 /**************************************************************************
2  * This file is property of and copyright by the ALICE HLT Project        *
3  * ALICE Experiment at CERN, All rights reserved.                         *
4  *                                                                        *
5  * Primary Authors: Oystein Djuvsland <oysteind@ift.uib.no>               *
6  *                  for The ALICE HLT Project.                            *
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
17 #ifndef ALIHLTEMCALDIGITHANDLER_H
18 #define ALIHLTEMCALDIGITHANDLER_H
19
20 #include "offline/AliHLTCaloDigitHandler.h"
21 #include "AliHLTEMCALDefinitions.h"
22
23 class AliEMCALCalibData;
24 class AliDigitNew;
25 class AliHLTEMCALDigitHandler : public AliHLTCaloDigitHandler
26 {
27
28 public:
29       
30     virtual ~AliHLTEMCALDigitHandler();
31     
32     static AliHLTEMCALDigitHandler* Instance();
33       
34     virtual Int_t Init(AliRunLoader* runLoader);
35     
36     virtual AliHLTComponentDataType GetDataType() { return AliHLTEMCALDefinitions::fgkDigitDataType; }
37     
38
39 protected:
40   
41     virtual Int_t ConvertDigit(AliDigitNew *digit);    
42     
43     int GetGainsFromCDB();
44
45     
46 private:
47   
48   /** Constructor, private */
49   AliHLTEMCALDigitHandler();
50
51   /** The one and only instance of class */
52   static AliHLTEMCALDigitHandler *fgkInstance;
53   
54   /** Calibration data */
55   AliEMCALCalibData *fCalibData;
56   
57   /** Prohibited */
58   AliHLTEMCALDigitHandler(const AliHLTEMCALDigitHandler& );
59     
60   /** Prohibited */
61   AliHLTEMCALDigitHandler& operator=(const AliHLTEMCALDigitHandler& );
62 };
63
64 #endif // ALIHLTEMCALDIGITHANDLER_H