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,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 ());
You can’t perform that action at this time.
0 commit comments