X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=RAW%2FAliAltroMapping.h;h=d3c988b0d5036b5697724fc08379b3d0a28fc502;hb=70da18af617fa7c3993fcfb75c4d894f2514046f;hp=4082d58067380b5ae6f5248a703bf49f8ce2eb6a;hpb=16e29964cd3f9eebb0ba2d3724f76e3bb66ec0b4;p=u%2Fmrichter%2FAliRoot.git diff --git a/RAW/AliAltroMapping.h b/RAW/AliAltroMapping.h index 4082d580673..d3c988b0d50 100644 --- a/RAW/AliAltroMapping.h +++ b/RAW/AliAltroMapping.h @@ -14,28 +14,33 @@ class AliAltroMapping: public TObject { public: + AliAltroMapping(); AliAltroMapping(const char *mappingFile); virtual ~AliAltroMapping(); - AliAltroMapping(const AliAltroMapping& mapping); - AliAltroMapping& operator = (const AliAltroMapping& mapping); - - virtual Int_t GetHWAdress(Int_t padrow, Int_t pad, Int_t sector) const = 0; - virtual Int_t GetPadRow(Int_t hwAdress) const = 0; - virtual Int_t GetPad(Int_t hwAdress) const = 0; - virtual Int_t GetSector(Int_t hwAdress) const = 0; + virtual Int_t GetHWAddress(Int_t padrow, Int_t pad, Int_t sector) = 0; + virtual Int_t GetPadRow(Int_t hwAddress) const = 0; + virtual Int_t GetPad(Int_t hwAddress) const = 0; + virtual Int_t GetSector(Int_t hwAddress) const = 0; protected: - Bool_t OpenMappingFile(const char *mappingFile); - Bool_t CloseMappingFile(); + void CloseMappingFile(); virtual Bool_t ReadMapping() = 0; - virtual void DeleteMappingArrays() = 0; + virtual Bool_t CreateInvMapping() = 0; - ifstream *fIn; // External mapping file + ifstream *fIn; //! External mapping file Int_t fNumberOfChannels; // Number of ALTRO channels - Int_t fMaxHWAdress; // Maximum HW adress + Int_t fMaxHWAddress; // Maximum HW adress + Int_t fMappingSize; // Size of the mapping array, used by the streamer of derived classes + Short_t *fMapping; //[fMappingSize] Array which connects hardware adresses to detector element indices + + private: + Bool_t OpenMappingFile(const char *mappingFile); + + AliAltroMapping(const AliAltroMapping& mapping); + AliAltroMapping& operator = (const AliAltroMapping& mapping); - ClassDef(AliAltroMapping,0) // Altro mapping handler class + ClassDef(AliAltroMapping,4) // Altro mapping handler class }; #endif