Skip to content

Commit

Permalink
Adding test files per process for histmaker
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvbrt committed Oct 26, 2023
1 parent 8a3daa2 commit 1416be0
Show file tree
Hide file tree
Showing 6 changed files with 181 additions and 163 deletions.
8 changes: 4 additions & 4 deletions e4hsource/test/histmaker_source.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# list of processes (mandatory)
processList = {
'p8_ee_WW_ecm240': {'output': 'p8_ee_WW_ecm240_out'}
'p8_ee_WW_ecm240': {'output': 'p8_ee_WW_ecm240_out',
'testfile': '/eos/experiment/fcc/ee/generation/'
'DelphesEvents/winter2023/IDEA/'
'p8_ee_WW_ecm240/events_192112516.root'}
}

# Production tag when running over EDM4Hep centrally produced events, this
Expand All @@ -24,9 +27,6 @@
# How to read input files
useDataSource = True

testFile = '/eos/experiment/fcc/ee/generation/DelphesEvents/winter2023/' \
'IDEA/p8_ee_WW_ecm240/events_192112516.root'

# build_graph function that contains the analysis logic, cuts and histograms
# (mandatory)
def build_graph(df, dataset):
Expand Down
4 changes: 2 additions & 2 deletions man/man1/fccanalysis-run.1
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ stages \fIfccanalysis-run\fR is used\&.
When using \fIfccanalysis-run\fR the analysis is running in the managed mode,
where the RDataFrame provided is steered by the framework and users can control
some aspects of the running with additional global attributes, see
\fBfccanalysis-file\fR(8).
\fBfccanalysis-script\fR(7).
.SH OPTIONS
.PP
<analysis-file>
Expand Down Expand Up @@ -118,7 +118,7 @@ Controls search path for the process dictionaries. The default value is
\fI/cvmfs/fcc.cern.ch/FCCDicts/\fR\&.
.RE
.SH SEE ALSO
fccanalysis(1), fccanalysis-file(7)
fccanalysis(1), fccanalysis-script(7)
.SH BUGS
Many
.SH AUTHORS
Expand Down
2 changes: 1 addition & 1 deletion man/man1/fccanalysis.1
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Runs the finalization analysis file provided\&.
Generate plots based on the plots analysis file provided\&.
.RE
.SH SEE ALSO
fccanalysis-run(1), fccanalysis-file(7)
fccanalysis-run(1), fccanalysis-script(7)
.SH BUGS
Many
.SH AUTHORS
Expand Down
31 changes: 19 additions & 12 deletions man/man7/fccanalysis-file.7 → man/man7/fccanalysis-script.7
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
.\" Manpage for fccanalysis-file
.\" Manpage for fccanalysis-script
.\" Contact [email protected] to correct errors or typos.
.TH FCCANALYSIS\-FILE 7 "15 Aug 2023" "0.7.0" "fccanalysis-file man page"
.TH FCCANALYSIS\-SCRIPT 7 "26 Oct 2023" "0.7.0" "fccanalysis-script man page"
.SH NAME
fccanalysis\-file \- analysis file specification
fccanalysis\-script \- analysis script specification
.SH SYNOPSIS
.sp
*
.sp
.SH DESCRIPTION
The analysis file is expected to be a valid Python script containing either
part of or the full analysis. There are two basic modes how to run a FCC
The analysis script is expected to be a valid Python script containing either
part of or the full analysis. There are two basic modes how to run the FCC
analysis, one is to run in the managed mode like so:
.PP
.RS 4
fcc run <analysis_file.py>
fcc run <analysis_script.py>
.RE
.PP
or
.PP
.RS 4
fcc final <analysis_file.py>
fcc final <analysis_script.py>
.RE
.PP
where user needs to provide minimal number of variables and settings. In this
mode the RDataFrame is managed for the user and it can be controlled by defining
several global attributes in the analysis file. The other mode is to run the
analysis file as regular python script:
several global attributes in the analysis script. The other mode is to run the
analysis script as regular python script:
.PP
.RS 4
python <analysis_file.py>
python <analysis_script.py>
.RE
.PP
here user has full control over the RDataFrame, but has to create all necessary
Expand All @@ -47,7 +47,7 @@ indicated in the $FCCDICTSDIR environment variable.
.PP
\fBprodTag\fR
.RS 4
Provides information where to find input files. There are several way how to
Provides information where to find input files. There are several ways how to
find the information, one of them uses YAML file which is being searched for in
the subfolders of $FCCDICTSDIR.
.RE
Expand Down Expand Up @@ -78,6 +78,13 @@ The analysis RDataFrame can be split into several chunks\&.
.br
Default value: 1
.RE
\fItestfile\fR
.RS 4
Specifies the test file which can be used in test mode, see
fccanalysis-run(1)\&.
.br
Default value: None
.RE
.RE
.PP
\fBoutputDir\fR
Expand Down Expand Up @@ -105,7 +112,7 @@ Default value: False
.PP
This section is under construction. You are invited to help :)
.SH SEE ALSO
fccanalysis(1), fccanalysis-run(1)
fccanalysis(1), \fBfccanalysis-run\fR(1)
.SH BUGS
Many
.SH AUTHORS
Expand Down
Loading

0 comments on commit 1416be0

Please sign in to comment.