Skip to content

[ALICE3] New folder for ALICE 3 fluence studies - #18161

Open
NNicassio99 wants to merge 5 commits into
AliceO2Group:masterfrom
NNicassio99:fluence_with_geant
Open

NNicassio99 wants to merge 5 commits into
AliceO2Group:masterfrom
NNicassio99:fluence_with_geant

Conversation

@NNicassio99

Copy link
Copy Markdown
Contributor

Folder with all files necessary for easy and straightforward fluence studies (TID and NIEL) for ALICE 3 using Geant.

The files include a SetupFluenceStudyGeant.sh (when sourced in a working directory, it copies all the other files in the workdir). There are .sh files corresponding to the various steps of the simulation. They are handled by simulation.py.
Then there are the codes for the analysis part: analyze_geant.py and make_geometry_csv.C to get the TID/NIEL maps and tables. Further details in the README_LOCAL.txt.

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

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

@github-actions github-actions Bot changed the title New folder for ALICE 3 fluence studies [ALICE3] New folder for ALICE 3 fluence studies Oct 3, 2026
@njacazio njacazio self-assigned this Oct 3, 2026
@njacazio

njacazio commented Oct 3, 2026

Copy link
Copy Markdown
Collaborator

Ciao @NNicassio99 but isn't it better to move this to the O2 instead?

@NNicassio99

Copy link
Copy Markdown
Contributor Author

Yes, may be this is more suited for O2. I move the PR there

@alibuild

alibuild commented Oct 3, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for fd5151e at 2026-10-03 18:01:

## sw/BUILD/O2Physics-code-check-latest/log
--
========== List of issues found ==========
++ echo 'Found 12 errors and 10 warnings.'
Found 12 errors and 10 warnings.
++ [[ 12 -gt 0 ]]
++ cat /sw/BUILD/def3d6117d80f2352533aa7d3355d0a40f819871/O2Physics-code-check/errors.txt
ALICE3/Macros/Fluence/ALICE3Field.C:1:1: error: use of undeclared identifier 'std' [clang-diagnostic-error]
ALICE3/Macros/Fluence/ALICE3Field.C:2:12)' to function return type 'int' [clang-diagnostic-error]
ALICE3/Macros/Fluence/ALICE3Field.C:26:12: error: use of undeclared identifier 'abs' [clang-diagnostic-error]
ALICE3/Macros/Fluence/ALICE3Field.C:26:40: error: use of undeclared identifier 'sqrt' [clang-diagnostic-error]
ALICE3/Macros/Fluence/ALICE3Field.C:30:19: error: use of undeclared identifier 'abs' [clang-diagnostic-error]
ALICE3/Macros/Fluence/ALICE3Field.C:31:19: error: use of undeclared identifier 'sqrt' [clang-diagnostic-error]
ALICE3/Macros/Fluence/ALICE3Field.C:32:19: error: use of undeclared identifier 'sqrt' [clang-diagnostic-error]
ALICE3/Macros/Fluence/ALICE3Field.C:36:19: error: use of undeclared identifier 'abs' [clang-diagnostic-error]
ALICE3/Macros/Fluence/ALICE3Field.C:37:19: error: use of undeclared identifier 'sqrt' [clang-diagnostic-error]
ALICE3/Macros/Fluence/ALICE3Field.C:38:19: error: use of undeclared identifier 'sqrt' [clang-diagnostic-error]
ALICE3/Macros/Fluence/make_geometry_csv.C:89:48: error: no header providing "kFALSE" is directly included [misc-include-cleaner,-warnings-as-errors]
ALICE3/Macros/Fluence/make_geometry_csv.C:116:13: error: no header providing "std::size_t" is directly included [misc-include-cleaner,-warnings-as-errors]
++ [[ 10 -gt 0 ]]
++ cat /sw/BUILD/def3d6117d80f2352533aa7d3355d0a40f819871/O2Physics-code-check/warnings.txt
ALICE3/Macros/Fluence/ALICE3Field.C:3:14: warning: variable 'Rc' is not initialized [cppcoreguidelines-init-variables]
ALICE3/Macros/Fluence/ALICE3Field.C:4:14: warning: variable 'R1' is not initialized [cppcoreguidelines-init-variables]
ALICE3/Macros/Fluence/ALICE3Field.C:5:14: warning: variable 'R2' is not initialized [cppcoreguidelines-init-variables]
ALICE3/Macros/Fluence/ALICE3Field.C:6:14: warning: variable 'B1' is not initialized [cppcoreguidelines-init-variables]
ALICE3/Macros/Fluence/ALICE3Field.C:7:14: warning: variable 'B2' is not initialized [cppcoreguidelines-init-variables]
ALICE3/Macros/Fluence/ALICE3Field.C:32:58: warning: repeated branch body in conditional chain [bugprone-branch-clone]
ALICE3/Macros/Fluence/make_geometry_csv.C:74:3: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
ALICE3/Macros/Fluence/make_geometry_csv.C:75:3: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
ALICE3/Macros/Fluence/make_geometry_csv.C:86:25: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay]
ALICE3/Macros/Fluence/make_geometry_csv.C:86:32: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay]
++ [[ 12 -gt 0 ]]
++ exit 1
--

Full log here.

@alibuild

alibuild commented Oct 3, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for c9cc2da at 2026-10-03 19:51:

## sw/BUILD/O2Physics-code-check-latest/log
--
========== List of issues found ==========
++ echo 'Found 12 errors and 10 warnings.'
Found 12 errors and 10 warnings.
++ [[ 12 -gt 0 ]]
++ cat /sw/BUILD/0ccb269a9713d14636f03904d5221ed8cd0969d8/O2Physics-code-check/errors.txt
ALICE3/Macros/Fluence/ALICE3Field.C:17:1: error: use of undeclared identifier 'std' [clang-diagnostic-error]
ALICE3/Macros/Fluence/ALICE3Field.C:19:10)' to function return type 'int' [clang-diagnostic-error]
ALICE3/Macros/Fluence/ALICE3Field.C:43:10: error: use of undeclared identifier 'abs' [clang-diagnostic-error]
ALICE3/Macros/Fluence/ALICE3Field.C:43:38: error: use of undeclared identifier 'sqrt' [clang-diagnostic-error]
ALICE3/Macros/Fluence/ALICE3Field.C:47:17: error: use of undeclared identifier 'abs' [clang-diagnostic-error]
ALICE3/Macros/Fluence/ALICE3Field.C:48:17: error: use of undeclared identifier 'sqrt' [clang-diagnostic-error]
ALICE3/Macros/Fluence/ALICE3Field.C:49:17: error: use of undeclared identifier 'sqrt' [clang-diagnostic-error]
ALICE3/Macros/Fluence/ALICE3Field.C:53:17: error: use of undeclared identifier 'abs' [clang-diagnostic-error]
ALICE3/Macros/Fluence/ALICE3Field.C:54:17: error: use of undeclared identifier 'sqrt' [clang-diagnostic-error]
ALICE3/Macros/Fluence/ALICE3Field.C:55:17: error: use of undeclared identifier 'sqrt' [clang-diagnostic-error]
ALICE3/Macros/Fluence/make_geometry_csv.C:89:48: error: no header providing "kFALSE" is directly included [misc-include-cleaner,-warnings-as-errors]
ALICE3/Macros/Fluence/make_geometry_csv.C:116:13: error: no header providing "std::size_t" is directly included [misc-include-cleaner,-warnings-as-errors]
++ [[ 10 -gt 0 ]]
++ cat /sw/BUILD/0ccb269a9713d14636f03904d5221ed8cd0969d8/O2Physics-code-check/warnings.txt
ALICE3/Macros/Fluence/ALICE3Field.C:20:12: warning: variable 'Rc' is not initialized [cppcoreguidelines-init-variables]
ALICE3/Macros/Fluence/ALICE3Field.C:21:12: warning: variable 'R1' is not initialized [cppcoreguidelines-init-variables]
ALICE3/Macros/Fluence/ALICE3Field.C:22:12: warning: variable 'R2' is not initialized [cppcoreguidelines-init-variables]
ALICE3/Macros/Fluence/ALICE3Field.C:23:12: warning: variable 'B1' is not initialized [cppcoreguidelines-init-variables]
ALICE3/Macros/Fluence/ALICE3Field.C:24:12: warning: variable 'B2' is not initialized [cppcoreguidelines-init-variables]
ALICE3/Macros/Fluence/ALICE3Field.C:49:56: warning: repeated branch body in conditional chain [bugprone-branch-clone]
ALICE3/Macros/Fluence/make_geometry_csv.C:74:3: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
ALICE3/Macros/Fluence/make_geometry_csv.C:75:3: warning: do not declare C-style arrays, use 'std::array' instead [modernize-avoid-c-arrays]
ALICE3/Macros/Fluence/make_geometry_csv.C:86:25: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay]
ALICE3/Macros/Fluence/make_geometry_csv.C:86:32: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay]
++ [[ 12 -gt 0 ]]
++ exit 1
--

Full log here.

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.

3 participants