]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/EMCAL/AliHLTEMCALGeometry.h
fixed inconsistency in GetCellAbsID
[u/mrichter/AliRoot.git] / HLT / EMCAL / AliHLTEMCALGeometry.h
1 #ifndef ALIHLTEMCALGEOMETRY_H
2 #define ALIHLTEMCALGEOMETRY_H
3 /**************************************************************************
4  * This file is property of and copyright by the Experimental Nuclear     *
5  * Physics Group, Dep. of Physics                                         *
6  * University of Oslo, Norway, 2007                                       *
7  *                                                                        *
8  * Author: Federico Ronchetti for the ALICE HLT Project.*
9  *                                                                        *
10  * Permission to use, copy, modify and distribute this software and its   *
11  * documentation strictly for non-commercial purposes is hereby granted   *
12  * without fee, provided that the above copyright notice appears in all   *
13  * copies and that both the copyright notice and this permission notice   *
14  * appear in the supporting documentation. The authors make no claims     *
15  * about the suitability of this software for any purpose. It is          *
16  * provided "as is" without express or implied warranty.                  *
17  **************************************************************************/
18
19 #include "AliHLTCaloGeometry.h"
20 #include "AliEMCALGeoUtils.h"
21
22 class TGeoManager;
23 class AliCDBManager;
24 class AliCDBPath;
25 class AliHLTEMCALRecPointDataStruct;
26
27 class AliEMCALGeoUtils;
28
29 class  AliHLTEMCALGeometry : public AliHLTCaloGeometry, public AliHLTLogging
30 {
31  public:
32         AliHLTEMCALGeometry();
33         virtual ~AliHLTEMCALGeometry();
34         void GetGlobalCoordinates(AliHLTCaloRecPointDataStruct &recPoint, AliHLTCaloGlobalCoordinate &globalCoord );
35         void GetCellAbsId(UInt_t module, UInt_t x, UInt_t z, Int_t& AbsId);
36         virtual void ConvertRecPointCoordinates(Double_t &x, Double_t &y, Double_t &z) const;
37         virtual Int_t InitialiseGeometry();
38
39
40 protected:
41         int GetGeometryFromCDB();
42
43 private:
44         AliHLTEMCALGeometry(const AliHLTEMCALGeometry & );
45         AliHLTEMCALGeometry & operator = (const AliHLTEMCALGeometry &); 
46
47         // EMCal Geometry
48         AliEMCALGeoUtils *fGeo;
49
50 };
51
52 #endif