CMS 3D CMS Logo

AlignableMap.cc
Go to the documentation of this file.
2 
5 
6 //_____________________________________________________________________________
8 
9 //_____________________________________________________________________________
11  typename Container::iterator o = theStore.find(name);
12 
13  if (theStore.end() == o) {
14  std::ostringstream knownKeys;
15  for (auto it = theStore.begin(); it != theStore.end(); ++it) {
16  knownKeys << (it != theStore.begin() ? ", " : "") << it->first;
17  }
18 
19  throw cms::Exception("AlignableMapError") << "Cannot find an object of name " << name << " in AlignableMap, "
20  << "know only " << knownKeys.str() << ".";
21  }
22 
23  return o->second;
24 }
25 
26 //_____________________________________________________________________________
27 void AlignableMap::dump(void) const {
28  edm::LogInfo("AlignableMap") << "Printing out AlignSetup: ";
29  for (typename Container::const_iterator it = theStore.begin(); it != theStore.end(); ++it) {
30  edm::LogVerbatim("AlignableMap") << it->first << std::endl;
31  }
32 }
align::Alignables & get(const std::string &name="")
Definition: AlignableMap.cc:7
align::Alignables & find(const std::string &name="")
Definition: AlignableMap.cc:10
void dump(void) const
Print the name of all stored data.
Definition: AlignableMap.cc:27
std::vector< Alignable * > Alignables
Definition: Utilities.h:31
Container theStore
Definition: AlignableMap.h:46