10 while(layergeoms.begin() != layergeoms.end())
12 delete layergeoms.begin()->second;
13 layergeoms.erase(layergeoms.begin());
21 map<int,PHG4CylinderCellGeom *>::const_iterator iter;
22 for (iter=layergeoms.begin(); iter != layergeoms.end(); ++iter)
24 cout <<
"layer " << iter->first << endl;
25 (iter->second)->identify(os);
33 if (layergeoms.find(i) != layergeoms.end())
35 cout <<
"layer " << i <<
" already added to PHCylinderCellGeomContainer" << endl;
39 layergeoms[i] = mygeom;
47 if (layergeoms.find(layer) != layergeoms.end())
49 cout <<
"layer " << layer <<
" already added to PHCylinderCellGeomContainer" << endl;
52 layergeoms[
layer] = mygeom;
59 map<int,PHG4CylinderCellGeom *>::const_iterator iter = layergeoms.find(i);
60 if (iter != layergeoms.end())
64 cout <<
"Could not locate layer " << i <<
" in PHG4CylinderCellGeomContainer" << endl;
71 if (layergeoms.empty())
75 return layergeoms.begin()->second;