Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:55

0001 #include "DataFormats/Common/interface/DetSetVectorNew.h"
0002 #include "FWCore/Utilities/interface/EDMException.h"
0003 
0004 namespace edmNew {
0005   namespace dstvdetails {
0006     void errorFilling() {
0007       throw edm::Exception(edm::errors::LogicError, "Instantiating a second DetSetVector::FastFiller")
0008           << "only one DetSetVector::FastFiller can be active at a given time!";
0009     }
0010 
0011     void notSafe() {
0012       throw edm::Exception(edm::errors::LogicError, "Instantiating a DetSetVector::FastFiller for OnDemand")
0013           << "use DetSetVector::TSFastFiller";
0014     }
0015 
0016     void errorIdExists(det_id_type iid) {
0017       throw edm::Exception(edm::errors::InvalidReference)
0018           << "DetSetVector::inserv called with index already in collection;\n"
0019           << "index value: " << iid;
0020     }
0021 
0022     void throw_range(det_id_type iid) {
0023       throw edm::Exception(edm::errors::InvalidReference)
0024           << "DetSetVector::operator[] called with index not in collection;\n"
0025           << "index value: " << iid;
0026     }
0027 
0028   }  // namespace dstvdetails
0029 }  // namespace edmNew