Skip to content

FLAF

FLAF - Flexible LAW-based Analysis Framework. Task workflow managed is done via LAW (Luigi Analysis Framework).

How to install

  1. Setup ssh keys:

  2. Clone the repository:

    git clone --recursive git@github.com:cms-flaf/HH_bbtautau.git HH_bbtautau
    

  3. 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 (replace USER_NAME and ANA_FOLDER with your values):

    fs_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 }
    
    Please note that the need_cache argument is needed if you need a variable from the AnaCacheTupleTask step (e.g. LegacyVariables)

How to load environment

  1. Following command activates the framework environment:

    source env.sh
    

  2. For the new installation or after you implement new law tasks, you need to update the law index:

    law index --verbose
    

  3. Initialize voms proxy:

    voms-proxy-init -voms cms -rfc -valid 192:00