#include <FullHistoryToReducedHistoryMap.h>
edm::FullHistoryToReducedHistoryMap::FullHistoryToReducedHistoryMap |
( |
| ) |
|
Use to obtain reduced ProcessHistoryID's from full ProcessHistoryID's.
Definition at line 23 of file FullHistoryToReducedHistoryMap.cc.
References cache_, edm::hlt::Exception, edm::detail::ThreadSafeRegistry< KEY, T, E >::getMapped(), edm::ProcessHistory::id(), edm::detail::ThreadSafeRegistry< KEY, T, E >::instance(), edm::errors::LogicError, previous_, edm::ProcessHistory::reduce(), PhysicsTools::registry, and query::result.
Referenced by edm::SubProcess::beginRun(), and edm::IndexIntoFile::reduceProcessHistoryIDs().
25 Map::const_iterator iter =
cache_.find(fullID);
26 if (iter !=
cache_.end()) {
32 if (!registry->getMapped(fullID, ph)) {
34 <<
"FullHistoryToReducedHistoryMap::reduceProcessHistoryID\n"
35 <<
"ProcessHistory not found in registry\n"
36 <<
"Contact a Framework developer\n";
39 std::pair<ProcessHistoryID, ProcessHistoryID> newEntry(fullID, ph.id());
40 std::pair<Map::iterator, bool>
result =
cache_.insert(newEntry);
42 return result.first->second;
Map::const_iterator previous_
static ThreadSafeRegistry * instance()
edm::detail::ThreadSafeRegistry< edm::ProcessHistoryID, edm::ProcessHistory, edm::FullHistoryToReducedHistoryMap > ProcessHistoryRegistry
Map edm::FullHistoryToReducedHistoryMap::cache_ |
|
private |
Map::const_iterator edm::FullHistoryToReducedHistoryMap::previous_ |
|
private |