Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
11a3236
Add ITS PID for f1 and double-phi table producer
skundu692 Jan 22, 2025
1d20973
Merge branch 'master' of https://github.com/AliceO2Group/O2Physics in…
skundu692 Jan 25, 2025
28a8f2a
Code clean up and new process function
skundu692 Jan 25, 2025
2ce7e91
fix megalinter error
skundu692 Jan 25, 2025
a500146
Fix PID bug
skundu692 Jan 25, 2025
058af45
Remove unused variable
skundu692 Jan 25, 2025
994338c
Merge branch 'master' of https://github.com/AliceO2Group/O2Physics in…
skundu692 Jan 26, 2025
31fde77
Fix histogram range
skundu692 Jan 26, 2025
ba03d6c
Merge branch 'master' of https://github.com/AliceO2Group/O2Physics in…
skundu692 Jan 28, 2025
3336017
Improved DCA fitter for secondary reconstruction and add new PID sele…
skundu692 Jan 28, 2025
0fce6d6
Merge branch 'master' of https://github.com/AliceO2Group/O2Physics in…
skundu692 Jan 29, 2025
bf8e141
Improve PID for proton selection
skundu692 Jan 29, 2025
52a421f
Separate additional event selection
skundu692 Jan 29, 2025
2d5812d
Merge branch 'master' of https://github.com/AliceO2Group/O2Physics in…
skundu692 Jan 30, 2025
1a7ec0d
Improved rotational background
skundu692 Jan 30, 2025
679abd5
Merge branch 'master' of https://github.com/AliceO2Group/O2Physics in…
skundu692 Jan 31, 2025
f9f1abc
Merge branch 'master' of https://github.com/AliceO2Group/O2Physics in…
skundu692 Jan 31, 2025
9621425
Add more PID selection criteria
skundu692 Jan 31, 2025
d6f10ef
add ITS histogram
skundu692 Feb 1, 2025
5754c33
Merge branch 'master' of https://github.com/AliceO2Group/O2Physics in…
skundu692 Feb 1, 2025
6a1b995
Add process function to calculate eventplane dependent matching effic…
skundu692 Feb 1, 2025
0bf1446
fix megalinter error
skundu692 Feb 1, 2025
121996d
Merge branch 'master' of https://github.com/AliceO2Group/O2Physics in…
skundu692 Feb 3, 2025
6221702
Add event plane dependent MC weight in phi flow calculation
skundu692 Feb 3, 2025
1baa481
Merge branch 'master' of https://github.com/AliceO2Group/O2Physics in…
skundu692 Feb 4, 2025
23e252a
Remove pt cut from mixed event
skundu692 Feb 4, 2025
97e7fae
Merge branch 'master' of https://github.com/AliceO2Group/O2Physics in…
skundu692 Feb 7, 2025
e5f3249
Fix rotational background
skundu692 Feb 7, 2025
cfca9f4
Merge branch 'master' of https://github.com/AliceO2Group/O2Physics in…
skundu692 Feb 11, 2025
28d8f5a
Add EP flow for phi
skundu692 Feb 11, 2025
b882856
Merge branch 'master' of https://github.com/AliceO2Group/O2Physics in…
skundu692 Feb 12, 2025
e428486
Add new resolution histogram
skundu692 Feb 12, 2025
f8e9fa0
Merge branch 'master' of https://github.com/AliceO2Group/O2Physics in…
skundu692 Feb 13, 2025
28e9af5
Add additional histogram for resonance flow measurement
skundu692 Feb 14, 2025
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
79 changes: 61 additions & 18 deletions PWGLF/Tasks/Resonances/highmasslambda.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -77,22 +77,25 @@
double bz{0.};

Configurable<std::string> ccdburl{"ccdb-url", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
Configurable<std::string> ccdbPathLut{"ccdbPathLut", "GLO/Param/MatLUT", "Path for LUT parametrization"};
Configurable<std::string> ccdbPathGrp{"ccdbPathGrp", "GLO/GRP/GRP", "Path of the grp file (Run 2)"};
// Configurable<std::string> ccdbPathLut{"ccdbPathLut", "GLO/Param/MatLUT", "Path for LUT parametrization"};
// Configurable<std::string> ccdbPathGrp{"ccdbPathGrp", "GLO/GRP/GRP", "Path of the grp file (Run 2)"};
Configurable<std::string> ccdbPathGrpMag{"ccdbPathGrpMag", "GLO/Config/GRPMagField", "CCDB path of the GRPMagField object (Run 3)"};
Configurable<bool> isRun2{"isRun2", false, "enable Run 2 or Run 3 GRP objects for magnetic field"};
// Configurable<bool> isRun2{"isRun2", false, "enable Run 2 or Run 3 GRP objects for magnetic field"};
Configurable<bool> cnfabsdca{"cnfabsdca", false, "Use Abs DCA for secondary vertex fitting"};

// fill output
Configurable<int> cfgOccupancyCut{"cfgOccupancyCut", 2500, "Occupancy cut"};
Configurable<bool> fillRotation{"fillRotation", false, "fill rotation"};
Configurable<bool> useSP{"useSP", false, "useSP"};
Configurable<int> useKshortOpti{"useKshortOpti", 1, "useKshortOpti"};
// events
Configurable<float> cfgCutVertex{"cfgCutVertex", 10.0f, "Accepted z-vertex range"};
Configurable<float> cfgCutCentralityMax{"cfgCutCentralityMax", 50.0f, "Accepted maximum Centrality"};
Configurable<float> cfgCutCentralityMin{"cfgCutCentralityMin", 30.0f, "Accepted minimum Centrality"};
Configurable<bool> additionalEvSel{"additionalEvSel", true, "additionalEvSel"};
// proton track cut
Configurable<float> confMinDCAProtonV0{"confMinDCAProtonV0", -5.0, "Minimum DCA between Proton and V0"};
Configurable<float> confMaxDCAProtonV0{"confMaxDCAProtonV0", 5.0, "Maximum DCA between Proton and V0"};
Configurable<float> confMinRot{"confMinRot", 5.0 * TMath::Pi() / 6.0, "Minimum of rotation"};
Configurable<float> confMaxRot{"confMaxRot", 7.0 * TMath::Pi() / 6.0, "Maximum of rotation"};
Configurable<float> confRapidity{"confRapidity", 0.8, "cut on Rapidity"};
Expand Down Expand Up @@ -173,9 +176,16 @@
// std::vector<double> ptLambdaBinning = {2.0, 3.0, 4.0, 5.0, 6.0};

std::vector<double> occupancyBinning = {-0.5, 500.0, 1000.0, 1500.0, 2000.0, 3000.0, 4000.0, 5000.0, 50000.0};
std::vector<double> dcaV0toPVBinning = {0.0, 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.08, 0.1, 0.15, 0.2, 0.3, 0.5, 1.0};
std::vector<double> cpaV0Binning = {0.995, 0.996, 0.997, 0.998, 0.999, 0.9995, 0.9997, 0.9999, 1.005};
std::vector<double> ptV0Binning = {0.0, 0.2, 0.3, 0.4, 0.5, 0.6, 0.8, 1.0, 1.5, 100.0};
std::vector<double> dcaBetweenV0 = {0.0, 0.05, 0.1, 0.15, 0.2, 0.3, 0.4, 0.5, 0.6, 0.8, 1.0};
std::vector<double> dcaBetweenProtonV0 = {-0.05, -0.04, -0.03, -0.025, -0.02, -0.01, -0.005, -0.004, -0.003, -0.003, -0.002, -0.001, 0.0, 0.001, 0.002, 0.003, 0.004, 0.005, 0.006, 0.007, 0.008, 0.01, 0.012, 0.014, 0.016, 0.018, 0.02, 0.025, 0.03, 0.04, 0.05, 0.06, 0.08, 0.1, 0.12, 0.14, 0.16, 0.18, 0.2, 0.3, 0.4, 0.5, 1.0};

AxisSpec resAxis = {1600, -30, 30, "Res"};
AxisSpec phiAxis = {500, -6.28, 6.28, "phi"};
AxisSpec centAxis = {8, 0, 80, "V0M (%)"};
AxisSpec dcaV0toPVAxis = {dcaV0toPVBinning, "dcaV0toPV"};
const AxisSpec thnAxisInvMass{configThnAxisInvMass, "#it{M} (GeV/#it{c}^{2})"};
const AxisSpec thnAxisPt{configThnAxisPt, "#it{p}_{T} (GeV/#it{c})"};
const AxisSpec thnAxisV2{configThnAxisV2, "V2"};
Expand Down Expand Up @@ -215,14 +225,21 @@
histos.add("hImpactPar0", "hImpactPar0", kTH1F, {{500, 0.0f, 0.1f}});
histos.add("hImpactPar1", "hImpactPar1", kTH1F, {{500, 0.0f, 0.1f}});
histos.add("hCPA", "hCPA", kTH1F, {{220, -1.1f, 1.1f}});

histos.add("hSparseV2SASameEvent_V2", "hSparseV2SASameEvent_V2", HistType::kTHnSparseF, {thnAxisInvMass, thnAxisPt, thnAxisV2, thnAxisDCA, thnAxisPtProton});
histos.add("hSparseV2SASameEventRotational_V2", "hSparseV2SASameEventRotational", HistType::kTHnSparseF, {thnAxisInvMass, thnAxisPt, thnAxisV2, thnAxisDCA, thnAxisPtProton});
histos.add("hSparseV2SAMixedEvent_V2", "hSparseV2SAMixedEvent_V2", HistType::kTHnSparseF, {thnAxisInvMass, thnAxisPt, thnAxisV2, thnAxisDCA, thnAxisPtProton});

histos.add("hSparseV2SASameEvent_V2_SVX", "hSparseV2SASameEvent_V2_SVX", HistType::kTHnSparseF, {thnAxisInvMass, thnAxisPt, thnAxisV2, thnAxisDecayLength, thnAxisCPA});
histos.add("hSparseV2SASameEventRotational_V2_SVX", "hSparseV2SASameEventRotational_SVX", HistType::kTHnSparseF, {thnAxisInvMass, thnAxisPt, thnAxisV2, thnAxisDecayLength, thnAxisCPA});

histos.add("hSparseV2SASameEventRotational_V2", "hSparseV2SASameEventRotational", HistType::kTHnSparseF, {thnAxisInvMass, thnAxisPt, thnAxisV2});
if (useKshortOpti == 0) {
histos.add("hSparseV2SASameEvent_V2", "hSparseV2SASameEvent_V2", HistType::kTHnSparseF, {thnAxisInvMass, thnAxisPt, thnAxisDCA, thnAxisPtProton});
histos.add("hSparseV2SAMixedEvent_V2", "hSparseV2SAMixedEvent_V2", HistType::kTHnSparseF, {thnAxisInvMass, thnAxisPt, thnAxisDCA, thnAxisPtProton});
}
if (useKshortOpti == 1) {
histos.add("hSparseV2SASameEvent_V2", "hSparseV2SASameEvent_V2", HistType::kTHnSparseF, {thnAxisInvMass, thnAxisPt, dcaV0toPVBinning, cpaV0Binning, ptV0Binning, dcaBetweenV0, dcaBetweenProtonV0});
histos.add("hSparseV2SAMixedEvent_V2", "hSparseV2SAMixedEvent_V2", HistType::kTHnSparseF, {thnAxisInvMass, thnAxisPt, dcaV0toPVBinning, cpaV0Binning, ptV0Binning, dcaBetweenV0, dcaBetweenProtonV0});
}
if (useKshortOpti == 2) {
histos.add("hSparseV2SASameEvent_V2", "hSparseV2SASameEvent_V2", HistType::kTHnSparseF, {thnAxisInvMass, thnAxisPt, thnAxisV2});
histos.add("hSparseV2SAMixedEvent_V2", "hSparseV2SAMixedEvent_V2", HistType::kTHnSparseF, {thnAxisInvMass, thnAxisPt, thnAxisV2});
}
// histogram for resolution
histos.add("ResFT0CTPC", "ResFT0CTPC", kTH2F, {centAxis, resAxis});
histos.add("ResFT0CTPCR", "ResFT0CTPCR", kTH2F, {centAxis, resAxis});
Expand All @@ -249,7 +266,7 @@
template <typename T>
bool selectionTrack(const T& candidate)
{
if (!(candidate.isGlobalTrackWoDCA() && candidate.itsNCls() > cfgITScluster && candidate.tpcNClsFound() > cfgTPCcluster)) {
if (!(candidate.isGlobalTrackWoDCA() && candidate.itsNCls() > cfgITScluster && candidate.tpcNClsCrossedRows() > cfgTPCcluster)) {
return false;
}
if (candidate.pt() > 0.0 && candidate.pt() < 0.5 && std::abs(candidate.dcaXY()) < cfgCutDCAxymin1) {
Expand Down Expand Up @@ -531,7 +548,7 @@
{
const auto eta = track.eta();
const auto pt = track.pt();
const auto tpcNClsF = track.tpcNClsFound();
const auto tpcNClsF = track.tpcNClsCrossedRows();
const auto dcaXY = track.dcaXY();
const auto sign = track.sign();
if (charge < 0 && sign > 0) {
Expand All @@ -546,7 +563,7 @@
if (std::abs(pt) < 0.15) {
return false;
}
if (tpcNClsF < 50) {
if (tpcNClsF < 70) {
return false;
}
if (std::abs(dcaXY) < ConfDaughDCAMin) {
Expand Down Expand Up @@ -609,12 +626,12 @@
histos.fill(HIST("hPsiFT0C"), centrality, psiFT0C, occupancy);
histos.fill(HIST("hPsiFT0A"), centrality, psiFT0A, occupancy);
histos.fill(HIST("hPsiTPC"), centrality, psiTPC, occupancy);
histos.fill(HIST("ResFT0CTPC"), centrality, QFT0C * QTPC * TMath::Cos(2.0 * (psiFT0C - psiTPC)));

Check warning on line 629 in PWGLF/Tasks/Resonances/highmasslambda.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
histos.fill(HIST("ResFT0CTPCR"), centrality, QFT0C * QTPCR * TMath::Cos(2.0 * (psiFT0C - psiTPCR)));

Check warning on line 630 in PWGLF/Tasks/Resonances/highmasslambda.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
histos.fill(HIST("ResFT0CTPCL"), centrality, QFT0C * QTPCL * TMath::Cos(2.0 * (psiFT0C - psiTPCL)));

Check warning on line 631 in PWGLF/Tasks/Resonances/highmasslambda.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
histos.fill(HIST("ResTPCRTPCL"), centrality, QTPCR * QTPCL * TMath::Cos(2.0 * (psiTPCR - psiTPCL)));

Check warning on line 632 in PWGLF/Tasks/Resonances/highmasslambda.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
histos.fill(HIST("ResFT0CFT0A"), centrality, QFT0C * QFT0A * TMath::Cos(2.0 * (psiFT0C - psiFT0A)));

Check warning on line 633 in PWGLF/Tasks/Resonances/highmasslambda.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
histos.fill(HIST("ResFT0ATPC"), centrality, QTPC * QFT0A * TMath::Cos(2.0 * (psiTPC - psiFT0A)));

Check warning on line 634 in PWGLF/Tasks/Resonances/highmasslambda.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
histos.fill(HIST("hCentrality"), centrality);
histos.fill(HIST("hVtxZ"), collision.posZ());
histos.fill(HIST("hOccupancy"), occupancy);
Expand Down Expand Up @@ -683,12 +700,25 @@
Kshort = ROOT::Math::PxPyPzMVector(v0.px(), v0.py(), v0.pz(), v0.mK0Short());
Lambdac = Proton + Kshort;
auto phiminuspsi = GetPhiInRange(Lambdac.Phi() - psiFT0C);
v2 = TMath::Cos(2.0 * phiminuspsi) * QFT0C;

Check warning on line 703 in PWGLF/Tasks/Resonances/highmasslambda.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
if (useSP) {
v2 = TMath::Cos(2.0 * phiminuspsi);

Check warning on line 705 in PWGLF/Tasks/Resonances/highmasslambda.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
}
if (Lambdac.M() > cMinLambdaMass && Lambdac.M() <= cMaxLambdaMass && std::abs(Lambdac.Rapidity()) < confRapidity && Lambdac.Pt() > 1.0 && Lambdac.Pt() <= 6.0) {
histos.fill(HIST("hSparseV2SASameEvent_V2"), Lambdac.M(), Lambdac.Pt(), v2, std::abs(track1.dcaXY()), Proton.Pt());
auto dcaV0toPV = std::abs(v0.dcav0topv());
auto cpaV0 = v0.v0cosPA();
auto ptV0 = v0.pt();
auto dcaV0Daughters = std::abs(v0.dcaV0daughters());
auto dcaProtonV0 = v0.dcav0topv() - track1.dcaXY();
if (Lambdac.M() > cMinLambdaMass && Lambdac.M() <= cMaxLambdaMass && std::abs(Lambdac.Rapidity()) < confRapidity && Lambdac.Pt() > 1.0 && Lambdac.Pt() <= 6.0 && dcaProtonV0 > confMinDCAProtonV0 && dcaProtonV0 < confMaxDCAProtonV0) {
if (useKshortOpti == 0) {
histos.fill(HIST("hSparseV2SASameEvent_V2"), Lambdac.M(), Lambdac.Pt(), std::abs(track1.dcaXY()), Proton.Pt());
}
if (useKshortOpti == 1) {
histos.fill(HIST("hSparseV2SASameEvent_V2"), Lambdac.M(), Lambdac.Pt(), dcaV0toPV, cpaV0, ptV0, dcaV0Daughters, dcaProtonV0);
}
if (useKshortOpti == 2) {
histos.fill(HIST("hSparseV2SASameEvent_V2"), Lambdac.M(), Lambdac.Pt(), v2);
}
}
if (fillRotation) {
for (int nrotbkg = 0; nrotbkg < nBkgRotations; nrotbkg++) {
Expand All @@ -702,12 +732,12 @@
KshortRot = ROOT::Math::PxPyPzMVector(rotKaonPx, rotKaonPy, Kshort.pz(), massK0s);
LambdacRot = Proton + KshortRot;
auto phiminuspsiRot = GetPhiInRange(LambdacRot.Phi() - psiFT0C);
v2Rot = TMath::Cos(2.0 * phiminuspsiRot) * QFT0C;

Check warning on line 735 in PWGLF/Tasks/Resonances/highmasslambda.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
if (useSP) {
v2Rot = TMath::Cos(2.0 * phiminuspsiRot);

Check warning on line 737 in PWGLF/Tasks/Resonances/highmasslambda.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
}
if (LambdacRot.M() > cMinLambdaMass && LambdacRot.M() <= cMaxLambdaMass && std::abs(LambdacRot.Rapidity()) < confRapidity && LambdacRot.Pt() > 1.0 && LambdacRot.Pt() <= 6.0) {
histos.fill(HIST("hSparseV2SASameEventRotational_V2"), LambdacRot.M(), LambdacRot.Pt(), v2Rot, std::abs(track1.dcaXY()), Proton.Pt());
if (LambdacRot.M() > cMinLambdaMass && LambdacRot.M() <= cMaxLambdaMass && std::abs(LambdacRot.Rapidity()) < confRapidity && LambdacRot.Pt() > 1.0 && LambdacRot.Pt() <= 6.0 && dcaProtonV0 > confMinDCAProtonV0 && dcaProtonV0 < confMaxDCAProtonV0) {
histos.fill(HIST("hSparseV2SASameEventRotational_V2"), LambdacRot.M(), LambdacRot.Pt(), v2Rot);
}
}
}
Expand Down Expand Up @@ -807,8 +837,21 @@
if (useSP) {
v2 = TMath::Cos(2.0 * phiminuspsi);
}
if (occupancy1 < cfgOccupancyCut && occupancy2 < cfgOccupancyCut && Lambdac.M() > cMinLambdaMass && Lambdac.M() <= cMaxLambdaMass && std::abs(Lambdac.Rapidity()) < confRapidity && Lambdac.Pt() > 1.0 && Lambdac.Pt() <= 6.0) {
histos.fill(HIST("hSparseV2SAMixedEvent_V2"), Lambdac.M(), Lambdac.Pt(), v2, std::abs(track1.dcaXY()), Proton.Pt());
auto dcaV0toPV = std::abs(v0.dcav0topv());
auto cpaV0 = v0.v0cosPA();
auto ptV0 = v0.pt();
auto dcaV0Daughters = std::abs(v0.dcaV0daughters());
auto dcaProtonV0 = v0.dcav0topv() - track1.dcaXY();
if (Lambdac.M() > cMinLambdaMass && Lambdac.M() <= cMaxLambdaMass && std::abs(Lambdac.Rapidity()) < confRapidity && Lambdac.Pt() > 1.0 && Lambdac.Pt() <= 6.0 && dcaProtonV0 > confMinDCAProtonV0 && dcaProtonV0 < confMaxDCAProtonV0) {
if (useKshortOpti == 0) {
histos.fill(HIST("hSparseV2SAMixedEvent_V2"), Lambdac.M(), Lambdac.Pt(), std::abs(track1.dcaXY()), Proton.Pt());
}
if (useKshortOpti == 1) {
histos.fill(HIST("hSparseV2SAMixedEvent_V2"), Lambdac.M(), Lambdac.Pt(), dcaV0toPV, cpaV0, ptV0, dcaV0Daughters, dcaProtonV0);
}
if (useKshortOpti == 2) {
histos.fill(HIST("hSparseV2SAMixedEvent_V2"), Lambdac.M(), Lambdac.Pt(), v2);
}
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions PWGLF/Tasks/Resonances/phipbpb.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ struct phipbpb {
histos.add("hSparseV2MixedEventCosDeltaPhi", "hSparseV2MixedEventCosDeltaPhi", HistType::kTHnSparseF, {thnAxisInvMass, thnAxisPt, thnAxisV2, thnAxisCentrality});

histos.add("hSparseV2SameEventCosDeltaPhiSquare", "hSparseV2SameEventCosDeltaPhiSquare", HistType::kTHnSparseF, {thnAxisInvMass, thnAxisPt, squareAxis, thnAxisCentrality});
histos.add("hSparseV2SameEventCosDeltaPhiCube", "hSparseV2SameEventCosDeltaPhiCube", HistType::kTHnSparseF, {thnAxisInvMass, thnAxisPt, thnAxisV2, thnAxisCentrality});
histos.add("hSparseV2MixedEventCosDeltaPhiSquare", "hSparseV2MixedEventCosDeltaPhiSquare", HistType::kTHnSparseF, {thnAxisInvMass, thnAxisPt, squareAxis, thnAxisCentrality});

histos.add("hSparseV2SameEventSinDeltaPhi", "hSparseV2SameEventSinDeltaPhi", HistType::kTHnSparseF, {thnAxisInvMass, thnAxisPt, thnAxisV2, thnAxisCentrality});
Expand Down Expand Up @@ -259,6 +260,8 @@ struct phipbpb {
histos.add("hSparseMCGenWeight", "hSparseMCGenWeight", HistType::kTHnSparseF, {thnAxisCentrality, {36, 0.0f, TMath::Pi()}, {50, 0.0f, 1}, axisPtKaonWeight, {8, -0.8, 0.8}});
histos.add("hSparseMCRecWeight", "hSparseMCRecWeight", HistType::kTHnSparseF, {thnAxisCentrality, {36, 0.0f, TMath::Pi()}, {50, 0.0f, 1}, axisPtKaonWeight, {8, -0.8, 0.8}});
histos.add("hSparseMCRecAllTrackWeight", "hSparseMCRecAllTrackWeight", HistType::kTHnSparseF, {thnAxisCentrality, {36, 0.0, TMath::Pi()}, {50, 0.0f, 1}, axisPtKaonWeight, {8, -0.8, 0.8}});
histos.add("hSparseMCGenV2", "hSparseMCGenV2", HistType::kTHnSparseF, {thnAxisCentrality, {200, -1.0, 1.0}, axisPtKaonWeight});
histos.add("hSparseMCRecV2", "hSparseMCRecV2", HistType::kTHnSparseF, {thnAxisCentrality, {200, -1.0, 1.0}, axisPtKaonWeight});
}
// Event selection cut additional - Alex
if (additionalEvsel) {
Expand Down Expand Up @@ -572,6 +575,7 @@ struct phipbpb {
histos.fill(HIST("hSparseV2SameEventCosDeltaPhi"), PhiMesonMother.M(), PhiMesonMother.Pt(), v2, centrality);
}
histos.fill(HIST("hSparseV2SameEventCosDeltaPhiSquare"), PhiMesonMother.M(), PhiMesonMother.Pt(), v2 * v2, centrality);
histos.fill(HIST("hSparseV2SameEventCosDeltaPhiCube"), PhiMesonMother.M(), PhiMesonMother.Pt(), v2 * v2 * v2, centrality);
histos.fill(HIST("hSparseV2SameEventSinDeltaPhi"), PhiMesonMother.M(), PhiMesonMother.Pt(), v2sin * QFT0C, centrality);

histos.fill(HIST("hSparseV2SameEventCosPhi"), PhiMesonMother.M(), PhiMesonMother.Pt(), TMath::Cos(2.0 * phimother), centrality);
Expand Down Expand Up @@ -952,6 +956,7 @@ struct phipbpb {
if (TMath::Abs(mcParticle.eta()) > 0.8) // main acceptance
continue;
histos.fill(HIST("hSparseMCGenWeight"), centclass, GetPhiInRange(deltaPhi), TMath::Power(TMath::Cos(2.0 * GetPhiInRange(deltaPhi)), 2.0), mcParticle.pt(), mcParticle.eta());
histos.fill(HIST("hSparseMCGenV2"), centclass, TMath::Cos(2.0 * GetPhiInRange(deltaPhi)), mcParticle.pt());
nCh++;
bool validGlobal = false;
bool validAny = false;
Expand All @@ -969,6 +974,7 @@ struct phipbpb {
// if valid global, fill
if (validGlobal) {
histos.fill(HIST("hSparseMCRecWeight"), centclass, GetPhiInRange(deltaPhi), TMath::Power(TMath::Cos(2.0 * GetPhiInRange(deltaPhi)), 2.0), mcParticle.pt(), mcParticle.eta());
histos.fill(HIST("hSparseMCRecV2"), centclass, TMath::Cos(2.0 * GetPhiInRange(deltaPhi)), mcParticle.pt());
}
if (validAny) {
histos.fill(HIST("hSparseMCRecAllTrackWeight"), centclass, GetPhiInRange(deltaPhi), TMath::Power(TMath::Cos(2.0 * GetPhiInRange(deltaPhi)), 2.0), mcParticle.pt(), mcParticle.eta());
Expand Down
Loading