@@ -155,6 +155,7 @@ struct V0ptHadPiKaProt {
155155 Configurable<bool > cfgLoadPtEffWeights{" cfgLoadPtEffWeights" , false , " Load pt-dependent efficiency weights from CCDB to take care of detector inefficiency" };
156156 Configurable<int > cfgMinNoOfParticles{" cfgMinNoOfParticles" , 4 , " Minimum no. of particles for calculating v02(pT)" };
157157 Configurable<int > cfgV02WeightedFill{" cfgV02WeightedFill" , false , " Fill profiles related to v2 with multiplicity-based weights?" };
158+ Configurable<int > cfgV02WeightedOption3Fill{" cfgV02WeightedOption3Fill" , false , " Fill profiles related to v2 with multiplicity-based weights according to Option3, triplet weighting for <XYZ>" };
158159 Configurable<bool > cfgUseDominanceCut{" cfgUseDominanceCut" , true , " Require particle selecting species' nSigma to be smallest among other two" };
159160
160161 // pT dep DCAxy and DCAz cuts
@@ -210,6 +211,7 @@ struct V0ptHadPiKaProt {
210211 std::vector<std::vector<std::shared_ptr<TProfile2D>>> subSample;
211212 std::vector<std::vector<std::shared_ptr<TProfile2D>>> subSampleV02;
212213 std::vector<std::vector<std::shared_ptr<TProfile2D>>> subSampleV02weighted;
214+ std::vector<std::vector<std::shared_ptr<TProfile2D>>> subSampleV02weightedOption3;
213215 TRandom3* funRndm = new TRandom3(0 );
214216
215217 // Phi weight histograms initialization
@@ -428,10 +430,23 @@ struct V0ptHadPiKaProt {
428430 histos.add (" Prof_Z_weighted_prot" , " " , {HistType::kTProfile2D , {centAxis, ptAxis}});
429431 }
430432
433+ if (cfgV02WeightedOption3Fill) {
434+ histos.add (" Prof_XY_weightedOption3" , " " , {HistType::kTProfile2D , {centAxis, noAxis}});
435+ histos.add (" Prof_XYZ_weightedOption3_had" , " " , {HistType::kTProfile2D , {centAxis, ptAxis}});
436+ histos.add (" Prof_Z_weightedOption3_had" , " " , {HistType::kTProfile2D , {centAxis, ptAxis}});
437+ histos.add (" Prof_XYZ_weightedOption3_pi" , " " , {HistType::kTProfile2D , {centAxis, ptAxis}});
438+ histos.add (" Prof_Z_weightedOption3_pi" , " " , {HistType::kTProfile2D , {centAxis, ptAxis}});
439+ histos.add (" Prof_XYZ_weightedOption3_ka" , " " , {HistType::kTProfile2D , {centAxis, ptAxis}});
440+ histos.add (" Prof_Z_weightedOption3_ka" , " " , {HistType::kTProfile2D , {centAxis, ptAxis}});
441+ histos.add (" Prof_XYZ_weightedOption3_prot" , " " , {HistType::kTProfile2D , {centAxis, ptAxis}});
442+ histos.add (" Prof_Z_weightedOption3_prot" , " " , {HistType::kTProfile2D , {centAxis, ptAxis}});
443+ }
444+
431445 // initial array
432446 subSample.resize (cfgNSubsample);
433447 subSampleV02.resize (cfgNSubsample);
434448 subSampleV02weighted.resize (cfgNSubsample);
449+ subSampleV02weightedOption3.resize (cfgNSubsample);
435450 for (int i = 0 ; i < cfgNSubsample; i++) {
436451 subSample[i].resize (20 );
437452 subSampleV02[i].resize (9 );
@@ -483,6 +498,18 @@ struct V0ptHadPiKaProt {
483498 subSampleV02weighted[i][7 ] = std::get<std::shared_ptr<TProfile2D>>(histosAnalysis.add (Form (" subSampleV02weighted_%d/Prof_XYZ_weighted_prot" , i), " " , {HistType::kTProfile2D , {centAxis, ptAxis}}));
484499 subSampleV02weighted[i][8 ] = std::get<std::shared_ptr<TProfile2D>>(histosAnalysis.add (Form (" subSampleV02weighted_%d/Prof_Z_weighted_prot" , i), " " , {HistType::kTProfile2D , {centAxis, ptAxis}}));
485500 }
501+
502+ if (cfgV02WeightedOption3Fill) {
503+ subSampleV02weightedOption3[i][0 ] = std::get<std::shared_ptr<TProfile2D>>(histosAnalysis.add (Form (" subSampleV02weightedOption3_%d/Prof_XY_weightedOption3" , i), " " , {HistType::kTProfile2D , {centAxis, noAxis}}));
504+ subSampleV02weightedOption3[i][1 ] = std::get<std::shared_ptr<TProfile2D>>(histosAnalysis.add (Form (" subSampleV02weightedOption3_%d/Prof_XYZ_weightedOption3_had" , i), " " , {HistType::kTProfile2D , {centAxis, ptAxis}}));
505+ subSampleV02weightedOption3[i][2 ] = std::get<std::shared_ptr<TProfile2D>>(histosAnalysis.add (Form (" subSampleV02weightedOption3_%d/Prof_Z_weightedOption3_had" , i), " " , {HistType::kTProfile2D , {centAxis, ptAxis}}));
506+ subSampleV02weightedOption3[i][3 ] = std::get<std::shared_ptr<TProfile2D>>(histosAnalysis.add (Form (" subSampleV02weightedOption3_%d/Prof_XYZ_weightedOption3_pi" , i), " " , {HistType::kTProfile2D , {centAxis, ptAxis}}));
507+ subSampleV02weightedOption3[i][4 ] = std::get<std::shared_ptr<TProfile2D>>(histosAnalysis.add (Form (" subSampleV02weightedOption3_%d/Prof_Z_weightedOption3_pi" , i), " " , {HistType::kTProfile2D , {centAxis, ptAxis}}));
508+ subSampleV02weightedOption3[i][5 ] = std::get<std::shared_ptr<TProfile2D>>(histosAnalysis.add (Form (" subSampleV02weightedOption3_%d/Prof_XYZ_weightedOption3_ka" , i), " " , {HistType::kTProfile2D , {centAxis, ptAxis}}));
509+ subSampleV02weightedOption3[i][6 ] = std::get<std::shared_ptr<TProfile2D>>(histosAnalysis.add (Form (" subSampleV02weightedOption3_%d/Prof_Z_weightedOption3_ka" , i), " " , {HistType::kTProfile2D , {centAxis, ptAxis}}));
510+ subSampleV02weightedOption3[i][7 ] = std::get<std::shared_ptr<TProfile2D>>(histosAnalysis.add (Form (" subSampleV02weightedOption3_%d/Prof_XYZ_weightedOption3_prot" , i), " " , {HistType::kTProfile2D , {centAxis, ptAxis}}));
511+ subSampleV02weightedOption3[i][8 ] = std::get<std::shared_ptr<TProfile2D>>(histosAnalysis.add (Form (" subSampleV02weightedOption3_%d/Prof_Z_weightedOption3_prot" , i), " " , {HistType::kTProfile2D , {centAxis, ptAxis}}));
512+ }
486513 }
487514
488515 if (cfgEvSelMultCorrelation) {
@@ -1642,6 +1669,11 @@ struct V0ptHadPiKaProt {
16421669 histos.get <TProfile2D>(HIST (" Prof_XY_weighted" ))->Fill (cent, 0.5 , twoParCorr, (nSumInWinA * nSumInWinC));
16431670 subSampleV02weighted[sampleIndex][0 ]->Fill (cent, 0.5 , twoParCorr, (nSumInWinA * nSumInWinC));
16441671 }
1672+
1673+ if (cfgV02WeightedOption3Fill) {
1674+ histos.get <TProfile2D>(HIST (" Prof_XY_weightedOption3" ))->Fill (cent, 0.5 , twoParCorr, (nSumInWinA * nSumInWinC));
1675+ subSampleV02weightedOption3[sampleIndex][0 ]->Fill (cent, 0.5 , twoParCorr, (nSumInWinA * nSumInWinC));
1676+ }
16451677 // hadrons
16461678 for (int i = 0 ; i < cfgNbinsV02pt; i++) {
16471679 double threeParCorrHad = (vecQInWinA * TComplex::Conjugate (vecQInWinC) * fPtProfileHadInWinB ->GetBinContent (i + 1 )).Re ();
@@ -1658,6 +1690,13 @@ struct V0ptHadPiKaProt {
16581690 subSampleV02weighted[sampleIndex][1 ]->Fill (cent, fPtProfileHadInWinB ->GetBinCenter (i + 1 ), threeParCorrHad, (nSumInWinA * nSumInWinC));
16591691 subSampleV02weighted[sampleIndex][2 ]->Fill (cent, fPtProfileHadInWinB ->GetBinCenter (i + 1 ), (fPtProfileHadInWinB ->GetBinContent (i + 1 ) / nSumInWinB));
16601692 }
1693+
1694+ if (cfgV02WeightedOption3Fill) {
1695+ histos.get <TProfile2D>(HIST (" Prof_XYZ_weightedOption3_had" ))->Fill (cent, fPtProfileHadInWinB ->GetBinCenter (i + 1 ), threeParCorrHad, (nSumInWinA * nSumInWinB * nSumInWinC));
1696+ histos.get <TProfile2D>(HIST (" Prof_Z_weightedOption3_had" ))->Fill (cent, fPtProfileHadInWinB ->GetBinCenter (i + 1 ), (fPtProfileHadInWinB ->GetBinContent (i + 1 ) / nSumInWinB), nSumInWinB);
1697+ subSampleV02weightedOption3[sampleIndex][1 ]->Fill (cent, fPtProfileHadInWinB ->GetBinCenter (i + 1 ), threeParCorrHad, (nSumInWinA * nSumInWinB * nSumInWinC));
1698+ subSampleV02weightedOption3[sampleIndex][2 ]->Fill (cent, fPtProfileHadInWinB ->GetBinCenter (i + 1 ), (fPtProfileHadInWinB ->GetBinContent (i + 1 ) / nSumInWinB), nSumInWinB);
1699+ }
16611700 }
16621701
16631702 // pions
@@ -1676,6 +1715,13 @@ struct V0ptHadPiKaProt {
16761715 subSampleV02weighted[sampleIndex][3 ]->Fill (cent, fPtProfilePiInWinB ->GetBinCenter (i + 1 ), threeParCorrPi, (nSumInWinA * nSumInWinC));
16771716 subSampleV02weighted[sampleIndex][4 ]->Fill (cent, fPtProfilePiInWinB ->GetBinCenter (i + 1 ), (fPtProfilePiInWinB ->GetBinContent (i + 1 ) / nSumInWinB));
16781717 }
1718+
1719+ if (cfgV02WeightedOption3Fill) {
1720+ histos.get <TProfile2D>(HIST (" Prof_XYZ_weightedOption3_pi" ))->Fill (cent, fPtProfilePiInWinB ->GetBinCenter (i + 1 ), threeParCorrPi, (nSumInWinA * nSumInWinB * nSumInWinC));
1721+ histos.get <TProfile2D>(HIST (" Prof_Z_weightedOption3_pi" ))->Fill (cent, fPtProfilePiInWinB ->GetBinCenter (i + 1 ), (fPtProfilePiInWinB ->GetBinContent (i + 1 ) / nSumInWinB), nSumInWinB);
1722+ subSampleV02weightedOption3[sampleIndex][3 ]->Fill (cent, fPtProfilePiInWinB ->GetBinCenter (i + 1 ), threeParCorrPi, (nSumInWinA * nSumInWinB * nSumInWinC));
1723+ subSampleV02weightedOption3[sampleIndex][4 ]->Fill (cent, fPtProfilePiInWinB ->GetBinCenter (i + 1 ), (fPtProfilePiInWinB ->GetBinContent (i + 1 ) / nSumInWinB), nSumInWinB);
1724+ }
16791725 }
16801726
16811727 // kaons
@@ -1694,6 +1740,13 @@ struct V0ptHadPiKaProt {
16941740 subSampleV02weighted[sampleIndex][5 ]->Fill (cent, fPtProfileKaInWinB ->GetBinCenter (i + 1 ), threeParCorrKa, (nSumInWinA * nSumInWinC));
16951741 subSampleV02weighted[sampleIndex][6 ]->Fill (cent, fPtProfileKaInWinB ->GetBinCenter (i + 1 ), (fPtProfileKaInWinB ->GetBinContent (i + 1 ) / nSumInWinB));
16961742 }
1743+
1744+ if (cfgV02WeightedOption3Fill) {
1745+ histos.get <TProfile2D>(HIST (" Prof_XYZ_weightedOption3_ka" ))->Fill (cent, fPtProfileKaInWinB ->GetBinCenter (i + 1 ), threeParCorrKa, (nSumInWinA * nSumInWinB * nSumInWinC));
1746+ histos.get <TProfile2D>(HIST (" Prof_Z_weightedOption3_ka" ))->Fill (cent, fPtProfileKaInWinB ->GetBinCenter (i + 1 ), (fPtProfileKaInWinB ->GetBinContent (i + 1 ) / nSumInWinB), nSumInWinB);
1747+ subSampleV02weightedOption3[sampleIndex][5 ]->Fill (cent, fPtProfileKaInWinB ->GetBinCenter (i + 1 ), threeParCorrKa, (nSumInWinA * nSumInWinB * nSumInWinC));
1748+ subSampleV02weightedOption3[sampleIndex][6 ]->Fill (cent, fPtProfileKaInWinB ->GetBinCenter (i + 1 ), (fPtProfileKaInWinB ->GetBinContent (i + 1 ) / nSumInWinB), nSumInWinB);
1749+ }
16971750 }
16981751
16991752 // protons
@@ -1712,6 +1765,13 @@ struct V0ptHadPiKaProt {
17121765 subSampleV02weighted[sampleIndex][7 ]->Fill (cent, fPtProfileProtInWinB ->GetBinCenter (i + 1 ), threeParCorrProt, (nSumInWinA * nSumInWinC));
17131766 subSampleV02weighted[sampleIndex][8 ]->Fill (cent, fPtProfileProtInWinB ->GetBinCenter (i + 1 ), (fPtProfileProtInWinB ->GetBinContent (i + 1 ) / nSumInWinB));
17141767 }
1768+
1769+ if (cfgV02WeightedOption3Fill) {
1770+ histos.get <TProfile2D>(HIST (" Prof_XYZ_weightedOption3_prot" ))->Fill (cent, fPtProfileProtInWinB ->GetBinCenter (i + 1 ), threeParCorrProt, (nSumInWinA * nSumInWinB * nSumInWinC));
1771+ histos.get <TProfile2D>(HIST (" Prof_Z_weightedOption3_prot" ))->Fill (cent, fPtProfileProtInWinB ->GetBinCenter (i + 1 ), (fPtProfileProtInWinB ->GetBinContent (i + 1 ) / nSumInWinB), nSumInWinB);
1772+ subSampleV02weightedOption3[sampleIndex][7 ]->Fill (cent, fPtProfileProtInWinB ->GetBinCenter (i + 1 ), threeParCorrProt, (nSumInWinA * nSumInWinB * nSumInWinC));
1773+ subSampleV02weightedOption3[sampleIndex][8 ]->Fill (cent, fPtProfileProtInWinB ->GetBinCenter (i + 1 ), (fPtProfileProtInWinB ->GetBinContent (i + 1 ) / nSumInWinB), nSumInWinB);
1774+ }
17151775 }
17161776 }
17171777
0 commit comments