Skip to content

[PWGHF] Refactor ML configuration with new cut parameters - #18055

Merged
zhangbiao-phy merged 6 commits into
masterfrom
zhangbiao-phy-patch-2
Sep 26, 2026
Merged

zhangbiao-phy merged 6 commits into
masterfrom
zhangbiao-phy-patch-2

Conversation

@zhangbiao-phy

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions github-actions Bot added the pwghf PWG-HF label Sep 25, 2026
@github-actions github-actions Bot changed the title Refactor ML configuration with new cut parameters [PWGHF] Refactor ML configuration with new cut parameters Sep 25, 2026
@github-actions

Copy link
Copy Markdown

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

@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/staging for d6331ce at 2026-09-25 14:19:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:73:80: error: 'hf_cuts_ml' was not declared in this scope; did you mean 'o2::analysis::hf_cuts_ml'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:73:80: error: no matching function for call to 'std::vector<double>::vector(<brace-enclosed initializer list>)'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:73:79: error: expected primary-expression before '{' token
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:73:79: error: expected '}' before '{' token
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:73:79: error: could not convert '{"binsPtMl", <expression error>}' from '<brace-enclosed initializer list>' to 'o2::framework::Configurable<std::vector<double> >'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:73:79: error: expected ';' before '{' token
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:74:58: error: 'hf_cuts_ml' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:74:79: error: 'hf_cuts_ml' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:74:100: error: 'hf_cuts_ml' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:74:124: error: 'hf_cuts_ml' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:74:146: error: 'hf_cuts_ml' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:74:235: error: could not convert '{"cutsMl", {<expression error>, <expression error>, <expression error>, <expression error>, <expression error>}, "New BDT cuts per pT bin: background, prompt, nonprompt"}' from '<brace-enclosed initializer list>' to 'o2::framework::Configurable<o2::framework::LabeledArray<double> >'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:75:74: error: 'hf_cuts_ml' was not declared in this scope; did you mean 'o2::analysis::hf_cuts_ml'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:75:74: error: no matching function for call to 'std::vector<int>::vector(<brace-enclosed initializer list>)'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:75:73: error: expected primary-expression before '{' token
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:75:73: error: expected '}' before '{' token
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:75:73: error: could not convert '{"cutDirMl", <expression error>}' from '<brace-enclosed initializer list>' to 'o2::framework::Configurable<std::vector<int> >'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:75:73: error: expected ';' before '{' token
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:76:65: error: 'hf_cuts_ml' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:76:143: error: could not convert '{"nClassesMl", <expression error>, "Three output classes: background, prompt, nonprompt"}' from '<brace-enclosed initializer list>' to 'o2::framework::Configurable<int>'
/sw/slc9_x86-64/O2/daily-20260923-0000-local3/include/Framework/StructToTuple.h:61:38: error: static assertion failed: You need to make sure that you have implicit constructors or that you call the explicit constructor correctly.
/sw/slc9_x86-64/GCC-Toolchain/v14.2.0-alice2-1/include/c++/14.2.0/bits/stl_construct.h:115:28: error: no matching function for call to 'construct_at(HfProducerCharmHadronsCharmFemtoDream*&)'
ninja: build stopped: subcommand failed.

Full log here.

@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/staging for c700e62 at 2026-09-25 15:37:

No log files found

Full log here.

@zhangbiao-phy
zhangbiao-phy enabled auto-merge (squash) September 25, 2026 13:40
alibuild
alibuild previously approved these changes Sep 25, 2026

@alibuild alibuild left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approving on behalf of @zhangbiao-phy.

Comment thread PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx Outdated
@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for d6331ce at 2026-09-25 15:45:

## sw/BUILD/O2-latest/log
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260923-0000/daily-20260923-0000/Detectors/TPC/base/src/TPCBaseLinkDef.h:75:56
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260923-0000/daily-20260923-0000/Detectors/TPC/base/src/TPCBaseLinkDef.h:83:135
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260923-0000/daily-20260923-0000/Detectors/TPC/base/src/TPCBaseLinkDef.h:84:135
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260923-0000/daily-20260923-0000/Detectors/Upgrades/ALICE3/ECal/base/src/ECalBaseLinkDef.h:19:48
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260923-0000/daily-20260923-0000/Detectors/Upgrades/ALICE3/RICH/base/src/RICHBaseLinkDef.h:18:48
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260923-0000/daily-20260923-0000/Detectors/Upgrades/ALICE3/MID/base/src/MI3BaseLinkDef.h:18:47


## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:73:80: error: 'hf_cuts_ml' was not declared in this scope; did you mean 'o2::analysis::hf_cuts_ml'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:73:80: error: no matching function for call to 'std::vector<double>::vector(<brace-enclosed initializer list>)'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:73:79: error: expected primary-expression before '{' token
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:73:79: error: expected '}' before '{' token
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:73:79: error: could not convert '{"binsPtMl", <expression error>}' from '<brace-enclosed initializer list>' to 'o2::framework::Configurable<std::vector<double> >'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:73:79: error: expected ';' before '{' token
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:74:58: error: 'hf_cuts_ml' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:74:79: error: 'hf_cuts_ml' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:74:100: error: 'hf_cuts_ml' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:74:124: error: 'hf_cuts_ml' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:74:146: error: 'hf_cuts_ml' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:74:235: error: could not convert '{"cutsMl", {<expression error>, <expression error>, <expression error>, <expression error>, <expression error>}, "New BDT cuts per pT bin: background, prompt, nonprompt"}' from '<brace-enclosed initializer list>' to 'o2::framework::Configurable<o2::framework::LabeledArray<double> >'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:75:74: error: 'hf_cuts_ml' was not declared in this scope; did you mean 'o2::analysis::hf_cuts_ml'?
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:75:74: error: no matching function for call to 'std::vector<int>::vector(<brace-enclosed initializer list>)'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:75:73: error: expected primary-expression before '{' token
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:75:73: error: expected '}' before '{' token
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:75:73: error: could not convert '{"cutDirMl", <expression error>}' from '<brace-enclosed initializer list>' to 'o2::framework::Configurable<std::vector<int> >'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:75:73: error: expected ';' before '{' token
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:76:65: error: 'hf_cuts_ml' has not been declared
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:76:143: error: could not convert '{"nClassesMl", <expression error>, "Three output classes: background, prompt, nonprompt"}' from '<brace-enclosed initializer list>' to 'o2::framework::Configurable<int>'
/sw/slc9_x86-64/O2/daily-20260923-0000-local6/include/Framework/StructToTuple.h:61:38: error: static assertion failed: You need to make sure that you have implicit constructors or that you call the explicit constructor correctly.
/sw/slc9_x86-64/GCC-Toolchain/v14.2.0-alice2-1/include/c++/14.2.0/bits/stl_construct.h:115:28: error: no matching function for call to 'construct_at(HfProducerCharmHadronsCharmFemtoDream*&)'
ninja: build stopped: subcommand failed.

Full log here.

vkucera
vkucera previously approved these changes Sep 25, 2026
@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for 0067feb at 2026-09-25 20:12:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:74:72: error: cannot bind rvalue reference of type 'std::vector<double>&&' to lvalue of type 'const std::vector<double>'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:76:69: error: cannot bind rvalue reference of type 'std::vector<int>&&' to lvalue of type 'const std::vector<int>'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:77:60: error: cannot bind rvalue reference of type 'int&&' to lvalue of type 'const int'
/sw/slc9_x86-64/O2/daily-20260923-0000-local4/include/Framework/StructToTuple.h:61:38: error: static assertion failed: You need to make sure that you have implicit constructors or that you call the explicit constructor correctly.
/sw/slc9_x86-64/GCC-Toolchain/v14.2.0-alice2-1/include/c++/14.2.0/bits/stl_construct.h:115:28: error: no matching function for call to 'construct_at(HfProducerCharmHadronsCharmFemtoDream*&)'
ninja: build stopped: subcommand failed.

Full log here.

@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/staging for 0067feb at 2026-09-25 20:14:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:74:72: error: cannot bind rvalue reference of type 'std::vector<double>&&' to lvalue of type 'const std::vector<double>'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:76:69: error: cannot bind rvalue reference of type 'std::vector<int>&&' to lvalue of type 'const std::vector<int>'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:77:60: error: cannot bind rvalue reference of type 'int&&' to lvalue of type 'const int'
/sw/slc9_x86-64/O2/daily-20260923-0000-local4/include/Framework/StructToTuple.h:61:38: error: static assertion failed: You need to make sure that you have implicit constructors or that you call the explicit constructor correctly.
/sw/slc9_x86-64/GCC-Toolchain/v14.2.0-alice2-1/include/c++/14.2.0/bits/stl_construct.h:115:28: error: no matching function for call to 'construct_at(HfProducerCharmHadronsCharmFemtoDream*&)'
ninja: build stopped: subcommand failed.

Full log here.

@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/o2 for 0067feb at 2026-09-25 22:03:

## sw/BUILD/O2-latest/log
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260923-0000/daily-20260923-0000/Detectors/TPC/base/src/TPCBaseLinkDef.h:75:56
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260923-0000/daily-20260923-0000/Detectors/TPC/base/src/TPCBaseLinkDef.h:83:135
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260923-0000/daily-20260923-0000/Detectors/TPC/base/src/TPCBaseLinkDef.h:84:135
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260923-0000/daily-20260923-0000/Detectors/Upgrades/ALICE3/ECal/base/src/ECalBaseLinkDef.h:19:48
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260923-0000/daily-20260923-0000/Detectors/Upgrades/ALICE3/RICH/base/src/RICHBaseLinkDef.h:18:48
Error: missing ; at end of rule at /sw/SOURCES/O2/daily-20260923-0000/daily-20260923-0000/Detectors/Upgrades/ALICE3/MID/base/src/MI3BaseLinkDef.h:18:47


## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:74:72: error: cannot bind rvalue reference of type 'std::vector<double>&&' to lvalue of type 'const std::vector<double>'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:76:69: error: cannot bind rvalue reference of type 'std::vector<int>&&' to lvalue of type 'const std::vector<int>'
/sw/SOURCES/O2Physics/slc9_x86-64-slc9_x86-64/0/PWGHF/HFC/TableProducer/producerCharmHadronsCharmFemtoDream.cxx:77:60: error: cannot bind rvalue reference of type 'int&&' to lvalue of type 'const int'
/sw/slc9_x86-64/O2/daily-20260923-0000-local3/include/Framework/StructToTuple.h:61:38: error: static assertion failed: You need to make sure that you have implicit constructors or that you call the explicit constructor correctly.
/sw/slc9_x86-64/GCC-Toolchain/v14.2.0-alice2-1/include/c++/14.2.0/bits/stl_construct.h:115:28: error: no matching function for call to 'construct_at(HfProducerCharmHadronsCharmFemtoDream*&)'
ninja: build stopped: subcommand failed.

Full log here.

@zhangbiao-phy
zhangbiao-phy enabled auto-merge (squash) September 26, 2026 06:33

@alibuild alibuild left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approving on behalf of @zhangbiao-phy.

@zhangbiao-phy
zhangbiao-phy merged commit c98eb61 into master Sep 26, 2026
16 checks passed
@zhangbiao-phy
zhangbiao-phy deleted the zhangbiao-phy-patch-2 branch September 26, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pwghf PWG-HF

Development

Successfully merging this pull request may close these issues.

3 participants