Skip to content

[PWGHF] Add MC efficiency calculation and extend electron–hadron correlation table#15735

Draft
rashigupt wants to merge 9 commits intoAliceO2Group:masterfrom
rashigupt:rashi
Draft

[PWGHF] Add MC efficiency calculation and extend electron–hadron correlation table#15735
rashigupt wants to merge 9 commits intoAliceO2Group:masterfrom
rashigupt:rashi

Conversation

@rashigupt
Copy link
Copy Markdown
Contributor

This PR introduces MC-based changes for efficiency estimation and extends electron-related tables.

Changes:

  1. electronSelectionWithTPCEMCal:

    • Added MC handling for efficiency estimation.
    • Introduced additional PID (TPC, TOF) and track quality variables in the electron selection table.
  2. correlatorHfeHadron:

    • Extended the electron–hadron correlation table with new variables for improved analysis.

@github-actions github-actions bot changed the title Add MC efficiency calculation and extend electron–hadron correlation table [PWGHF] Add MC efficiency calculation and extend electron–hadron correlation table Apr 12, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 12, 2026

O2 linter results: ❌ 8 errors, ⚠️ 0 warnings, 🔕 0 disabled

@alibuild
Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/o2 for dd9880b at 2026-04-12 16:11:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:558:51: error: 'TpcnSigmaEle' is not a member of 'o2::aod::hf_correlation_electron_hadron'; did you mean 'TpcNSigmaEle'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:551:1: error: template argument 8 is invalid
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:551:19: error: 'HfEHadronPairMetadata' does not name a type; did you mean 'LcHadronPairMetadata'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:558:51: error: 'TpcnSigmaEle' is not a member of 'o2::aod::hf_correlation_electron_hadron'; did you mean 'TpcNSigmaEle'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:551:1: error: template argument 8 is invalid
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:551:19: error: 'HfEHadronPairMetadata' does not name a type; did you mean 'LcHadronPairMetadata'?
/sw/slc9_x86-64/O2/daily-20260412-0000-local1/include/Framework/ASoA.h:1872:52: error: no matching function for call to 'getColumns<o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> >::ref>()'
/sw/slc9_x86-64/O2/daily-20260412-0000-local1/include/Framework/ASoA.h:1872:52: error: no type named 'metadata' in 'struct o2::aod::MetadataTrait<o2::aod::Hash<290562346> >'
/sw/slc9_x86-64/O2/daily-20260412-0000-local1/include/Framework/ASoA.h:2012:15: error: type 'o2::soa::DefaultIndexPolicy' is not a base type for type 'o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> >::TableIteratorBase<o2::soa::DefaultIndexPolicy, o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> > >'
/sw/slc9_x86-64/O2/daily-20260412-0000-local1/include/Framework/ASoA.h:2012:15: error: type 'o2::soa::FilteredIndexPolicy' is not a base type for type 'o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> >::TableIteratorBase<o2::soa::FilteredIndexPolicy, o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> > >'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/Tasks/taskCorrelationHfeHadrons.cxx:66:34: error: inconsistent begin/end types in range-based 'for' statement: 'o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> >::unfiltered_const_iterator' {aka 'o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> >::TableIteratorBase<o2::soa::DefaultIndexPolicy, o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> > >'} and 'o2::soa::RowViewSentinel'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/Tasks/taskCorrelationHfeHadrons.cxx:66:34: error: no match for 'operator!=' (operand types are 'o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> >::unfiltered_const_iterator' {aka 'o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> >::TableIteratorBase<o2::soa::DefaultIndexPolicy, o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> > >'} and 'o2::soa::RowViewSentinel')
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/Tasks/taskCorrelationHfeHadrons.cxx:66:34: error: no match for 'operator++' (operand type is 'o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> >::unfiltered_const_iterator' {aka 'o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> >::TableIteratorBase<o2::soa::DefaultIndexPolicy, o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> > >'})
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/Tasks/taskCorrelationHfeHadrons.cxx:68:28: error: 'const struct o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> >::TableIteratorBase<o2::soa::DefaultIndexPolicy, o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> > >' has no member named 'deltaPhi'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/Tasks/taskCorrelationHfeHadrons.cxx:69:28: error: 'const struct o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> >::TableIteratorBase<o2::soa::DefaultIndexPolicy, o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> > >' has no member named 'deltaEta'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/Tasks/taskCorrelationHfeHadrons.cxx:70:30: error: 'const struct o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> >::TableIteratorBase<o2::soa::DefaultIndexPolicy, o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> > >' has no member named 'ptElectron'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/Tasks/taskCorrelationHfeHadrons.cxx:71:28: error: 'const struct o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> >::TableIteratorBase<o2::soa::DefaultIndexPolicy, o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> > >' has no member named 'ptHadron'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/Tasks/taskCorrelationHfeHadrons.cxx:74:21: error: 'const struct o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> >::TableIteratorBase<o2::soa::DefaultIndexPolicy, o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> > >' has no member named 'nPairsLS'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/Tasks/taskCorrelationHfeHadrons.cxx:75:39: error: 'const struct o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> >::TableIteratorBase<o2::soa::DefaultIndexPolicy, o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> > >' has no member named 'nPairsLS'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/Tasks/taskCorrelationHfeHadrons.cxx:80:21: error: 'const struct o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> >::TableIteratorBase<o2::soa::DefaultIndexPolicy, o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> > >' has no member named 'nPairsUS'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/Tasks/taskCorrelationHfeHadrons.cxx:81:39: error: 'const struct o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> >::TableIteratorBase<o2::soa::DefaultIndexPolicy, o2::soa::Table<o2::aod::Hash<908451609>, o2::aod::Hash<290562346>, o2::aod::Hash<2286545062> > >' has no member named 'nPairsLS'
/sw/slc9_x86-64/O2/daily-20260412-0000-local1/include/Framework/AnalysisHelpers.h:84:77: error: no type named 'metadata' in 'struct o2::aod::MetadataTrait<o2::aod::Hash<290562346> >'
/sw/slc9_x86-64/O2/daily-20260412-0000-local1/include/Framework/AnalysisTask.h:232:286: error: call of overloaded 'Table(<brace-enclosed initializer list>)' is ambiguous
/sw/slc9_x86-64/O2/daily-20260412-0000-local1/include/Framework/AnalysisHelpers.h:361:12: error: no type named 'metadata' in 'struct o2::aod::MetadataTrait<o2::aod::Hash<290562346> >'
/sw/slc9_x86-64/O2/daily-20260412-0000-local1/include/Framework/AnalysisHelpers.h:363:23: error: no type named 'metadata' in 'struct o2::aod::MetadataTrait<o2::aod::Hash<290562346> >'
/sw/slc9_x86-64/O2/daily-20260412-0000-local1/include/Framework/AnalysisHelpers.h:365:12: error: no type named 'metadata' in 'struct o2::aod::MetadataTrait<o2::aod::Hash<290562346> >'
/sw/slc9_x86-64/O2/daily-20260412-0000-local1/include/Framework/AnalysisHelpers.h:367:14: error: no type named 'metadata' in 'struct o2::aod::MetadataTrait<o2::aod::Hash<290562346> >'
/sw/slc9_x86-64/O2/daily-20260412-0000-local1/include/Framework/AnalysisHelpers.h:369:23: error: no type named 'metadata' in 'struct o2::aod::MetadataTrait<o2::aod::Hash<290562346> >'
/sw/slc9_x86-64/O2/daily-20260412-0000-local1/include/Framework/AnalysisHelpers.h:370:194: error: no type named 'metadata' in 'struct o2::aod::MetadataTrait<o2::aod::Hash<290562346> >'
/sw/slc9_x86-64/O2/daily-20260412-0000-local1/include/Framework/AnalysisHelpers.h:370:26: error: no matching function for call to 'o2::framework::ConfigParamSpec::ConfigParamSpec(<brace-enclosed initializer list>)'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:558:51: error: 'TpcnSigmaEle' is not a member of 'o2::aod::hf_correlation_electron_hadron'; did you mean 'TpcNSigmaEle'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:551:1: error: template argument 8 is invalid
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:551:19: error: 'HfEHadronPairMetadata' does not name a type; did you mean 'LcHadronPairMetadata'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:558:51: error: 'TpcnSigmaEle' is not a member of 'o2::aod::hf_correlation_electron_hadron'; did you mean 'TpcNSigmaEle'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:551:1: error: template argument 8 is invalid
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:551:19: error: 'HfEHadronPairMetadata' does not name a type; did you mean 'LcHadronPairMetadata'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:558:51: error: 'TpcnSigmaEle' is not a member of 'o2::aod::hf_correlation_electron_hadron'; did you mean 'TpcNSigmaEle'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:551:1: error: template argument 8 is invalid
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:551:19: error: 'HfEHadronPairMetadata' does not name a type; did you mean 'LcHadronPairMetadata'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:558:51: error: 'TpcnSigmaEle' is not a member of 'o2::aod::hf_correlation_electron_hadron'; did you mean 'TpcNSigmaEle'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:551:1: error: template argument 8 is invalid
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:551:19: error: 'HfEHadronPairMetadata' does not name a type; did you mean 'LcHadronPairMetadata'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:558:51: error: 'TpcnSigmaEle' is not a member of 'o2::aod::hf_correlation_electron_hadron'; did you mean 'TpcNSigmaEle'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:551:1: error: template argument 8 is invalid
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:551:19: error: 'HfEHadronPairMetadata' does not name a type; did you mean 'LcHadronPairMetadata'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:558:51: error: 'TpcnSigmaEle' is not a member of 'o2::aod::hf_correlation_electron_hadron'; did you mean 'TpcNSigmaEle'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:551:1: error: template argument 8 is invalid
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/DataModel/CorrelationTables.h:551:19: error: 'HfEHadronPairMetadata' does not name a type; did you mean 'LcHadronPairMetadata'?
[0 more errors; see full log]

Full log here.

@vkucera vkucera marked this pull request as draft April 12, 2026 14:14
@vkucera
Copy link
Copy Markdown
Collaborator

vkucera commented Apr 12, 2026

@rashigupt Your PR does not compile! How did you test your changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

4 participants