@@ -553,9 +553,11 @@ struct PidFlowPtCorr {
553553
554554 // init fFCPID
555555 // note that need to add c22pure and c32pure
556- TObjArray* oba4PID = reinterpret_cast <TObjArray*>(oba4Ch->Clone ());
556+ TObjArray* oba4PID = dynamic_cast <TObjArray*>(oba4Ch->Clone ());
557557 oba4PID->Add (new TNamed (" c22pure" , " c22pure" ));
558558 oba4PID->Add (new TNamed (" c32pure" , " c32pure" ));
559+ oba4PID->Add (new TNamed (" covV2PtPID" , " covV2PtPID" ));
560+ oba4PID->Add (new TNamed (" c22TrackWeightPID" , " c22TrackWeightPID" ));
559561
560562 fFCPi ->SetName (" FlowContainerPi" );
561563 fFCPi ->Initialize (oba4PID, axisMultiplicity, cfgFlowNbootstrap);
@@ -889,7 +891,6 @@ struct PidFlowPtCorr {
889891 const float ptMax = pidPtRangeOpts.cfgPtMax4TOFPiKa .value ;
890892
891893 if (pt > ptMin && pt < ptMax) {
892-
893894 isPionBool = std::hypot (tpcNsigma, tofNsigma) < circleCutOpts.cfgCircleCutSigmaPi .value ;
894895 } else {
895896 // Fallback: TPC only cut
@@ -2241,14 +2242,23 @@ struct PidFlowPtCorr {
22412242
22422243 fFCCh ->FillProfile (" hMeanPt" , cent, (ptSum / nch), nch, rndm);
22432244
2244- if (nPionWeighted > 0 )
2245+ if (nPionWeighted > 0 ) {
22452246 fFCPi ->FillProfile (" hMeanPt" , cent, (pionPtSum / nPionWeighted), nPionWeighted, rndm);
2247+ fillFCvnpt (MyParticleType::kPion , corrconfigs.at (29 ), cent, rndm, pionPtSum, nPionWeighted, " covV2PtPID" );
2248+ fillFCvnpt (MyParticleType::kPion , corrconfigs.at (29 ), cent, rndm, nPionWeighted, nPionWeighted, " c22TrackWeightPID" );
2249+ }
22462250
2247- if (nKaonWeighted > 0 )
2251+ if (nKaonWeighted > 0 ) {
22482252 fFCKa ->FillProfile (" hMeanPt" , cent, (kaonPtSum / nKaonWeighted), nKaonWeighted, rndm);
2253+ fillFCvnpt (MyParticleType::kKaon , corrconfigs.at (30 ), cent, rndm, kaonPtSum, nKaonWeighted, " covV2PtPID" );
2254+ fillFCvnpt (MyParticleType::kKaon , corrconfigs.at (30 ), cent, rndm, nKaonWeighted, nKaonWeighted, " c22TrackWeightPID" );
2255+ }
22492256
2250- if (nProtonWeighted > 0 )
2257+ if (nProtonWeighted > 0 ) {
22512258 fFCPr ->FillProfile (" hMeanPt" , cent, (protonPtSum / nProtonWeighted), nProtonWeighted, rndm);
2259+ fillFCvnpt (MyParticleType::kProton , corrconfigs.at (31 ), cent, rndm, protonPtSum, nProtonWeighted, " covV2PtPID" );
2260+ fillFCvnpt (MyParticleType::kProton , corrconfigs.at (31 ), cent, rndm, nProtonWeighted, nProtonWeighted, " c22TrackWeightPID" );
2261+ }
22522262
22532263 double nchDiff = nch * nch - nchSquare;
22542264 if (nchDiff > minVal4Float) {
0 commit comments