Skip to content

Commit 1b8c335

Browse files
committed
Merge branch 'dev' of https://github.com/rspijkers/O2Physics into dev
2 parents 1e7b463 + be2cb42 commit 1b8c335

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

PWGLF/Tasks/Strangeness/cascadecorrelations.cxx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,8 @@ struct CascadeCorrelations {
693693
}
694694

695695
template <typename TCascade, typename TCollision>
696-
void doSameEventCorrelation(const TCascade& trigger, const TCascade& assoc, const TCollision& collision){
696+
void doSameEventCorrelation(const TCascade& trigger, const TCascade& assoc, const TCollision& collision)
697+
{
697698
// autocorrelation check
698699
std::array<int, 3> triggerTracks = {trigger.posTrackId(), trigger.negTrackId(), trigger.bachelorId()};
699700
std::array<int, 3> assocTracks = {assoc.posTrackId(), assoc.negTrackId(), assoc.bachelorId()};
@@ -750,7 +751,8 @@ struct CascadeCorrelations {
750751
}
751752

752753
template <typename TCascade, typename TCollision>
753-
void doMixedEventCorrelation(const TCascade& trigger, const TCascade& assoc, const TCollision& col1){
754+
void doMixedEventCorrelation(const TCascade& trigger, const TCascade& assoc, const TCollision& col1)
755+
{
754756
if (trigger.collisionId() == assoc.collisionId()) {
755757
registry.fill(HIST("hMEQA"), 1.5);
756758
return;
@@ -810,7 +812,8 @@ struct CascadeCorrelations {
810812
}
811813

812814
template <typename TCascade>
813-
void doMCCorrelation(const TCascade& trigger, const TCascade& assoc, double vtxz, int FT0mult){
815+
void doMCCorrelation(const TCascade& trigger, const TCascade& assoc, double vtxz, int FT0mult)
816+
{
814817
if (!trigger.isPhysicalPrimary() || !assoc.isPhysicalPrimary())
815818
return; // require the cascades to be primaries
816819
if (std::abs(trigger.eta()) > etaGenCascades)
@@ -989,7 +992,7 @@ struct CascadeCorrelations {
989992
} // casc loop
990993

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

10221025
// Define the trigger as the particle with the highest pT.
10231026
// As we can't swap the cascade tables themselves, we have created a function that we can call with the correct order.
1024-
if(casc1.pt() >= casc2.pt()) {
1027+
if (casc1.pt() >= casc2.pt()) {
10251028
doMixedEventCorrelation(casc1, casc2, col1);
10261029
} else {
10271030
doMixedEventCorrelation(casc2, casc1, col2);

0 commit comments

Comments
 (0)