Skip to content
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

Adding manual pages for final and pin sub-commands #393

Merged
merged 4 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ jobs:
/bin/bash
- name: Add upstream
run: |
docker exec CI_container /bin/bash -c 'cd ./Package
git remote add upstream https://github.com/HEP-FCC/FCCAnalyses.git
docker exec CI_container /bin/bash -c 'cd Package; \
git config --global --add safe.directory /Package; \
git remote add upstream https://github.com/HEP-FCC/FCCAnalyses.git; \
git fetch upstream'
- name: Run formatter
run: |
docker exec CI_container /bin/bash -c 'cd ./Package
source /cvmfs/sft.cern.ch/lcg/contrib/clang/14.0.6/x86_64-centos7/setup.sh
docker exec CI_container /bin/bash -c 'cd ./Package; \
source /cvmfs/sw.hsf.org/key4hep/setup.sh;\
git clang-format --style=file $(git merge-base upstream/master HEAD)'
- name: Check cleanliness
run: |
docker exec CI_container /bin/bash -c 'cd ./Package
docker exec CI_container /bin/bash -c 'cd ./Package; \
git diff'
40 changes: 20 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,32 +24,32 @@ jobs:
/bin/bash
- name: CMake Configure
run: |
docker exec CI_container /bin/bash -c 'cd Package;\
mkdir -p build install;\
source ${{ matrix.STACK }};\
cd build;\
cmake -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always " -DWITH_DD4HEP=ON -DWITH_ACTS=OFF -DWITH_ONNX=ON -G Ninja ..;'
docker exec CI_container /bin/bash -c 'cd Package; \
mkdir -p build install; \
source ${{ matrix.STACK }}; \
cd build; \
cmake -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always " -DWITH_DD4HEP=ON -DWITH_ACTS=OFF -DWITH_ONNX=ON -G Ninja ..;'
- name: Compile
run: |
docker exec CI_container /bin/bash -c 'cd ./Package;\
source ${{ matrix.STACK }};\
cd build;\
ninja -k0;'
docker exec CI_container /bin/bash -c 'cd ./Package; \
source ${{ matrix.STACK }}; \
cd build; \
ninja -k0;'
- name: Install
run: |
docker exec CI_container /bin/bash -c 'cd ./Package;\
source ${{ matrix.STACK }};\
cd build;\
docker exec CI_container /bin/bash -c 'cd ./Package; \
source ${{ matrix.STACK }}; \
cd build; \
ninja -k0 install;'
- name: Test
run: |
docker exec CI_container /bin/bash -c 'cd ./Package;\
source ${{ matrix.STACK }};\
cd build;\
ninja -k0 && ctest --output-on-failure;'
docker exec CI_container /bin/bash -c 'cd ./Package; \
source ${{ matrix.STACK }}; \
cd build; \
ninja -k0 && ctest --output-on-failure'
- name: Test using local Setup.sh
run: |
docker exec CI_container /bin/bash -c 'cd ./Package;\
source ${{ matrix.STACK }};\
source ./setup.sh;\
fccanalysis run examples/FCCee/higgs/mH-recoil/mumu/analysis_stage1.py --output myoutput.root --files-list root://eospublic.cern.ch//eos/experiment/fcc/ee/generation/DelphesEvents/spring2021/IDEA/p8_ee_Zbb_ecm91_EvtGen_Bc2TauNuTAUHADNU/events_131527278.root'
docker exec CI_container /bin/bash -c 'cd ./Package; \
source ${{ matrix.STACK }}; \
source ./setup.sh; \
fccanalysis run examples/FCCee/higgs/mH-recoil/mumu/analysis_stage1.py --output myoutput.root --files-list root://eospublic.cern.ch//eos/experiment/fcc/ee/generation/DelphesEvents/spring2021/IDEA/p8_ee_Zbb_ecm91_EvtGen_Bc2TauNuTAUHADNU/events_131527278.root'
4 changes: 2 additions & 2 deletions man/man1/fccanalysis-build.1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Completely clean build directory before compilation\&.
\fB\-j\fR \fIBUILD_THREADS\fR, \fB\-\-build\-threads\fR \fIBUILD_THREADS\fR
Specify number of threads used when compiling (equivalent to `make -j`)
.SH SEE ALSO
fccanalysis(1), fccanalysis\-test(7), cmake(1)
fccanalysis(1), fccanalysis\-test(1), cmake(1)
.SH BUGS
Many
.SH AUTHORS
Expand All @@ -35,7 +35,7 @@ authors are:
.in +4
Clement Helsens
.br
Valentin Volk
Valentin Volkl
.br
Gerardo Ganis
.SH FCCANALYSES
Expand Down
58 changes: 58 additions & 0 deletions man/man1/fccanalysis-final.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
.\" Manpage for fccanalysis-final
.\" Contact [email protected] to correct errors or typos.
.TH FCCANALYSIS\-FINAL 1 "18 Jul 2024" "0.9.0" "fccanalysis-final man page"
.SH NAME
\fBfccanalysis\-final\fR \(en finalize your analysis into histograms
.SH SYNOPSIS
.B fccanalysis final
[\fB\-h\fR | \fB\-\-help\fR]
[\fB\-g\fR | \fB\-\-graph\fR]
[\fB\-\-graph\-path\fR \fIGRAPH_PATH\fR]
.SH DESCRIPTION
.PP
.B fccanalysis\-final runs the last stage of the analysis, where one defines
final cuts and histograms\&. This stage can also output ROOT and LaTeX files for
further use\&.
.SH OPTIONS
.TP
.BR \-h ", " \-\-help
Prints short help message and exits\&.
.TP
.BR \-g ", " \-\-graph
Generates computational graph of the analysis\&.
.TP
\fB\-\-graph\-path\fR \fIGRAPH_PATH\fR
Analysis graph save path, should end with '.dot' or '.png'\&.
.SH SEE ALSO
fccanalysis(1)
.SH BUGS
Many
.SH AUTHORS
There are many contributors to the FCCAnalyses framework, but the principal
authors are:
.in +4
Clement Helsens
.br
Valentin Volkl
.br
Gerardo Ganis
.SH FCCANALYSES
Part of the FCCAnalyses framework\&.
.SH LINKS
.PP
.UR https://hep-fcc\&.github\&.io/FCCAnalyses/
FCCAnalyses webpage
.UE
.PP
.UR https://github\&.com/HEP\-FCC/FCCAnalyses/
FCCAnalysises GitHub repository
.UE
.PP
.UR https://fccsw\-forum\&.web\&.cern\&.ch/
FCCSW Forum
.UE
.SH CONTACT
.pp
.MT [email protected]
FCC-PED-SoftwareAndComputing-Analysis
.ME
74 changes: 74 additions & 0 deletions man/man1/fccanalysis-pin.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
.\" Manpage for fccanalysis-pin
.\" Contact [email protected] to correct errors or typos.
.TH FCCANALYSIS\-PIN 1 "18 Jul 2024" "0.9.0" "fccanalysis-pin man page"
.SH NAME
\fBfccanalysis\-pin\fR \(en pin version of the Key4hep stack
.SH SYNOPSIS
.B fccanalysis pin
[\fB\-h\fR | \fB\-\-help\fR]
[\fB\-c\fR | \fB\-\-clear\fR]
[\fB\-f\fR | \fB\-\-force\fR]
[\fB\-s\fR | \fB\-\-show\fR]
.SH DESCRIPTION
.PP
.B fccanalysis\-pin allows one to freeze the Key4hep stack version for the local
copy of the FCCAnalyses\&. To create the "pin" first make sure that you have
sourced Key4hep stack and after that simply run
.IP
fccanalysis pin

.RE
.PP
which will save the currently sourced stack into the pin\&.
.PP
In order to pin the analysis to any other stack source this stack first\&.
.PP
The information about the stack (if pin is active) is stored in file
\&.fccana/stackpin inside the root of the FCCAnalyses\&.
.SH OPTIONS
.TP
.BR \-h ", " \-\-help
Prints short help message and exits\&.
.TP
.BR \-c ", " \-\-clear
Clear current analysis pin (if active)\&.
.TP
.BR \-f ", " \-\-force
Force recreation of the analysis pin (can be used to overwrite the current
pin)\&.
.TP
.BR \-s ", " \-\-show
Show current stack in the pin (if active)\&.
.SH SEE ALSO
fccanalysis(1)
.SH BUGS
Many
.SH AUTHORS
There are many contributors to the FCCAnalyses framework, but the principal
authors are:
.in +4
Clement Helsens
.br
Valentin Volkl
.br
Gerardo Ganis
.SH FCCANALYSES
Part of the FCCAnalyses framework\&.
.SH LINKS
.PP
.UR https://hep-fcc\&.github\&.io/FCCAnalyses/
FCCAnalyses webpage
.UE
.PP
.UR https://github\&.com/HEP\-FCC/FCCAnalyses/
FCCAnalysises GitHub repository
.UE
.PP
.UR https://fccsw\-forum\&.web\&.cern\&.ch/
FCCSW Forum
.UE
.SH CONTACT
.pp
.MT [email protected]
FCC-PED-SoftwareAndComputing-Analysis
.ME
8 changes: 4 additions & 4 deletions man/man1/fccanalysis-plots.1
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ Specify text size for the legend elements\&. The default value is: 0.035\&.
\fB\-\-legend\-x\-min\fR \fILEGEND_X_MIN\fR
Specify minimal x position of the legend\&. The default value: automatic\&.
.TP
\fB--legend-x-max\fR \fILEGEND_X_MAX\fR
\fB\-\-legend-x-max\fR \fILEGEND_X_MAX\fR
Specify maximal x position of the legend\&. The default value: automatic\&.
.TP
\fB--legend-y-min\fR \fILEGEND_Y_MIN\fR
\fB\-\-legend-y-min\fR \fILEGEND_Y_MIN\fR
Specify minimal y position of the legend\&. The default value: automatic\&.
.TP
\fB--legend-y-max\fR \fILEGEND_Y_MAX\fR
\fB\-\-legend-y-max\fR \fILEGEND_Y_MAX\fR
Specify maximal y position of the legend\&. The default value: automatic\&.
.SH SEE ALSO
fccanalysis(1), fccanalysis\-run(1), fccanalysis\-final(1)
Expand All @@ -48,7 +48,7 @@ authors are:
.in +4
Clement Helsens
.br
Valentin Volk
Valentin Volkl
.br
Gerardo Ganis
.SH FCCANALYSES
Expand Down
2 changes: 1 addition & 1 deletion man/man1/fccanalysis-run.1
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ authors are:
.in +4
Clement Helsens
.br
Valentin Volk
Valentin Volkl
.br
Gerardo Ganis
.SH FCCANALYSES
Expand Down
2 changes: 1 addition & 1 deletion man/man1/fccanalysis-test.1
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ authors are:
.in +4
Clement Helsens
.br
Valentin Volk
Valentin Volkl
.br
Gerardo Ganis
.SH FCCANALYSES
Expand Down
2 changes: 1 addition & 1 deletion man/man1/fccanalysis.1
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ authors are:
.in +4
Clement Helsens
.br
Valentin Volk
Valentin Volkl
.br
Gerardo Ganis
.SH FCCANALYSES
Expand Down
2 changes: 1 addition & 1 deletion man/man7/fccanalysis-script.7
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ authors are:
.in +4
Clement Helsens
.br
Valentin Volk
Valentin Volkl
.br
Gerardo Ganis
.SH FCCANALYSES
Expand Down