CMS 3D CMS Logo

TkHitPairsCellManager.h

Go to the documentation of this file.
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

Generated on Tue Jun 9 17:45:49 2009 for CMSSW by  doxygen 1.5.4