]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSDDLModuleMapSDD.h
Fixes for reading zero-suppressed data. These should be propagated to
[u/mrichter/AliRoot.git] / ITS / AliITSDDLModuleMapSDD.h
index b2dd2f54a1d78a0127ae65199a944ea145d35518..ea9b65779bff1b1860be1e131aac8db33f3adb01 100644 (file)
@@ -13,6 +13,7 @@
 ///////////////////////////////////////////////////////////////////
 
 #include<TObject.h>
+#include<AliITSgeomTGeo.h>
 
 
 class AliITSDDLModuleMapSDD : public TObject {
@@ -26,11 +27,20 @@ class AliITSDDLModuleMapSDD : public TObject {
   void SetDefaultMap();
   void SetDec07part1Map();
   void SetDec07part2Map();
+  void SetFeb08Map();
+  void SetJun08Map();
   void SetDDLMapElement(Int_t iDDL, Int_t iChan, Int_t iMod){fDDLModuleMap[iDDL][iChan]=iMod;}
   void SetDDLMap(AliITSDDLModuleMapSDD* ddlmap);
   void ReadDDLModuleMap(Char_t *ddlmapfile);
 
   Int_t GetModuleNumber(UInt_t iDDL, UInt_t iChan) const {return fDDLModuleMap[iDDL][iChan];}
+  void FindInDDLMap(Int_t modIndex, Int_t &iDDL, Int_t &iCarlos) const;
+  void FindInDDLMap(Int_t lay, Int_t lad, Int_t det, Int_t &iDDL, Int_t &iCarlos) const {
+    FindInDDLMap(AliITSgeomTGeo::GetModuleIndex(lay,lad,det),iDDL,iCarlos);
+  }
+  static Int_t GetNDDLs(){return kDDLsNumber;}
+  static Int_t GetNModPerDDL(){return kModulesPerDDL;}
+
 
   void PrintDDLMap() const ;