14 for(
const auto& pair:eventmap.
get_map() )
15 {
_map.insert(std::make_pair(pair.first, static_cast<PHHepMCGenEvent*>(pair.second->CloneMe()))); }
21 for(
const auto& pair:eventmap.
get_map() )
22 {
_map.insert(std::make_pair(pair.first, static_cast<PHHepMCGenEvent*>(pair.second->CloneMe()))); }
34 for(
const auto& pair:
_map )
45 os <<
"PHHepMCGenEventMap: size = " <<
_map.size() << std::endl;
47 for (
const auto& evt :
_map)
49 std::cout <<
"Event[" << evt.first <<
"] : ";
51 evt.second->identify();
60 if (iter ==
_map.end())
return nullptr;
67 if (iter ==
_map.end())
return nullptr;
73 const int index =
_map.empty() ? 1 : (
_map.rbegin()->first+1);
76 _map.insert(std::make_pair(index,newEvent));
82 const int index =
_map.empty() ? -1 : (
_map.begin()->first-1);
85 _map.insert(std::make_pair(index,newEvent));
93 auto ret =
_map.insert(std::make_pair(index, newEvent ));
94 if (ret.second ==
false)
97 <<
"PHHepMCGenEventMap::insert_event - Fatal Error -"
98 <<
"embedding ID " << index <<
" is already used in the PHHepMCGenEventMap. Print map:";