FLAF¶
FLAF - Flexible LAW-based Analysis Framework. Task workflow managed is done via LAW (Luigi Analysis Framework).
How to install¶
-
Setup ssh keys:
- On GitHub settings/keys
- On CERN GitLab profile/keys
-
Clone the repository:
git clone --recursive git@github.com:cms-flaf/HH_bbtautau.git HH_bbtautau
-
Create a user customisation file
config/user_custom.yaml
. It should contain all user-specific modifications that you don't want to be committed to the central repository. Below is example of minimal content of the file (replaceUSER_NAME
andANA_FOLDER
with your values):Please note that thefs_default: - 'T3_CH_CERNBOX:/store/user/USER_NAME/ANA_FOLDER/' fs_anaCache: - 'T3_CH_CERNBOX:/store/user/USER_NAME/ANA_FOLDER/' fs_anaTuple: - 'T3_CH_CERNBOX:/store/user/USER_NAME/ANA_FOLDER/' fs_anaCacheTuple: - 'T3_CH_CERNBOX:/store/user/USER_NAME/ANA_FOLDER/' fs_histograms: - 'T3_CH_CERNBOX:/store/user/USER_NAME/ANA_FOLDER/histograms/' fs_json: - 'T3_CH_CERNBOX:/store/user/USER_NAME/ANA_FOLDER/jsonFiles/' analysis_config_area: config compute_unc_variations: true compute_unc_histograms: true store_noncentral: true vars_to_plot: - b1_pt - { "name" : MT2, need_cache: true }
need_cache
argument is needed if you need a variable from theAnaCacheTupleTask
step (e.g. LegacyVariables)
How to load environment¶
-
Following command activates the framework environment:
source env.sh
-
For the new installation or after you implement new law tasks, you need to update the law index:
law index --verbose
-
Initialize voms proxy:
voms-proxy-init -voms cms -rfc -valid 192:00