//-*- Mode: C++ -*- // $Id$ #ifndef ALIHLTPHOSMAPPER_H #define ALIHLTPHOSMAPPER_H /************************************************************************** * This file is property of and copyright by the Experimental Nuclear * * Physics Group, Dep. of Physics * * University of Oslo, Norway, 2006 * * * * Author: Per Thomas Hille perthi@fys.uio.no for the ALICE DCS Project. * * Contributors are mentioned in the code where appropriate. * * Please report bugs to perthi@fys.uio.no * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ //#include "AliHLTPHOSBase.h" //using namespace PhosHLTConst; #include "Rtypes.h" #include "AliHLTCaloMapper.h" #include "AliPHOSEMCAGeometry.h" struct AliHLTCaloCoordinate; struct AliHLTPHOSCoordinate; class AliHLTPHOSMapper : public AliHLTCaloMapper { public: AliHLTPHOSMapper(); virtual ~AliHLTPHOSMapper(); Bool_t InitAltroMapping(const unsigned long specification); void InitDDLSpecificationMapping(); bool GetIsInitializedMapping(); // char* GetFilePath(const int ddlId); Int_t GetChannelID(Int_t hwAddress); Int_t GetChannelID(AliHLTUInt32_t specification, Int_t hwAddress); //static void GetChannelCoord(const Int_t channelId, UShort_t* channelCoord); //static void ChannelId2Coordinate(const Int_t channelId, AliHLTCaloCoordinate &channelCoord ); //static void GetLocalCoord(const Int_t channelId, Float_t* localCoord); int GetDDLFromSpec(AliHLTUInt32_t specification); int GetModuleFromSpec(AliHLTUInt32_t specification); // struct fDDLSpecificationMap{ // UInt_t fRcuX; // Coordinate in Z direction (beam direction) relatve too one RCU // UInt_t fRcuZ; // Coordinate in X direction (perpendicular too beam direction an parallell to ground) relatve too one RCU // UInt_t fRcuXOffset; // UInt_t fRcuZOffset; // int fModId; // }; // fAltromap *fHw2geomapPtr; //pointer to structure holding information about geometrical address char fFilepath[1024]; private: bool fIsInitializedMapping; /** Flag for initialised DDL map */ bool fDDLMapInitialised; AliHLTPHOSMapper(const AliHLTPHOSMapper & ); AliHLTPHOSMapper & operator = (const AliHLTPHOSMapper &); // fDDLSpecificationMap* fSpecificationMapPtr; //AliPHOSEMCAGeometry fPHOSGeometry; Int_t fModuleId; int fDDLId; }; #endif