CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 }
Log< level::Info, true > LogVerbatim
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
Log< level::Info, false > LogInfo
std::vector< Alignable * > Alignables
Definition: Utilities.h:31
Container theStore
Definition: AlignableMap.h:46