PbScIndexer.h

Go to the documentation of this file.
00001 #ifndef  __PBSCINDEXER_H__
00002 #define  __PBSCINDEXER_H__
00003 
00004 #ifndef __EMCINDEXER_H__
00005 #include "EmcIndexer.h"
00006 #endif
00007 
00008 // 
00009 // //////////////////////////////////////////////////////////////////////////////// 
00010 // E.Kistenev         6/10/99 
00011 // send comments to kistenev@bnl.gov 
00012 //                    6/11/99 - removed external at the end of this file ????
00013 // ///////////////////////////////////////////////////////////////////////////////
00018 class PbScIndexer : public EmcIndexer
00019 {
00020  public:
00022   static PbScIndexer * buildPbScIndexer();
00024   static int deletePbScIndexer();
00026   int   xySMiSM(int x, int y);
00028   void  SMxySM(int , int &, int &);  
00030   int   xySTiST(int x, int y) {return y*72+x;}
00032   int   SMxySMTiST(int , int , int );  
00034   int   SMiSMTiST(int , int );
00036   void  iSTxyST(int const , int &, int &); 
00038   int   xySMTiSMT(int x, int y) {return y*12+x;}  
00040   void  iST_SMInd(int const , int &, int &, int &, int &);
00041 
00042  protected:
00043  PbScIndexer();
00044  virtual ~PbScIndexer();
00045 
00046  private:
00047   static PbScIndexer * single;
00048   static int access_count;
00049 };
00050 //extern PbScIndexer    * gPbSc;
00051 #endif