Skip to content

Commit fa8b983

Browse files
authored
Adding max pT cut in TT task (#305)
1 parent f0a07cb commit fa8b983

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

PWGCF/FemtoDream/femtoDreamHashTask.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ using namespace o2::framework;
2727
struct femtoDreamPairHashTask {
2828

2929
Configurable<std::vector<float>> CfgVtxBins{"CfgVtxBins", std::vector<float>{-10.0f, -8.f, -6.f, -4.f, -2.f, 0.f, 2.f, 4.f, 6.f, 8.f, 10.f}, "Mixing bins - z-vertex"};
30-
// Configurable<std::vector<float>> CfgMultBins{"CfgMultBins", std::vector<float>{0.0f, 20.0f, 40.0f, 60.0f, 80.0f, 100.0f, 200.0f, 99999.f}, "Mixing bins - multiplicity"};
31-
Configurable<std::vector<float>> CfgMultBins{"CfgMultBins", std::vector<float>{0.0f, 4.0f, 8.0f, 12.0f, 16.0f, 20.0f, 24.0f, 28.0f, 32.0f, 36.0f, 40.0f, 44.0f, 48.0f, 52.0f, 56.0f, 60.0f, 64.0f, 68.0f, 72.0f, 76.0f, 80.0f, 84.0f, 88.0f, 92.0f, 96.0f, 100.0f, 200.0f, 99999.f}, "Mixing bins - multiplicity"};
30+
Configurable<std::vector<float>> CfgMultBins{"CfgMultBins", std::vector<float>{0.0f, 20.0f, 40.0f, 60.0f, 80.0f, 100.0f, 200.0f, 99999.f}, "Mixing bins - multiplicity"};
31+
// Configurable<std::vector<float>> CfgMultBins{"CfgMultBins", std::vector<float>{0.0f, 4.0f, 8.0f, 12.0f, 16.0f, 20.0f, 24.0f, 28.0f, 32.0f, 36.0f, 40.0f, 44.0f, 48.0f, 52.0f, 56.0f, 60.0f, 64.0f, 68.0f, 72.0f, 76.0f, 80.0f, 84.0f, 88.0f, 92.0f, 96.0f, 100.0f, 200.0f, 99999.f}, "Mixing bins - multiplicity"};
3232

3333
std::vector<float> CastCfgVtxBins, CastCfgMultBins;
3434

PWGCF/FemtoDream/femtoDreamPairTaskTrackTrack.cxx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ using namespace o2::framework::expressions;
3232
namespace
3333
{
3434
static constexpr int nPart = 2;
35-
static constexpr int nCuts = 3;
35+
static constexpr int nCuts = 4;
3636
static const std::vector<std::string> partNames{"PartOne", "PartTwo"};
37-
static const std::vector<std::string> cutNames{"PIDthr", "nSigmaTPC", "nSigmaTPCTOF"};
37+
static const std::vector<std::string> cutNames{"MaxPt", "PIDthr", "nSigmaTPC", "nSigmaTPCTOF"};
3838
static const float cutsTable[nPart][nCuts]{
39-
{0.75f, 3.f, 3.f},
40-
{0.75f, 3.f, 3.f}};
39+
{4.05f, 0.75f, 3.f, 3.f},
40+
{4.05f, 0.75f, 3.f, 3.f}};
4141

4242
static constexpr int nNsigma = 3;
4343
static constexpr float kNsigma[nNsigma] = {3.5f, 3.f, 2.5f};
@@ -72,6 +72,7 @@ struct femtoDreamPairTaskTrackTrack {
7272

7373
/// Partition for particle 1
7474
Partition<aod::FemtoDreamParticles> partsOne = (aod::femtodreamparticle::partType == uint8_t(aod::femtodreamparticle::ParticleType::kTrack)) &&
75+
(aod::femtodreamparticle::pt < cfgCutTable->get("PartOne", "MaxPt")) &&
7576
((aod::femtodreamparticle::cut & aod::femtodreamparticle::cutContainerType(ConfCutPartOne)) == aod::femtodreamparticle::cutContainerType(ConfCutPartOne));
7677

7778
/// Histogramming for particle 1
@@ -85,6 +86,7 @@ struct femtoDreamPairTaskTrackTrack {
8586

8687
/// Partition for particle 2
8788
Partition<aod::FemtoDreamParticles> partsTwo = (aod::femtodreamparticle::partType == uint8_t(aod::femtodreamparticle::ParticleType::kTrack)) &&
89+
(aod::femtodreamparticle::pt < cfgCutTable->get("PartTwo", "MaxPt")) &&
8890
((aod::femtodreamparticle::cut & aod::femtodreamparticle::cutContainerType(ConfCutPartTwo)) == aod::femtodreamparticle::cutContainerType(ConfCutPartTwo));
8991

9092
/// Histogramming for particle 2
@@ -97,7 +99,8 @@ struct femtoDreamPairTaskTrackTrack {
9799
std::vector<int> vPIDPartOne, vPIDPartTwo;
98100

99101
/// Correlation part
100-
ConfigurableAxis CfgMultBins{"CfgMultBins", {VARIABLE_WIDTH, 0.0f, 4.0f, 8.0f, 12.0f, 16.0f, 20.0f, 24.0f, 28.0f, 32.0f, 36.0f, 40.0f, 44.0f, 48.0f, 52.0f, 56.0f, 60.0f, 64.0f, 68.0f, 72.0f, 76.0f, 80.0f, 84.0f, 88.0f, 92.0f, 96.0f, 100.0f, 200.0f, 99999.f}, "Mixing bins - multiplicity"}; // \todo to be obtained from the hash task
102+
// ConfigurableAxis CfgMultBins{"CfgMultBins", {VARIABLE_WIDTH, 0.0f, 4.0f, 8.0f, 12.0f, 16.0f, 20.0f, 24.0f, 28.0f, 32.0f, 36.0f, 40.0f, 44.0f, 48.0f, 52.0f, 56.0f, 60.0f, 64.0f, 68.0f, 72.0f, 76.0f, 80.0f, 84.0f, 88.0f, 92.0f, 96.0f, 100.0f, 200.0f, 99999.f}, "Mixing bins - multiplicity"}; // \todo to be obtained from the hash task
103+
ConfigurableAxis CfgMultBins{"CfgMultBins", {VARIABLE_WIDTH, 0.0f, 20.0f, 40.0f, 60.0f, 80.0f, 100.0f, 200.0f, 99999.f}, "Mixing bins - multiplicity"};
101104
ConfigurableAxis CfgkstarBins{"CfgkstarBins", {1500, 0., 6.}, "binning kstar"};
102105
ConfigurableAxis CfgkTBins{"CfgkTBins", {150, 0., 9.}, "binning kT"};
103106
ConfigurableAxis CfgmTBins{"CfgmTBins", {225, 0., 7.5}, "binning mT"};

0 commit comments

Comments
 (0)