Skip to content

Duchstf/VHbb

Repository files navigation

VHbb

Analysis framework for VHbb analysis

image

Documentation

References

Talks

Papers

Other relevant links


Environment set up

You can set up the environment by following the instructions here: https://github.com/CoffeaTeam/lpcjobqueue/

After setting it up you could do ./shell to set up the environment.

How to run dask jobs

Log in with ssh tunneling:

ssh -L 8787:localhost:8787 [email protected]

Renew your grid certificate:

grid-proxy-init -valid 1000:00

Run the ./shell script as setup above:

./shell

Note: View all coffea images:

ls /cvmfs/unpacked.cern.ch/registry.hub.docker.com/coffeateam/

Run the job submssion script:

python submit/submit-dask.py 2017 > dask.out 2>&1

or to run a selected sample (define the selected sample in the script):

python submit/submit-dask-selected.py 2017 > dask.out 2>&1

Run Jupyter Notebooks

ssh -L 127.0.0.1:8703:127.0.0.1:8703 [email protected]
jupyter notebook --no-browser --port 8703 --ip 127.0.0.1

Conda environment

conda-env create -f environment.yml

Activate the environment:

conda activate vhbb

And then do whatever you want in this environment (edit files, open notebooks, etc.). To deactivate the environment:

conda deactivate

If you make any update for the environment, please edit the environment.yml file and run:

conda env update --file environment.yml  --prune

Bias Test

for bias in 0 1 `seq 5 5 100`
    do
    combineTool.py -M FitDiagnostics --expectSignal $bias -n bias$bias -d model_combined.root --cminDefaultMinimizerStrategy 0 --robustFit=1 -t 20 -s 1:50:1 --job-mode condor --sub-opts='+JobFlavour = "workday"' --task-name ggHcc$bias
    done
for bias in 0 1 `seq 5 5 100`
    do 
    hadd -f bias$bias.root *Combinebias$bias.*
    done