]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCAltroMapping.h
Preparation for the new dEdx algorithm :
[u/mrichter/AliRoot.git] / TPC / AliTPCAltroMapping.h
index dcbc2b5e343267d167ab409dd3861dade5b9bbdc..c97726b1729f335afc7542fc78d172310fd84d5d 100644 (file)
 
 class AliTPCAltroMapping: public AliAltroMapping {
  public:
+  AliTPCAltroMapping();
   AliTPCAltroMapping(const char *mappingFile);
   virtual ~AliTPCAltroMapping();
 
-  AliTPCAltroMapping(const AliTPCAltroMapping& mapping);
-  AliTPCAltroMapping& operator = (const AliTPCAltroMapping& mapping);
-
-  virtual Int_t GetHWAdress(Int_t padrow, Int_t pad, Int_t sector) const;
-  virtual Int_t GetPadRow(Int_t hwAdress) const;
-  virtual Int_t GetPad(Int_t hwAdress) const;
-  virtual Int_t GetSector(Int_t hwAdress) const;
+  virtual Int_t GetHWAddress(Int_t padrow, Int_t pad, Int_t sector);
+  virtual Int_t GetPadRow(Int_t hwAddress) const;
+  virtual Int_t GetPad(Int_t hwAddress) const;
+  virtual Int_t GetSector(Int_t hwAddress) const;
 
  protected:
   virtual Bool_t ReadMapping();
-  virtual void   DeleteMappingArrays();
+  virtual Bool_t CreateInvMapping();
 
   Int_t     fMinPadRow;        // Minimum Index of pad-row
   Int_t     fMaxPadRow;        // Maximum Index of pad-row
   Int_t     fMaxPad;           // Maximum Index of pad inside row
-  Short_t **fMapping;          // Array which connects hardware adresses to pad and pad-row indeces
-  Short_t **fInvMapping;       // Inverse of fMapping
+  Short_t  *fInvMapping;       //! Inverse of fMapping
+
+ private:
+
+  AliTPCAltroMapping(const AliTPCAltroMapping& mapping);
+  AliTPCAltroMapping& operator = (const AliTPCAltroMapping& mapping);
 
-  ClassDef(AliTPCAltroMapping,0)  // Altro mapping handler class
+  ClassDef(AliTPCAltroMapping,3)  // Altro mapping handler class
 };
 
 #endif