Skip to content

Commit 344bfe5

Browse files
authored
[PWGDQ] Add histograms for MC truth signal for prompt/non-prompt polarization (#15506)
1 parent 947d1a3 commit 344bfe5

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

PWGDQ/Tasks/dqEfficiency_withAssoc.cxx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1711,11 +1711,14 @@ struct AnalysisSameEventPairing {
17111711
} else if (sig->GetNProngs() == 2) {
17121712
histNames += Form("MCTruthGenPair_%s;", sig->GetName());
17131713
histNames += Form("MCTruthGenPairSel_%s;", sig->GetName());
1714+
histNames += Form("MCTruthGenPseudoPolPair_%s;", sig->GetName());
1715+
histNames += Form("MCTruthGenPseudoPolPairSel_%s;", sig->GetName());
17141716
fHasTwoProngGenMCsignals = true;
17151717
// for these pair level signals, also add histograms for each MCgenAcc cut if specified
17161718
if (fUseMCGenAccCut) {
17171719
for (auto& cut : fMCGenAccCuts) {
17181720
histNames += Form("MCTruthGenPairSel_%s_%s;", sig->GetName(), cut->GetName());
1721+
histNames += Form("MCTruthGenPseudoPolPairSel_%s_%s;", sig->GetName(), cut->GetName());
17191722
}
17201723
}
17211724
}
@@ -2262,11 +2265,13 @@ struct AnalysisSameEventPairing {
22622265
VarManager::FillPairMC<TPairType>(t1_raw, t2_raw);
22632266
// cout << " Filled VarManager for the pair." << endl;
22642267
fHistMan->FillHistClass(Form("MCTruthGenPairSel_%s", sig->GetName()), VarManager::fgValues);
2268+
fHistMan->FillHistClass(Form("MCTruthGenPseudoPolPairSel_%s", sig->GetName()), VarManager::fgValues);
22652269
// Fill also acceptance cut histograms if requested
22662270
if (fUseMCGenAccCut) {
22672271
for (auto& cut : fMCGenAccCuts) {
22682272
if (cut->IsSelected(VarManager::fgValues)) {
22692273
fHistMan->FillHistClass(Form("MCTruthGenPairSel_%s_%s", sig->GetName(), cut->GetName()), VarManager::fgValues);
2274+
fHistMan->FillHistClass(Form("MCTruthGenPseudoPolPairSel_%s_%s", sig->GetName(), cut->GetName()), VarManager::fgValues);
22702275
}
22712276
}
22722277
}
@@ -4668,7 +4673,9 @@ void DefineHistograms(HistogramManager* histMan, TString histClasses, const char
46684673
if (classStr.Contains("MCTruthGenPair")) {
46694674
dqhistograms::DefineHistograms(histMan, objArray->At(iclass)->GetName(), "mctruth_pair", histName);
46704675
}
4671-
4676+
if (classStr.Contains("MCTruthGenPseudoPolPair")) {
4677+
dqhistograms::DefineHistograms(histMan, objArray->At(iclass)->GetName(), "polarization-pseudoproper-gen", histName);
4678+
}
46724679
if (classStr.Contains("MCTruthGenSelBR")) {
46734680
dqhistograms::DefineHistograms(histMan, objArray->At(iclass)->GetName(), "mctruth_triple");
46744681
} else if (classStr.Contains("MCTruthGen")) {

PWGDQ/Tasks/dqEfficiency_withAssoc_direct.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,6 +1458,7 @@ struct AnalysisSameEventPairing {
14581458
histNames += Form("MCTruthGenSel_%s;", sig->GetName());
14591459
} else if (sig->GetNProngs() == 2) {
14601460
histNames += Form("MCTruthGenPairSel_%s;", sig->GetName());
1461+
histNames += Form("MCTruthGenPseudoPolPairSel_%s;", sig->GetName());
14611462
fHasTwoProngGenMCsignals = true;
14621463
}
14631464
}
@@ -2070,6 +2071,7 @@ struct AnalysisSameEventPairing {
20702071
}
20712072
}
20722073
fHistMan->FillHistClass(Form("MCTruthGenPairSel_%s", sig->GetName()), VarManager::fgValues);
2074+
fHistMan->FillHistClass(Form("MCTruthGenPseudoPolPairSel_%s", sig->GetName()), VarManager::fgValues);
20732075
if (fConfigOptions.fConfigMiniTree) {
20742076
// WARNING! To be checked
20752077
dileptonMiniTreeGen(mcDecision, -999, t1_raw.pt(), t1_raw.eta(), t1_raw.phi(), t2_raw.pt(), t2_raw.eta(), t2_raw.phi());
@@ -3056,6 +3058,9 @@ void DefineHistograms(HistogramManager* histMan, TString histClasses, const char
30563058
if (classStr.Contains("MCTruthGenPair")) {
30573059
dqhistograms::DefineHistograms(histMan, objArray->At(iclass)->GetName(), "mctruth_pair", histName);
30583060
}
3061+
if (classStr.Contains("MCTruthGenPseudoPolPair")) {
3062+
dqhistograms::DefineHistograms(histMan, objArray->At(iclass)->GetName(), "polarization-pseudoproper-gen", histName);
3063+
}
30593064

30603065
if (classStr.Contains("MCTruthGenSelBR")) {
30613066
dqhistograms::DefineHistograms(histMan, objArray->At(iclass)->GetName(), "mctruth_triple");

0 commit comments

Comments
 (0)