Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion PWGJE/Core/JetV0Utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ bool isV0Particle(T const& particles, U const& particle, bool v0ChargedDecaysOnl
if (v0ChargedDecaysOnly) {
return RecoDecay::isMatchedMCGen(particles, particle, +kK0Short, std::array{+kPiPlus, -kPiPlus}, true) || RecoDecay::isMatchedMCGen(particles, particle, +kLambda0, std::array{+kProton, -kPiPlus}, true) || RecoDecay::isMatchedMCGen(particles, particle, -kLambda0, std::array{-kProton, +kPiPlus}, true);
} else {
return RecoDecay::isMatchedMCGen(particles, particle, +kK0Short, std::array{+kPiPlus, -kPiPlus}, true) || RecoDecay::isMatchedMCGen(particles, particle, +kK0Short, std::array{+kPi0, +kPi0}, true) || RecoDecay::isMatchedMCGen(particles, particle, +kLambda0, std::array{+kProton, -kPiPlus}, true) || RecoDecay::isMatchedMCGen(particles, particle, +kLambda0, std::array{+kNeutron, +kPi0}, true) || RecoDecay::isMatchedMCGen(particles, particle, -kLambda0, std::array{-kProton, +kPiPlus}, true) || RecoDecay::isMatchedMCGen(particles, particle, -kLambda0, std::array{+kNeutron, +kPi0}, true);
return RecoDecay::isMatchedMCGen(particles, particle, +kK0Short, std::array{+kPiPlus, -kPiPlus}, true) || RecoDecay::isMatchedMCGen(particles, particle, +kK0Short, std::array{+kPi0, +kPi0}, true) || RecoDecay::isMatchedMCGen(particles, particle, +kLambda0, std::array{+kProton, -kPiPlus}, true) || RecoDecay::isMatchedMCGen(particles, particle, +kLambda0, std::array{+kNeutron, +kPi0}, true) || RecoDecay::isMatchedMCGen(particles, particle, -kLambda0, std::array{-kProton, +kPiPlus}, true) || RecoDecay::isMatchedMCGen(particles, particle, -kLambda0, std::array{-kNeutron, +kPi0}, true);
}
}

Expand Down Expand Up @@ -183,6 +183,32 @@ uint8_t setV0ParticleDecayBit(T const& particles, U const& particle)
return bit;
}

// need to update this
template <typename T, typename U, typename V>
void fillV0CandidateTable(T const& candidate, U& V0CoresTable, V& V0SignalFlagsTable)
{

V0CoresTable(
candidate.x(),
candidate.y(),
candidate.z(),
candidate.pxpos(),
candidate.pypos(),
candidate.pzpos(),
candidate.pxneg(),
candidate.pyneg(),
candidate.pzneg(),
candidate.dcaV0daughters(),
candidate.dcapostopv(),
candidate.dcanegtopv(),
candidate.v0cosPA(),
candidate.dcav0topv(),
candidate.v0Type());

V0SignalFlagsTable(
candidate.signalFlag());
}

}; // namespace jetv0utilities

#endif // PWGJE_CORE_JETV0UTILITIES_H_
8 changes: 4 additions & 4 deletions PWGJE/DataModel/JetReducedDataV0.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ DECLARE_SOA_TABLE_STAGED(JV0CollisionIds, "JV0COLLID",
DECLARE_SOA_TABLE_STAGED(JV0McCollisionIds, "JV0MCCOLLID",
jv0indices::JMcCollisionId);

DECLARE_SOA_TABLE(JV0Ids, "AOD", "JV0ID",
jv0indices::JCollisionId,
jv0indices::PosTrackId,
jv0indices::NegTrackId);
DECLARE_SOA_TABLE_STAGED(JV0Ids, "JV0ID",
jv0indices::JCollisionId,
jv0indices::PosTrackId,
jv0indices::NegTrackId);

namespace jv0mc
{
Expand Down
Loading
Loading