Skip to content

Commit 3cd4429

Browse files
[PWGDQ] Update the histograms in dimuon-polarization-vp-pbpb (#9565)
Co-authored-by: kkimura0623 <kimura@quark.hiroshima-u.ac.jp>
1 parent ab276dc commit 3cd4429

File tree

3 files changed

+24
-20
lines changed

3 files changed

+24
-20
lines changed

PWGDQ/Core/HistogramsLibrary.cxx

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,16 +1106,16 @@ void o2::aod::dqhistograms::DefineHistograms(HistogramManager* hm, const char* h
11061106
hm->AddHistogram(histClass, "Mass_y_cosThetaCS_phiCS", "", 4, varsrapCS, binsy, xminy, xmaxy, 0, -1, kFALSE);
11071107
}
11081108
if (subGroupStr.Contains("dimuon-polarization-vp")) {
1109-
int varspTCS[3] = {VarManager::kMass, VarManager::kPt, VarManager::kPhiVP};
1110-
int varsrapCS[3] = {VarManager::kMass, VarManager::kRap, VarManager::kPhiVP};
1111-
int binspT[3] = {100, 20, 24};
1112-
int binsy[3] = {100, 10, 24};
1113-
double xminpT[3] = {1., 0., 0.};
1114-
double xmaxpT[3] = {5., 20., +3.14};
1115-
double xminy[3] = {1., 2.5, 0.};
1116-
double xmaxy[3] = {5., 4.0, +3.14};
1117-
hm->AddHistogram(histClass, "Mass_Pt_phiVP", "", 3, varspTCS, binspT, xminpT, xmaxpT, 0, -1, kFALSE);
1118-
hm->AddHistogram(histClass, "Mass_y_phiVP", "", 3, varsrapCS, binsy, xminy, xmaxy, 0, -1, kFALSE);
1109+
int varspTVP[4] = {VarManager::kMass, VarManager::kPt, VarManager::kCosPhiVP, VarManager::kPhiVP};
1110+
int varsrapVP[4] = {VarManager::kMass, VarManager::kRap, VarManager::kCosPhiVP, VarManager::kPhiVP};
1111+
int binspT[4] = {100, 20, 24, 24};
1112+
int binsy[4] = {100, 10, 24, 24};
1113+
double xminpT[4] = {1., 0., -1., 0.};
1114+
double xmaxpT[4] = {5., 20., 1., +3.14};
1115+
double xminy[4] = {1., 2.5, -1., 0.};
1116+
double xmaxy[4] = {5., 4.0, 1., +3.14};
1117+
hm->AddHistogram(histClass, "Mass_Pt_phiVP", "", 4, varspTVP, binspT, xminpT, xmaxpT, 0, -1, kFALSE);
1118+
hm->AddHistogram(histClass, "Mass_y_phiVP", "", 4, varsrapVP, binsy, xminy, xmaxy, 0, -1, kFALSE);
11191119
}
11201120
if (subGroupStr.Contains("dimuon-rap")) {
11211121
int vars[4] = {VarManager::kMass, VarManager::kPt, VarManager::kCentFT0C, VarManager::kRap};
@@ -1153,18 +1153,18 @@ void o2::aod::dqhistograms::DefineHistograms(HistogramManager* hm, const char* h
11531153
hm->AddHistogram(histClass, "Mass_Pt_Cent_cosThetaCS_lowmass", "", 5, varsCSpbpb, binspT, xminpT, xmaxpT, 0, -1, kFALSE);
11541154
}
11551155
if (subGroupStr.Contains("dimuon-polarization-vp-pbpb")) {
1156-
int varsHEpbpb[4] = {VarManager::kMass, VarManager::kPt, VarManager::kCentFT0C, VarManager::kPhiVP};
1157-
int binspT[4] = {150, 30, 10, 24};
1158-
double xminpT[4] = {2., 0., 0, 0.};
1159-
double xmaxpT[4] = {5., 3., 100, 3.14};
1160-
hm->AddHistogram(histClass, "Mass_Pt_Cent_phiVP", "", 4, varsHEpbpb, binspT, xminpT, xmaxpT, 0, -1, kFALSE);
1156+
int varsVPpbpb[5] = {VarManager::kMass, VarManager::kPt, VarManager::kCentFT0C, VarManager::kCosPhiVP, VarManager::kPhiVP};
1157+
int binspT[5] = {150, 30, 10, 24, 24};
1158+
double xminpT[5] = {2., 0., 0, -1., 0.};
1159+
double xmaxpT[5] = {5., 3., 100, 1., 3.14};
1160+
hm->AddHistogram(histClass, "Mass_Pt_Cent_phiVP", "", 5, varsVPpbpb, binspT, xminpT, xmaxpT, 0, -1, kFALSE);
11611161
}
11621162
if (subGroupStr.Contains("dimuon-polarization-lowmass-vp-pbpb")) {
1163-
int varsHEpbpb[4] = {VarManager::kMass, VarManager::kPt, VarManager::kCentFT0C, VarManager::kPhiVP};
1164-
int binspT[4] = {200, 30, 10, 24};
1165-
double xminpT[4] = {0.2, 0., 0, 0.};
1166-
double xmaxpT[4] = {1.2, 3., 100, 3.14};
1167-
hm->AddHistogram(histClass, "Mass_Pt_Cent_phiVP_lowmass", "", 4, varsHEpbpb, binspT, xminpT, xmaxpT, 0, -1, kFALSE);
1163+
int varsVPpbpb[5] = {VarManager::kMass, VarManager::kPt, VarManager::kCentFT0C, VarManager::kCosPhiVP, VarManager::kPhiVP};
1164+
int binspT[5] = {200, 30, 10, 24, 24};
1165+
double xminpT[5] = {0.2, 0., 0, -1., 0.};
1166+
double xmaxpT[5] = {1.2, 3., 100, 1., 3.14};
1167+
hm->AddHistogram(histClass, "Mass_Pt_Cent_phiVP_lowmass", "", 5, varsVPpbpb, binspT, xminpT, xmaxpT, 0, -1, kFALSE);
11681168
}
11691169
if (subGroupStr.Contains("dimuon-rap-polarization-he-pbpb")) {
11701170
int varsHEpbpb[5] = {VarManager::kMass, VarManager::kPt, VarManager::kCentFT0C, VarManager::kCosThetaHE, VarManager::kRap};

PWGDQ/Core/VarManager.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,8 @@ void VarManager::SetDefaultVarNames()
916916
fgVariableUnits[kCosThetaCS] = "";
917917
fgVariableNames[kPhiCS] = "#varphi_{CS}";
918918
fgVariableUnits[kPhiCS] = "rad.";
919+
fgVariableNames[kCosPhiVP] = "cos#it{#varphi}_{VP}";
920+
fgVariableUnits[kCosPhiVP] = "";
919921
fgVariableNames[kPhiVP] = "#varphi_{VP} - #Psi_{2}";
920922
fgVariableUnits[kPhiVP] = "rad.";
921923
fgVariableNames[kDeltaPhiPair2] = "#Delta#phi";

PWGDQ/Core/VarManager.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ class VarManager : public TObject
627627
kCosThetaCS,
628628
kPhiHE,
629629
kPhiCS,
630+
kCosPhiVP,
630631
kPhiVP,
631632
kDeltaPhiPair2,
632633
kDeltaEtaPair2,
@@ -4415,6 +4416,7 @@ void VarManager::FillPairVn(T1 const& t1, T2 const& t2, float* values)
44154416
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()))
44164417
: 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())));
44174418
auto vRef = p12_vp.Cross(p12_vp_projXZ);
4419+
values[kCosPhiVP] = vDimu.Dot(vRef) / (vRef.R() * vDimu.R());
44184420
values[kPhiVP] = std::acos(vDimu.Dot(vRef) / (vRef.R() * vDimu.R()));
44194421
}
44204422

0 commit comments

Comments
 (0)