Skip to content

Commit bafd732

Browse files
authored
Merge pull request #770 from SBNSoftware/fixCRTPMTProduction
This fixed a CRTPMTMatchingProducer bug.
2 parents ad24518 + 68777d8 commit bafd732

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

icaruscode/CRT/CRTPMTMatchingAna_module.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ icarus::crt::MatchedCRT CRTHitmatched(
158158
MatchType = exTop;
159159
else if (topen == 0 && sideen == 0 && topex == 0 && sideex == 1)
160160
MatchType = exSide;
161-
else if (topen >= 1 && sideen >= 1 && topex == 0 && sideex == 0)
161+
else if (topen >= 1 && sideen == 0 && topex == 0 && sideex == 0)
162162
MatchType = enTop_mult;
163-
else if (topen >= 1 && sideen >= 1 && topex == 0 && sideex >= 1)
163+
else if (topen >= 1 && sideen == 0 && topex == 0 && sideex >= 1)
164164
MatchType = enTop_exSide_mult;
165165
else
166166
MatchType = others;

icaruscode/CRT/CRTPMTMatchingProducer_module.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ namespace sbn::crt {
596596
= thisRelGateTime > inBeamMin && thisRelGateTime < inBeamMax;
597597

598598
icarus::crt::CRTMatches const crtMatches = icarus::crt::CRTHitmatched(
599-
firstOpHitPeakTime, flash_pos, crtHitList, fTimeOfFlightInterval, isRealData, fGlobalT0Offset, fMatchBottomCRT);
599+
tflash, flash_pos, crtHitList, fTimeOfFlightInterval, isRealData, fGlobalT0Offset, fMatchBottomCRT);
600600

601601
std::vector<MatchedCRT> thisFlashCRTmatches;
602602
std::vector<art::Ptr<sbn::crt::CRTHit>> CRTPtrs; // same order as thisFlashCRTmatches

icaruscode/CRT/CRTUtils/CRTPMTMatchingUtils.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ icarus::crt::CRTMatches icarus::crt::CRTHitmatched(
109109
else if (topen == 0 && sideen == 0 && topex == 0 && sideex == 1)
110110
if(bottomex==0 && bottomen==1) flashType = MatchType::exSide_enBottom;
111111
else flashType = MatchType::exSide;
112-
else if (topen >= 1 && sideen >= 1 && topex == 0 && sideex == 0) // could also add `if (MatchBottomCRT)` here
112+
else if (topen >= 1 && sideen == 0 && topex == 0 && sideex == 0) // could also add `if (MatchBottomCRT)` here
113113
flashType = MatchType::enTop_mult;
114-
else if (topen >= 1 && sideen >= 1 && topex == 0 && sideex >= 1) // and here
114+
else if (topen >= 1 && sideen == 0 && topex == 0 && sideex >= 1) // and here
115115
flashType = MatchType::enTop_exSide_mult;
116116
else
117117
flashType = MatchType::others;

0 commit comments

Comments
 (0)