Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:44:35

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 }