]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCmapper.h
fabs replacment
[u/mrichter/AliRoot.git] / TPC / AliTPCmapper.h
index 2ea21d291337acc987aca5ab5098f8c3608f234d..e14e4f2f4463264d589ea9a7dc04683122a8abe1 100644 (file)
 #include <TObject.h>
 
 class AliTPCAltroMapping;
-class AliTPCROC;
 
 class AliTPCmapper : public TObject{
 
 public:
 
-  AliTPCmapper(const char * dirname=0);
+  AliTPCmapper();
+  AliTPCmapper(const char * dirname);
   virtual ~AliTPCmapper();
 
   AliTPCmapper& operator = (const AliTPCmapper& mapper);
@@ -28,7 +28,7 @@ public:
 
   void Init(const char * dirname);
   //
-  AliTPCAltroMapping **GetAltroMapping(){ return fMapping;};
+  AliTPCAltroMapping **GetAltroMapping() { return fMapping; };
 
   // ALTRO mapping functions
   Int_t GetPad(Int_t patch, Int_t hwAddress) const;
@@ -101,12 +101,15 @@ public:
   Int_t  GetNfec(Int_t patch) const;
   Bool_t IsIROC(Int_t roc) const;
   Bool_t IsOROC(Int_t roc) const;
+  
+  Int_t  GetTpcDdlOffset() const {return fTpcDdlOffset;}
+  Int_t  GetNumDdl() const {return fNside*fNsector*fNrcu; }
 
  private:
 
   Int_t fNside;        // TPC has 2 sides
-  Int_t fNsector;      // TPC has 18 sectors
-  Int_t fNrcu;         // Sector has 6 RCUs
+  Int_t fNsector;      // TPC side has 18 sectors
+  Int_t fNrcu;         // Sector has 6 RCUs (patches)
   Int_t fNbranch;      // RCU has 2 branches
   Int_t fNaltro;       // FEC has 8 ALTROs
   Int_t fNchannel;     // ALTRO has 16 channels
@@ -117,9 +120,8 @@ public:
   Int_t fTpcDdlOffset; // DDL offset for TPC
 
   AliTPCAltroMapping *fMapping[6];    // The ALTRO mapping for each patch (rcu)
-  AliTPCROC *fROC;                    // ROC object containing some relevant functions
 
-  ClassDef(AliTPCmapper,1)
+  ClassDef(AliTPCmapper,2)
 
 };