Skip to content

Commit

Permalink
Update Setup.cc (cms-sw#129)
Browse files Browse the repository at this point in the history
Change trackerDTC::Setup to tt::Setup . (Bug fix)
  • Loading branch information
tomalin committed Jun 10, 2022
1 parent 16ae6f8 commit f8033ef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions L1Trigger/TrackTrigger/src/Setup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ namespace tt {
const double dPhi = sigma + scat + extra + digi;
if (dPhi >= maxdPhi_ || dPhi < mindPhi_) {
cms::Exception exception("out_of_range");
exception.addContext("trackerDTC::Setup::dPhi");
exception.addContext("tt::Setup::dPhi");
exception << "Stub phi uncertainty " << dPhi << " "
<< "is out of range " << mindPhi_ << " to " << maxdPhi_ << ".";
throw exception;
Expand All @@ -571,7 +571,7 @@ namespace tt {
const double dZ = sigma + digi;
if (dZ >= maxdZ_ || dZ < mindZ_) {
cms::Exception exception("out_of_range");
exception.addContext("trackerDTC::Setup::dZ");
exception.addContext("tt::Setup::dZ");
exception << "Stub z uncertainty " << dZ << " "
<< "is out of range " << mindZ_ << " to " << maxdZ_ << ".";
throw exception;
Expand Down Expand Up @@ -796,7 +796,7 @@ namespace tt {
void Setup::checkDTCId(int dtcId) const {
if (dtcId < 0 || dtcId >= numDTCsPerRegion_ * numRegions_) {
cms::Exception exception("out_of_range");
exception.addContext("trackerDTC::Setup::checkDTCId");
exception.addContext("tt::Setup::checkDTCId");
exception << "Used DTC Id (" << dtcId << ") "
<< "is out of range 0 to " << numDTCsPerRegion_ * numRegions_ - 1 << ".";
throw exception;
Expand All @@ -807,7 +807,7 @@ namespace tt {
void Setup::checkTKLayoutId(int tkLayoutId) const {
if (tkLayoutId <= 0 || tkLayoutId > numDTCsPerRegion_ * numRegions_) {
cms::Exception exception("out_of_range");
exception.addContext("trackerDTC::Setup::checkTKLayoutId");
exception.addContext("tt::Setup::checkTKLayoutId");
exception << "Used TKLayout Id (" << tkLayoutId << ") "
<< "is out of range 1 to " << numDTCsPerRegion_ * numRegions_ << ".";
throw exception;
Expand All @@ -820,7 +820,7 @@ namespace tt {
const bool oorChannel = tfpChannel >= numDTCsPerTFP_ || tfpChannel < 0;
if (oorRegion || oorChannel) {
cms::Exception exception("out_of_range");
exception.addContext("trackerDTC::Setup::checkTFPIdentifier");
exception.addContext("tt::Setup::checkTFPIdentifier");
if (oorRegion)
exception << "Requested Processing Region "
<< "(" << tfpRegion << ") "
Expand Down

0 comments on commit f8033ef

Please sign in to comment.