Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
1481014945 authored Oct 29, 2024
1 parent 561541d commit a4fd551
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 30 deletions.
43 changes: 14 additions & 29 deletions PWGHF/HFC/Tasks/taskCorrelationD0Hadrons.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ using namespace o2;
using namespace o2::framework;
using namespace o2::framework::expressions;
using namespace o2::aod::hf_correlation_d0_hadron;
using namespace o2::analysis::hf_correlations;

namespace o2::aod
{
Expand Down Expand Up @@ -268,35 +269,19 @@ struct HfTaskCorrelationD0Hadrons {
continue;
}
Region region = getRegion(deltaPhi);
if (signalStatus == ParticleTypeData::D0Only || signalStatus == ParticleTypeData::D0D0barBoth) {
switch (region) {
case Toward:
registry.fill(HIST("hToward"), massD, ptD, isAutoCorrelated, efficiencyWeight);
break;
case Away:
registry.fill(HIST("hAway"), massD, ptD, isAutoCorrelated, efficiencyWeight);
break;
case Transverse:
registry.fill(HIST("hTransverse"), massD, ptD, isAutoCorrelated, efficiencyWeight);
break;
default:
break;
}
}
if (signalStatus == ParticleTypeData::D0barOnly || signalStatus == ParticleTypeData::D0D0barBoth) {
switch (region) {
case Toward:
registry.fill(HIST("hToward"), massD, ptD, isAutoCorrelated, efficiencyWeight);
break;
case Away:
registry.fill(HIST("hAway"), massD, ptD, isAutoCorrelated, efficiencyWeight);
break;
case Transverse:
registry.fill(HIST("hTransverse"), massD, ptD, isAutoCorrelated, efficiencyWeight);
break;
default:
break;
}

switch (region) {
case Toward:
registry.fill(HIST("hToward"), massD, ptD, isAutoCorrelated, efficiencyWeight);
break;
case Away:
registry.fill(HIST("hAway"), massD, ptD, isAutoCorrelated, efficiencyWeight);
break;
case Transverse:
registry.fill(HIST("hTransverse"), massD, ptD, isAutoCorrelated, efficiencyWeight);
break;
default:
break;
}
}
// check if correlation entry belongs to signal region, sidebands or is outside both, and fill correlation plots
Expand Down
3 changes: 2 additions & 1 deletion PWGHF/HFC/Tasks/taskCorrelationLcHadrons.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
using namespace o2;
using namespace o2::framework;
using namespace o2::framework::expressions;
using namespace o2::analysis::hf_correlations;

///
/// Returns deltaPhi value in range [-pi/2., 3.*pi/2], typically used for correlation studies
Expand Down Expand Up @@ -276,7 +277,7 @@ struct HfTaskCorrelationLcHadrons {
default:
break;
}
}
};

// fill correlation plots for signal/bagkground correlations
if (pairEntry.signalStatus()) {
Expand Down

0 comments on commit a4fd551

Please sign in to comment.