Skip to content

Commit f1bfa51

Browse files
authored
jetChargedV2.cxx
1 parent 2fb57e0 commit f1bfa51

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

PWGJE/Tasks/jetChargedV2.cxx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ struct JetChargedV2 {
520520
registry.fill(HIST("h_accept_Track"), 1.5);
521521
}
522522
}
523-
523+
524524
for (auto const& track : tracks) {
525525
registry.fill(HIST("h_accept_Track"), 2.5);
526526
if (jetderiveddatautilities::selectTrack(track, trackSelection) && (std::fabs(track.eta() - leadingJetEta) > jetRadius) && track.pt() >= localRhoFitPtMin && track.pt() <= localRhoFitPtMax) {
@@ -550,11 +550,10 @@ struct JetChargedV2 {
550550
registry.fill(HIST("leadJetPtMCP"), leadingJetPt);
551551
registry.fill(HIST("leadJetPhiMCP"), leadingJetPhi);
552552
registry.fill(HIST("leadJetEtaMCP"), leadingJetEta);
553-
}
554-
553+
}
555554

556555
template <typename U, typename T, typename J>
557-
void fitFncMCP(U const& collision, T const& tracks, J const& jets, TH1F* hPtsumSumptFitMCP, double leadingJetEta, bool mcLevelIsParticleLevel, float weight = 1.0)
556+
void fitFncMCP(U const& collision, T const& tracks, J const& jets, TH1F* hPtsumSumptFitMCP, double leadingJetEta, bool mcLevelIsParticleLevel, float weight = 1.0)
558557
{
559558
double ep2 = 0.;
560559
double ep3 = 0.;
@@ -567,11 +566,11 @@ struct JetChargedV2 {
567566
int nmode = cfgnMods->at(i);
568567
int detInd = detId * 4 + cfgnTotalSystem * 4 * (nmode - 2);
569568
if (nmode == cfgNmodA) {
570-
if (collision.qvecAmp()[detId] > 1e-8) {
569+
if (collision.qvecAmp()[detId] > collQvecAmpDetId) {
571570
ep2 = helperEP.GetEventPlane(collision.qvecRe()[detInd + 3], collision.qvecIm()[detInd + 3], nmode);
572571
}
573572
} else if (nmode == cfgNmodB) {
574-
if (collision.qvecAmp()[detId] > 1e-8) {
573+
if (collision.qvecAmp()[detId] > collQvecAmpDetId) {
575574
ep3 = helperEP.GetEventPlane(collision.qvecRe()[detInd + 3], collision.qvecIm()[detInd + 3], nmode);
576575
}
577576
}
@@ -645,7 +644,7 @@ struct JetChargedV2 {
645644
registry.fill(HIST("h_mcp_jet_pt_rholocal"), jet.pt() - (rholocal * jet.area()), weight);
646645

647646
double phiMinusPsi2;
648-
if (collision.qvecAmp()[detId] < 1e-8) {
647+
if (collision.qvecAmp()[detId] < collQvecAmpDetId) {
649648
continue;
650649
}
651650
phiMinusPsi2 = jet.phi() - ep2;
@@ -661,7 +660,7 @@ struct JetChargedV2 {
661660
}
662661
} else if (nmode == cfgNmodB) {
663662
double phiMinusPsi3;
664-
if (collision.qvecAmp()[detId] < 1e-8) {
663+
if (collision.qvecAmp()[detId] < collQvecAmpDetId) {
665664
continue;
666665
}
667666
ep3 = helperEP.GetEventPlane(collision.qvecRe()[detInd], collision.qvecIm()[detInd], nmode);
@@ -1554,6 +1553,7 @@ struct JetChargedV2 {
15541553
aod::JetParticles const&)
15551554
{
15561555
bool mcLevelIsParticleLevel = true;
1556+
int acceptSplitCollInMCP = 2;
15571557

15581558
registry.fill(HIST("h_mcColl_counts_areasub"), 0.5);
15591559
if (std::abs(mccollision.posZ()) > vertexZCut) {
@@ -1572,7 +1572,7 @@ struct JetChargedV2 {
15721572
bool hasSel8Coll = false;
15731573
bool centralityIsGood = false;
15741574
bool occupancyIsGood = false;
1575-
if (acceptSplitCollisions == 2) {
1575+
if (acceptSplitCollisions == acceptSplitCollInMCP) {
15761576
if (jetderiveddatautilities::selectCollision(collisions.begin(), eventSelectionBits, skipMBGapEvents)) {
15771577
hasSel8Coll = true;
15781578
}

0 commit comments

Comments
 (0)