Skip to content

Commit 552bd25

Browse files
committed
Fix for centralityQa
1 parent 2ff2570 commit 552bd25

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

‎Common/Tasks/centralityQa.cxx‎

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,9 @@ struct CentralityQa {
306306

307307
est.hCentrality = dynamic_cast<TH1*>(hCentralityObjects->FindObject(Form("hCalibZeq%s", est.name.c_str())));
308308
if (!est.hCentrality) {
309-
LOGF(info, "Calibration missing for %s", est.name.c_str());
309+
LOGF(debug, "Calibration missing for %s", est.name.c_str());
310310
} else {
311-
LOGF(info, "Calibration loaded for %s", est.name.c_str());
311+
LOGF(debug, "Calibration loaded for %s", est.name.c_str());
312312
}
313313
}
314314

@@ -326,7 +326,7 @@ struct CentralityQa {
326326
requires { collision.centFT0C(); } ||
327327
requires { collision.centFT0CVariant1(); } ||
328328
requires { collision.centFT0CVariant2(); } ||
329-
requires { collision.centFT0MVariant3(); } ||
329+
requires { collision.centFT0MOuterA(); } ||
330330
requires { collision.centFDDM(); } ||
331331
requires { collision.centNTPV(); } ||
332332
requires { collision.centNGlobal(); } ||
@@ -688,15 +688,19 @@ struct CentralityQa {
688688
}
689689
PROCESS_SWITCH(CentralityQa, processRun3_FT0M, "Process with Run 3 FT0M estimator", false);
690690

691-
void processRun3_FT0MOuterA(soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::CentFT0MOuterAs>::iterator const& col)
691+
void processRun3_FT0MOuterA(soa::Join<aod::Collisions, aod::EvSels, aod::MultsRun3, aod::FITExtraMults, aod::CentFT0MOuterAs>::iterator const& col, aod::BCs const&)
692692
{
693693
if (!isCollisionAccepted(col)) {
694694
return;
695695
}
696-
LOGF(debug, "centFT0MOuterA=%.0f", col.centFT0MOuterA());
697-
histos.fill(HIST("hCentFT0MOuterA"), col.centFT0MOuterA());
698-
histos.fill(HIST("hCentProfileFT0MOuterA"), col.centFT0MOuterA(), col.multNTracksPVetaHalf());
699-
histos.fill(HIST("hMultEta05VsCentFT0MOuterA"), col.centFT0MOuterA(), col.multNTracksPVetaHalf());
696+
697+
Estimator ft0mOuterA = initEstimator(col, "FT0MOuterA");
698+
const float centFT0MOuterA = ft0mOuterA.getCentrality(col.multFT0AOuter() + col.multFT0C(), col.centFT0MOuterA());
699+
700+
LOGF(debug, "centFT0MOuterA=%.0f", centFT0MOuterA);
701+
histos.fill(HIST("hCentFT0MOuterA"), centFT0MOuterA);
702+
histos.fill(HIST("hCentProfileFT0MOuterA"), centFT0MOuterA, col.multNTracksPVetaHalf());
703+
histos.fill(HIST("hMultEta05VsCentFT0MOuterA"), centFT0MOuterA, col.multNTracksPVetaHalf());
700704
}
701705
PROCESS_SWITCH(CentralityQa, processRun3_FT0MOuterA, "Process with Run 3 FT0M estimator", false);
702706

‎Common/Tools/Multiplicity/MultModule.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ static const int defaultParameters[nTablesConst][nParameters]{
145145
{-1},
146146
{-1},
147147
{-1},
148+
{-1},
148149
{-1}};
149150

150151
// table index : match order above
@@ -743,6 +744,7 @@ class MultModule
743744
} else {
744745
mults.multFT0A = -999.f;
745746
mults.multFT0C = -999.f;
747+
mults.multFT0AOuter = -999.f;
746748
}
747749
if (collision.has_foundFDD()) {
748750
const auto& fdd = collision.foundFDD();

0 commit comments

Comments
 (0)