Skip to content

Commit c638237

Browse files
committed
First fully functional version (still needs QA to check if there is no indexing error and physics is correct)
1 parent 2b8d86a commit c638237

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

PWGLF/DataModel/lambdaJetPolarizationIons.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ namespace o2::aod
2828
namespace lambdajetpol
2929
{
3030

31-
DECLARE_SOA_COLUMN(CollIdx, collIdx, uint64_t); // Using a regular SOA column instead of an index column for convenience
31+
// DECLARE_SOA_COLUMN(CollIdx, collIdx, uint64_t); // Using a regular SOA column instead of an index column for convenience
32+
DECLARE_SOA_INDEX_COLUMN(Collision, collision);
3233
DECLARE_SOA_COLUMN(Centrality, centrality, float);
3334

3435
DECLARE_SOA_COLUMN(JetPt, jetPt, float);
@@ -57,14 +58,14 @@ DECLARE_SOA_COLUMN(NegPhi, negPhi, float);
5758
} // namespace lambdajetpol
5859

5960
DECLARE_SOA_TABLE(RingJets, "AOD", "RINGJETS", // Renamed to follow convention on "s" at the end of table name.
60-
lambdajetpol::CollIdx,
61+
lambdajetpol::CollisionId, // Changed to an internal O2 index, slightly different from usual o2::soa::Index<> though
6162
lambdajetpol::JetPt,
6263
lambdajetpol::JetEta,
6364
lambdajetpol::JetPhi,
6465
lambdajetpol::JetNConstituents);
6566

6667
DECLARE_SOA_TABLE(RingLaV0s, "AOD", "RINGLAV0S", // Had to write this in a shorter form because the derived data did not accept long names
67-
lambdajetpol::CollIdx,
68+
lambdajetpol::CollisionId,
6869
lambdajetpol::V0Pt,
6970
lambdajetpol::V0Eta,
7071
lambdajetpol::V0Phi,
@@ -80,7 +81,7 @@ DECLARE_SOA_TABLE(RingLaV0s, "AOD", "RINGLAV0S", // Had to write this in a short
8081
lambdajetpol::NegPhi);
8182

8283
DECLARE_SOA_TABLE(RingCollisions, "AOD", "RINGCOLLISIONS",
83-
lambdajetpol::CollIdx,
84+
lambdajetpol::CollisionId,
8485
lambdajetpol::Centrality);
8586
} // namespace o2::aod
8687

PWGLF/Tasks/Strangeness/lambdaJetPolarizationIonsDerived.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,11 @@ struct lambdajetpolarizationionsderived {
248248
//////////////
249249

250250
// Preslices for correct collisions association:
251-
Preslice<aod::RingJets> perColJets = o2::aod::lambdajetpol::collIdx; // Slicing by the key that comes with the index column
252-
Preslice<aod::RingLaV0s> perColV0s = o2::aod::lambdajetpol::collIdx;
251+
Preslice<aod::RingJets> perColJets = o2::aod::lambdajetpol::collisionId;
252+
Preslice<aod::RingLaV0s> perColV0s = o2::aod::lambdajetpol::collisionId;
253253
void processPolarizationData(o2::aod::RingCollisions const& collisions, o2::aod::RingJets const& jets, o2::aod::RingLaV0s const& v0s){
254254
for (auto const& collision : collisions) {
255-
const auto collId = collision.collIdx();
255+
const auto collId = collision.collisionId();
256256
// const double centrality = collision.centrality(); // (TODO: implement centrality!)
257257

258258
// Slice jets and V0s belonging to this collision

0 commit comments

Comments
 (0)