-
Notifications
You must be signed in to change notification settings - Fork 654
[PWGHF] Add HFE event mixing and high-pT electron cut (TPC+EMCAL) #16112
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
Open
rashigupt
wants to merge
23
commits into
AliceO2Group:master
Choose a base branch
from
rashigupt:rashi
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+72
−7
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
657760c
Add histograms for Non-HFE analysis
rashi234 ade7132
Correct Pass emcal histogram
rashigupt 8f850a4
Merge branch 'AliceO2Group:master' into rashi
rashigupt b856609
Add some variables in electron selection table
rashigupt c38be3f
Add MC-based efficiency calculation and new variables to electron sel…
rashigupt 844c912
Adding variables to the electron–hadron correlation table.
rashigupt f4712f2
Adding variables to the electron–hadron correlation table.
rashigupt 5b431e9
Remove formate error
rashigupt dd9880b
remove O2linter error
rashigupt 834c9b5
Remove build error
rashigupt c787157
Remove build error
rashigupt ad748e7
Remove build error
rashigupt 9834e24
Remove build error
rashigupt 612fc0e
Remove formate error
rashigupt c584738
Update CorrelationTables.h
rashigupt ce98b5c
Used getcharmHadron Function
rashigupt 8efe0a5
Update electronSelectionWithTpcEmcal.cxx
rashigupt 3c1a8a3
Add Event mixing task
rashigupt 9897606
Merge branch 'master' into rashi
rashigupt 04ff736
correct eop and mo2 in table
rashigupt 81cb653
remove clang error
rashigupt 284788b
remove linter erro
rashigupt 0676d7e
remove clang error
rashigupt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,6 +37,7 @@ struct HfTaskCorrelationHfeHadrons { | |
| ConfigurableAxis binsDeltaEta{"binsDeltaEta", {30, -1.8, 1.8}, "#it{#Delta#eta}"}; | ||
| ConfigurableAxis binsDeltaPhi{"binsDeltaPhi", {32, -o2::constants::math::PIHalf, 3. * o2::constants::math::PIHalf}, "#it{#Delta#varphi}"}; | ||
| ConfigurableAxis binsPt{"binsPt", {50, 0.0, 50}, "#it{p_{T}}(GeV/#it{c})"}; | ||
| ConfigurableAxis binsPhi{"binsPhi", {100, 0.0, 7}, "#it{p_{T}}(GeV/#it{c})"}; | ||
|
|
||
| HistogramRegistry registry{ | ||
| "registry", | ||
|
|
@@ -47,11 +48,22 @@ struct HfTaskCorrelationHfeHadrons { | |
| AxisSpec axisDeltaEta = {binsDeltaEta, "#Delta #eta = #eta_{Electron}- #eta_{Hadron}"}; | ||
| AxisSpec axisDeltaPhi = {binsDeltaPhi, "#Delta #varphi = #varphi_{Electron}- #varphi_{Hadron}"}; | ||
| AxisSpec axisPt = {binsPt, "#it{p_{T}}(GeV/#it{c})"}; | ||
|
|
||
| AxisSpec axisPhi = {binsPhi, "#it{#varphi}"}; | ||
| registry.add("hInclusiveEHCorrel", "Sparse for Delta phi and Delta eta Inclusive Electron with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}}); | ||
| registry.add("hLikeSignEHCorrel", "Sparse for Delta phi and Delta eta Like sign Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}}); | ||
| registry.add("hUnLikeSignEHCorrel", "Sparse for Delta phi and Delta eta UnLike sign Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}}); | ||
|
|
||
| registry.add("hInclusiveMixEHCorrel", "Sparse for Delta phi and Delta eta Inclusive Electron with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseD, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}}); | ||
| registry.add("hLikeSignMixEHCorrel", "Sparse for Delta phi and Delta eta Like sign Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseD, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}}); | ||
| registry.add("hUnlikeSignMixEHCorrel", "Sparse for Delta phi and Delta eta UnLike sign Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseD, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}}); | ||
| registry.add("hPhi", "phi distribution for electron", {HistType::kTH1D, {{axisPhi}}}); | ||
| registry.add("hPhiLS", "phi distribution for Like sign electron", {HistType::kTH1D, {{axisPhi}}}); | ||
| registry.add("hPhiUS", "phi distribution for Unlike sign electron", {HistType::kTH1D, {{axisPhi}}}); | ||
|
|
||
| registry.add("hadronPhi", "phi distribution for hadron", {HistType::kTH1D, {{axisPhi}}}); | ||
|
|
||
| registry.add("hMcGenInclusiveEHCorrel", "Sparse for Delta phi and Delta eta for McGen Inclusive Electron with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}}); | ||
|
|
||
| registry.add("hMcGenNonHfEHCorrel", "Sparse for Delta phi and Delta eta for McGen NonHeavy flavour Electron pair with Hadron;p_{T}^{e} (GeV#it{/c});p_{T}^{h} (GeV#it{/c});#Delta#varphi;#Delta#eta;", {HistType::kTHnSparseF, {{axisPt}, {axisPt}, {axisDeltaPhi}, {axisDeltaEta}}}); | ||
| } | ||
|
|
||
|
|
@@ -88,6 +100,57 @@ struct HfTaskCorrelationHfeHadrons { | |
|
|
||
| PROCESS_SWITCH(HfTaskCorrelationHfeHadrons, process, "Process ", false); | ||
|
|
||
| // correlation for electron hadron | ||
| void processDataMixedEvent(aod::HfElectron const& electrons, aod::Hadron const& hadrons) | ||
| { | ||
|
|
||
| for (const auto& electron : electrons) { | ||
|
|
||
| double deltaPhiMix = -999; | ||
| double deltaEtaMix = -999; | ||
| registry.fill(HIST("hPhi"), electron.phiElectron()); | ||
|
|
||
| if (electron.nElectronsUS() > 0) { | ||
|
|
||
| registry.fill(HIST("hPhiUS"), electron.phiElectron()); | ||
| } | ||
|
|
||
| if (electron.nElectronsLS() > 0) { | ||
|
|
||
| registry.fill(HIST("hPhiLS"), electron.phiElectron()); | ||
| } | ||
| if (electron.poolBin() < 0) | ||
| continue; | ||
|
|
||
| for (const auto& hadron : hadrons) { | ||
| if (electron.timeStamp() == hadron.timeStamp()) { | ||
|
|
||
| continue; // or continue; if you're inside a loop | ||
| } | ||
|
|
||
| if (hadron.poolBin() == electron.poolBin()) { | ||
|
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. remove this if statement |
||
| continue; | ||
| } | ||
| if (hadron.gIndexCol() == electron.gIndexCol()) { | ||
|
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. remove |
||
| continue; | ||
| } | ||
|
|
||
| deltaPhiMix = RecoDecay::constrainAngle(electron.phiElectron() - hadron.phi(), -o2::constants::math::PIHalf); | ||
| deltaEtaMix = electron.etaElectron() - hadron.eta(); | ||
|
|
||
| registry.fill(HIST("hadronPhi"), hadron.phi()); | ||
| registry.fill(HIST("hInclusiveMixEHCorrel"), electron.ptElectron(), hadron.ptH(), deltaPhiMix, deltaEtaMix); | ||
|
|
||
| if (electron.nElectronsLS() > 0) { | ||
| registry.fill(HIST("hLikeSignMixEHCorrel"), electron.ptElectron(), hadron.ptH(), deltaPhiMix, deltaEtaMix); | ||
| } | ||
| if (electron.nElectronsUS() > 0) { | ||
| registry.fill(HIST("hUnlikeSignMixEHCorrel"), electron.ptElectron(), hadron.ptH(), deltaPhiMix, deltaEtaMix); | ||
| } | ||
| } | ||
| } | ||
| } | ||
| PROCESS_SWITCH(HfTaskCorrelationHfeHadrons, processDataMixedEvent, "Process offlineevent mix ", true); | ||
| void processMcGen(aod::HfEHadronMcPair const& mcGenpairEntries) | ||
| { | ||
| double deltaPhi = -999; | ||
|
|
@@ -109,7 +172,7 @@ struct HfTaskCorrelationHfeHadrons { | |
| } | ||
| } | ||
| } | ||
| PROCESS_SWITCH(HfTaskCorrelationHfeHadrons, processMcGen, "Process for Mc Gen ", true); | ||
| PROCESS_SWITCH(HfTaskCorrelationHfeHadrons, processMcGen, "Process for Mc Gen ", false); | ||
| }; | ||
|
|
||
| WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.