17 while(slatmap.begin() != slatmap.end())
19 delete slatmap.begin()->second;
20 slatmap.erase(slatmap.begin());
28 map<unsigned int,PHG4ScintillatorSlat *>::const_iterator iter;
29 os <<
"Number of slats: " << size() << endl;
30 for (iter = slatmap.begin(); iter != slatmap.end(); ++iter)
32 os <<
"slat key 0x" << hex << iter->first << dec << endl;
33 (iter->second)->identify();
41 if(slatmap.find(key)!=slatmap.end())
43 cout <<
"PHG4ScintillatorSlatContainer::AddScintillatorSlatSpecifyKey: duplicate key: " << key <<
" exiting now" << endl;
47 slatmap[key] = newslat;
48 return slatmap.find(key);
57 cout <<
" column id too large: " << icolumn << endl;
66 retpair.first = slatmap.lower_bound(keylow);
67 retpair.second = slatmap.upper_bound(keyup);
73 {
return std::make_pair( slatmap.begin(), slatmap.end() ); }
81 if(it != slatmap.end())
93 double totalenergy = 0;
94 for (iter = slatmap.begin(); iter != slatmap.end(); ++iter)
96 totalenergy += iter->second->get_edep();