CMS 3D CMS Logo

AlignableIndexer.cc
Go to the documentation of this file.
3 
4 using namespace align;
5 
6 //__________________________________________________________________________________________________
8  const AlignableObjectId& alignableObjectId) const
9 {
10  auto n = theCounters.find(type);
11 
12  if (theCounters.end() == n)
13  {
14  throw cms::Exception("AlignableBuildProcess")
15  << "Cannot find counter corresponding to the structure "
16  << alignableObjectId.idToString(type);
17  }
18 
19  return n->second;
20 }
type
Definition: HCALResponse.h:21
std::function< unsigned int(align::ID)> Counter
Allows conversion between type and name, and vice-versa.
virtual align::Counter get(align::StructureType, const AlignableObjectId &) const
Get a counter based on its structure type.
const char * idToString(align::StructureType type) const