Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimum delta BC configurable for TPC selection #7836

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions DPG/Tasks/AOTEvent/matchingQa.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ struct MatchingQaTask {
Configurable<bool> useITSROFconstraint{"useITSROFconstraint", 1, "use ITS ROF constraints for ITS-TPC vertices"};
Configurable<int> additionalDeltaBC{"additionalDeltaBC", 0, "Additional BC margin added to deltaBC for ITS-TPC vertices"};
Configurable<int> deltaBCforTOFcollisions{"deltaBCforTOFcollisions", 1, "bc margin for TOF-matched collisions"};
Configurable<int> minimumDeltaBC{"minimumDeltaBC", -1, "minimum delta BC for ITS-TPC vertices"};

std::bitset<o2::constants::lhc::LHCMaxBunches> bcPatternB; // bc pattern of colliding bunches
int lastRun = -1;
Expand Down Expand Up @@ -102,6 +103,7 @@ struct MatchingQaTask {

histos.add("hBCsITS", "", kTH1F, {axisBcs});
histos.add("hNcontribCandidates", "", kTH1F, {axisNcontrib});
histos.add("hNcontribCounts", "", kTH1F, {axisNcontrib});
histos.add("hNcontribSigma", "", kTH2F, {axisNcontrib, axisColTimeRes});

histos.add("hNcontribAll", "", kTH1F, {axisNcontrib});
Expand Down Expand Up @@ -407,6 +409,10 @@ struct MatchingQaTask {

deltaBC += additionalDeltaBC;

if (minimumDeltaBC >= 0) {
deltaBC = deltaBC < minimumDeltaBC ? minimumDeltaBC : deltaBC;
}

int64_t minBC = tpcGlobalBC - deltaBC;
int64_t maxBC = tpcGlobalBC + deltaBC;

Expand Down Expand Up @@ -453,6 +459,7 @@ struct MatchingQaTask {
LOGP(info, "{} {}", minBC, maxBC);

histos.fill(HIST("hNcontribCandidates"), nContrib, nCandidates);
histos.fill(HIST("hNcontribCounts"), nContrib);

if (globalBcBest != 0)
vFoundBCindex[colId] = mapGlobalBcWithTVX[globalBcBest];
Expand Down
Loading