![]() |
![]() |
00001 #ifndef TkHitPairsCellManager_H 00002 #define TkHitPairsCellManager_H 00003 #include "RecoTracker/TkHitPairs/interface/TkHitPairsCacheCell.h" 00004 00005 class TkHitPairsCellManager { 00006 public: 00007 TkHitPairsCellManager(int sizeX, int sizeY) 00008 : theNX(sizeX), theNY(sizeY) 00009 { theCells = new TkHitPairsCacheCell* [theNX]; 00010 for (int i=0; i<theNX; i++) theCells[i] = new TkHitPairsCacheCell[theNY]; } 00011 00012 ~TkHitPairsCellManager() 00013 { for (int i=0; i<theNX; i++) delete [] theCells[i]; delete [] theCells; } 00014 00015 TkHitPairsCacheCell & operator () (int ix, int iy) 00016 { return theCells[ix][iy]; } 00017 private: 00018 int theNX, theNY; 00019 TkHitPairsCacheCell ** theCells; 00020 }; 00021 #endif