You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Common/TableProducer/PID/pidTOFBase.cxx
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -358,7 +358,7 @@ struct tofEventTime {
358
358
using ResponseImplementationEvTime = o2::pid::tof::ExpTimes<TrksEvTime::iterator, pid>;
359
359
using EvTimeCollisions = soa::Join<aod::Collisions, aod::EvSels>;
360
360
voidprocessNoFT0(TrksEvTime const& tracks,
361
-
EvTimeCollisions const&)
361
+
EvTimeCollisions const& collisions)
362
362
{
363
363
if (!enableTable) {
364
364
return;
@@ -372,7 +372,7 @@ struct tofEventTime {
372
372
373
373
int lastCollisionId = -1; // Last collision ID analysed
374
374
for (autoconst& t : tracks) { // Loop on collisions
375
-
if (!t.has_collision() || ((sel8TOFEvTime.value == true) && !t.collision_as<EvTimeCollisions>().sel8())) { // Track was not assigned, cannot compute event time or event did not pass the event selection
375
+
if (!t.has_collision() || collisions.size() == 0 || ((sel8TOFEvTime.value == true) && !t.collision_as<EvTimeCollisions>().sel8())) { // Track was not assigned, cannot compute event time or event did not pass the event selection
376
376
tableFlags(0);
377
377
tableEvTime(0.f, 999.f);
378
378
if (enableTableTOFOnly) {
@@ -420,7 +420,7 @@ struct tofEventTime {
420
420
using EvTimeCollisionsFT0 = soa::Join<EvTimeCollisions, aod::FT0sCorrected>;
421
421
voidprocessFT0(TrksEvTime const& tracks,
422
422
aod::FT0s const&,
423
-
EvTimeCollisionsFT0 const&)
423
+
EvTimeCollisionsFT0 const& collisions)
424
424
{
425
425
if (!enableTable) {
426
426
return;
@@ -434,7 +434,7 @@ struct tofEventTime {
434
434
435
435
int lastCollisionId = -1; // Last collision ID analysed
436
436
for (autoconst& t : tracks) { // Loop on collisions
437
-
if (!t.has_collision() || ((sel8TOFEvTime.value == true) && !t.collision_as<EvTimeCollisionsFT0>().sel8())) { // Track was not assigned, cannot compute event time or event did not pass the event selection
437
+
if (!t.has_collision() || collisions.size() == 0 || ((sel8TOFEvTime.value == true) && !t.collision_as<EvTimeCollisionsFT0>().sel8())) { // Track was not assigned, cannot compute event time or event did not pass the event selection
438
438
tableFlags(0);
439
439
tableEvTime(0.f, 999.f);
440
440
if (enableTableTOFOnly) {
@@ -515,7 +515,7 @@ struct tofEventTime {
515
515
/// Process function to prepare the event for each track on Run 3 data with only the FT0
516
516
voidprocessOnlyFT0(TrksEvTime const& tracks,
517
517
aod::FT0s const&,
518
-
EvTimeCollisionsFT0 const&)
518
+
EvTimeCollisionsFT0 const& collisions)
519
519
{
520
520
if (!enableTable) {
521
521
return;
@@ -531,7 +531,7 @@ struct tofEventTime {
531
531
if (enableTableTOFOnly) {
532
532
tableEvTimeTOFOnly((uint8_t)0, 0.f, 0.f, -1);
533
533
}
534
-
if (!t.has_collision()) { // Track was not assigned, cannot compute event time
534
+
if (!t.has_collision() || collisions.size() == 0) { // Track was not assigned, cannot compute event time
Copy file name to clipboardExpand all lines: Common/TableProducer/PID/pidTOFMerge.cxx
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -334,7 +334,7 @@ struct tofEventTime {
334
334
///
335
335
/// Process function to prepare the event for each track on Run 2 data
336
336
voidprocessRun2(aod::Tracks const& tracks,
337
-
aod::Collisions const&,
337
+
aod::Collisions const& collisions,
338
338
aod::BCsWithTimestamps const& bcs)
339
339
{
340
340
if (!enableTableTOFEvTime) {
@@ -346,7 +346,7 @@ struct tofEventTime {
346
346
tableFlags.reserve(tracks.size());
347
347
348
348
for (autoconst& t : tracks) { // Loop on collisions
349
-
if (!t.has_collision()) { // Track was not assigned, cannot compute event time
349
+
if (!t.has_collision() || collisions.size() == 0) {// Track was not assigned, cannot compute event time
350
350
tableFlags(0);
351
351
tableEvTime(0.f, 999.f);
352
352
continue;
@@ -365,7 +365,7 @@ struct tofEventTime {
365
365
using ResponseImplementationEvTime = o2::pid::tof::ExpTimes<Run3TrksWtof::iterator, pid>;
366
366
voidprocessRun3(Run3TrksWtof const& tracks,
367
367
aod::FT0s const&,
368
-
EvTimeCollisionsFT0 const&,
368
+
EvTimeCollisionsFT0 const& collisions,
369
369
aod::BCsWithTimestamps const& bcs)
370
370
{
371
371
if (!enableTableTOFEvTime) {
@@ -401,7 +401,7 @@ struct tofEventTime {
401
401
if (mComputeEvTimeWithTOF == 1 && mComputeEvTimeWithFT0 == 1) {
402
402
int lastCollisionId = -1; // Last collision ID analysed
403
403
for (autoconst& t : tracks) { // Loop on collisions
404
-
if (!t.has_collision() || ((sel8TOFEvTime.value == true) && !t.collision_as<EvTimeCollisionsFT0>().sel8())) { // Track was not assigned, cannot compute event time or event did not pass the event selection
404
+
if (!t.has_collision() || collisions.size() == 0 || ((sel8TOFEvTime.value == true) && !t.collision_as<EvTimeCollisionsFT0>().sel8())) { // Track was not assigned, cannot compute event time or event did not pass the event selection
int lastCollisionId = -1; // Last collision ID analysed
479
479
for (autoconst& t : tracks) { // Loop on collisions
480
-
if (!t.has_collision() || ((sel8TOFEvTime.value == true) && !t.collision_as<EvTimeCollisions>().sel8())) { // Track was not assigned, cannot compute event time or event did not pass the event selection
480
+
if (!t.has_collision() || collisions.size() == 0 || ((sel8TOFEvTime.value == true) && !t.collision_as<EvTimeCollisions>().sel8())) { // Track was not assigned, cannot compute event time or event did not pass the event selection
481
481
tableFlags(0);
482
482
tableEvTime(0.f, 999.f);
483
483
if (enableTableEvTimeTOFOnly) {
@@ -522,7 +522,7 @@ struct tofEventTime {
522
522
if (enableTableEvTimeTOFOnly) {
523
523
tableEvTimeTOFOnly((uint8_t)0, 0.f, 0.f, -1);
524
524
}
525
-
if (!t.has_collision()) { // Track was not assigned, cannot compute event time
525
+
if (!t.has_collision() || collisions.size() == 0) { // Track was not assigned, cannot compute event time
526
526
tableFlags(0);
527
527
tableEvTime(0.f, 999.f);
528
528
continue;
@@ -881,7 +881,7 @@ struct tofPidMerge {
881
881
template <o2::track::PID::ID pid>
882
882
using ResponseImplementation = o2::pid::tof::ExpTimes<Run3TrksWtofWevTime::iterator, pid>;
0 commit comments