Skip to content
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
2 changes: 1 addition & 1 deletion DPG/Tasks/AOTEvent/matchingQa.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
float bcNS = o2::constants::lhc::LHCBunchSpacingNS;
int32_t nBCsPerOrbit = o2::constants::lhc::LHCMaxBunches;

MetadataHelper metadataInfo; // Metadata helper
o2::common::core::MetadataHelper metadataInfo; // Metadata helper

struct MatchingQaTask {
Service<o2::ccdb::BasicCCDBManager> ccdb;
Expand Down Expand Up @@ -286,7 +286,7 @@
mapGlobalBcVtxZ2[globalBC] = ft0.posZ();
mapGlobalBcMultT0C[globalBC] = ft0.sumAmpC();
}
if (fabs(ft0.timeA()) < 1 && fabs(ft0.timeC()) < 1) {

Check failure on line 289 in DPG/Tasks/AOTEvent/matchingQa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
mapGlobalBcWithT0B[globalBC] = bc.globalIndex();
}
}
Expand Down Expand Up @@ -361,7 +361,7 @@
int32_t foundBC = findClosest(tofGlobalBC, mapGlobalBcWithTVX);
int64_t foundGlobalBC = bcs.iteratorAt(foundBC).globalBC();
// todo: check what to do if foundBC is too far from tofGlobalBC
if (fabs(foundGlobalBC - tofGlobalBC) > deltaBCforTOFcollisions) {

Check failure on line 364 in DPG/Tasks/AOTEvent/matchingQa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
foundBC = -1;
int32_t nContrib = col.numContrib();
if (nContrib > 100) {
Expand Down Expand Up @@ -416,7 +416,7 @@
int64_t maxBC = tpcGlobalBC + deltaBC;
int32_t nContrib = col.numContrib();
float zVtxCol = col.posZ();
float zVtxSigma = 2.7 * pow(nContrib, -0.466) + 0.024;

Check failure on line 419 in DPG/Tasks/AOTEvent/matchingQa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
zVtxSigma += 1.0; // additional uncertainty due to imperfectections of FT0 time calibration

// todo: check upper bound
Expand All @@ -432,8 +432,8 @@
float zVtxDiff = zVtxFT0 - zVtxCol;
float bcDiff = tpcGlobalBC - globalBC;
float chi2 = 0;
chi2 += useVtxDiff ? pow(zVtxDiff / zVtxSigma, 2) : 0.;

Check failure on line 435 in DPG/Tasks/AOTEvent/matchingQa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
chi2 += useTimeDiff ? pow(bcDiff / (deltaBCforHighPtTracks / 3.), 2) : 0.;

Check failure on line 436 in DPG/Tasks/AOTEvent/matchingQa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.

if (chi2 < bestChi2) {
bestChi2 = chi2;
Expand Down Expand Up @@ -465,7 +465,7 @@
int64_t globalBC = bc.globalBC();

float weightedTime = vTPCtracksSumWeightedTimes[colId] / vTPCtracksSumWeights[colId];
float weightedSigma = sqrt(1. / vTPCtracksSumWeights[colId]);

Check failure on line 468 in DPG/Tasks/AOTEvent/matchingQa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.

int64_t minROF = 0;
int64_t maxROF = 0;
Expand Down Expand Up @@ -494,7 +494,7 @@
sumW += w;
}
weightedTime = sumTime / sumW;
weightedSigma = sqrt(1. / sumW);

Check failure on line 497 in DPG/Tasks/AOTEvent/matchingQa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
}

int64_t deltaBC = std::ceil(weightedSigma / bcNS * 3);
Expand Down Expand Up @@ -522,7 +522,7 @@

int32_t nContrib = col.numContrib();
float zVtxCol = col.posZ();
float zVtxSigma = 2.7 * pow(nContrib, -0.466) + 0.024;

Check failure on line 525 in DPG/Tasks/AOTEvent/matchingQa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
zVtxSigma += 1.0; // additional uncertainty due to imperfectections of FT0 time calibration

// QA
Expand All @@ -541,8 +541,8 @@
float zVtxDiff = zVtxFT0 - zVtxCol;
float timeDiff = bcNS * (tpcGlobalBC - globalBC);
float chi2 = 0;
chi2 += useVtxDiff ? pow(zVtxDiff / zVtxSigma, 2) : 0.;

Check failure on line 544 in DPG/Tasks/AOTEvent/matchingQa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
chi2 += useTimeDiff ? pow(timeDiff / weightedSigma, 2) : 0.;

Check failure on line 545 in DPG/Tasks/AOTEvent/matchingQa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.

if (chi2 < bestChi2) {
bestChi2 = chi2;
Expand Down
Loading