9 while(layergeoms.begin() != layergeoms.end())
11 delete layergeoms.begin()->second;
12 layergeoms.erase(layergeoms.begin());
20 map<int,PHG4BlockCellGeom *>::const_iterator iter;
21 for (iter=layergeoms.begin(); iter != layergeoms.end(); ++iter)
23 cout <<
"layer " << iter->first << endl;
24 (iter->second)->identify(os);
32 if (layergeoms.find(i) != layergeoms.end())
34 cout <<
"layer " << i <<
" already added to PHBlockCellGeomContainer" << endl;
38 layergeoms[i] = mygeom;
46 if (layergeoms.find(layer) != layergeoms.end())
48 cout <<
"layer " << layer <<
" already added to PHBlockCellGeomContainer" << endl;
51 layergeoms[
layer] = mygeom;
58 map<int,PHG4BlockCellGeom *>::const_iterator iter = layergeoms.find(i);
59 if (iter != layergeoms.end())
63 cout <<
"Could not locate layer " << i <<
" in PHG4BlockCellGeomContainer" << endl;