Skip to content

Commit 79d59dc

Browse files
Merge pull request #634 from SBNSoftware/bugfix/hlay_crt_nwall_geom_for_reco
CRT North Wall Reco Bugfix
2 parents 1827cb6 + ac7dd5d commit 79d59dc

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

sbndcode/Geometry/GeometryWrappers/CRTGeoAlg.h

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

169-
if(_minos || _adID == 70 || _adID == 139)
169+
if(CRTCommonUtils::GetTaggerEnum(taggerName) == kNorthTagger)
170+
orientation = _adID == 70 || (modulePosMother[2] < 8.9);
171+
else if(_minos || _adID == 139)
170172
orientation = (modulePosMother[2] < 0);
171173
else
172174
orientation = (modulePosMother[2] > 0);
173175

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

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

0 commit comments

Comments
 (0)