CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/DataFormats/Common/src/DetSetVectorNew.cc

Go to the documentation of this file.
00001 #include "DataFormats/Common/interface/DetSetVectorNew.h"
00002 #include "FWCore/Utilities/interface/EDMException.h"
00003 
00004 namespace edmNew {
00005   namespace dstvdetails {
00006     void errorFilling() {
00007       throw edm::Exception(edm::errors::LogicError,"Instantiating a second DetSetVector::FastFiller")
00008         << "only one DetSetVector::FastFiller can be active at a given time!";
00009     }
00010     void errorIdExists(det_id_type iid) {
00011       throw edm::Exception(edm::errors::InvalidReference)
00012         << "DetSetVector::inserv called with index already in collection;\n"
00013         << "index value: " << iid;
00014     }
00015 
00016     void throw_range(det_id_type iid) {
00017       throw edm::Exception(edm::errors::InvalidReference)
00018         << "DetSetVector::operator[] called with index not in collection;\n"
00019         << "index value: " << iid;
00020     }
00021  
00022   }
00023 }