-- JianqiaoDeng - 2021-12-02

1.Just follow the steps from gitlab website, but you should install it in you user path, such as "/afs/cern.ch/user/j/jideng/"

git clone https://gitlab.cern.ch/LHCb-QEE/WmassMeasurement.git
cd WmassMeasurement
git submodule init
git submodule update
./run --cmake -- -G Ninja
./run --install -- ninja

2. Copy it to your work path, such as "/afs/cern.ch/work/j/jideng/"

10G is not enough for the package, when you do some tests, you need more space.

Why I not install it in work path directly? there would be some errors when you run "git submodule update" in work path.

3. update and run the code

./clean --all

./run --cmake -- -G Ninja

./run --install -- ninja

for changes of python script, you do not need to re make the package

4. how to run the analysis?

./run --analysis WeakMixing snakemake -j12 --snakefile snakemake/WeakMixing.snakefile bulk_analysis

if you do cross check, run this:

./run --analysis WeakMixing snakemake -j12 --snakefile snakemake/WeakMixing.snakefile cross_checks

run mW:

./run --analysis mW snakemake --snakefile snakemake/mW.snakefile -j12 bulk_analysis --config years='2016'

run W_xsec_13TeV:

./run --analysis W_xsec_13TeV snakemake --snakefile snakemake/W_xsec_13TeV.snakefile -j18 bulk_analysis --config years='2016'

you would better to change etabin = 1 in snakefile to reduce the build DAG time in test.

./run --analysis W_xsec_13TeV snakemake -j6 --snakefile snakemake/W_xsec_13TeV.snakefile bulk_analysis --config test=true

./run --analysis W_xsec_13TeV python -m WmassMeasurement compare-json ./test/references/W_xsec_13TeV.ref.json ./W_xsec_13TeV/plot /WMassFit_13TeV__OneSmooth__none__none__0__0__20.0__60.0__default__default__uniform__none__DYTurbo_NNPDF31__static.1111__On__DYTURBO__prod2__NNPDF31__2__1.0__All__none__none__none__none__none__average_bin0___full.json --float-rel-tolerance 1e-7

5. fix format problem

lb-format src/ProcessTuples.cpp

//format all files:


6.1 how to submit your code to gitlab

//Install the package, you will be branch master

git checkout W_xsec_13TeV_bkg_fit

git add <some files>

git commit -m "some words"

git push origin W_xsec_13TeV_bkg_fit

mika comment: ticked the "delete source branch" and "squash commits" option at "edit" page at every merge request.

6.2 rebase your branch to master

git fetch #updates all branches on your remote checkout

git rebase origin/master

# you may have some conflicts to resolve.


# Auto-merging test/references/W_xsec_13TeV.json

#CONFLICT(content): Merge conflict in test/references/W_xsec_13TeV.json

#just follow the instructions to edit the conflicting file,

#`git add` the file you want change, do not `git rm` any file, and then `rebase --continue`

#You need to resolve these conflicts by hand

git push origin jideng_TFractionFit

#these steps tell you how to rebase your branch use command line, do not do anything on gitlab

#May be there are some methods do same thing on gitlab (but I don't how to do it)

#If you are careless to click `solve conflict` on gitlab page, you can:

git push -f origin jideng_TFractionFit

7.Wmass truth MC tuple /eos/lhcb/wg/QEE/WmassMeasurement/

Edit | Attach | Watch | Print version | History: r22 < r21 < r20 < r19 < r18 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r22 - 2023-02-02 - JianqiaoDeng
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback