|
14 | 14 | /// |
15 | 15 | /// \author Andreas Molander andreas.molander@cern.ch |
16 | 16 |
|
17 | | - |
18 | 17 | #include "Common/DataModel/EventSelection.h" |
19 | 18 | #include "Common/DataModel/FT0Corrected.h" |
20 | 19 | #include "Common/DataModel/Multiplicity.h" |
21 | 20 |
|
| 21 | +#include "FV0Base/Constants.h" |
22 | 22 | #include "Framework/AnalysisDataModel.h" |
23 | 23 | #include "Framework/AnalysisTask.h" |
24 | 24 | #include "Framework/runDataProcessing.h" |
25 | | -#include "FV0Base/Constants.h" |
| 25 | + |
26 | 26 | #include "FDDBase/Constants.h" |
27 | 27 |
|
28 | 28 | #include <cstdint> |
@@ -103,9 +103,9 @@ DECLARE_SOA_COLUMN(T0AC, t0AC, float); |
103 | 103 | DECLARE_SOA_COLUMN(T0Resolution, t0resolution, float); |
104 | 104 |
|
105 | 105 | // FT0 derived quantities |
106 | | -DECLARE_SOA_COLUMN(FT0ChAmpl, ft0ChAmpl, std::vector<float>); ///< FT0 channel amplitudes, vector idx = ch ID |
107 | | -DECLARE_SOA_COLUMN(FT0TotAmplA, ft0TotAmplA, float); ///< FT0-A total amplitude computed from channel amplitudes (for cross check) |
108 | | -DECLARE_SOA_COLUMN(FT0TotAmplC, ft0TotAmplC, float); ///< FT0-C total amplitude computed from channel amplitudes (for cross check) |
| 106 | +DECLARE_SOA_COLUMN(FT0ChAmpl, ft0ChAmpl, std::vector<float>); ///< FT0 channel amplitudes, vector idx = ch ID |
| 107 | +DECLARE_SOA_COLUMN(FT0TotAmplA, ft0TotAmplA, float); ///< FT0-A total amplitude computed from channel amplitudes (for cross check) |
| 108 | +DECLARE_SOA_COLUMN(FT0TotAmplC, ft0TotAmplC, float); ///< FT0-C total amplitude computed from channel amplitudes (for cross check) |
109 | 109 |
|
110 | 110 | // FV0As |
111 | 111 | DECLARE_SOA_COLUMN(FV0BCId, fv0BCId, int32_t); |
@@ -159,18 +159,18 @@ using FITAll = FITsAll::iterator; |
159 | 159 |
|
160 | 160 | } // namespace o2::aod |
161 | 161 |
|
162 | | - |
163 | 162 | struct fitAll { |
164 | 163 | // Producer |
165 | 164 | Produces<o2::aod::FITAll> table; |
166 | 165 |
|
167 | 166 | void init(InitContext const&) |
168 | 167 | { |
169 | 168 | } |
170 | | - |
| 169 | + |
171 | 170 | void process(soa::Join<aod::Collisions, aod::EvSels, aod::MultsRun3, aod::FT0sCorrected> const& collisions, |
172 | 171 | aod::BCsWithTimestamps const&, |
173 | | - aod::FT0s const&, aod::FV0As const&, aod::FDDs const&, aod::Zdcs const&) { |
| 172 | + aod::FT0s const&, aod::FV0As const&, aod::FDDs const&, aod::Zdcs const&) |
| 173 | + { |
174 | 174 | table.reserve(collisions.size()); |
175 | 175 |
|
176 | 176 | // BC |
@@ -269,13 +269,13 @@ struct fitAll { |
269 | 269 |
|
270 | 270 | for (const auto& collision : collisions) { |
271 | 271 | auto bc = collision.bc_as<aod::BCsWithTimestamps>(); |
272 | | - |
| 272 | + |
273 | 273 | // BC |
274 | 274 | runNumber = bc.runNumber(); |
275 | 275 | globalBC = bc.globalBC(); |
276 | 276 | ctpTriggerMask = bc.triggerMask(); |
277 | 277 | ctpInputMask = bc.inputMask(); |
278 | | - |
| 278 | + |
279 | 279 | // Timestamp |
280 | 280 | timestamp = bc.timestamp(); |
281 | 281 |
|
@@ -402,7 +402,7 @@ struct fitAll { |
402 | 402 | fv0BCId = fv0.bcId(); |
403 | 403 | fv0Time = fv0.time(); |
404 | 404 | fv0TriggerMask = fv0.triggerMask(); |
405 | | - |
| 405 | + |
406 | 406 | for (size_t i = 0; i < fv0.amplitude().size(); i++) { |
407 | 407 | // FV0A |
408 | 408 | fv0Amplitude.push_back(fv0.amplitude()[i]); |
|
0 commit comments