Skip to content

Commit 4d24c81

Browse files
committed
changes to rename properly the files
1 parent a9a3c49 commit 4d24c81

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

PWGJE/DataModel/SlimTables.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ DECLARE_SOA_DYNAMIC_COLUMN(Energy, energy,
8888
} // namespace slimtracks
8989
DECLARE_SOA_TABLE(SlimTracks, "AOD", "SlimTracks",
9090
o2::soa::Index<>,
91-
slimtracks::Collision,
91+
slimtracks::CollisionId,
9292
slimtracks::Pt,
9393
slimtracks::Eta,
9494
slimtracks::Phi,
@@ -100,11 +100,11 @@ DECLARE_SOA_TABLE(SlimTracks, "AOD", "SlimTracks",
100100

101101
namespace slimparticles
102102
{
103+
DECLARE_SOA_INDEX_COLUMN(McCollision, mccollision);
103104
DECLARE_SOA_INDEX_COLUMN(McParticle, mcParticle);
104105
DECLARE_SOA_COLUMN(Pt, pt, float);
105106
DECLARE_SOA_COLUMN(Eta, eta, float);
106107
DECLARE_SOA_COLUMN(Phi, phi, float);
107-
108108
DECLARE_SOA_DYNAMIC_COLUMN(Px, px,
109109
[](float pt, float phi) -> float { return pt * std::cos(phi); });
110110
DECLARE_SOA_DYNAMIC_COLUMN(Py, py,
@@ -117,6 +117,7 @@ DECLARE_SOA_DYNAMIC_COLUMN(Energy, energy,
117117

118118
DECLARE_SOA_TABLE(SlimParticles, "AOD", "SlimParticles",
119119
o2::soa::Index<>,
120+
slimparticles::McCollisionId,
120121
slimparticles::Pt,
121122
slimparticles::Eta,
122123
slimparticles::Phi,

PWGJE/TableProducer/slimTablesProducer.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct SlimTablesProducer {
6565
void processParticles(aod::McParticles const& parts)
6666
{
6767
for (const auto& p : parts) {
68-
slimParticles(p.pt(), p.eta(), p.phi());
68+
slimParticles(p.mcCollision(), p.pt(), p.eta(), p.phi());
6969
}
7070
}
7171
PROCESS_SWITCH(SlimTablesProducer, processParticles, "Produce slim particles", true);

0 commit comments

Comments
 (0)