Skip to content

Commit 4e677b6

Browse files
author
Laura Gansbartl
committed
include of check for gamma gamma contamination in Dalitz decays
1 parent 63ec9e1 commit 4e677b6

1 file changed

Lines changed: 29 additions & 1 deletion

File tree

PWGEM/PhotonMeson/Core/Pi0EtaToGammaGammaMC.h

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ struct Pi0EtaToGammaGammaMC {
9292
o2::framework::Configurable<float> cfgAlphaMeson{"cfgAlphaMeson", 0.65, "photon energy asymmetry distribution parameter for specific value cut"};
9393
o2::framework::Configurable<float> cfgAlphaMesonA{"cfgAlphaMesonA", 0.65, "photon energy asymmetry distribution parameter A for pT dependent cut (A * tanh(B*pT))"};
9494
o2::framework::Configurable<float> cfgAlphaMesonB{"cfgAlphaMesonB", 1.2, "photon energy asymmetry distribution parameter B for pT dependent cut (A * tanh(B*pT))"};
95+
o2::framework::Configurable<bool> cfgGGContaCheck{"cfgGGContaCheck", false, "check gamma gamma contamination of dalitz"};
9596

9697
EMPhotonEventCut fEMEventCut;
9798
struct : o2::framework::ConfigurableGroup {
@@ -250,8 +251,14 @@ struct Pi0EtaToGammaGammaMC {
250251
DefinePHOSCut();
251252

252253
f1fd_k0s_to_pi0 = new TF1("f1fd_k0s_to_pi0", TString(fd_k0s_to_pi0), 0.f, 100.f);
253-
254+
254255
fRegistry.add("Event/hNrecPerMCCollision", "Nrec per mc collision;N_{rec} collisions per MC collision", o2::framework::HistType::kTH1F, {{21, -0.5f, 20.5f}}, false);
256+
if(cfgGGContaCheck){
257+
fRegistry.add("Event/hNGGContamEta", "Number of Eta from etaToGammaGamma; p_{T, #eta} (GeV/#it{c}); N", o2::framework::HistType::kTH1F, {{40, -0.5f, 20.5f}}, false);
258+
fRegistry.add("Event/hNGGContamPion", "Number of Pion from etaToGammaGamma; p_{T, #pi} (GeV/#it{c}); N", o2::framework::HistType::kTH1F, {{40, -0.5f, 20.5f}}, false);
259+
}
260+
fRegistry.add("Event/hNDalitzEtaPt", "Number of DalitzEta; p_{T, #eta} (GeV/#it{c}); N", o2::framework::HistType::kTH1F, {{40, -0.5f, 20.5f}}, false);
261+
fRegistry.add("Event/hNDalitzPionPt", "Number of DalitzPion; p_{T, #pi} (GeV/#it{c}) ; N", o2::framework::HistType::kTH1F, {{40, -0.5f, 20.5f}}, false);
255262

256263
mRunNumber = 0;
257264
d_bz = 0;
@@ -792,6 +799,25 @@ struct Pi0EtaToGammaGammaMC {
792799

793800
auto pos2mc = mcparticles.iteratorAt(pos2.emmcparticleId());
794801
auto ele2mc = mcparticles.iteratorAt(ele2.emmcparticleId());
802+
if(cfgGGContaCheck){
803+
photonid2 = o2::aod::pwgem::dilepton::utils::mcutil::FindCommonMotherFrom2Prongs(pos2mc, ele2mc, -11, 11, 22, mcparticles); //check possible contamination
804+
if(photonid2 > 0){
805+
auto photon2 = mcparticles.iteratorAt(photonid2);
806+
int photon2pdg = photon2.pdgCode();
807+
int photon2mothid = photon2.mothersIds()[0];
808+
auto photon2moth = mcparticles.iteratorAt(photon2mothid);
809+
if(photon2pdg == 22 && (o2::aod::pwgem::photonmeson::utils::mcutil::isGammaGammaDecay(photon2moth, mcparticles))){
810+
int mothID = o2::aod::pwgem::dilepton::utils::mcutil::getMotherPDGCode(photon2, mcparticles);
811+
if(mothID == 221) {
812+
fRegistry.fill(HIST("Event/hNGGContamEta"), photon2moth.pt());
813+
}
814+
if(mothID == 111) {
815+
fRegistry.fill(HIST("Event/hNGGContamPion"), photon2moth.pt());
816+
}
817+
}
818+
}
819+
}
820+
795821
pi0id = o2::aod::pwgem::dilepton::utils::mcutil::FindCommonMotherFrom3Prongs(g1mc, pos2mc, ele2mc, 22, -11, 11, 111, mcparticles);
796822
etaid = o2::aod::pwgem::dilepton::utils::mcutil::FindCommonMotherFrom3Prongs(g1mc, pos2mc, ele2mc, 22, -11, 11, 221, mcparticles);
797823
if (pi0id < 0 && etaid < 0) {
@@ -805,12 +831,14 @@ struct Pi0EtaToGammaGammaMC {
805831
}
806832
if (pi0id > 0) {
807833
auto pi0mc = mcparticles.iteratorAt(pi0id);
834+
fRegistry.fill(HIST("Event/hNDalitzPionPt"), pi0mc.pt());
808835
if (cfgRequireTrueAssociation && (pi0mc.emmceventId() != collision.emmceventId())) {
809836
continue;
810837
}
811838
o2::aod::pwgem::photonmeson::utils::nmhistogram::fillTruePairInfo(&fRegistry, veeg, pi0mc, mcparticles, mccollisions, f1fd_k0s_to_pi0, weight);
812839
} else if (etaid > 0) {
813840
auto etamc = mcparticles.iteratorAt(etaid);
841+
fRegistry.fill(HIST("Event/hNDalitzEtaPt"), etamc.pt());
814842
if (cfgRequireTrueAssociation && (etamc.emmceventId() != collision.emmceventId())) {
815843
continue;
816844
}

0 commit comments

Comments
 (0)