1919
2020JFFlucAnalysis::JFFlucAnalysis () : TNamed(),
2121 fVertex(0 ),
22+ fAvgInvariantMass(0 .0f ),
2223 fCent(0 ),
2324 fImpactParameter(-1 ),
2425 subeventMask(kSubEvent_A | kSubEvent_B ),
@@ -32,6 +33,7 @@ JFFlucAnalysis::JFFlucAnalysis() : TNamed(),
3233// ________________________________________________________________________
3334JFFlucAnalysis::JFFlucAnalysis (const char * /* name*/ ) : TNamed(),
3435 fVertex(0 ),
36+ fAvgInvariantMass(0 .0f ),
3537 fCent(0 ),
3638 fImpactParameter(-1 ),
3739 subeventMask(kSubEvent_A | kSubEvent_B ),
@@ -45,6 +47,7 @@ JFFlucAnalysis::JFFlucAnalysis(const char* /*name*/) : TNamed(),
4547// ________________________________________________________________________
4648JFFlucAnalysis::JFFlucAnalysis (const JFFlucAnalysis& a) : TNamed(a),
4749 fVertex(a.fVertex ),
50+ fAvgInvariantMass(a.fAvgInvariantMass ),
4851 fCent(a.fCent ),
4952 fImpactParameter(a.fImpactParameter ),
5053 subeventMask(a.subeventMask),
@@ -136,7 +139,7 @@ void JFFlucAnalysis::UserExec(Option_t* /*popt*/) // NOLINT(readability/casting)
136139 for (UInt_t i = 0 ; i < 2 ; ++i) {
137140 if ((subeventMask & (1 << i)) == 0 )
138141 continue ;
139- decltype (pqvecs->QvectorQCgap [i])& Qa = pqvecs->QvectorQCgap [i];
142+ decltype (pqvecs->QvectorQCgap [i])& Qa = pqvecs->QvectorQCgap [i]; // this is for one differential bin only.
140143 decltype (pqvecs->QvectorQCgap [1 - i])& Qb = (pqvecsRef ? pqvecsRef : pqvecs)->QvectorQCgap [1 - i]; // A & B subevents from POI and REF, when given
141144 Double_t ref_2p = TwoGap (Qa, Qb, 0 , 0 ).Re ();
142145 Double_t ref_3p = ThreeGap (Qa, Qb, 0 , 0 , 0 ).Re ();
@@ -203,11 +206,11 @@ void JFFlucAnalysis::UserExec(Option_t* /*popt*/) // NOLINT(readability/casting)
203206 // vn2[ih][ik] = corr[ih][ik].Re() / ref_2Np[ik - 1];
204207 // fh_vn[ih][ik][fCBin]->Fill(vn2[ih][ik], ebe_2Np_weight[ik - 1]);
205208 // fh_vna[ih][ik][fCBin]->Fill(ncorr[ih][ik].Re() / ref_2Np[ik - 1], ebe_2Np_weight[ik - 1]);
206- phs[HIST_THN_SPARSE_VN]->Fill (fCent , ih, ik, ncorr[ih][ik].Re () / ref_2Np[ik - 1 ], ebe_2Np_weight[ik - 1 ]);
209+ phs[HIST_THN_SPARSE_VN]->Fill (fCent , fAvgInvariantMass , ih, ik, ncorr[ih][ik].Re () / ref_2Np[ik - 1 ], ebe_2Np_weight[ik - 1 ]);
207210 for (UInt_t ihh = 2 ; ihh < kcNH; ihh++) {
208211 for (UInt_t ikk = 1 ; ikk < nKL; ikk++) {
209212 Double_t vn2_vn2 = ncorr2[ih][ik][ihh][ikk] / ref_2Np[ik + ikk - 1 ];
210- phs[HIST_THN_SPARSE_VN_VN]->Fill (fCent , ih, ik, ihh, ikk, vn2_vn2, ebe_2Np_weight[ik + ikk - 1 ]);
213+ phs[HIST_THN_SPARSE_VN_VN]->Fill (fCent , fAvgInvariantMass , ih, ik, ihh, ikk, vn2_vn2, ebe_2Np_weight[ik + ikk - 1 ]);
211214 }
212215 }
213216 }
@@ -246,41 +249,41 @@ void JFFlucAnalysis::UserExec(Option_t* /*popt*/) // NOLINT(readability/casting)
246249 TComplex nV5V5V3V3 = FourGap22 (Qa, Qb, 5 , 3 , 5 , 3 ) / ref_4p;
247250 TComplex nV4V4V3V3 = FourGap22 (Qa, Qb, 4 , 3 , 4 , 3 ) / ref_4p;
248251
249- pht[HIST_THN_V4V2starv2_2]->Fill (fCent , V4V2starv2_2.Re ());
250- pht[HIST_THN_V4V2starv2_4]->Fill (fCent , V4V2starv2_4.Re ());
251- pht[HIST_THN_V4V2star_2]->Fill (fCent , V4V2star_2.Re (), ebe_3p_weight); // added 2015.3.18
252- pht[HIST_THN_V5V2starV3starv2_2]->Fill (fCent , V5V2starV3starv2_2.Re ());
253- pht[HIST_THN_V5V2starV3star]->Fill (fCent , V5V2starV3star.Re (), ebe_3p_weight);
254- pht[HIST_THN_V5V2starV3startv3_2]->Fill (fCent , V5V2starV3startv3_2.Re ());
255- pht[HIST_THN_V6V2star_3]->Fill (fCent , V6V2star_3.Re (), ebe_4p_weightB);
256- pht[HIST_THN_V6V3star_2]->Fill (fCent , V6V3star_2.Re (), ebe_3p_weight);
257- pht[HIST_THN_V7V2star_2V3star]->Fill (fCent , V7V2star_2V3star.Re (), ebe_4p_weightB);
252+ pht[HIST_THN_V4V2starv2_2]->Fill (fCent , fAvgInvariantMass , V4V2starv2_2.Re ());
253+ pht[HIST_THN_V4V2starv2_4]->Fill (fCent , fAvgInvariantMass , V4V2starv2_4.Re ());
254+ pht[HIST_THN_V4V2star_2]->Fill (fCent , fAvgInvariantMass , V4V2star_2.Re (), ebe_3p_weight); // added 2015.3.18
255+ pht[HIST_THN_V5V2starV3starv2_2]->Fill (fCent , fAvgInvariantMass , V5V2starV3starv2_2.Re ());
256+ pht[HIST_THN_V5V2starV3star]->Fill (fCent , fAvgInvariantMass , V5V2starV3star.Re (), ebe_3p_weight);
257+ pht[HIST_THN_V5V2starV3startv3_2]->Fill (fCent , fAvgInvariantMass , V5V2starV3startv3_2.Re ());
258+ pht[HIST_THN_V6V2star_3]->Fill (fCent , fAvgInvariantMass , V6V2star_3.Re (), ebe_4p_weightB);
259+ pht[HIST_THN_V6V3star_2]->Fill (fCent , fAvgInvariantMass , V6V3star_2.Re (), ebe_3p_weight);
260+ pht[HIST_THN_V7V2star_2V3star]->Fill (fCent , fAvgInvariantMass , V7V2star_2V3star.Re (), ebe_4p_weightB);
258261
259- pht[HIST_THN_V4V2star_2]->Fill (fCent , nV4V2star_2.Re (), ebe_3p_weight); // added 2015.6.10
260- pht[HIST_THN_V5V2starV3star]->Fill (fCent , nV5V2starV3star.Re (), ebe_3p_weight);
261- pht[HIST_THN_V6V3star_2]->Fill (fCent , nV6V3star_2.Re (), ebe_3p_weight);
262+ pht[HIST_THN_V4V2star_2]->Fill (fCent , fAvgInvariantMass , nV4V2star_2.Re (), ebe_3p_weight); // added 2015.6.10
263+ pht[HIST_THN_V5V2starV3star]->Fill (fCent , fAvgInvariantMass , nV5V2starV3star.Re (), ebe_3p_weight);
264+ pht[HIST_THN_V6V3star_2]->Fill (fCent , fAvgInvariantMass , nV6V3star_2.Re (), ebe_3p_weight);
262265
263266 // use this to avoid self-correlation 4p correlation (2 particles from A, 2 particles from B) -> MA(MA-1)MB(MB-1) : evt weight..
264- pht[HIST_THN_nV4V4V2V2]->Fill (fCent , nV4V4V2V2.Re (), ebe_2Np_weight[1 ]);
265- pht[HIST_THN_nV3V3V2V2]->Fill (fCent , nV3V3V2V2.Re (), ebe_2Np_weight[1 ]);
267+ pht[HIST_THN_nV4V4V2V2]->Fill (fCent , fAvgInvariantMass , nV4V4V2V2.Re (), ebe_2Np_weight[1 ]);
268+ pht[HIST_THN_nV3V3V2V2]->Fill (fCent , fAvgInvariantMass , nV3V3V2V2.Re (), ebe_2Np_weight[1 ]);
266269
267- pht[HIST_THN_nV5V5V2V2]->Fill (fCent , nV5V5V2V2.Re (), ebe_2Np_weight[1 ]);
268- pht[HIST_THN_nV5V5V3V3]->Fill (fCent , nV5V5V3V3.Re (), ebe_2Np_weight[1 ]);
269- pht[HIST_THN_nV4V4V3V3]->Fill (fCent , nV4V4V3V3.Re (), ebe_2Np_weight[1 ]);
270+ pht[HIST_THN_nV5V5V2V2]->Fill (fCent , fAvgInvariantMass , nV5V5V2V2.Re (), ebe_2Np_weight[1 ]);
271+ pht[HIST_THN_nV5V5V3V3]->Fill (fCent , fAvgInvariantMass , nV5V5V3V3.Re (), ebe_2Np_weight[1 ]);
272+ pht[HIST_THN_nV4V4V3V3]->Fill (fCent , fAvgInvariantMass , nV4V4V3V3.Re (), ebe_2Np_weight[1 ]);
270273
271274 // higher order correlators, added 2017.8.10
272- pht[HIST_THN_V8V2starV3star_2]->Fill (fCent , V8V2starV3star_2.Re (), ebe_4p_weightB);
273- pht[HIST_THN_V8V2star_4]->Fill (fCent , V8V2star_4.Re ()); // 5p weight
274- pht[HIST_THN_V6V2star_3]->Fill (fCent , nV6V2star_3.Re (), ebe_4p_weightB);
275- pht[HIST_THN_V7V2star_2V3star]->Fill (fCent , nV7V2star_2V3star.Re (), ebe_4p_weightB);
276- pht[HIST_THN_V8V2starV3star_2]->Fill (fCent , nV8V2starV3star_2.Re (), ebe_4p_weightB);
277-
278- pht[HIST_THN_V6V2starV4star]->Fill (fCent , V6V2starV4star.Re (), ebe_3p_weight);
279- pht[HIST_THN_V7V2starV5star]->Fill (fCent , V7V2starV5star.Re (), ebe_3p_weight);
280- pht[HIST_THN_V7V3starV4star]->Fill (fCent , V7V3starV4star.Re (), ebe_3p_weight);
281- pht[HIST_THN_V6V2starV4star]->Fill (fCent , nV6V2starV4star.Re (), ebe_3p_weight);
282- pht[HIST_THN_V7V2starV5star]->Fill (fCent , nV7V2starV5star.Re (), ebe_3p_weight);
283- pht[HIST_THN_V7V3starV4star]->Fill (fCent , nV7V3starV4star.Re (), ebe_3p_weight);
275+ pht[HIST_THN_V8V2starV3star_2]->Fill (fCent , fAvgInvariantMass , V8V2starV3star_2.Re (), ebe_4p_weightB);
276+ pht[HIST_THN_V8V2star_4]->Fill (fCent , fAvgInvariantMass , V8V2star_4.Re ()); // 5p weight
277+ pht[HIST_THN_V6V2star_3]->Fill (fCent , fAvgInvariantMass , nV6V2star_3.Re (), ebe_4p_weightB);
278+ pht[HIST_THN_V7V2star_2V3star]->Fill (fCent , fAvgInvariantMass , nV7V2star_2V3star.Re (), ebe_4p_weightB);
279+ pht[HIST_THN_V8V2starV3star_2]->Fill (fCent , fAvgInvariantMass , nV8V2starV3star_2.Re (), ebe_4p_weightB);
280+
281+ pht[HIST_THN_V6V2starV4star]->Fill (fCent , fAvgInvariantMass , V6V2starV4star.Re (), ebe_3p_weight);
282+ pht[HIST_THN_V7V2starV5star]->Fill (fCent , fAvgInvariantMass , V7V2starV5star.Re (), ebe_3p_weight);
283+ pht[HIST_THN_V7V3starV4star]->Fill (fCent , fAvgInvariantMass , V7V3starV4star.Re (), ebe_3p_weight);
284+ pht[HIST_THN_V6V2starV4star]->Fill (fCent , fAvgInvariantMass , nV6V2starV4star.Re (), ebe_3p_weight);
285+ pht[HIST_THN_V7V2starV5star]->Fill (fCent , fAvgInvariantMass , nV7V2starV5star.Re (), ebe_3p_weight);
286+ pht[HIST_THN_V7V3starV4star]->Fill (fCent , fAvgInvariantMass , nV7V3starV4star.Re (), ebe_3p_weight);
284287
285288 Double_t event_weight_two_gap = 1.0 ;
286289 if (flags & kFlucEbEWeighting ) {
@@ -289,7 +292,7 @@ void JFFlucAnalysis::UserExec(Option_t* /*popt*/) // NOLINT(readability/casting)
289292
290293 for (UInt_t ih = 2 ; ih < kNH ; ih++) {
291294 TComplex sctwoGap = (Qa[ih][1 ] * TComplex::Conjugate (Qb[ih][1 ])) / (Qa[0 ][1 ] * Qb[0 ][1 ]).Re ();
292- pht[HIST_THN_SC_with_QC_2corr_gap]->Fill (fCent , ih, sctwoGap.Re (), event_weight_two_gap);
295+ pht[HIST_THN_SC_with_QC_2corr_gap]->Fill (fCent , fAvgInvariantMass , ih, sctwoGap.Re (), event_weight_two_gap);
293296 }
294297 }
295298
@@ -303,10 +306,10 @@ void JFFlucAnalysis::UserExec(Option_t* /*popt*/) // NOLINT(readability/casting)
303306 for (UInt_t ih = 2 ; ih < kNH ; ih++) {
304307 for (UInt_t ihh = 2 , mm = (ih < kcNH ? ih : static_cast <UInt_t>(kcNH)); ihh < mm; ihh++) {
305308 TComplex scfour = Four (ih, ihh, -ih, -ihh) / Four (0 , 0 , 0 , 0 ).Re ();
306- pht[HIST_THN_SC_with_QC_4corr]->Fill (fCent , ih, ihh, scfour.Re (), event_weight_four);
309+ pht[HIST_THN_SC_with_QC_4corr]->Fill (fCent , fAvgInvariantMass , ih, ihh, scfour.Re (), event_weight_four);
307310 }
308311 TComplex sctwo = Two (ih, -ih) / Two (0 , 0 ).Re ();
309- pht[HIST_THN_SC_with_QC_2corr]->Fill (fCent , ih, sctwo.Re (), event_weight_two);
312+ pht[HIST_THN_SC_with_QC_2corr]->Fill (fCent , fAvgInvariantMass , ih, sctwo.Re (), event_weight_two);
310313 }
311314}
312315
0 commit comments