14 while(layergeoms.begin() != layergeoms.end())
16 delete layergeoms.begin()->second;
17 layergeoms.erase(layergeoms.begin());
25 map<int,PHG4BlockCellGeom *>::const_iterator iter;
26 for (iter=layergeoms.begin(); iter != layergeoms.end(); ++iter)
28 cout <<
"layer " << iter->first << endl;
29 (iter->second)->identify(os);
37 if (layergeoms.find(i) != layergeoms.end())
39 cout <<
"layer " << i <<
" already added to PHBlockCellGeomContainer" << endl;
43 layergeoms[i] = mygeom;
51 if (layergeoms.find(layer) != layergeoms.end())
53 cout <<
"layer " << layer <<
" already added to PHBlockCellGeomContainer" << endl;
56 layergeoms[layer] = mygeom;
63 map<int,PHG4BlockCellGeom *>::const_iterator iter = layergeoms.find(i);
64 if (iter != layergeoms.end())
68 cout <<
"Could not locate layer " << i <<
" in PHG4BlockCellGeomContainer" << endl;
int AddLayerCellGeom(const int i, PHG4BlockCellGeom *mygeom)
void identify(std::ostream &os=std::cout) const
PHG4BlockCellGeom * GetLayerCellGeom(const int i)
virtual ~PHG4BlockCellGeomContainer()
PHG4BlockCellGeomContainer()
void set_layer(const int i)