Skip to content

Commit 46cc605

Browse files
authored
[PWGCF] FemtoUniverse: Addidng 3D histo of qLCMS vs deta vs deta (#11594)
1 parent c858688 commit 46cc605

File tree

1 file changed

+31
-6
lines changed

1 file changed

+31
-6
lines changed

PWGCF/FemtoUniverse/Core/FemtoUniverseDetaDphiStar.h

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ class FemtoUniverseDetaDphiStar
6868
histdetadpimixed[0][0] = mHistogramRegistry->add<TH2>((dirName + static_cast<std::string>(HistNamesMixed[0][0])).c_str(), "; #Delta #eta; #Delta #phi", kTH2F, {{100, -0.15, 0.15}, {100, -0.15, 0.15}});
6969
histdetadpimixed[0][1] = mHistogramRegistry->add<TH2>((dirName + static_cast<std::string>(HistNamesMixed[1][0])).c_str(), "; #Delta #eta; #Delta #phi", kTH2F, {{100, -0.15, 0.15}, {100, -0.15, 0.15}});
7070

71+
histdetadpiqlcmssame = mHistogramRegistry->add<TH3>((dirName + static_cast<std::string>(HistNamesSame[1][7])).c_str(), "; #it{q}_{LCMS}; #Delta #eta; #Delta #phi", kTH3F, {{100, 0.0, 0.5}, {100, -0.15, 0.15}, {100, -0.15, 0.15}});
72+
histdetadpiqlcmsmixed = mHistogramRegistry->add<TH3>((dirName + static_cast<std::string>(HistNamesMixed[1][7])).c_str(), "; #it{q}_{LCMS}; #Delta #eta; #Delta #phi", kTH3F, {{100, 0.0, 0.5}, {100, -0.15, 0.15}, {100, -0.15, 0.15}});
73+
7174
if (plotForEveryRadii) {
7275
for (int i = 0; i < 9; i++) {
7376
histdetadpiRadii[0][i] = mHistogramRegistryQA->add<TH2>((dirName + static_cast<std::string>(HistNamesRadii[0][i])).c_str(), "; #Delta #eta; #Delta #phi", kTH2F, {{100, -0.15, 0.15}, {100, -0.15, 0.15}});
@@ -407,23 +410,42 @@ class FemtoUniverseDetaDphiStar
407410
}
408411
}
409412

413+
/// Check if pair is close or not
414+
template <typename Part>
415+
void ClosePairqLCMS(Part const& part1, Part const& part2, float lmagfield, uint8_t ChosenEventType, double qlcms) // add typename Parts and variable parts for adding MClabels
416+
{
417+
magfield = lmagfield;
418+
if constexpr (kPartOneType == o2::aod::femtouniverseparticle::ParticleType::kTrack && kPartTwoType == o2::aod::femtouniverseparticle::ParticleType::kTrack) {
419+
auto deta = part1.eta() - part2.eta();
420+
auto dphiAvg = averagePhiStar(part1, part2, 0);
421+
422+
if (ChosenEventType == femto_universe_container::EventType::same) {
423+
histdetadpiqlcmssame->Fill(qlcms, deta, dphiAvg);
424+
} else if (ChosenEventType == femto_universe_container::EventType::mixed) {
425+
histdetadpiqlcmsmixed->Fill(qlcms, deta, dphiAvg);
426+
} else {
427+
LOG(fatal) << "FemtoUniverseDetaDphiStar: passed arguments don't agree with FemtoUniverseDetaDphiStar's type of events! Please provide same or mixed.";
428+
}
429+
}
430+
}
431+
410432
private:
411433
HistogramRegistry* mHistogramRegistry = nullptr; ///< For main output
412434
HistogramRegistry* mHistogramRegistryQA = nullptr; ///< For QA output
413435
static constexpr std::string_view DirNames[6] = {"kTrack_kTrack/", "kTrack_kV0/", "kV0_kV0/", "kTrack_kPhi/", "kTrack_kD0/", "kCascade_kCascade/"};
414436

415-
static constexpr std::string_view HistNamesSame[2][7] = {{"detadphidetadphi0BeforeSame_0", "detadphidetadphi0BeforeSame_1", "detadphidetadphi0BeforeSame_2",
437+
static constexpr std::string_view HistNamesSame[2][8] = {{"detadphidetadphi0BeforeSame_0", "detadphidetadphi0BeforeSame_1", "detadphidetadphi0BeforeSame_2",
416438
"detadphidetadphi0BeforeSame_3", "detadphidetadphi0BeforeSame_4", "detadphidetadphi0BeforeSame_5",
417-
"detadphidetadphi0BeforeSame_6"},
439+
"detadphidetadphi0BeforeSame_6", "detadphidetadphi0BeforeSameqLCMS"},
418440
{"detadphidetadphi0AfterSame_0", "detadphidetadphi0AfterSame_1", "detadphidetadphi0AfterSame_2",
419441
"detadphidetadphi0AfterSame_3", "detadphidetadphi0AfterSame_4", "detadphidetadphi0AfterSame_5",
420-
"detadphidetadphi0AfterSame_6"}};
421-
static constexpr std::string_view HistNamesMixed[2][7] = {{"detadphidetadphi0BeforeMixed_0", "detadphidetadphi0BeforeMixed_1", "detadphidetadphi0BeforeMixed_2",
442+
"detadphidetadphi0AfterSame_6", "detadphidetadphi0AfterSameqLCMS"}};
443+
static constexpr std::string_view HistNamesMixed[2][8] = {{"detadphidetadphi0BeforeMixed_0", "detadphidetadphi0BeforeMixed_1", "detadphidetadphi0BeforeMixed_2",
422444
"detadphidetadphi0BeforeMixed_3", "detadphidetadphi0BeforeMixed_4", "detadphidetadphi0BeforeMixed_5",
423-
"detadphidetadphi0BeforeMixed_6"},
445+
"detadphidetadphi0BeforeMixed_6", "detadphidetadphi0BeforeMixedqLCMS"},
424446
{"detadphidetadphi0AfterMixed_0", "detadphidetadphi0AfterMixed_1", "detadphidetadphi0AfterMixed_2",
425447
"detadphidetadphi0AfterMixed_3", "detadphidetadphi0AfterMixed_4", "detadphidetadphi0AfterMixed_5",
426-
"detadphidetadphi0AfterMixed_6"}};
448+
"detadphidetadphi0AfterMixed_6", "detadphidetadphi0AfterMixedqLCMS"}};
427449

428450
static constexpr std::string_view HistNamesRadii[7][9] = {{"detadphidetadphi0Before_0_0", "detadphidetadphi0Before_0_1", "detadphidetadphi0Before_0_2",
429451
"detadphidetadphi0Before_0_3", "detadphidetadphi0Before_0_4", "detadphidetadphi0Before_0_5",
@@ -471,6 +493,9 @@ class FemtoUniverseDetaDphiStar
471493
std::array<std::array<std::shared_ptr<TH2>, 2>, 7> histdetadpimixed{};
472494
std::array<std::array<std::shared_ptr<TH2>, 9>, 7> histdetadpiRadii{};
473495

496+
std::shared_ptr<TH3> histdetadpiqlcmssame{};
497+
std::shared_ptr<TH3> histdetadpiqlcmsmixed{};
498+
474499
/// Calculate phi at all required radii stored in TmpRadiiTPC
475500
/// Magnetic field to be provided in Tesla
476501
template <typename T>

0 commit comments

Comments
 (0)