Skip to content

Commit 035044a

Browse files
Merge branch 'master' into master
2 parents 5f1da88 + 2f2f907 commit 035044a

38 files changed

+2196
-1473
lines changed

Common/Tasks/qVectorsCorrection.cxx

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,11 @@ struct qVectorsCorrection {
180180

181181
AxisSpec axisShift = {10, 0, 10, "shift"};
182182
AxisSpec axisBasis = {20, 0, 20, "basis"};
183+
AxisSpec axisVertex = {220, -11, 11, "vertex"};
183184

184-
histosQA.add("histCentFull", "Centrality distribution for valid events",
185-
HistType::kTH1F, {axisCent});
185+
histosQA.add("histCentFull", "Centrality distribution for valid events", HistType::kTH1F, {axisCent});
186+
histosQA.add("histCentSelected", "Centrality distribution for valid events", HistType::kTH1F, {axisCent});
187+
histosQA.add("histVtxSelected", "Centrality distribution for valid events", HistType::kTH1F, {axisVertex});
186188

187189
for (uint i = 0; i < cfgnMods->size(); i++) {
188190
histosQA.add(Form("histQvecUncorV%d", cfgnMods->at(i)), "", {HistType::kTH3F, {axisQvecF, axisQvecF, axisCent}});
@@ -268,6 +270,10 @@ struct qVectorsCorrection {
268270
int RefAInd = RefAId * 4 + cfgnTotalSystem * 4 * (nmode - 2) + 3;
269271
int RefBInd = RefBId * 4 + cfgnTotalSystem * 4 * (nmode - 2) + 3;
270272

273+
if (vec.qvecAmp()[DetId] < 1e-8 || vec.qvecAmp()[RefAId] < 1e-8 || vec.qvecAmp()[RefBId] < 1e-8) {
274+
return;
275+
}
276+
271277
if (nmode == 2) {
272278
for (int ishift = 1; ishift <= 10; ishift++) {
273279
histosQA.fill(HIST("histShiftV2"), vec.cent(), 2.0 * DetId + 0.5, ishift - 0.5, TMath::Sin(ishift * static_cast<float>(nmode) * TMath::ATan2(vec.qvecIm()[DetInd], vec.qvecRe()[DetInd]) / static_cast<float>(nmode)));
@@ -311,6 +317,10 @@ struct qVectorsCorrection {
311317
int RefAInd = RefAId + cfgnTotalSystem * (nmode - 2);
312318
int RefBInd = RefBId + cfgnTotalSystem * (nmode - 2);
313319

320+
if (coll.qvecAmp()[DetId] < 1e-8 || coll.qvecAmp()[RefAId] < 1e-8 || coll.qvecAmp()[RefBId] < 1e-8) {
321+
return;
322+
}
323+
314324
for (auto& trk : track) {
315325
if (!SelTrack(trk)) {
316326
continue;
@@ -424,6 +434,11 @@ struct qVectorsCorrection {
424434
int DetInd = DetId + cfgnTotalSystem * (nmode - 2);
425435
int RefAInd = RefAId + cfgnTotalSystem * (nmode - 2);
426436
int RefBInd = RefBId + cfgnTotalSystem * (nmode - 2);
437+
438+
if (vec.qvecAmp()[DetId] < 1e-8 || vec.qvecAmp()[RefAId] < 1e-8 || vec.qvecAmp()[RefBId] < 1e-8) {
439+
return;
440+
}
441+
427442
if (nmode == 2) {
428443
histosQA.fill(HIST("histQvecFinalV2"), vec.qvecShiftedRe()[DetInd], vec.qvecShiftedIm()[DetInd], vec.cent());
429444
histosQA.fill(HIST("histEvtPlFinalV2"), helperEP.GetEventPlane(vec.qvecShiftedRe()[DetInd], vec.qvecShiftedIm()[DetInd], nmode), vec.cent());
@@ -723,6 +738,8 @@ struct qVectorsCorrection {
723738
if (qVec.trackOccupancyInTimeRange() > cfgMaxOccupancy || qVec.trackOccupancyInTimeRange() < cfgMinOccupancy)
724739
return;
725740
}
741+
histosQA.fill(HIST("histCentSelected"), qVec.cent());
742+
histosQA.fill(HIST("histVtxSelected"), qVec.posZ());
726743

727744
if (cfgShiftCorPrep) {
728745
for (uint i = 0; i < cfgnMods->size(); i++) {
@@ -768,6 +785,8 @@ struct qVectorsCorrection {
768785
if (qVec.trackOccupancyInTimeRange() > cfgMaxOccupancy || qVec.trackOccupancyInTimeRange() < cfgMinOccupancy)
769786
return;
770787
}
788+
histosQA.fill(HIST("histCentSelected"), qVec.cent());
789+
histosQA.fill(HIST("histVtxSelected"), qVec.posZ());
771790

772791
for (uint i = 0; i < cfgnMods->size(); i++) {
773792
fillHistosQvecWithSC(qVec, cfgnMods->at(i));

Common/Tasks/qaMuon.cxx

Lines changed: 171 additions & 78 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)