|
21 | 21 |
|
22 | 22 | #include "Common/Core/CollisionTypeHelper.h" |
23 | 23 | #include "Common/Core/MetadataHelper.h" |
| 24 | +#include "Common/Core/PID/PIDTOF.h" |
24 | 25 | #include "Common/Core/PID/PIDTOFParamService.h" |
25 | 26 | #include "Common/Core/TableHelper.h" |
26 | 27 | #include "Common/DataModel/EventSelection.h" |
|
40 | 41 | #include <Framework/InitContext.h> |
41 | 42 | #include <Framework/OutputObjHeader.h> |
42 | 43 | #include <Framework/runDataProcessing.h> |
43 | | -#include <PID/PIDTOF.h> |
44 | 44 | #include <ReconstructionDataFormats/PID.h> |
45 | 45 | #include <TOFBase/EventTimeMaker.h> |
46 | 46 |
|
@@ -345,7 +345,7 @@ struct tofEventTime { |
345 | 345 | tableEvTime.reserve(tracks.size()); |
346 | 346 | tableFlags.reserve(tracks.size()); |
347 | 347 |
|
348 | | - for (auto const& t : tracks) { // Loop on collisions |
| 348 | + for (auto const& t : tracks) { // Loop on collisions |
349 | 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); |
@@ -399,8 +399,8 @@ struct tofEventTime { |
399 | 399 | LOG(debug) << "Running on " << CollisionSystemType::getCollisionSystemName(tofResponse->cfgCollisionType()) << " mComputeEvTimeWithTOF " << mComputeEvTimeWithTOF.value << " mComputeEvTimeWithFT0 " << mComputeEvTimeWithFT0.value; |
400 | 400 |
|
401 | 401 | if (mComputeEvTimeWithTOF == 1 && mComputeEvTimeWithFT0 == 1) { |
402 | | - int lastCollisionId = -1; // Last collision ID analysed |
403 | | - for (auto const& t : tracks) { // Loop on collisions |
| 402 | + int lastCollisionId = -1; // Last collision ID analysed |
| 403 | + for (auto const& t : tracks) { // Loop on collisions |
404 | 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 |
405 | 405 | tableFlags(0); |
406 | 406 | tableEvTime(0.f, 999.f); |
@@ -475,8 +475,8 @@ struct tofEventTime { |
475 | 475 | } |
476 | 476 | } |
477 | 477 | } else if (mComputeEvTimeWithTOF == 1 && mComputeEvTimeWithFT0 == 0) { |
478 | | - int lastCollisionId = -1; // Last collision ID analysed |
479 | | - for (auto const& t : tracks) { // Loop on collisions |
| 478 | + int lastCollisionId = -1; // Last collision ID analysed |
| 479 | + for (auto const& t : tracks) { // Loop on collisions |
480 | 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); |
@@ -906,7 +906,7 @@ struct tofPidMerge { |
906 | 906 |
|
907 | 907 | float resolution = 1.f; // Last resolution assigned |
908 | 908 | float nsigma = 0; |
909 | | - for (auto const& trk : tracks) { // Loop on all tracks |
| 909 | + for (auto const& trk : tracks) { // Loop on all tracks |
910 | 910 | if (!trk.has_collision() || collisions.size() == 0) { // Track was not assigned, cannot compute NSigma (no event time) -> filling with empty table |
911 | 911 | for (auto const& pidId : mEnabledParticles) { |
912 | 912 | makeTableEmpty(pidId, false); |
@@ -1068,7 +1068,7 @@ struct tofPidMerge { |
1068 | 1068 |
|
1069 | 1069 | float resolution = 1.f; // Last resolution assigned |
1070 | 1070 | float nsigma = 0; |
1071 | | - for (auto const& trk : tracks) { // Loop on all tracks |
| 1071 | + for (auto const& trk : tracks) { // Loop on all tracks |
1072 | 1072 | if (!trk.has_collision() || collisions.size() == 0) { // Track was not assigned, cannot compute NSigma (no event time) -> filling with empty table |
1073 | 1073 | for (auto const& pidId : mEnabledParticles) { |
1074 | 1074 | makeTableEmpty(pidId, false); |
|
0 commit comments