Skip to content
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
30 changes: 30 additions & 0 deletions PWGDQ/Core/HistogramsLibrary.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1338,6 +1338,20 @@ void o2::aod::dqhistograms::DefineHistograms(HistogramManager* hm, const char* h
std::array<double, 5> xmax = {4., 3., 100, 1., 6.28};
hm->AddHistogram(histClass, "MC_Dielectron_Mass_Pt_Cent_cosThetaCS", "", 5, varspTCS.data(), bins.data(), xmin.data(), xmax.data(), nullptr, -1, kFALSE);
}
if (groupStr.CompareTo("polarization-dielectron-pbpb-midy-rm-gen") == 0) {
std::array<int, 4> varspTRM = {VarManager::kMCMass, VarManager::kMCPt, VarManager::kMCEventCentrFT0C, VarManager::kMCCosThetaRM};
std::array<int, 4> bins = {50, 30, 10, 10};
std::array<double, 4> xmin = {2., 0., 0, -1.};
std::array<double, 4> xmax = {4., 3., 100, 1.};
hm->AddHistogram(histClass, "MC_Dielectron_Mass_Pt_Cent_cosThetaRM", "", 4, varspTRM.data(), bins.data(), xmin.data(), xmax.data(), nullptr, -1, kFALSE);
}
if (groupStr.CompareTo("polarization-dielectron-pbpb-midy-he-thetaphi-gen") == 0) {
std::array<int, 4> varspTHEphi = {VarManager::kMCMass, VarManager::kMCPt, VarManager::kMCEventCentrFT0C, VarManager::kMCPhiTildeHE};
std::array<int, 4> bins = {50, 30, 10, 10};
std::array<double, 4> xmin = {2., 0., 0, 0.0};
std::array<double, 4> xmax = {4., 3., 100, 6.28};
hm->AddHistogram(histClass, "MC_Dielectron_Mass_Pt_Cent_phiTildeHE", "", 4, varspTHEphi.data(), bins.data(), xmin.data(), xmax.data(), nullptr, -1, kFALSE);
}
if (groupStr.CompareTo("pair") == 0) {
if (subGroupStr.Contains("cepf")) {
hm->AddHistogram(histClass, "Mass", "", false, 300, 0.0, 12.0, VarManager::kMass);
Expand Down Expand Up @@ -1480,6 +1494,22 @@ void o2::aod::dqhistograms::DefineHistograms(HistogramManager* hm, const char* h
std::array<double, 5> xmaxpT = {4.5, 3., 100, 1., 6.28};
hm->AddHistogram(histClass, "Dielectron_Mass_Pt_Cent_cosThetaCS", "", 5, varsCSpbpb.data(), binspT.data(), xminpT.data(), xmaxpT.data(), nullptr, -1, kFALSE);
}

if (subGroupStr.Contains("dielectron-polarization-rm-pbpb")) {
std::array<int, 4> varsRMpbpb = {VarManager::kMass, VarManager::kPt, VarManager::kCentFT0C, VarManager::kCosThetaRM};
std::array<int, 4> binspT = {100, 30, 10, 10};
std::array<double, 4> xminpT = {2., 0., 0, -1.};
std::array<double, 4> xmaxpT = {4.5, 3., 100, 1.};
hm->AddHistogram(histClass, "Dielectron_Mass_Pt_Cent_cosThetaRM", "", 4, varsRMpbpb.data(), binspT.data(), xminpT.data(), xmaxpT.data(), nullptr, -1, kFALSE);
}

if (subGroupStr.Contains("dielectron-polarization-he-thetaphi-pbpb")) {
std::array<int, 4> varsHEphipbpb = {VarManager::kMass, VarManager::kPt, VarManager::kCentFT0C, VarManager::kPhiTildeHE};
std::array<int, 4> binspT = {100, 30, 10, 10};
std::array<double, 4> xminpT = {2., 0., 0, 0.0};
std::array<double, 4> xmaxpT = {4.5, 3., 100, 6.28};
hm->AddHistogram(histClass, "Dielectron_Mass_Pt_Cent_phiTildeHE", "", 4, varsHEphipbpb.data(), binspT.data(), xminpT.data(), xmaxpT.data(), nullptr, -1, kFALSE);
}
if (subGroupStr.Contains("polarization")) {
if (subGroupStr.Contains("helicity")) {
hm->AddHistogram(histClass, "Mass_Pt_CosThetaHE", "", false, 100, 1.0, 5.0, VarManager::kMass, 40, 0.0, 20.0, VarManager::kPt, 20, -1., 1., VarManager::kCosThetaHE);
Expand Down
32 changes: 32 additions & 0 deletions PWGDQ/Tasks/dqEfficiency_withAssoc_direct.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,8 @@ struct AnalysisSameEventPairing {
Configurable<bool> fConfigTruthPbPbMIDYCS{"cfgTruthPbPbmidyCS", false, "If true, fill QA histograms with dielectron pairs in collion-soper frame"};
Configurable<bool> fConfigTruthPbPbMIDYGJB1{"cfgTruthPbPbmidyGJB1", false, "If true, fill QA histograms with dielectron pairs in Gottfried-Jackson frame, beam 1 (+z)"};
Configurable<bool> fConfigTruthPbPbMIDYGJB2{"cfgTruthPbPbmidyGJB2", false, "If true, fill QA histograms with dielectron pairs in Gottfried-Jackson frame, beam 2 (-z)"};
Configurable<bool> fConfigTruthPbPbMIDYRM{"cfgTruthPbPbmidyRM", false, "If true, fill QA histograms with dielectron pairs in random frame (cos theta RM)"};
Configurable<bool> fConfigTruthPbPbMIDYPhiTildeHE{"cfgTruthPbPbmidyPhiTildeHE", false, "If true, fill QA histograms with dielectron pairs in helicity frame (phi tilde HE)"};
Configurable<std::string> fConfigAddSEPHistogram{"cfgAddSEPHistogram", "", "Comma separated list of histograms"};
Configurable<std::string> fConfigAddJSONHistograms{"cfgAddJSONHistograms", "", "Histograms in JSON format"};
Configurable<bool> useRemoteField{"cfgUseRemoteField", false, "Chose whether to fetch the magnetic field from ccdb or set it manually"};
Expand Down Expand Up @@ -1563,6 +1565,12 @@ struct AnalysisSameEventPairing {
if (fConfigOptions.fConfigTruthPbPbMIDYGJB2.value) {
histNames += Form("MCTruthGenPoldielectronPbPbPairGJB2Sel_%s;", sig->GetName());
}
if (fConfigOptions.fConfigTruthPbPbMIDYRM.value) {
histNames += Form("MCTruthGenPoldielectronPbPbPairRMSel_%s;", sig->GetName());
}
if (fConfigOptions.fConfigTruthPbPbMIDYPhiTildeHE.value) {
histNames += Form("MCTruthGenPoldielectronPbPbPairPhiTildeHESel_%s;", sig->GetName());
}
fHasTwoProngGenMCsignals = true;
}
// for these pair level signals, also add histograms for each MCgenAcc cut if specified
Expand Down Expand Up @@ -1592,6 +1600,12 @@ struct AnalysisSameEventPairing {
if (fConfigOptions.fConfigTruthPbPbMIDYGJB2.value) {
histNames += Form("MCTruthGenPoldielectronPbPbPairGJB2Sel_%s_%s;", sig->GetName(), cut->GetName());
}
if (fConfigOptions.fConfigTruthPbPbMIDYRM.value) {
histNames += Form("MCTruthGenPoldielectronPbPbPairRMSel_%s_%s;", sig->GetName(), cut->GetName());
}
if (fConfigOptions.fConfigTruthPbPbMIDYPhiTildeHE.value) {
histNames += Form("MCTruthGenPoldielectronPbPbPairPhiTildeHESel_%s_%s;", sig->GetName(), cut->GetName());
}
}
}
}
Expand Down Expand Up @@ -2277,6 +2291,12 @@ struct AnalysisSameEventPairing {
if (fConfigOptions.fConfigTruthPbPbMIDYGJB2.value) {
fHistMan->FillHistClass(Form("MCTruthGenPoldielectronPbPbPairGJB2Sel_%s", sig->GetName()), static_cast<float*>(VarManager::fgValues));
}
if (fConfigOptions.fConfigTruthPbPbMIDYRM.value) {
fHistMan->FillHistClass(Form("MCTruthGenPoldielectronPbPbPairRMSel_%s", sig->GetName()), static_cast<float*>(VarManager::fgValues));
}
if (fConfigOptions.fConfigTruthPbPbMIDYPhiTildeHE.value) {
fHistMan->FillHistClass(Form("MCTruthGenPoldielectronPbPbPairPhiTildeHESel_%s", sig->GetName()), static_cast<float*>(VarManager::fgValues));
}

if (fUseMCGenAccCut) {
for (const auto& cut : fMCGenAccCuts) {
Expand Down Expand Up @@ -2306,6 +2326,12 @@ struct AnalysisSameEventPairing {
if (fConfigOptions.fConfigTruthPbPbMIDYGJB2.value) {
fHistMan->FillHistClass(Form("MCTruthGenPoldielectronPbPbPairGJB2Sel_%s_%s", sig->GetName(), cut->GetName()), static_cast<float*>(VarManager::fgValues));
}
if (fConfigOptions.fConfigTruthPbPbMIDYRM.value) {
fHistMan->FillHistClass(Form("MCTruthGenPoldielectronPbPbPairRMSel_%s_%s", sig->GetName(), cut->GetName()), static_cast<float*>(VarManager::fgValues));
}
if (fConfigOptions.fConfigTruthPbPbMIDYPhiTildeHE.value) {
fHistMan->FillHistClass(Form("MCTruthGenPoldielectronPbPbPairPhiTildeHESel_%s_%s", sig->GetName(), cut->GetName()), static_cast<float*>(VarManager::fgValues));
}
}
}
}
Expand Down Expand Up @@ -3883,6 +3909,12 @@ void DefineHistograms(HistogramManager* histMan, const TString& histClasses, con
if (classStr.Contains("MCTruthGenPoldielectronPbPbPairGJB2")) {
dqhistograms::DefineHistograms(histMan, objArray->At(iclass)->GetName(), "polarization-dielectron-pbpb-midy-gjb2-gen", histName);
}
if (classStr.Contains("MCTruthGenPoldielectronPbPbPairRM")) {
dqhistograms::DefineHistograms(histMan, objArray->At(iclass)->GetName(), "polarization-dielectron-pbpb-midy-rm-gen", histName);
}
if (classStr.Contains("MCTruthGenPoldielectronPbPbPairPhiTildeHE")) {
dqhistograms::DefineHistograms(histMan, objArray->At(iclass)->GetName(), "polarization-dielectron-pbpb-midy-he-thetaphi-gen", histName);
}
if (classStr.Contains("MCTruthGenSelBR")) {
dqhistograms::DefineHistograms(histMan, objArray->At(iclass)->GetName(), "mctruth_triple");
} else if (classStr.Contains("MCTruthGen")) {
Expand Down
Loading