Skip to content
Snippets Groups Projects

Bugfix for CbmSeedFinderQa

Merged Dominik Smith requested to merge d.smith/cbmroot:TriggerQaFix into master
All threads resolved!
1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
@@ -156,7+156,7 @@
else {
fvEventMatches.push_back(seedMatch);
fvEventMatchesPerTs.push_back(seedMatch);
}
//correct digis in seed window
for (int32_t iDigi = WinStart; iDigi <= WinEnd; iDigi++) {
@@ -202,7+202,7 @@
for (uint32_t iSeed = 0; iSeed < fvEventMatchesPerTs.size(); iSeed++) {
const CbmMatch eventMatch = fvEventMatchesPerTs.at(iSeed);
const CbmLink matchedLink = eventMatch.GetMatchedLink();
if (fEventList->GetEventIndex(matchedLink) == -1) { continue; }
for (int32_t iLink = 0; iLink < eventMatch.GetNofLinks(); iLink++) {
const CbmLink eventLink = eventMatch.GetLink(iLink);
vLinkedTriggersPerMCEvent[fEventList->GetEventIndex(eventLink)]++;
}
const CbmLink matchedLink = eventMatch.GetMatchedLink();
vMatchedTriggersPerMCEvent[fEventList->GetEventIndex(matchedLink)]++;
}
for (uint32_t iSeed = 0; iSeed < fvEventMatchesPerTs.size(); iSeed++) {
const CbmMatch eventMatch = fvEventMatchesPerTs.at(iSeed);
const CbmLink matchedLink = eventMatch.GetMatchedLink();
if (fEventList->GetEventIndex(matchedLink) == -1) { continue; }
if (vMatchedTriggersPerMCEvent[fEventList->GetEventIndex(matchedLink)] == 1) {
const double seedTime = fvSeedTimesPerTs[iSeed];
const double timeDiff = seedTime - fEventList->GetEventTime(matchedLink.GetEntry(), matchedLink.GetFile());
Loading