/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Authors: Oystein Djuvsland * * * * 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. * ************************************************************************** */ #ifndef ALIHLTPHOSGEOMETRY_H #define ALIHLTPHOSGEOMETRY_H #include "AliHLTCaloGeometry.h" #include "AliHLTLogging.h" #include "TClass.h" class AliPHOSGeoUtils; class AliHLTPHOSGeometry : public AliHLTCaloGeometry { public: /** Default constructor */ AliHLTPHOSGeometry (); //COMMENT /** Destructor */ virtual ~AliHLTPHOSGeometry (); //COMMENT /** Get the ALICE global coordinates for a rec point */ virtual void GetGlobalCoordinates ( AliHLTCaloRecPointDataStruct& recPoint, AliHLTCaloGlobalCoordinate& globalCoord, Int_t iParticle ); //COMMENT /** See base class for class documentation */ virtual void GetCellAbsId(UInt_t module, UInt_t x, UInt_t z, Int_t& AbsId); /** Intialise the geometry from the HCDB/OCDB */ virtual Int_t InitialiseGeometry() { return GetGeometryFromCDB(); } /** Convert rec point coordinates */ virtual void ConvertRecPointCoordinates(Float_t &x, Float_t &z) const; /** Convert absolute ID to local coordinates */ virtual void GetLocalCoordinatesFromAbsId(Int_t absId, Int_t& module, Int_t& x, Int_t& z); protected: Int_t GetGeometryFromCDB(); private: /** Geometry class from offline code */ AliPHOSGeoUtils *fGeoUtils; //! transient /** Copy constructor, not implemented */ AliHLTPHOSGeometry (const AliHLTPHOSGeometry&); //COMMENT /** Assignment operator, not implemented */ AliHLTPHOSGeometry & operator = (const AliHLTPHOSGeometry&); //COMMENT }; #endif // ALIHLTPHOSGEOMETRY_H