|
58 | 58 | int nsize = 0; \ |
59 | 59 | int ncls = 0; \ |
60 | 60 | for (int il = v1; il < v2; il++) { \ |
61 | | - nsize += track.itsClsSizeInLayer(il); \ |
62 | | - if (nsize > 0) { \ |
| 61 | + if (track.itsClsSizeInLayer(il) > 0) { \ |
63 | 62 | ncls++; \ |
64 | 63 | } \ |
| 64 | + nsize += track.itsClsSizeInLayer(il); \ |
65 | 65 | } \ |
66 | 66 | inputFeature = static_cast<float>(nsize) / static_cast<float>(ncls); \ |
67 | 67 | break; \ |
|
73 | 73 | int nsize = 0; \ |
74 | 74 | int ncls = 0; \ |
75 | 75 | for (int il = v1; il < v2; il++) { \ |
76 | | - nsize += track.itsClsSizeInLayer(il); \ |
77 | | - if (nsize > 0) { \ |
| 76 | + if (track.itsClsSizeInLayer(il) > 0) { \ |
78 | 77 | ncls++; \ |
79 | 78 | } \ |
| 79 | + nsize += track.itsClsSizeInLayer(il); \ |
80 | 80 | } \ |
81 | 81 | inputFeature = static_cast<float>(nsize) / static_cast<float>(ncls) * std::cos(std::atan(trackParCov.getTgl())); \ |
82 | 82 | break; \ |
|
107 | 107 | break; \ |
108 | 108 | } |
109 | 109 |
|
110 | | -// Check if the index of mCachedIndices (index associated to a FEATURE) |
111 | | -// matches the entry in EnumInputFeatures associated to this FEATURE |
112 | | -// if so, the inputFeatures vector is filled with the FEATURE's value |
113 | | -// by calling the corresponding GETTER1 from track and multiplying with cos(atan(GETTER2)) |
114 | | -#define CHECK_AND_FILL_O2_TRACK_COS(FEATURE, GETTER1, GETTER2) \ |
115 | | - case static_cast<uint8_t>(InputFeaturesO2Track::FEATURE): { \ |
116 | | - inputFeature = track.GETTER1() * std::cos(std::atan(track.GETTER2())); \ |
117 | | - break; \ |
118 | | - } |
119 | | - |
120 | 110 | // Check if the index of mCachedIndices (index associated to a FEATURE) |
121 | 111 | // matches the entry in EnumInputFeatures associated to this FEATURE |
122 | 112 | // if so, the inputFeatures vector is filled with the FEATURE's value |
@@ -343,7 +333,6 @@ class MlResponseO2Track : public MlResponse<TypeOutputScore> |
343 | 333 | #undef CHECK_AND_FILL_O2_TRACK_MEAN_ITSCLUSTER_SIZE |
344 | 334 | #undef CHECK_AND_FILL_O2_TRACK_MEAN_ITSCLUSTER_SIZE_COS |
345 | 335 | #undef CHECK_AND_FILL_O2_TRACK_SQRT |
346 | | -#undef CHECK_AND_FILL_O2_TRACK_COS |
347 | 336 | #undef CHECK_AND_FILL_O2_TRACK_TPCTOF |
348 | 337 | #undef CHECK_AND_FILL_O2_TRACK_RELDIFF |
349 | 338 | #undef CHECK_AND_FILL_DIELECTRON_COLLISION |
|
0 commit comments