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 authored Feb 10, 2022
1 parent f37cb93 commit 10386e3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions L1Trigger/TrackTrigger/src/Setup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,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 @@ -568,7 +568,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 @@ -793,7 +793,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 @@ -804,7 +804,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 @@ -817,7 +817,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 All @@ -830,4 +830,4 @@ namespace tt {
}
}

} // namespace tt
} // namespace tt

0 comments on commit 10386e3

Please sign in to comment.