Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include "Alignment/CommonAlignment/interface/AlignableIndexer.h"
#include "FWCore/Utilities/interface/Exception.h"

using namespace align;

//__________________________________________________________________________________________________
Counter AlignableIndexer::get(StructureType type, const AlignableObjectId& alignableObjectId) const {
  auto n = theCounters.find(type);

  if (theCounters.end() == n) {
    throw cms::Exception("AlignableBuildProcess")
        << "Cannot find counter corresponding to the structure " << alignableObjectId.idToString(type);
  }

  return n->second;
}