]>
Commit | Line | Data |
---|---|---|
5308534b | 1 | /************************************************************************** |
2 | * This file is property of and copyright by the Experimental Nuclear * | |
3 | * Physics Group, Dep. of Physics * | |
4 | * University of Oslo, Norway, 2007 * | |
5 | * * | |
6 | * Author: federico ronchetti 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 | #include "AliHLTEMCALGeometry.h" | |
17 | #include "AliHLTEMCALConstant.h" | |
18 | #include "assert.h" | |
19 | #include "AliHLTCaloConstantsHandler.h" | |
20 | #include "AliHLTEMCALSharedMemoryInterface.h" | |
21 | #include "TVector3.h" | |
22 | ||
23 | using namespace EmcalHLTConst; | |
24 | ||
25 | ClassImp(AliHLTEMCALGeometry); | |
26 | ||
27 | AliHLTEMCALGeometry::AliHLTEMCALGeometry( TString det) : | |
28 | AliHLTCaloGeometry (det), | |
29 | fShmPtr(0), | |
30 | fGeo(0) | |
31 | { | |
32 | //fGeo = new AliEMCALGeoUtils("EMCAL_COMPLETE","EMCAL"); | |
33 | //fGeo = new AliEMCALGeometry("EMCAL_COMPLETE","EMCAL"); | |
34 | //fGeo = AliEMCALGeometry::GetInstance(AliEMCALGeometry::GetDefaultGeometryName()); | |
35 | // TGeoManager::Import("/home/fedro/work/AliRoot/test/QA/geometry.root"); | |
36 | fShmPtr = new AliHLTEMCALSharedMemoryInterface(); | |
37 | } | |
38 | ||
39 | ||
40 | AliHLTEMCALGeometry::~AliHLTEMCALGeometry() | |
41 | { | |
42 | ||
43 | } | |
44 | ||
45 | void | |
46 | AliHLTEMCALGeometry::GetGlobalCoordinates(AliHLTCaloRecPointDataStruct &/*recPoint*/, AliHLTCaloGlobalCoordinate &globalCoord) | |
47 | { | |
48 | //TVector3 v1; | |
49 | Double_t glob[3] = {0, 0, 0}; | |
50 | //Int_t AbsId; | |
51 | ||
52 | // GetCellAbsId(recPoint.fModule, recPoint.fX, recPoint.fZ, AbsId); | |
53 | ||
54 | //fGeo->GetGlobalEMCAL(const AliEMCALRecPoint *rp, TVector3 &vglob); | |
55 | // fGeo->GetGlobal(AbsId, glob); | |
56 | ||
57 | globalCoord.fX = glob[0]; | |
58 | globalCoord.fY = glob[1]; | |
59 | globalCoord.fZ = glob[2]; | |
60 | } | |
61 | ||
62 | void | |
16ce6bc0 | 63 | AliHLTEMCALGeometry::GetCellAbsId(UInt_t /*module*/, UInt_t /*x*/, UInt_t /*z*/, Int_t& /*AbsId*/) |
5308534b | 64 | { |
65 | ||
66 | // AbsId = fGeo->GetAbsCellIdFromCellIndexes(module, x, z); | |
67 | ||
68 | } | |
69 | ||
70 |