00001 #include "Alignment/CommonAlignment/interface/AlignableObjectId.h" 00002 #include "FWCore/Utilities/interface/Exception.h" 00003 #include "Alignment/CommonAlignment/interface/Counters.h" 00004 00005 using namespace align; 00006 00007 //__________________________________________________________________________________________________ 00008 Counter Counters::get(StructureType type) const 00009 { 00010 std::map<StructureType, Counter>::const_iterator n = theCounters.find(type); 00011 00012 if (theCounters.end() == n) 00013 { 00014 throw cms::Exception("SetupError") 00015 << "Cannot find counter corresponding to the structure " 00016 << AlignableObjectId().typeToName(type); 00017 } 00018 00019 return n->second; 00020 }