00001 #ifndef ALIFMDALTROMAPPING_H
00002 #define ALIFMDALTROMAPPING_H
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef ALIALTROMAPPING_H
00011 # include <AliAltroMapping.h>
00012 #endif
00013 #ifndef ALIFMDUSHORTMAP_H
00014 # include "AliFMDUShortMap.h"
00015 #endif
00016 #ifndef ROOT_TArrayI
00017 # include <TArrayI.h>
00018 #endif
00019
00020
00036 class AliFMDAltroMapping : public AliAltroMapping
00037 {
00038 public:
00040 AliFMDAltroMapping();
00049 Bool_t Hardware2Detector(UInt_t ddl, UInt_t hwaddr,
00050 UShort_t& det, Char_t& ring,
00051 UShort_t& sec, UShort_t& str) const;
00060 Bool_t Detector2Hardware(UShort_t det, Char_t ring,
00061 UShort_t sec, UShort_t str,
00062 UInt_t& ddl, UInt_t& hwaddr) const;
00068 Int_t GetHWAdress(Int_t sector, Int_t str, Int_t ring) const
00069 {
00070 return GetHWAddress(sector, str, ring);
00071 }
00077 Int_t GetHWAddress(Int_t sector, Int_t str, Int_t ring) const;
00081 Int_t GetPadRow(Int_t hwaddr) const;
00085 Int_t GetPad(Int_t hwaddr) const;
00089 Int_t GetSector(Int_t hwaddr) const;
00090 protected:
00093 virtual Bool_t ReadMapping();
00095 virtual void DeleteMappingArrays();
00096
00097 ClassDef(AliFMDAltroMapping, 1)
00098 };
00099
00100 #endif
00101
00102
00103
00104
00105
00106
00107
00108