Skip to content
Merged
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
13 changes: 8 additions & 5 deletions PWGLF/Tasks/Strangeness/cascadecorrelations.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,8 @@ struct CascadeCorrelations {
}

template <typename TCascade, typename TCollision>
void doSameEventCorrelation(const TCascade& trigger, const TCascade& assoc, const TCollision& collision){
void doSameEventCorrelation(const TCascade& trigger, const TCascade& assoc, const TCollision& collision)
{
// autocorrelation check
std::array<int, 3> triggerTracks = {trigger.posTrackId(), trigger.negTrackId(), trigger.bachelorId()};
std::array<int, 3> assocTracks = {assoc.posTrackId(), assoc.negTrackId(), assoc.bachelorId()};
Expand Down Expand Up @@ -755,7 +756,8 @@ struct CascadeCorrelations {
}

template <typename TCascade, typename TCollision>
void doMixedEventCorrelation(const TCascade& trigger, const TCascade& assoc, const TCollision& col1){
void doMixedEventCorrelation(const TCascade& trigger, const TCascade& assoc, const TCollision& col1)
{
if (trigger.collisionId() == assoc.collisionId()) {
registry.fill(HIST("hMEQA"), 1.5);
return;
Expand Down Expand Up @@ -815,7 +817,8 @@ struct CascadeCorrelations {
}

template <typename TCascade>
void doMCCorrelation(const TCascade& trigger, const TCascade& assoc, double vtxz, int FT0mult){
void doMCCorrelation(const TCascade& trigger, const TCascade& assoc, double vtxz, int FT0mult)
{
if (!trigger.isPhysicalPrimary() || !assoc.isPhysicalPrimary())
return; // require the cascades to be primaries
if (std::abs(trigger.eta()) > etaGenCascades)
Expand Down Expand Up @@ -994,7 +997,7 @@ struct CascadeCorrelations {
} // casc loop

for (const auto& [c0, c1] : combinations(Cascades, Cascades)) { // combinations automatically applies strictly upper in case of 2 identical tables
// Define the trigger as the particle with the highest pT.
// Define the trigger as the particle with the highest pT.
// As we can't swap the cascade tables themselves, we have created a function that we can call with the correct order.
if (c0.pt() >= c1.pt()) {
doSameEventCorrelation(c0, c1, collision);
Expand Down Expand Up @@ -1026,7 +1029,7 @@ struct CascadeCorrelations {

// Define the trigger as the particle with the highest pT.
// As we can't swap the cascade tables themselves, we have created a function that we can call with the correct order.
if(casc1.pt() >= casc2.pt()) {
if (casc1.pt() >= casc2.pt()) {
doMixedEventCorrelation(casc1, casc2, col1);
} else {
doMixedEventCorrelation(casc2, casc1, col2);
Expand Down