Skip to content

Commit df522c1

Browse files
authored
Update table informaion
1 parent dbc04d8 commit df522c1

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

PWGCF/TwoParticleCorrelations/TableProducer/longrangeMaker.cxx

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,13 @@ struct LongrangeMaker {
245245
Produces<aod::UpcSgCollLRTables> outsgupccol;
246246
Produces<aod::ZdcLRTables> outzdctable;
247247

248+
Produces<aod::TrkLRUpcTables> tracksLRUpcTable;
249+
Produces<aod::Ft0aLRUpcTables> ft0aLRUpcTable;
250+
Produces<aod::Ft0cLRUpcTables> ft0cLRUpcTable;
251+
Produces<aod::MftTrkLRUpcTables> mftLRUpcTable;
252+
Produces<aod::MftBestTrkLRUpcTables> mftbestLRUpcTable;
253+
Produces<aod::V0TrkLRUpcTables> v0LRUpcTable;
254+
248255
Filter fTracksEta = nabs(aod::track::eta) < cfgtrksel.cfgEtaCut;
249256
Filter fTracksPt = (aod::track::pt > cfgtrksel.cfgPtCutMin) && (aod::track::pt < cfgtrksel.cfgPtCutMax);
250257

@@ -406,13 +413,13 @@ struct LongrangeMaker {
406413
continue;
407414
if (!myTrackFilter.IsSelected(track))
408415
continue;
409-
tracksLRTable(outupccol.lastIndex(), track.pt(), track.eta(), track.phi(), aod::lrcorrtrktable::kSpCharge);
416+
tracksLRUpcTable(outupccol.lastIndex(), track.pt(), track.eta(), track.phi(), aod::lrcorrtrktable::kSpCharge);
410417
if (getTrackPID(track) == PionTrackN)
411-
tracksLRTable(outupccol.lastIndex(), track.pt(), track.eta(), track.phi(), aod::lrcorrtrktable::kSpPion);
418+
tracksLRUpcTable(outupccol.lastIndex(), track.pt(), track.eta(), track.phi(), aod::lrcorrtrktable::kSpPion);
412419
if (getTrackPID(track) == KaonTrackN)
413-
tracksLRTable(outupccol.lastIndex(), track.pt(), track.eta(), track.phi(), aod::lrcorrtrktable::kSpKaon);
420+
tracksLRUpcTable(outupccol.lastIndex(), track.pt(), track.eta(), track.phi(), aod::lrcorrtrktable::kSpKaon);
414421
if (getTrackPID(track) == ProtonTrackN)
415-
tracksLRTable(outupccol.lastIndex(), track.pt(), track.eta(), track.phi(), aod::lrcorrtrktable::kSpProton);
422+
tracksLRUpcTable(outupccol.lastIndex(), track.pt(), track.eta(), track.phi(), aod::lrcorrtrktable::kSpProton);
416423
}
417424

418425
// ft0 loop
@@ -423,14 +430,14 @@ struct LongrangeMaker {
423430
float ampl = ft0.amplitudeA()[iCh];
424431
auto phi = getPhiFT0(chanelid, 0);
425432
auto eta = getEtaFT0(chanelid, 0);
426-
ft0aLRTable(outupccol.lastIndex(), chanelid, ampl, eta, phi);
433+
ft0aLRUpcTable(outupccol.lastIndex(), chanelid, ampl, eta, phi);
427434
}
428435
for (std::size_t iCh = 0; iCh < ft0.channelC().size(); iCh++) {
429436
auto chanelid = ft0.channelC()[iCh];
430437
float ampl = ft0.amplitudeC()[iCh];
431438
auto phi = getPhiFT0(chanelid, 1);
432439
auto eta = getEtaFT0(chanelid, 1);
433-
ft0cLRTable(outupccol.lastIndex(), chanelid, ampl, eta, phi);
440+
ft0cLRUpcTable(outupccol.lastIndex(), chanelid, ampl, eta, phi);
434441
}
435442
}
436443

@@ -440,7 +447,7 @@ struct LongrangeMaker {
440447
continue;
441448
auto phi = track.phi();
442449
o2::math_utils::bringTo02Pi(phi);
443-
mftLRTable(outupccol.lastIndex(), track.pt(), track.eta(), phi);
450+
mftLRUpcTable(outupccol.lastIndex(), track.pt(), track.eta(), phi);
444451
}
445452

446453
if (retracks.size() > 0) {
@@ -454,7 +461,7 @@ struct LongrangeMaker {
454461
}
455462
auto phi = track.phi();
456463
o2::math_utils::bringTo02Pi(phi);
457-
mftbestLRTable(outupccol.lastIndex(), track.pt(), track.eta(), phi);
464+
mftbestLRUpcTable(outupccol.lastIndex(), track.pt(), track.eta(), phi);
458465
}
459466
}
460467

@@ -469,8 +476,8 @@ struct LongrangeMaker {
469476

470477
// K0short
471478
if (isSelectK0s(col, v0)) { // candidate is K0s
472-
v0LRTable(outupccol.lastIndex(), posTrack.globalIndex(), negTrack.globalIndex(),
473-
v0.pt(), v0.eta(), v0.phi(), v0.mK0Short(), aod::lrcorrtrktable::kSpK0short);
479+
v0LRUpcTable(outupccol.lastIndex(), posTrack.globalIndex(), negTrack.globalIndex(),
480+
v0.pt(), v0.eta(), v0.phi(), v0.mK0Short(), aod::lrcorrtrktable::kSpK0short);
474481
}
475482

476483
// Lambda and Anti-Lambda
@@ -480,13 +487,13 @@ struct LongrangeMaker {
480487
// Note: candidate compatible with Lambda and Anti-Lambda hypothesis are counted twice (once for each hypothesis)
481488
if (lambdaTag) { // candidate is Lambda
482489
massV0 = v0.mLambda();
483-
v0LRTable(outupccol.lastIndex(), posTrack.globalIndex(), negTrack.globalIndex(),
484-
v0.pt(), v0.eta(), v0.phi(), massV0, aod::lrcorrtrktable::kSpLambda);
490+
v0LRUpcTable(outupccol.lastIndex(), posTrack.globalIndex(), negTrack.globalIndex(),
491+
v0.pt(), v0.eta(), v0.phi(), massV0, aod::lrcorrtrktable::kSpLambda);
485492
}
486493
if (antilambdaTag) { // candidate is Anti-lambda
487494
massV0 = v0.mAntiLambda();
488-
v0LRTable(outupccol.lastIndex(), posTrack.globalIndex(), negTrack.globalIndex(),
489-
v0.pt(), v0.eta(), v0.phi(), massV0, aod::lrcorrtrktable::kSpALambda);
495+
v0LRUpcTable(outupccol.lastIndex(), posTrack.globalIndex(), negTrack.globalIndex(),
496+
v0.pt(), v0.eta(), v0.phi(), massV0, aod::lrcorrtrktable::kSpALambda);
490497
} // end of Lambda and Anti-Lambda processing
491498
}
492499
} // SG events

0 commit comments

Comments
 (0)