]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSMapper.h
setting keyword substitution
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSMapper.h
1 //-*- Mode: C++ -*-
2 // $Id$
3
4 #ifndef ALIHLTPHOSMAPPER_H
5 #define ALIHLTPHOSMAPPER_H
6
7
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
26 //#include "AliHLTPHOSBase.h"
27
28 //using namespace PhosHLTConst;
29 #include "Rtypes.h"
30 #include "AliHLTLogging.h"
31 class AliHLTPHOSMapper : public AliHLTLogging
32 //class AliHLTPHOSMapper 
33 {
34  public:
35   AliHLTPHOSMapper();
36   virtual ~AliHLTPHOSMapper();
37   void InitAltroMapping(); 
38   void InitDDLSpecificationMapping();
39   bool GetIsInitializedMapping();
40   char* GetFilePath();
41
42   UShort_t GetChannelID(Int_t specification, Int_t hwAddress);
43   static void GetChannelCoord(UShort_t channelId, UShort_t* channelCoord);
44
45   struct fAltromap{ 
46     int fZRow; // Coordinate in Z direction (beam direction) relatve too one RCU
47     int fXCol; // Coordinate in X direction (perpendicular too beam direction an parallell to ground) relatve too one RCU
48     int fGain; // Gain (high gain = 1, low gain = 0)
49   };
50   
51   struct fDDLSpecificationMap{ 
52     UInt_t fRcuX; // Coordinate in Z direction (beam direction) relatve too one RCU
53     UInt_t fRcuZ; // Coordinate in X direction (perpendicular too beam direction an parallell to ground) relatve too one RCU
54     UInt_t fRcuXOffset;
55     UInt_t fRcuZOffset;
56     int fModId; 
57   };
58
59   fAltromap *fHw2geomapPtr; //pointer to structure holding information about geometrical address 
60
61
62   char fFilepath[1024];
63
64  private:
65   bool fIsInitializedMapping;
66   AliHLTPHOSMapper(const AliHLTPHOSMapper & );
67   AliHLTPHOSMapper & operator = (const AliHLTPHOSMapper &);
68   
69   fDDLSpecificationMap* fSpecificationMapPtr;
70   
71 };
72
73 #endif