@@ -113,6 +113,7 @@ struct JetSpectraEseTask {
113113 Configurable<std::vector<float >> cfgOccupancyPtCut{" cfgOccupancyPtCut" , {0 , 100 }, " pT cut" };
114114
115115 Configurable<bool > cfgrhoPhi{" cfgrhoPhi" , true , " Flag for rho(phi)" };
116+ Configurable<bool > cfgRhoPhiPvalCriteria{" cfgRhoPhiPvalCriteria" , true , " Use <rho> instead of rho(phi) when the rho(phi) fit p-value is below 0.01" };
116117
117118 Configurable<int > cfgnTotalSystem{" cfgnTotalSystem" , 7 , " total qvector number // look in Qvector table for this number" };
118119 Configurable<int > cfgnCorrLevel{" cfgnCorrLevel" , 3 , " QVector step: 0 = no corr, 1 = rect, 2 = twist, 3 = full" };
@@ -347,6 +348,7 @@ struct JetSpectraEseTask {
347348
348349 registry.add (" eventQA/before/hVtxZ" , " ;z_{vtx} (cm);entries" , {HistType::kTH1F , {{vertexZAxis}}});
349350 registry.add (" eventQA/after/hVtxZ" , " ;z_{vtx} (cm);entries" , {HistType::kTH1F , {{vertexZAxis}}});
351+ registry.add (" eventQA/hRhoPhiCheck" , " event status;event status;entries" , {HistType::kTH1F , {{2 , 0.0 , 2.0 }}});
350352
351353 registry.get <TH1 >(HIST (" eventQA/hEventCounter" ))->GetXaxis ()->SetBinLabel (kFilteredInputEv , " Input filtered event" );
352354 registry.get <TH1 >(HIST (" eventQA/hEventCounter" ))->GetXaxis ()->SetBinLabel (kEventSel , " Event selection" );
@@ -607,7 +609,7 @@ struct JetSpectraEseTask {
607609 if (cfg.hEff == nullptr ) {
608610 LOGF (fatal, " Could not find %s as TH1F in track efficiency list %s" , efficiencyName.c_str (), cfgEfficiency.value .c_str ());
609611 }
610- LOGF (info, " Loaded tracking efficiency %s from %s (%p) " , efficiencyName.c_str (), cfgEfficiency.value .c_str (), ( void *)cfg. hEff );
612+ LOGF (info, " Loaded tracking efficiency %s from %s" , efficiencyName.c_str (), cfgEfficiency.value .c_str ());
611613 }
612614 if (!cfgEfficiency3D.value .empty ()) {
613615 cfg.h3EffList = ccdb->getForTimeStamp <TList>(cfgEfficiency3D, timestamp);
@@ -618,7 +620,7 @@ struct JetSpectraEseTask {
618620 if (cfg.h3Eff == nullptr ) {
619621 LOGF (fatal, " Could not find %s as TH3F in 3D track efficiency list %s" , efficiencyName.c_str (), cfgEfficiency3D.value .c_str ());
620622 }
621- LOGF (info, " Loaded 3D tracking efficiency %s from %s (%p) " , efficiencyName.c_str (), cfgEfficiency3D.value .c_str (), ( void *)cfg. h3Eff );
623+ LOGF (info, " Loaded 3D tracking efficiency %s from %s" , efficiencyName.c_str (), cfgEfficiency3D.value .c_str ());
622624 cfg.is3D = true ;
623625 }
624626 cfg.isLoaded = true ;
@@ -1480,6 +1482,16 @@ struct JetSpectraEseTask {
14801482 return nullptr ;
14811483
14821484 auto cDF = 1 . - TMath::Gamma (nDF, chi2);
1485+ if constexpr (fillHist)
1486+ registry.fill (HIST (" eventQA/hRhoPhiCheck" ), 0.5 );
1487+ const float pValue = 0.01 ;
1488+ if (cfgRhoPhiPvalCriteria && cDF < pValue) {
1489+ const float noFlow = 0 .0f ;
1490+ modulationFit->SetParameter (1 , noFlow); // o2-linter: disable=magic-number (fit params)
1491+ modulationFit->SetParameter (3 , noFlow); // o2-linter: disable=magic-number (fit params)
1492+ if constexpr (fillHist)
1493+ registry.fill (HIST (" eventQA/hRhoPhiCheck" ), 1.5 );
1494+ }
14831495
14841496 if constexpr (fillHist) {
14851497 registry.fill (HIST (" eventQA/hPValueCentCDF" ), col.centFT0M (), cDF);
0 commit comments