File indexing completed on 2023-03-17 10:38:48
0001 #include "Alignment/CommonAlignment/interface/AlignableIndexer.h"
0002 #include "FWCore/Utilities/interface/Exception.h"
0003
0004 using namespace align;
0005
0006
0007 Counter AlignableIndexer::get(StructureType type, const AlignableObjectId& alignableObjectId) const {
0008 auto n = theCounters.find(type);
0009
0010 if (theCounters.end() == n) {
0011 throw cms::Exception("AlignableBuildProcess")
0012 << "Cannot find counter corresponding to the structure " << alignableObjectId.idToString(type);
0013 }
0014
0015 return n->second;
0016 }