CMS 3D CMS Logo

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