|
16 | 16 | /// \author Nicolò Jacazio <nicolo.jacazio@cern.ch>, Universita del Piemonte Orientale (IT) |
17 | 17 | /// |
18 | 18 |
|
19 | | -#include "ALICE3/Core/FastTracker.h" |
20 | 19 | #include "ALICE3/Core/FlatLutEntry.h" |
21 | 20 | #include "ALICE3/Core/FlatTrackSmearer.h" |
22 | 21 | #include "ALICE3/Core/TrackUtilities.h" |
|
30 | 29 |
|
31 | 30 | #include <TPDGCode.h> |
32 | 31 |
|
33 | | -#include <map> |
34 | 32 | #include <string> |
35 | 33 | #include <vector> |
36 | 34 |
|
@@ -151,35 +149,37 @@ struct TestCcdbConsumer0 { |
151 | 149 | } |
152 | 150 |
|
153 | 151 | o2::track::TrackParCov fullTrack = o2::upgrade::convertMCParticleToO2Track(mcParticle, pdgDB); |
| 152 | + float interpolatedEff; |
| 153 | + const o2::delphes::lutEntry_t* lutEntry = fullSmearer.getLUTEntry(std::abs(mcParticle.pdgCode()), mcParticles.size(), 0.f, mcParticle.eta(), mcParticle.pt(), interpolatedEff); |
154 | 154 | switch (std::abs(mcParticle.pdgCode())) { |
155 | 155 | case PDG_t::kElectron: |
156 | | - success = fullSmearer.smearTrack(fullTrack, lutDataEl, mcParticles.size()); |
| 156 | + success = fullSmearer.smearTrack(fullTrack, lutEntry, mcParticles.size()); |
157 | 157 | if (success) { |
158 | 158 | histos.fill(HIST("full/hDeltaPtEl"), (mcParticle.pt() - fullTrack.getPt()) / fullTrack.getPt()); |
159 | 159 | histos.fill(HIST("full/h2dDeltaPtEl"), fullTrack.getPt(), (mcParticle.pt() - fullTrack.getPt()) / fullTrack.getPt()); |
160 | 160 | } |
161 | 161 | break; |
162 | 162 | case PDG_t::kMuonMinus: |
163 | | - success = fullSmearer.smearTrack(fullTrack, lutDataMu, mcParticles.size()); |
| 163 | + success = fullSmearer.smearTrack(fullTrack, lutEntry, mcParticles.size()); |
164 | 164 | histos.fill(HIST("full/hDeltaPtMu"), (fullTrack.getPt() - mcParticle.pt()) / fullTrack.getPt()); |
165 | 165 | histos.fill(HIST("full/h2dDeltaPtMu"), fullTrack.getPt(), (mcParticle.pt() - fullTrack.getPt()) / fullTrack.getPt()); |
166 | 166 | break; |
167 | 167 | case PDG_t::kPiPlus: |
168 | | - success = fullSmearer.smearTrack(fullTrack, lutDataPi, mcParticles.size()); |
| 168 | + success = fullSmearer.smearTrack(fullTrack, lutEntry, mcParticles.size()); |
169 | 169 | if (success) { |
170 | 170 | histos.fill(HIST("full/hDeltaPtPi"), (fullTrack.getPt() - mcParticle.pt()) / fullTrack.getPt()); |
171 | 171 | histos.fill(HIST("full/h2dDeltaPtPi"), fullTrack.getPt(), (mcParticle.pt() - fullTrack.getPt()) / fullTrack.getPt()); |
172 | 172 | } |
173 | 173 | break; |
174 | 174 | case PDG_t::kKPlus: |
175 | | - success = fullSmearer.smearTrack(fullTrack, lutDataKa, mcParticles.size()); |
| 175 | + success = fullSmearer.smearTrack(fullTrack, lutEntry, mcParticles.size()); |
176 | 176 | if (success) { |
177 | 177 | histos.fill(HIST("full/hDeltaPtKa"), (fullTrack.getPt() - mcParticle.pt()) / fullTrack.getPt()); |
178 | 178 | histos.fill(HIST("full/h2dDeltaPtKa"), fullTrack.getPt(), (mcParticle.pt() - fullTrack.getPt()) / fullTrack.getPt()); |
179 | 179 | } |
180 | 180 | break; |
181 | 181 | case PDG_t::kProton: |
182 | | - success = fullSmearer.smearTrack(fullTrack, lutDataPr, mcParticles.size()); |
| 182 | + success = fullSmearer.smearTrack(fullTrack, lutEntry, mcParticles.size()); |
183 | 183 | if (success) { |
184 | 184 | histos.fill(HIST("full/hDeltaPtPr"), (fullTrack.getPt() - mcParticle.pt()) / fullTrack.getPt()); |
185 | 185 | histos.fill(HIST("full/h2dDeltaPtPr"), fullTrack.getPt(), (mcParticle.pt() - fullTrack.getPt()) / fullTrack.getPt()); |
|
0 commit comments