]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDAltroMapping.h
New RAW I/O. I rolled my own, because I wasn't happy with the old
[u/mrichter/AliRoot.git] / FMD / AliFMDAltroMapping.h
1 #ifndef ALIFMDALTROMAPPING_H
2 #define ALIFMDALTROMAPPING_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
4  * reserved. 
5  *
6  * Latest changes by Christian Holm Christensen <cholm@nbi.dk>
7  *
8  * See cxx source for full Copyright notice                               
9  */
10 #ifndef ALIALTROMAPPING_H
11 # include <AliAltroMapping.h>
12 #endif
13 #ifndef ALIFMDUSHORTMAP_H
14 # include "AliFMDUShortMap.h"
15 #endif
16 #ifndef ROOT_TArrayI
17 # include <TArrayI.h>
18 #endif
19
20 class AliFMDAltroMapping : public AliAltroMapping
21 {
22 public:
23   AliFMDAltroMapping();
24   Bool_t Hardware2Detector(UInt_t    ddl, UInt_t    hwaddr, 
25                            UShort_t& det, Char_t&   ring, 
26                            UShort_t& sec, UShort_t& str) const;
27   Bool_t Detector2Hardware(UShort_t  det, Char_t    ring, 
28                            UShort_t  sec, UShort_t  str,
29                            UInt_t&   ddl, UInt_t&   hwaddr) const;
30   Int_t  GetHWAdress(Int_t sector, Int_t str, Int_t ring) const
31   {
32     return GetHWAddress(sector, str, ring);
33   }
34   Int_t  GetHWAddress(Int_t sector, Int_t str, Int_t ring) const;
35   Int_t  GetPadRow(Int_t hwaddr) const;
36   Int_t  GetPad(Int_t hwaddr) const;
37   Int_t  GetSector(Int_t hwaddr) const;
38 protected:
39   virtual Bool_t ReadMapping();
40   virtual void   DeleteMappingArrays();
41   
42   ClassDef(AliFMDAltroMapping, 1) // Read raw FMD Altro data 
43 };
44
45 #endif
46 //____________________________________________________________________
47 //
48 // Local Variables:
49 //   mode: C++
50 // End:
51 //
52 // EOF
53 //