Skip to content

Commit 59a7f49

Browse files
committed
pvalue check on rho(phi)
1 parent f06e1ba commit 59a7f49

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

PWGJE/Tasks/jetSpectraEseTask.cxx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ struct JetSpectraEseTask {
111111
Configurable<std::vector<float>> cfgOccupancyPtCut{"cfgOccupancyPtCut", {0, 100}, "pT cut"};
112112

113113
Configurable<bool> cfgrhoPhi{"cfgrhoPhi", true, "Flag for rho(phi)"};
114+
Configurable<bool> cfgRhoPhiPvalCriteria{"cfgRhoPhiPvalCriteria", true, "Use <rho> instead of rho(phi) when the rho(phi) fit p-value is below 0.01"};
114115

115116
Configurable<int> cfgnTotalSystem{"cfgnTotalSystem", 7, "total qvector number // look in Qvector table for this number"};
116117
Configurable<int> cfgnCorrLevel{"cfgnCorrLevel", 3, "QVector step: 0 = no corr, 1 = rect, 2 = twist, 3 = full"};
@@ -345,6 +346,7 @@ struct JetSpectraEseTask {
345346

346347
registry.add("eventQA/before/hVtxZ", ";z_{vtx} (cm);entries", {HistType::kTH1F, {{vertexZAxis}}});
347348
registry.add("eventQA/after/hVtxZ", ";z_{vtx} (cm);entries", {HistType::kTH1F, {{vertexZAxis}}});
349+
registry.add("eventQA/hRhoPhiCheck", "event status;event status;entries", {HistType::kTH1F, {{2, 0.0, 2.0}}});
348350

349351
registry.get<TH1>(HIST("eventQA/hEventCounter"))->GetXaxis()->SetBinLabel(kFilteredInputEv, "Input filtered event");
350352
registry.get<TH1>(HIST("eventQA/hEventCounter"))->GetXaxis()->SetBinLabel(kEventSel, "Event selection");
@@ -1478,6 +1480,14 @@ struct JetSpectraEseTask {
14781480
return nullptr;
14791481

14801482
auto cDF = 1. - TMath::Gamma(nDF, chi2);
1483+
if constexpr (fillHist)
1484+
registry.fill(HIST("eventQA/hRhoPhiCheck"), 0.5);
1485+
if (cfgRhoPhiPvalCriteria && cDF < 0.01) {
1486+
modulationFit->SetParameter(1, 0.);
1487+
modulationFit->SetParameter(3, 0.);
1488+
if constexpr (fillHist)
1489+
registry.fill(HIST("eventQA/hRhoPhiCheck"), 1.5);
1490+
}
14811491

14821492
if constexpr (fillHist) {
14831493
registry.fill(HIST("eventQA/hPValueCentCDF"), col.centFT0M(), cDF);

0 commit comments

Comments
 (0)