9 while (layergeoms.begin() != layergeoms.end())
11 delete layergeoms.begin()->second;
12 layergeoms.erase(layergeoms.begin());
19 map<int, PHG4BlockCellGeom *>::const_iterator iter;
20 for (iter = layergeoms.begin(); iter != layergeoms.end(); ++iter)
22 cout <<
"layer " << iter->first << endl;
30 if (layergeoms.find(i) != layergeoms.end())
32 cout <<
"layer " << i <<
" already added to PHBlockCellGeomContainer" << endl;
36 layergeoms[
i] = mygeom;
43 if (layergeoms.find(layer) != layergeoms.end())
45 cout <<
"layer " << layer <<
" already added to PHBlockCellGeomContainer" << endl;
48 layergeoms[
layer] = mygeom;
55 map<int, PHG4BlockCellGeom *>::const_iterator iter = layergeoms.find(i);
56 if (iter != layergeoms.end())
60 cout <<
"Could not locate layer " << i <<
" in PHG4BlockCellGeomContainer" << endl;