Skip to content

Commit 9bd81e4

Browse files
authored
Merge pull request #489 from SBNSoftware/feature/aheggest_eassignCRTPMTMatchIDinCAF_fixGP
CRTPMTMatching fix: remove unused counters
2 parents d6f3a30 + 67c896f commit 9bd81e4

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

sbncode/CAFMaker/CAFMaker_module.cc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,12 +1559,8 @@ void CAFMaker::produce(art::Event& evt) noexcept {
15591559
if(crtpmtmatch_handle.isValid()){
15601560
const std::vector<sbn::crt::CRTPMTMatching> &crtpmtmatches = *crtpmtmatch_handle;
15611561
for (unsigned i = 0; i < crtpmtmatches.size(); i++) {
1562-
int topen = 0, topex = 0, sideen = 0, sideex = 0; // bottomen = 0, bottomex = 0;
15631562
srcrtpmtmatches.emplace_back();
1564-
FillCRTPMTMatch(crtpmtmatches[i],
1565-
topen, topex, sideen, sideex,
1566-
//bottomen, bottomex,
1567-
srcrtpmtmatches.back());
1563+
FillCRTPMTMatch(crtpmtmatches[i], srcrtpmtmatches.back());
15681564
}
15691565
}
15701566

sbncode/CAFMaker/FillReco.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ namespace caf
141141
}
142142

143143
void FillCRTPMTMatch(const sbn::crt::CRTPMTMatching &match,
144-
int &topen, int &topex, int &sideen, int &sideex,
145-
//int &bottomen, int &bottomex,
146144
caf::SRCRTPMTMatch &srmatch,
147145
bool allowEmpty){
148146
// allowEmpty does not (yet) matter here
@@ -159,6 +157,7 @@ namespace caf
159157
srmatch.flashPosition = SRVector3D (match.flashPosition.X(), match.flashPosition.Y(), match.flashPosition.Z());
160158
srmatch.flashYWidth = match.flashYWidth;
161159
srmatch.flashZWidth = match.flashZWidth;
160+
unsigned int topen = 0, topex = 0, sideen = 0, sideex = 0;
162161
for(const auto& matchedCRTHit : match.matchedCRTHits){
163162
caf::SRMatchedCRT matchedCRT;
164163
matchedCRT.PMTTimeDiff = matchedCRTHit.PMTTimeDiff;

sbncode/CAFMaker/FillReco.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,6 @@ namespace caf
222222
caf::SROpFlash &srflash,
223223
bool allowEmpty = false);
224224
void FillCRTPMTMatch(const sbn::crt::CRTPMTMatching &match,
225-
int &topen, int &topex, int &sideen, int &sidex,
226-
//int &bottomen, int &bottomex,
227225
caf::SRCRTPMTMatch &srmatch,
228226
bool allowEmpty = false);
229227

0 commit comments

Comments
 (0)