//-------------------------------------------------------------------------- // File and Version Information: // $Id:$ // // Description: // EMC Mapper. // This class uses the singleton pattern design // // Author List: // Dima Melnychuk // /////////////////////////////////////////////////////////////// #ifndef EMCMAPPER_H #define EMCMAPPER_H #include "TwoCoordIndex.h" #include "TObject.h" #include class EmcMapper: public TObject { public: static EmcMapper* Instance(int); const std::map& GetTciMap(); /** Destructor **/ virtual ~EmcMapper(); /** Accessors **/ Int_t GetMapVersion() const { return fMapVersion ;}; TwoCoordIndex* GetTCI(Int_t DetectorId); protected: EmcMapper(Int_t fMapVersion); private: static EmcMapper* _instance; Int_t GetDetId(Int_t iTheta,Int_t iPhi); Int_t fMapVersion; std::map fIntTwoCoordMap; ClassDef(EmcMapper,1) }; #endif //EmcMapper_H