#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);
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;
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
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)
};