Skip to content

Commit 83f3b80

Browse files
committed
Fix code, remove event loop for now
1 parent ffd6b30 commit 83f3b80

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

PWGEM/Dilepton/Tasks/mcParticlePredictionsOTF.cxx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct otfParticlePrediction {
2929
ConfigurableAxis binsEta{"binsEta", {100, -5, 5}, "Binning of the Eta axis"};
3030
ConfigurableAxis binsPt{"binsPt", {100, 0, 10}, "Binning of the Pt axis"};
3131

32-
configurable<double> maxEtaParticle{"maxEtaParticle", 5.0, "Max eta of particles considered"}
32+
Configurable<float> maxEtaParticle{"maxEtaParticle", 5.f, "Max eta of particles considered"};
3333

3434
// init function
3535
void
@@ -51,12 +51,8 @@ struct otfParticlePrediction {
5151
void process(aod::McCollisions const& mcCollisions,
5252
aod::McParticles const& mcParticles)
5353
{
54-
for (const auto& collision : mcCollisions) {
55-
histos.fill(HIST("collisions/generated"), 0);
56-
if (std::abs(collision.posZ())) {
57-
histos.fill(HIST("collisions/generated"), 1);
58-
}
59-
}
54+
55+
histos.fill(HIST("collisions/generated"), 0, mcCollisions.size());
6056

6157
for (const auto& particle : mcParticles) {
6258
auto pdg = std::abs(particle.pdgCode());

0 commit comments

Comments
 (0)