File tree Expand file tree Collapse file tree
sbndcode/Geometry/GeometryWrappers Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ());
You can’t perform that action at this time.
0 commit comments