@@ -233,24 +233,24 @@ struct LongrangeMaker {
233233 cfgSgCuts = (SGCutParHolder)sgCuts;
234234 }
235235
236- Produces<aod::CollLRTables> collisionLRTable ;
237- Produces<aod::TrkLRTables> tracksLRTable ;
238- Produces<aod::Ft0aLRTables> ft0aLRTable ;
239- Produces<aod::Ft0cLRTables> ft0cLRTable ;
240- Produces<aod::MftTrkLRTables> mftLRTable ;
241- Produces<aod::MftBestTrkLRTables> mftbestLRTable ;
242- Produces<aod::V0TrkLRTables> v0LRTable ;
243-
244- Produces<aod::UpcCollLRTables> outupccol ;
245- Produces<aod::UpcSgCollLRTables> outsgupccol ;
246- Produces<aod::ZdcLRTables> outzdctable ;
247-
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 ;
236+ Produces<aod::LRCollisions> lrcollision ;
237+ Produces<aod::LRMidTracks> lrmidtracks ;
238+ Produces<aod::LRFt0aTracks> lrft0atracks ;
239+ Produces<aod::LRFt0cTracks> lrft0ctracks ;
240+ Produces<aod::LRMftTracks> lrmfttracks ;
241+ Produces<aod::LRMftBestTracks> lrmftbesttracks ;
242+ Produces<aod::LRV0Tracks> lrv0tracks ;
243+
244+ Produces<aod::UpcLRCollisions> upclrcollision ;
245+ Produces<aod::UpcSgLRCollisions> upcsglrcollision ;
246+ Produces<aod::LRZdcs> lrzdcs ;
247+
248+ Produces<aod::UpcLRMidTracks> upclrmidtracks ;
249+ Produces<aod::UpcLRFt0aTracks> upclrft0atracks ;
250+ Produces<aod::UpcLRFt0cTracks> upclrft0ctracks ;
251+ Produces<aod::UpcLRMftTracks> upclrmfttracks ;
252+ Produces<aod::UpcLRMftBestTracks> upclrmftbesttracks ;
253+ Produces<aod::UpcLRV0Tracks> upclrv0tracks ;
254254
255255 Filter fTracksEta = nabs(aod::track::eta) < cfgtrksel.cfgEtaCut;
256256 Filter fTracksPt = (aod::track::pt > cfgtrksel.cfgPtCutMin) && (aod::track::pt < cfgtrksel.cfgPtCutMax);
@@ -273,21 +273,21 @@ struct LongrangeMaker {
273273 auto centrality = selColCent (col);
274274 auto bc = col.bc_as <aod::BCsWithTimestamps>();
275275
276- collisionLRTable (bc.runNumber (), col.posZ (), multiplicity, centrality, bc.timestamp ());
276+ lrcollision (bc.runNumber (), col.posZ (), multiplicity, centrality, bc.timestamp ());
277277
278278 // track loop
279279 for (const auto & track : tracks) {
280280 if (!track.isGlobalTrack ())
281281 continue ;
282282 if (!myTrackFilter.IsSelected (track))
283283 continue ;
284- tracksLRTable (collisionLRTable .lastIndex (), track.pt (), track.eta (), track.phi (), aod::lrcorrtrktable::kSpCharge );
284+ lrmidtracks (lrcollision .lastIndex (), track.pt (), track.eta (), track.phi (), aod::lrcorrtrktable::kSpCharge );
285285 if (getTrackPID (track) == PionTrackN)
286- tracksLRTable (collisionLRTable .lastIndex (), track.pt (), track.eta (), track.phi (), aod::lrcorrtrktable::kSpPion );
286+ lrmidtracks (lrcollision .lastIndex (), track.pt (), track.eta (), track.phi (), aod::lrcorrtrktable::kSpPion );
287287 if (getTrackPID (track) == KaonTrackN)
288- tracksLRTable (collisionLRTable .lastIndex (), track.pt (), track.eta (), track.phi (), aod::lrcorrtrktable::kSpKaon );
288+ lrmidtracks (lrcollision .lastIndex (), track.pt (), track.eta (), track.phi (), aod::lrcorrtrktable::kSpKaon );
289289 if (getTrackPID (track) == ProtonTrackN)
290- tracksLRTable (collisionLRTable .lastIndex (), track.pt (), track.eta (), track.phi (), aod::lrcorrtrktable::kSpProton );
290+ lrmidtracks (lrcollision .lastIndex (), track.pt (), track.eta (), track.phi (), aod::lrcorrtrktable::kSpProton );
291291 }
292292
293293 // ft0 loop
@@ -298,14 +298,14 @@ struct LongrangeMaker {
298298 float ampl = ft0.amplitudeA ()[iCh];
299299 auto phi = getPhiFT0 (chanelid, 0 );
300300 auto eta = getEtaFT0 (chanelid, 0 );
301- ft0aLRTable (collisionLRTable .lastIndex (), chanelid, ampl, eta, phi);
301+ lrft0atracks (lrcollision .lastIndex (), chanelid, ampl, eta, phi);
302302 }
303303 for (std::size_t iCh = 0 ; iCh < ft0.channelC ().size (); iCh++) {
304304 auto chanelid = ft0.channelC ()[iCh];
305305 float ampl = ft0.amplitudeC ()[iCh];
306306 auto phi = getPhiFT0 (chanelid, 1 );
307307 auto eta = getEtaFT0 (chanelid, 1 );
308- ft0cLRTable (collisionLRTable .lastIndex (), chanelid, ampl, eta, phi);
308+ lrft0ctracks (lrcollision .lastIndex (), chanelid, ampl, eta, phi);
309309 }
310310 }
311311
@@ -315,7 +315,7 @@ struct LongrangeMaker {
315315 continue ;
316316 auto phi = track.phi ();
317317 o2::math_utils::bringTo02Pi (phi);
318- mftLRTable (collisionLRTable .lastIndex (), track.pt (), track.eta (), phi);
318+ lrmfttracks (lrcollision .lastIndex (), track.pt (), track.eta (), phi);
319319 }
320320
321321 if (retracks.size () > 0 ) {
@@ -329,7 +329,7 @@ struct LongrangeMaker {
329329 }
330330 auto phi = track.phi ();
331331 o2::math_utils::bringTo02Pi (phi);
332- mftbestLRTable (collisionLRTable .lastIndex (), track.pt (), track.eta (), phi);
332+ lrmftbesttracks (lrcollision .lastIndex (), track.pt (), track.eta (), phi);
333333 }
334334 }
335335
@@ -344,8 +344,8 @@ struct LongrangeMaker {
344344
345345 // K0short
346346 if (isSelectK0s (col, v0)) { // candidate is K0s
347- v0LRTable (collisionLRTable .lastIndex (), posTrack.globalIndex (), negTrack.globalIndex (),
348- v0.pt (), v0.eta (), v0.phi (), v0.mK0Short (), aod::lrcorrtrktable::kSpK0short );
347+ lrv0tracks (lrcollision .lastIndex (), posTrack.globalIndex (), negTrack.globalIndex (),
348+ v0.pt (), v0.eta (), v0.phi (), v0.mK0Short (), aod::lrcorrtrktable::kSpK0short );
349349 }
350350
351351 // Lambda and Anti-Lambda
@@ -355,13 +355,13 @@ struct LongrangeMaker {
355355 // Note: candidate compatible with Lambda and Anti-Lambda hypothesis are counted twice (once for each hypothesis)
356356 if (lambdaTag) { // candidate is Lambda
357357 massV0 = v0.mLambda ();
358- v0LRTable (collisionLRTable .lastIndex (), posTrack.globalIndex (), negTrack.globalIndex (),
359- v0.pt (), v0.eta (), v0.phi (), massV0, aod::lrcorrtrktable::kSpLambda );
358+ lrv0tracks (lrcollision .lastIndex (), posTrack.globalIndex (), negTrack.globalIndex (),
359+ v0.pt (), v0.eta (), v0.phi (), massV0, aod::lrcorrtrktable::kSpLambda );
360360 }
361361 if (antilambdaTag) { // candidate is Anti-lambda
362362 massV0 = v0.mAntiLambda ();
363- v0LRTable (collisionLRTable .lastIndex (), posTrack.globalIndex (), negTrack.globalIndex (),
364- v0.pt (), v0.eta (), v0.phi (), massV0, aod::lrcorrtrktable::kSpALambda );
363+ lrv0tracks (lrcollision .lastIndex (), posTrack.globalIndex (), negTrack.globalIndex (),
364+ v0.pt (), v0.eta (), v0.phi (), massV0, aod::lrcorrtrktable::kSpALambda );
365365 } // end of Lambda and Anti-Lambda processing
366366 }
367367 } // process function
@@ -398,13 +398,13 @@ struct LongrangeMaker {
398398 upchelpers::FITInfo fitInfo{};
399399 udhelpers::getFITinfo (fitInfo, newbc, bcs, ft0s, fv0as, fdds);
400400 auto multiplicity = countNTracks (tracks);
401- outupccol (bc.globalBC (), bc.runNumber (), col.posZ (), multiplicity, fitInfo.ampFT0A , fitInfo.ampFT0C , fitInfo.timeFV0A );
402- outsgupccol (issgevent);
401+ upclrcollision (bc.globalBC (), bc.runNumber (), col.posZ (), multiplicity, fitInfo.ampFT0A , fitInfo.ampFT0C , fitInfo.timeFV0A );
402+ upcsglrcollision (issgevent);
403403 if (newbc.has_zdc ()) {
404404 auto zdc = newbc.zdc ();
405- outzdctable (outupccol .lastIndex (), zdc.energyCommonZNA (), zdc.energyCommonZNC ());
405+ lrzdcs (upclrcollision .lastIndex (), zdc.energyCommonZNA (), zdc.energyCommonZNC ());
406406 } else {
407- outzdctable (outupccol .lastIndex (), -999 , -999 );
407+ lrzdcs (upclrcollision .lastIndex (), -999 , -999 );
408408 }
409409
410410 // track loop
@@ -413,13 +413,13 @@ struct LongrangeMaker {
413413 continue ;
414414 if (!myTrackFilter.IsSelected (track))
415415 continue ;
416- tracksLRUpcTable (outupccol .lastIndex (), track.pt (), track.eta (), track.phi (), aod::lrcorrtrktable::kSpCharge );
416+ upclrmidtracks (upclrcollision .lastIndex (), track.pt (), track.eta (), track.phi (), aod::lrcorrtrktable::kSpCharge );
417417 if (getTrackPID (track) == PionTrackN)
418- tracksLRUpcTable (outupccol .lastIndex (), track.pt (), track.eta (), track.phi (), aod::lrcorrtrktable::kSpPion );
418+ upclrmidtracks (upclrcollision .lastIndex (), track.pt (), track.eta (), track.phi (), aod::lrcorrtrktable::kSpPion );
419419 if (getTrackPID (track) == KaonTrackN)
420- tracksLRUpcTable (outupccol .lastIndex (), track.pt (), track.eta (), track.phi (), aod::lrcorrtrktable::kSpKaon );
420+ upclrmidtracks (upclrcollision .lastIndex (), track.pt (), track.eta (), track.phi (), aod::lrcorrtrktable::kSpKaon );
421421 if (getTrackPID (track) == ProtonTrackN)
422- tracksLRUpcTable (outupccol .lastIndex (), track.pt (), track.eta (), track.phi (), aod::lrcorrtrktable::kSpProton );
422+ upclrmidtracks (upclrcollision .lastIndex (), track.pt (), track.eta (), track.phi (), aod::lrcorrtrktable::kSpProton );
423423 }
424424
425425 // ft0 loop
@@ -430,14 +430,14 @@ struct LongrangeMaker {
430430 float ampl = ft0.amplitudeA ()[iCh];
431431 auto phi = getPhiFT0 (chanelid, 0 );
432432 auto eta = getEtaFT0 (chanelid, 0 );
433- ft0aLRUpcTable (outupccol .lastIndex (), chanelid, ampl, eta, phi);
433+ upclrft0atracks (upclrcollision .lastIndex (), chanelid, ampl, eta, phi);
434434 }
435435 for (std::size_t iCh = 0 ; iCh < ft0.channelC ().size (); iCh++) {
436436 auto chanelid = ft0.channelC ()[iCh];
437437 float ampl = ft0.amplitudeC ()[iCh];
438438 auto phi = getPhiFT0 (chanelid, 1 );
439439 auto eta = getEtaFT0 (chanelid, 1 );
440- ft0cLRUpcTable (outupccol .lastIndex (), chanelid, ampl, eta, phi);
440+ upclrft0ctracks (upclrcollision .lastIndex (), chanelid, ampl, eta, phi);
441441 }
442442 }
443443
@@ -447,7 +447,7 @@ struct LongrangeMaker {
447447 continue ;
448448 auto phi = track.phi ();
449449 o2::math_utils::bringTo02Pi (phi);
450- mftLRUpcTable (outupccol .lastIndex (), track.pt (), track.eta (), phi);
450+ upclrmfttracks (upclrcollision .lastIndex (), track.pt (), track.eta (), phi);
451451 }
452452
453453 if (retracks.size () > 0 ) {
@@ -461,7 +461,7 @@ struct LongrangeMaker {
461461 }
462462 auto phi = track.phi ();
463463 o2::math_utils::bringTo02Pi (phi);
464- mftbestLRUpcTable (outupccol .lastIndex (), track.pt (), track.eta (), phi);
464+ upclrmftbesttracks (upclrcollision .lastIndex (), track.pt (), track.eta (), phi);
465465 }
466466 }
467467
@@ -476,8 +476,8 @@ struct LongrangeMaker {
476476
477477 // K0short
478478 if (isSelectK0s (col, v0)) { // candidate is K0s
479- v0LRUpcTable (outupccol .lastIndex (), posTrack.globalIndex (), negTrack.globalIndex (),
480- v0.pt (), v0.eta (), v0.phi (), v0.mK0Short (), aod::lrcorrtrktable::kSpK0short );
479+ upclrv0tracks (upclrcollision .lastIndex (), posTrack.globalIndex (), negTrack.globalIndex (),
480+ v0.pt (), v0.eta (), v0.phi (), v0.mK0Short (), aod::lrcorrtrktable::kSpK0short );
481481 }
482482
483483 // Lambda and Anti-Lambda
@@ -487,13 +487,13 @@ struct LongrangeMaker {
487487 // Note: candidate compatible with Lambda and Anti-Lambda hypothesis are counted twice (once for each hypothesis)
488488 if (lambdaTag) { // candidate is Lambda
489489 massV0 = v0.mLambda ();
490- v0LRUpcTable (outupccol .lastIndex (), posTrack.globalIndex (), negTrack.globalIndex (),
491- v0.pt (), v0.eta (), v0.phi (), massV0, aod::lrcorrtrktable::kSpLambda );
490+ upclrv0tracks (upclrcollision .lastIndex (), posTrack.globalIndex (), negTrack.globalIndex (),
491+ v0.pt (), v0.eta (), v0.phi (), massV0, aod::lrcorrtrktable::kSpLambda );
492492 }
493493 if (antilambdaTag) { // candidate is Anti-lambda
494494 massV0 = v0.mAntiLambda ();
495- v0LRUpcTable (outupccol .lastIndex (), posTrack.globalIndex (), negTrack.globalIndex (),
496- v0.pt (), v0.eta (), v0.phi (), massV0, aod::lrcorrtrktable::kSpALambda );
495+ upclrv0tracks (upclrcollision .lastIndex (), posTrack.globalIndex (), negTrack.globalIndex (),
496+ v0.pt (), v0.eta (), v0.phi (), massV0, aod::lrcorrtrktable::kSpALambda );
497497 } // end of Lambda and Anti-Lambda processing
498498 }
499499 } // SG events
0 commit comments