Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PWGDQ] Add calculation of muon pair production rate asymmetry #8759

Merged
Merged
Show file tree
Hide file tree
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
26 changes: 26 additions & 0 deletions PWGDQ/Core/HistogramsLibrary.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,18 @@ void o2::aod::dqhistograms::DefineHistograms(HistogramManager* hm, const char* h
hm->AddHistogram(histClass, "Mass_Pt_cosThetaCS_phiCS", "", 4, varspTCS, binspT, xminpT, xmaxpT, 0, -1, kFALSE);
hm->AddHistogram(histClass, "Mass_y_cosThetaCS_phiCS", "", 4, varsrapCS, binsy, xminy, xmaxy, 0, -1, kFALSE);
}
if (subGroupStr.Contains("dimuon-polarization-vp")) {
int varspTCS[3] = {VarManager::kMass, VarManager::kPt, VarManager::kPhiVP};
int varsrapCS[3] = {VarManager::kMass, VarManager::kRap, VarManager::kPhiVP};
int binspT[3] = {100, 20, 24};
int binsy[3] = {100, 10, 24};
double xminpT[3] = {1., 0., 0.};
double xmaxpT[3] = {5., 20., +3.14};
double xminy[3] = {1., 2.5, 0.};
double xmaxy[3] = {5., 4.0, +3.14};
hm->AddHistogram(histClass, "Mass_Pt_phiVP", "", 3, varspTCS, binspT, xminpT, xmaxpT, 0, -1, kFALSE);
hm->AddHistogram(histClass, "Mass_y_phiVP", "", 3, varsrapCS, binsy, xminy, xmaxy, 0, -1, kFALSE);
}
if (subGroupStr.Contains("dimuon-rap")) {
int vars[4] = {VarManager::kMass, VarManager::kPt, VarManager::kCentFT0C, VarManager::kRap};
int binspT[4] = {150, 200, 10, 6};
Expand Down Expand Up @@ -1065,6 +1077,20 @@ void o2::aod::dqhistograms::DefineHistograms(HistogramManager* hm, const char* h
double xmaxpT[5] = {1.2, 3., 100, 1., 3.14};
hm->AddHistogram(histClass, "Mass_Pt_Cent_cosThetaCS_lowmass", "", 5, varsCSpbpb, binspT, xminpT, xmaxpT, 0, -1, kFALSE);
}
if (subGroupStr.Contains("dimuon-polarization-vp-pbpb")) {
int varsHEpbpb[4] = {VarManager::kMass, VarManager::kPt, VarManager::kCentFT0C, VarManager::kPhiVP};
int binspT[4] = {150, 30, 10, 24};
double xminpT[4] = {2., 0., 0, 0.};
double xmaxpT[4] = {5., 3., 100, 3.14};
hm->AddHistogram(histClass, "Mass_Pt_Cent_phiVP", "", 4, varsHEpbpb, binspT, xminpT, xmaxpT, 0, -1, kFALSE);
}
if (subGroupStr.Contains("dimuon-polarization-lowmass-vp-pbpb")) {
int varsHEpbpb[4] = {VarManager::kMass, VarManager::kPt, VarManager::kCentFT0C, VarManager::kPhiVP};
int binspT[4] = {200, 30, 10, 24};
double xminpT[4] = {0.2, 0., 0, 0.};
double xmaxpT[4] = {1.2, 3., 100, 3.14};
hm->AddHistogram(histClass, "Mass_Pt_Cent_phiVP_lowmass", "", 4, varsHEpbpb, binspT, xminpT, xmaxpT, 0, -1, kFALSE);
}
if (subGroupStr.Contains("dimuon-rap-polarization-he-pbpb")) {
int varsHEpbpb[5] = {VarManager::kMass, VarManager::kPt, VarManager::kCentFT0C, VarManager::kCosThetaHE, VarManager::kRap};
int binspT[5] = {150, 30, 10, 10, 6};
Expand Down
2 changes: 2 additions & 0 deletions PWGDQ/Core/VarManager.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,8 @@ void VarManager::SetDefaultVarNames()
fgVariableUnits[kCosThetaCS] = "";
fgVariableNames[kPhiCS] = "#varphi_{CS}";
fgVariableUnits[kPhiCS] = "rad.";
fgVariableNames[kPhiVP] = "#varphi_{VP} - #Psi_{2}";
fgVariableUnits[kPhiVP] = "rad.";
fgVariableNames[kDeltaPhiPair2] = "#Delta#phi";
fgVariableUnits[kDeltaPhiPair2] = "rad.";
fgVariableNames[kDeltaEtaPair2] = "#Delta#eta";
Expand Down
11 changes: 11 additions & 0 deletions PWGDQ/Core/VarManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ class VarManager : public TObject
kCosThetaCS,
kPhiHE,
kPhiCS,
kPhiVP,
kDeltaPhiPair2,
kDeltaEtaPair2,
kPsiPair,
Expand Down Expand Up @@ -4335,6 +4336,16 @@ void VarManager::FillPairVn(T1 const& t1, T2 const& t2, float* values)
values[kCORR2REF] = std::isnan(values[kCORR2REF]) || std::isinf(values[kCORR2REF]) ? 0 : values[kCORR2REF];
values[kCORR4REF] = std::isnan(values[kCORR4REF]) || std::isinf(values[kCORR4REF]) ? 0 : values[kCORR4REF];
}

ROOT::Math::PtEtaPhiMVector v1_vp(v1.Pt(), v1.Eta(), v1.Phi() - Psi2B, v1.M());
ROOT::Math::PtEtaPhiMVector v2_vp(v2.Pt(), v2.Eta(), v2.Phi() - Psi2B, v2.M());
ROOT::Math::PtEtaPhiMVector v12_vp = v1_vp + v2_vp;
auto p12_vp = ROOT::Math::XYZVectorF(v12_vp.Px(), v12_vp.Py(), v12_vp.Pz());
auto p12_vp_projXZ = ROOT::Math::XYZVectorF(p12_vp.X(), 0, p12_vp.Z());
auto vDimu = (t1.sign() > 0 ? ROOT::Math::XYZVectorF(v1_vp.Px(), v1_vp.Py(), v1_vp.Pz()).Cross(ROOT::Math::XYZVectorF(v2_vp.Px(), v2_vp.Py(), v2_vp.Pz()))
: ROOT::Math::XYZVectorF(v2_vp.Px(), v2_vp.Py(), v2_vp.Pz()).Cross(ROOT::Math::XYZVectorF(v1_vp.Px(), v1_vp.Py(), v1_vp.Pz())));
auto vRef = p12_vp.Cross(p12_vp_projXZ);
values[kPhiVP] = std::acos(vDimu.Dot(vRef) / (vRef.R() * vDimu.R()));
}

template <typename T>
Expand Down
Loading