Skip to content

Commit e991ac7

Browse files
committed
Revert "Merge remote-tracking branch 'origin/bugfix/hlay_crt_nwall_geom_for_reco' into develop"
This reverts commit e03e14a, reversing changes made to 4ed4a94.
1 parent 840df1b commit e991ac7

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

sbndcode/Geometry/GeometryWrappers/CRTGeoAlg.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,18 +166,17 @@ namespace sbnd::crt {
166166
double modulePosMother[3];
167167
moduleNode->LocalToMaster(origin, modulePosMother);
168168

169-
if(CRTCommonUtils::GetTaggerEnum(taggerName) == kNorthTagger)
170-
orientation = _adID == 70 || (modulePosMother[2] < 8.9);
171-
else if(_minos || _adID == 139)
169+
if(_minos || _adID == 70 || _adID == 139)
172170
orientation = (modulePosMother[2] < 0);
173171
else
174172
orientation = (modulePosMother[2] > 0);
175173

176174
// Location of SiPMs
177-
if(CRTCommonUtils::GetTaggerEnum(taggerName) == kSouthTagger || (CRTCommonUtils::GetTaggerEnum(taggerName) == kNorthTagger && _adID != 82))
178-
top = (orientation == 0) ? (modulePosMother[1] < 0) : (modulePosMother[0] > 0);
179-
else
175+
if(CRTCommonUtils::GetTaggerEnum(taggerName) == kBottomTagger || CRTCommonUtils::GetTaggerEnum(taggerName) == kNorthTagger
176+
|| CRTCommonUtils::GetTaggerEnum(taggerName) == kWestTagger || CRTCommonUtils::GetTaggerEnum(taggerName) == kEastTagger)
180177
top = (orientation == 1) ? (modulePosMother[1] < 0) : (modulePosMother[0] > 0);
178+
else
179+
top = (orientation == 0) ? (modulePosMother[1] < 0) : (modulePosMother[0] > 0);
181180

182181
// Fill edges
183182
minX = std::min(limitsWorld.X(), limitsWorld2.X());

0 commit comments

Comments
 (0)