Skip to content

Commit

Permalink
Merge pull request #46 from DUNE/AsaNehm-patch-2
Browse files Browse the repository at this point in the history
Clarified bar structure in TMS_Bar.cpp
  • Loading branch information
LiamOS authored Dec 12, 2023
2 parents e1fe91a + 8bec617 commit 5ca8b51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/TMS_Bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ bool TMS_Bar::FindModules(double xval, double yval, double zval) {
if (NodeName.find(TMS_Const::TMS_ModuleLayerName) != std::string::npos) {
PlaneNumber = geom->GetCurrentNode()->GetNumber();
// There are two rotations of bars, and their names are literally "modulelayervol1" and "modulelayervol2"
if (NodeName.find(TMS_Const::TMS_ModuleLayerName1) != std::string::npos) BarOrient = kYBar;
else if (NodeName.find(TMS_Const::TMS_ModuleLayerName2) != std::string::npos) BarOrient = kVBar;
else if (NodeName.find(TMS_Const::TMS_ModuleLayerName3) != std::string::npos) BarOrient = kXBar;
else if (NodeName.find(TMS_Const::TMS_ModuleLayerName4) != std::string::npos) BarOrient = kUBar;
if (NodeName.find(TMS_Const::TMS_ModuleLayerName1) != std::string::npos) BarOrient = kYBar; // Pure y orientation(?)
else if (NodeName.find(TMS_Const::TMS_ModuleLayerName2) != std::string::npos) BarOrient = kVBar; // 6 degrees rotated/tilted from kYBar orientation
else if (NodeName.find(TMS_Const::TMS_ModuleLayerName3) != std::string::npos) BarOrient = kXBar; // not yet implemented!
else if (NodeName.find(TMS_Const::TMS_ModuleLayerName4) != std::string::npos) BarOrient = kUBar; // not yet implemented!
else {
std::cout<<"Error: Do not understand TMS_ModuleLayerName '"<<NodeName<<"'. This bar will have type kError."<<std::endl;
BarOrient = kError;
Expand Down

0 comments on commit 5ca8b51

Please sign in to comment.