Skip to content
Snippets Groups Projects
Commit e9a58679 authored by Dominik Smith's avatar Dominik Smith Committed by Volker Friese
Browse files

CbmSeedFinderQa and CbmBuildEventsQa: All links are now assigned the same...

CbmSeedFinderQa and CbmBuildEventsQa: All links are now assigned the same weight when obtaining event matches from digi matches, since different detectors don't use the same scale.
parent 874be076
No related branches found
No related tags found
1 merge request!707T0 digi filter in event builder
......@@ -391,9 +391,11 @@ void CbmBuildEventsQa::MatchEvent(CbmEvent* event)
// --- N.b.: The member "index" of CbmLink has here no meaning, since
// --- there is only one MC event per tree entry.
for (int iLink = 0; iLink < digiMatch->GetNofLinks(); iLink++) {
int file = digiMatch->GetLink(iLink).GetFile();
int entry = digiMatch->GetLink(iLink).GetEntry();
Double_t weight = digiMatch->GetLink(iLink).GetWeight();
int file = digiMatch->GetLink(iLink).GetFile();
int entry = digiMatch->GetLink(iLink).GetEntry();
//Double_t weight = digiMatch->GetLink(iLink).GetWeight();
const double weight =
.00001; // assign the same weight to all links, since different detectors don't use the same scale
// LOG(info) << "Adding link (weight, entry, file): " << weight << " "
// << entry << " " << file;
match->AddLink(weight, 0, entry, file);
......
......@@ -94,8 +94,10 @@ void CbmSeedFinderQa::FillQaInfo(const int32_t WinStart, const int32_t WinEnd, c
for (int32_t iLink = 0; iLink < digiMatch->GetNofLinks(); iLink++) {
int32_t entry = digiMatch->GetLink(iLink).GetEntry();
if (entry == -1) { continue; } //ignore noise links
int32_t file = digiMatch->GetLink(iLink).GetFile();
double weight = digiMatch->GetLink(iLink).GetWeight();
int32_t file = digiMatch->GetLink(iLink).GetFile();
//double weight = digiMatch->GetLink(iLink).GetWeight();
const double weight =
.00001; // assign the same weight to all links, since different detectors don't use the same scale
// LOG(info) << "Adding link (number, weight, entry, file): " << iLink << " " << weight << " "
// << entry << " " << file;
seedMatch.AddLink(weight, 0, entry, file);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment