Skip to content

Commit 565b69b

Browse files
Merge pull request #50 from clementhelsens/dev-branch
Dev branch
2 parents ca91c19 + 562b2d2 commit 565b69b

File tree

24 files changed

+43
-200
lines changed

24 files changed

+43
-200
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ set(INSTALL_INCLUDE_DIR include CACHE PATH
3030
"Installation directory for header files")
3131

3232

33-
file(GLOB _run_python_files bin/*.py)
34-
install(FILES ${_run_python_files} DESTINATION ${CMAKE_INSTALL_PREFIX}/python/bin)
33+
file(GLOB _run_python_files config/*.py)
34+
install(FILES ${_run_python_files} DESTINATION ${CMAKE_INSTALL_PREFIX}/python/config)
35+
install(FILES config/doPlots.py PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ DESTINATION ${CMAKE_INSTALL_PREFIX}/python/config)
36+
3537
#install(DIRECTORY FCCeeAnalyses DESTINATION ${CMAKE_INSTALL_PREFIX}/python)
3638
#install(DIRECTORY FCChhAnalyses DESTINATION ${CMAKE_INSTALL_PREFIX}/python)
3739

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Generalities
4747
Each analysis is hosted in a single directory, for example ```examples/FCCee/higgs/mH-recoil/mumu/``` and contains the same kind of files, please use the same naming convention for all analysis.
4848

4949
1. ```analysis.py```: This class that is used to define the list of analysers and filters to run on as well as the output variables.
50-
2. ```preSel.py```: This configuration file is used to define how to run the ```analysis.py```. It contains the list of samples, the number of CPUs, the fraction of the original sample to process and the base directory for the yaml files (that contains the informations about the samples). This will run the ```analysis.py``` with a common code ```bin/runDataFrame.py``` (this last file is common to all analyses and should not be touched).
50+
2. ```preSel.py```: This configuration file is used to define how to run the ```analysis.py```. It contains the list of samples, the number of CPUs, the fraction of the original sample to process and the base directory for the yaml files (that contains the informations about the samples). This will run the ```analysis.py``` with a common code ```config/runDataFrame.py``` (this last file is common to all analyses and should not be touched).
5151
3. ```finalSel.py```: This configuration file contains the final selections and it runs over the locally produced flat ntuples from the ```preSel.py```. It contains a link to the ```procDict.json``` for getting cross section etc...(this might be removed later to include everything in the yaml, closer to the sample), the list of processes, the number of CPU, the cut list, and the variables (that will be both written in a ```TTree``` and in the form of ```TH1``` properly normalised to an integrated luminosity of 1pb-1.
5252
4. ```plots.py```: This configuration files is used to select the final selections from running ```finalSel.py``` to plot. Informations about how to merge processes, write some extra text, normalise to a given integrated luminosity etc... For the moment it is possible to only plot one signal at the time, but several backgrounds.
5353

@@ -77,7 +77,7 @@ Plotting
7777
The plotting configuration file ```plots.py``` contains informations about plotting details for plots rendering but also ways of combining samples for plotting.
7878
In this example just run like:
7979
```
80-
python bin/doPlots.py examples/FCCee/higgs/mH-recoil/mumu/plots.py
80+
doPlots.py examples/FCCee/higgs/mH-recoil/mumu/plots.py
8181
```
8282

8383
This will produce the plots in the ```outdir``` defined in the configuration file.
File renamed without changes.

bin/doPlots.py renamed to config/doPlots.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
import sys, os
23
import os.path
34
import ntpath
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
import yaml
23
import ROOT
34
import sys
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
import ROOT
23
import json
34
import sys
File renamed without changes.

0 commit comments

Comments
 (0)