]>
Commit | Line | Data |
---|---|---|
1b41ab20 | 1 | //-*- Mode: C++ -*- |
b48632c9 | 2 | // $Id: AliHLTPHOSMapper.h 34264 2009-08-14 18:29:23Z odjuvsla $ |
1b41ab20 | 3 | |
2f09efe8 | 4 | #ifndef ALIHLTPHOSMAPPER_H |
5 | #define ALIHLTPHOSMAPPER_H | |
6 | ||
fec21787 | 7 | |
2f09efe8 | 8 | /************************************************************************** |
9 | * This file is property of and copyright by the Experimental Nuclear * | |
10 | * Physics Group, Dep. of Physics * | |
11 | * University of Oslo, Norway, 2006 * | |
12 | * * | |
13 | * Author: Per Thomas Hille perthi@fys.uio.no for the ALICE DCS Project. * | |
14 | * Contributors are mentioned in the code where appropriate. * | |
15 | * Please report bugs to perthi@fys.uio.no * | |
16 | * * | |
17 | * Permission to use, copy, modify and distribute this software and its * | |
18 | * documentation strictly for non-commercial purposes is hereby granted * | |
19 | * without fee, provided that the above copyright notice appears in all * | |
20 | * copies and that both the copyright notice and this permission notice * | |
21 | * appear in the supporting documentation. The authors make no claims * | |
22 | * about the suitability of this software for any purpose. It is * | |
23 | * provided "as is" without express or implied warranty. * | |
24 | **************************************************************************/ | |
25 | ||
7eb756c1 | 26 | //#include "AliHLTPHOSBase.h" |
af6a2273 | 27 | |
28 | //using namespace PhosHLTConst; | |
94594220 | 29 | #include "Rtypes.h" |
30 | #include "AliHLTLogging.h" | |
87434909 | 31 | |
32 | #include "AliPHOSEMCAGeometry.h" | |
33 | ||
94594220 | 34 | class AliHLTPHOSMapper : public AliHLTLogging |
35 | //class AliHLTPHOSMapper | |
2f09efe8 | 36 | { |
37 | public: | |
38 | AliHLTPHOSMapper(); | |
c37f821f | 39 | virtual ~AliHLTPHOSMapper(); |
40 | void InitAltroMapping(); | |
94594220 | 41 | void InitDDLSpecificationMapping(); |
8efbf5fe | 42 | bool GetIsInitializedMapping(); |
43 | char* GetFilePath(); | |
c37f821f | 44 | |
94594220 | 45 | UShort_t GetChannelID(Int_t specification, Int_t hwAddress); |
46 | static void GetChannelCoord(UShort_t channelId, UShort_t* channelCoord); | |
87434909 | 47 | static void GetLocalCoord(UShort_t channelId, Float_t* localCoord); |
48 | int GetDDLFromSpec(Int_t specification); | |
b48632c9 | 49 | int GetModuleFromSpec(Int_t specification); |
94594220 | 50 | |
af6a2273 | 51 | struct fAltromap{ |
52 | int fZRow; // Coordinate in Z direction (beam direction) relatve too one RCU | |
53 | int fXCol; // Coordinate in X direction (perpendicular too beam direction an parallell to ground) relatve too one RCU | |
54 | int fGain; // Gain (high gain = 1, low gain = 0) | |
c37f821f | 55 | }; |
94594220 | 56 | |
57 | struct fDDLSpecificationMap{ | |
58 | UInt_t fRcuX; // Coordinate in Z direction (beam direction) relatve too one RCU | |
59 | UInt_t fRcuZ; // Coordinate in X direction (perpendicular too beam direction an parallell to ground) relatve too one RCU | |
60 | UInt_t fRcuXOffset; | |
61 | UInt_t fRcuZOffset; | |
62 | int fModId; | |
63 | }; | |
c37f821f | 64 | |
af6a2273 | 65 | fAltromap *fHw2geomapPtr; //pointer to structure holding information about geometrical address |
94594220 | 66 | |
67 | ||
8efbf5fe | 68 | char fFilepath[1024]; |
c37f821f | 69 | |
b444d727 | 70 | private: |
8efbf5fe | 71 | bool fIsInitializedMapping; |
b444d727 | 72 | AliHLTPHOSMapper(const AliHLTPHOSMapper & ); |
73 | AliHLTPHOSMapper & operator = (const AliHLTPHOSMapper &); | |
94594220 | 74 | |
75 | fDDLSpecificationMap* fSpecificationMapPtr; | |
87434909 | 76 | //AliPHOSEMCAGeometry fPHOSGeometry; |
77 | static const Float_t fCellStep = 2.2;//2.*fPHOSGeometry.GetAirCellHalfSize()[0]; | |
2f09efe8 | 78 | }; |
79 | ||
80 | #endif |