-
Notifications
You must be signed in to change notification settings - Fork 650
[PWGLF] update strangenesstofpid.cxx to use primary-TOF calibration #14782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,7 +55,7 @@ | |
| #include <array> | ||
| #include <cmath> | ||
| #include <cstdint> | ||
| #include <iostream> | ||
|
Check failure on line 58 in PWGEM/Dilepton/Tasks/taggingHFE.cxx
|
||
| #include <iterator> | ||
| #include <string> | ||
| #include <string_view> | ||
|
|
@@ -149,7 +149,8 @@ | |
| Configurable<float> cfg_max_TPCNsigmaKa{"cfg_max_TPCNsigmaKa", +2, "max n sigma ka in TPC"}; | ||
| Configurable<float> cfg_min_TOFNsigmaKa{"cfg_min_TOFNsigmaKa", -2, "min n sigma ka in TOF"}; | ||
| Configurable<float> cfg_max_TOFNsigmaKa{"cfg_max_TOFNsigmaKa", +2, "max n sigma ka in TOF"}; | ||
| Configurable<bool> requireTOF{"requireTOF", false, "require TOF hit"}; | ||
| Configurable<bool> requireTOF{"requireTOF", true, "require TOF hit"}; | ||
| Configurable<float> cfg_min_pin_TOFreq{"cfg_min_pin_TOFreq", 0.4, "min pin for TOFreq"}; | ||
| } kaonCut; | ||
|
|
||
| struct : ConfigurableGroup { | ||
|
|
@@ -450,9 +451,15 @@ | |
| bool is_ka_included_TPC = kaonCut.cfg_min_TPCNsigmaKa < track.tpcNSigmaKa() && track.tpcNSigmaKa() < kaonCut.cfg_max_TPCNsigmaKa; | ||
| bool is_ka_included_TOF = track.hasTOF() ? (kaonCut.cfg_min_TOFNsigmaKa < track.tofNSigmaKa() && track.tofNSigmaKa() < kaonCut.cfg_max_TOFNsigmaKa) : true; | ||
| if (kaonCut.requireTOF) { | ||
| is_ka_included_TOF = kaonCut.cfg_min_TOFNsigmaKa < track.tofNSigmaKa() && track.tofNSigmaKa() < kaonCut.cfg_max_TOFNsigmaKa; | ||
| if (track.tpcInnerParam() < kaonCut.cfg_min_pin_TOFreq) { | ||
| return is_ka_included_TPC; | ||
| } else { | ||
| is_ka_included_TOF = kaonCut.cfg_min_TOFNsigmaKa < track.tofNSigmaKa() && track.tofNSigmaKa() < kaonCut.cfg_max_TOFNsigmaKa; | ||
| return is_ka_included_TPC && is_ka_included_TOF; | ||
| } | ||
| } else { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Useless |
||
| return is_ka_included_TPC && is_ka_included_TOF; // TOFif | ||
| } | ||
| return is_ka_included_TPC && is_ka_included_TOF; | ||
| } | ||
|
|
||
| template <typename TTrack> | ||
|
|
@@ -767,7 +774,7 @@ | |
|
|
||
| if constexpr (isMC) { | ||
| const auto& mctrack = track.template mcParticle_as<aod::McParticles>(); | ||
| if (std::abs(mctrack.pdgCode()) != 11) { | ||
|
Check failure on line 777 in PWGEM/Dilepton/Tasks/taggingHFE.cxx
|
||
| return; | ||
| } | ||
| if (!(mctrack.isPhysicalPrimary() || mctrack.producedByGenerator())) { | ||
|
|
@@ -776,26 +783,26 @@ | |
| const auto& mcmother = mctrack.template mothers_first_as<aod::McParticles>(); // mother particle of electron | ||
| int pdg_mother = std::abs(mcmother.pdgCode()); | ||
|
|
||
| if (pdg_mother == 111 || pdg_mother == 221 || pdg_mother == 331 || pdg_mother == 113 || pdg_mother == 223 || pdg_mother == 333) { // LF | ||
|
Check failure on line 786 in PWGEM/Dilepton/Tasks/taggingHFE.cxx
|
||
| if (IsFromCharm(mcmother, mcParticles) < 0 && IsFromBeauty(mcmother, mcParticles) < 0) { | ||
| fRegistry.fill(HIST("MC/eFromPromptLF/hs"), trackParCov.getPt(), trackParCov.getEta(), trackParCov.getPhi(), dca3DinSigma); | ||
| } else { | ||
| fRegistry.fill(HIST("MC/eFromNonPromptLF/hs"), trackParCov.getPt(), trackParCov.getEta(), trackParCov.getPhi(), dca3DinSigma); | ||
| } | ||
| } else if (pdg_mother == 443) { // Jpsi | ||
|
Check failure on line 792 in PWGEM/Dilepton/Tasks/taggingHFE.cxx
|
||
| if (IsFromBeauty(mcmother, mcParticles) < 0) { | ||
| fRegistry.fill(HIST("MC/eFromPromptJpsi/hs"), trackParCov.getPt(), trackParCov.getEta(), trackParCov.getPhi(), dca3DinSigma); | ||
| } else { | ||
| fRegistry.fill(HIST("MC/eFromNonPromptJpsi/hs"), trackParCov.getPt(), trackParCov.getEta(), trackParCov.getPhi(), dca3DinSigma); | ||
| } | ||
| } else if (pdg_mother == 411) { // D+/- | ||
|
Check failure on line 798 in PWGEM/Dilepton/Tasks/taggingHFE.cxx
|
||
| fRegistry.fill(HIST("MC/eFromDpm/hs"), trackParCov.getPt(), trackParCov.getEta(), trackParCov.getPhi(), dca3DinSigma); | ||
| // if (IsFromBeauty(mcmother, mcParticles) < 0) { | ||
| // fRegistry.fill(HIST("MC/eFromPromptDpm/hs"), trackParCov.getPt(), trackParCov.getEta(), trackParCov.getPhi(), dca3DinSigma); | ||
| // } else { | ||
| // fRegistry.fill(HIST("MC/eFromNonPromptDpm/hs"), trackParCov.getPt(), trackParCov.getEta(), trackParCov.getPhi(), dca3DinSigma); | ||
| // } | ||
| } else if (pdg_mother == 421) { // D0 | ||
|
Check failure on line 805 in PWGEM/Dilepton/Tasks/taggingHFE.cxx
|
||
| fRegistry.fill(HIST("MC/eFromD0/hs"), trackParCov.getPt(), trackParCov.getEta(), trackParCov.getPhi(), dca3DinSigma); | ||
| // if (IsFromBeauty(mcmother, mcParticles) < 0) { | ||
| // fRegistry.fill(HIST("MC/eFromPromptD0/hs"), trackParCov.getPt(), trackParCov.getEta(), trackParCov.getPhi(), dca3DinSigma); | ||
|
|
@@ -811,21 +818,21 @@ | |
| // // fRegistry.fill(HIST("MC/eFromNonPromptDs/hs"), trackParCov.getPt(), trackParCov.getEta(), trackParCov.getPhi(), dca3DinSigma); | ||
| // // } | ||
| // } | ||
| else if (pdg_mother == 4122) { // Lc+/- | ||
|
Check failure on line 821 in PWGEM/Dilepton/Tasks/taggingHFE.cxx
|
||
| fRegistry.fill(HIST("MC/eFromLcpm/hs"), trackParCov.getPt(), trackParCov.getEta(), trackParCov.getPhi(), dca3DinSigma); | ||
| // if (IsFromBeauty(mcmother, mcParticles) < 0) { | ||
| // fRegistry.fill(HIST("MC/eFromPromptLcpm/hs"), trackParCov.getPt(), trackParCov.getEta(), trackParCov.getPhi(), dca3DinSigma); | ||
| // } else { | ||
| // fRegistry.fill(HIST("MC/eFromNonPromptLcpm/hs"), trackParCov.getPt(), trackParCov.getEta(), trackParCov.getPhi(), dca3DinSigma); | ||
| // } | ||
| } else if (pdg_mother == 4132) { // Xic0 | ||
|
Check failure on line 828 in PWGEM/Dilepton/Tasks/taggingHFE.cxx
|
||
| fRegistry.fill(HIST("MC/eFromXic0/hs"), trackParCov.getPt(), trackParCov.getEta(), trackParCov.getPhi(), dca3DinSigma); | ||
| // if (IsFromBeauty(mcmother, mcParticles) < 0) { | ||
| // fRegistry.fill(HIST("MC/eFromPromptXic0/hs"), trackParCov.getPt(), trackParCov.getEta(), trackParCov.getPhi(), dca3DinSigma); | ||
| // } else { | ||
| // fRegistry.fill(HIST("MC/eFromNonPromptXic0/hs"), trackParCov.getPt(), trackParCov.getEta(), trackParCov.getPhi(), dca3DinSigma); | ||
| // } | ||
| } else if (pdg_mother == 4332) { // Omegac0 | ||
|
Check failure on line 835 in PWGEM/Dilepton/Tasks/taggingHFE.cxx
|
||
| fRegistry.fill(HIST("MC/eFromOmegac0/hs"), trackParCov.getPt(), trackParCov.getEta(), trackParCov.getPhi(), dca3DinSigma); | ||
| // if (IsFromBeauty(mcmother, mcParticles) < 0) { | ||
| // fRegistry.fill(HIST("MC/eFromPromptOmegac0/hs"), trackParCov.getPt(), trackParCov.getEta(), trackParCov.getPhi(), dca3DinSigma); | ||
|
|
@@ -1651,7 +1658,7 @@ | |
| if (std::abs(daughter.pdgCode()) == cfgPdgLepton) { | ||
| ptLepton = daughter.pt(); | ||
| etaLepton = daughter.eta(); | ||
| } else if (std::abs(daughter.pdgCode()) == 321) { | ||
|
Check failure on line 1661 in PWGEM/Dilepton/Tasks/taggingHFE.cxx
|
||
| ptHadron = daughter.pt(); | ||
| etaHadron = daughter.eta(); | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Useless
else.