Skip to content

Commit 7dea8b2

Browse files
authored
[PWGCF] jEPFlowAnalysis.cxx: add pT axis (#16662)
1 parent 6163c50 commit 7dea8b2

1 file changed

Lines changed: 28 additions & 15 deletions

File tree

PWGCF/JCorran/Tasks/jEPFlowAnalysis.cxx

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -164,24 +164,24 @@ struct JEPFlowAnalysis {
164164

165165
Filter trackFilter = (aod::track::pt > cfgTrackCuts.cfgPtMin) && (nabs(aod::track::eta) < cfgTrackCuts.cfgEtaMax);
166166

167-
int detId;
168-
int refAId;
169-
int refBId;
170-
int harmInd;
167+
int detId = 0;
168+
int refAId = 4;
169+
int refBId = 5;
170+
int harmInd = 0;
171171

172172
int currentRunNumber = -999;
173173
int lastRunNumber = -999;
174174

175-
float cent;
175+
float cent = -1.;
176176

177177
float minQvecAmp = 1e-5;
178178
float minChg = 0.1;
179-
float q2Mag;
179+
float q2Mag = -1.;
180180

181-
float activity;
182-
float qOvecM;
183-
float highestPt;
184-
float hPtPhi;
181+
float activity = -1.;
182+
float qOvecM = -1.;
183+
float highestPt = -1.;
184+
float hPtPhi = -999.;
185185

186186
std::vector<TProfile3D*> shiftprofile{};
187187
std::string fullCCDBShiftCorrPath;
@@ -416,6 +416,12 @@ struct JEPFlowAnalysis {
416416
epFlowHistograms.fill(HIST("EpResQvecRefARefBxx"), i + 2, cent, qx_shifted[1] * qx_shifted[2] + qy_shifted[1] * qy_shifted[2]);
417417
epFlowHistograms.fill(HIST("EpResQvecRefARefBxy"), i + 2, cent, qx_shifted[2] * qy_shifted[1] - qx_shifted[1] * qy_shifted[2]);
418418

419+
if (cfgJetSubEvtSel) {
420+
epFlowHistograms.fill(HIST("EpResQvecEvslDetRefAxx"), i + 2, cent, qx_shifted[0] * qx_shifted[1] + qy_shifted[0] * qy_shifted[1]);
421+
epFlowHistograms.fill(HIST("EpResQvecEvslDetRefBxx"), i + 2, cent, qx_shifted[0] * qx_shifted[2] + qy_shifted[0] * qy_shifted[2]);
422+
epFlowHistograms.fill(HIST("EpResQvecEvslRefARefBxy"), i + 2, cent, qx_shifted[2] * qy_shifted[1] - qx_shifted[1] * qy_shifted[2]);
423+
}
424+
419425
if (cfgq2analysis) {
420426
if (q2sel(q2Mag, true)) {
421427
epFlowHistograms.fill(HIST("EpResQvecDetRefAxx_q2high"), i + 2, cent, qx_shifted[0] * qx_shifted[1] + qy_shifted[0] * qy_shifted[1]);
@@ -468,7 +474,7 @@ struct JEPFlowAnalysis {
468474
epFlowHistograms.fill(HIST("hQoverM2Q2"), cent, q2Mag, qOvecM);
469475

470476
epFlowHistograms.fill(HIST("hQoverMdphi"), cent, RecoDecay::constrainAngle(hPtPhi - eps[0], -constants::math::PI), qOvecM);
471-
epFlowHistograms.fill(HIST("hActivitydphi"), cent, RecoDecay::constrainAngle(hPtPhi - eps[0], -constants::math::PI), activity);
477+
epFlowHistograms.fill(HIST("hActivitydphi"), cent, RecoDecay::constrainAngle(hPtPhi - eps[0], -constants::math::PI), highestPt, activity);
472478
}
473479
}
474480
}
@@ -540,7 +546,7 @@ struct JEPFlowAnalysis {
540546
epFlowHistograms.add("hQoverM2Q2", "", {HistType::kTH3F, {axisCent, axisQ2, axisAmpR}});
541547

542548
epFlowHistograms.add("hActivity", "", {HistType::kTH3F, {axisCent, axisPt, axisActR}});
543-
epFlowHistograms.add("hActivitydphi", "", {HistType::kTH3F, {axisCent, axisEvtPl, axisActR}});
549+
epFlowHistograms.add("hActivitydphi", "", {HistType::kTHnSparseF, {axisCent, axisEvtPl, axisPt, axisActR}});
544550

545551
epFlowHistograms.add("vncos", "", {HistType::kTHnSparseF, {axisMod, axisCent, axisPt, axisCos}});
546552
epFlowHistograms.add("vnsin", "", {HistType::kTHnSparseF, {axisMod, axisCent, axisPt, axisCos}});
@@ -551,6 +557,11 @@ struct JEPFlowAnalysis {
551557
epFlowHistograms.add("EpResQvecDetRefBxy", "", {HistType::kTH3F, {axisMod, axisCent, axisQvec}});
552558
epFlowHistograms.add("EpResQvecRefARefBxx", "", {HistType::kTH3F, {axisMod, axisCent, axisQvec}});
553559
epFlowHistograms.add("EpResQvecRefARefBxy", "", {HistType::kTH3F, {axisMod, axisCent, axisQvec}});
560+
561+
epFlowHistograms.add("EpResQvecEvslDetRefAxx", "", {HistType::kTH3F, {axisMod, axisCent, axisQvec}});
562+
epFlowHistograms.add("EpResQvecEvslDetRefBxx", "", {HistType::kTH3F, {axisMod, axisCent, axisQvec}});
563+
epFlowHistograms.add("EpResQvecEvslRefARefBxx", "", {HistType::kTH3F, {axisMod, axisCent, axisQvec}});
564+
554565
if (cfgq2analysis) {
555566
epFlowHistograms.add("EpResQvecDetRefAxx_q2high", "", {HistType::kTH3F, {axisMod, axisCent, axisQvec}});
556567
epFlowHistograms.add("EpResQvecDetRefBxx_q2high", "", {HistType::kTH3F, {axisMod, axisCent, axisQvec}});
@@ -657,6 +668,9 @@ struct JEPFlowAnalysis {
657668
qOvecM = calcFT0CRawQVecMag(coll, 2) / coll.qvecAmp()[detId]; // second order
658669
activity = calcFT0CLocalActivity(coll);
659670

671+
epFlowHistograms.fill(HIST("hQoverMCnt"), cent, qOvecM);
672+
epFlowHistograms.fill(HIST("hActivityCnt"), cent, activity);
673+
660674
if (cfgJetSubEvtSel & 1) {
661675
if (cfgJetSubEvlSelVar->at(0) < qOvecM) {
662676
return;
@@ -667,7 +681,6 @@ struct JEPFlowAnalysis {
667681
return;
668682
}
669683
}
670-
671684
fillvn(coll, tracks);
672685
}
673686
PROCESS_SWITCH(JEPFlowAnalysis, processDefault, "default process", true);
@@ -683,7 +696,7 @@ struct JEPFlowAnalysis {
683696
return;
684697
}
685698

686-
float cent = coll.centFT0C();
699+
cent = coll.centFT0C();
687700

688701
if (cfgEffCor) {
689702
auto bc = coll.bc_as<aod::BCsWithTimestamps>();
@@ -724,7 +737,7 @@ struct JEPFlowAnalysis {
724737
}
725738
}
726739

727-
float cent = coll.centFT0C();
740+
cent = coll.centFT0C();
728741

729742
for (const auto& mcParticle : mcParticles) {
730743
if (std::abs(mcParticle.eta()) > cfgTrackCuts.cfgEtaMax)

0 commit comments

Comments
 (0)