Skip to content

Commit

Permalink
Remove sanity check which does not work with new geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkio committed Nov 6, 2024
1 parent a831543 commit a8b8bd7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/TMS_Bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,6 @@ bool TMS_Bar::FindModules(double xval, double yval, double zval) {
y = position[1];
z = position[2];

// Do a sanity check (CHEATING!)
// Know the bars are 1cm in z and 3.542cm in x
if (zw != 10 || (xw != 35.42 && yw != 35.42)) {
std::cerr << "width of " << NodeName << " not as expected!" << std::endl;
std::cerr << "xwidth: " << xw << std::endl;
std::cerr << "ywidth: " << yw << std::endl;
std::cerr << "zwidth: " << zw << std::endl;
throw;
}

}

else if (NodeName.find(TMS_Const::TMS_ModuleName) != std::string::npos) {
Expand Down

0 comments on commit a8b8bd7

Please sign in to comment.