1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include "DataFormats/Common/interface/DetSetVectorNew.h"
#include "FWCore/Utilities/interface/EDMException.h"
namespace edmNew {
namespace dstvdetails {
void errorFilling() {
throw edm::Exception(edm::errors::LogicError, "Instantiating a second DetSetVector::FastFiller")
<< "only one DetSetVector::FastFiller can be active at a given time!";
}
void notSafe() {
throw edm::Exception(edm::errors::LogicError, "Instantiating a DetSetVector::FastFiller for OnDemand")
<< "use DetSetVector::TSFastFiller";
}
void errorIdExists(det_id_type iid) {
throw edm::Exception(edm::errors::InvalidReference)
<< "DetSetVector::inserv called with index already in collection;\n"
<< "index value: " << iid;
}
void throw_range(det_id_type iid) {
throw edm::Exception(edm::errors::InvalidReference)
<< "DetSetVector::operator[] called with index not in collection;\n"
<< "index value: " << iid;
}
} // namespace dstvdetails
} // namespace edmNew
|