mcremone / decaf

0 stars 12 forks source link

UL: List #74

Closed mcremone closed 7 months ago

mcremone commented 9 months ago

Need to produce a script that:

1) Uses DAS to list public UL datasets, following the example here:

https://github.com/mcremone/decaf/blob/master/analysis/macros/list.py

2) Makes metadata in the same format as:

https://github.com/mcremone/decaf/blob/master/analysis/macros/pack.py

The existing list.py can directly be edited.

mcremone commented 7 months ago

Some more instructions:

1) Update the campaigns names with the ones used for UL for all three years:

https://github.com/mcremone/decaf/blob/master/analysis/macros/list.py#L12-L14

2) List the samples needed for bbWW in here:

https://github.com/mcremone/decaf/blob/master/analysis/macros/list.py#L16

At this stage we only need TTBar MC and SingleElectron, SingleMuon, and EGamma data. Keep in mind that you'll find SingleElectron only for 2016 and 2017, and EGamma only for 2018.

3) Fix the ugliness you see in the following code lines:

https://github.com/mcremone/decaf/blob/master/analysis/macros/list.py#L20-L22 https://github.com/mcremone/decaf/blob/master/analysis/macros/list.py#L30-L33

you can simply use arrays like it's done in here:

https://github.com/mcremone/decaf/blob/master/analysis/macros/combine_cards.py#L14-L25

4) Modify this block:

https://github.com/mcremone/decaf/blob/master/analysis/macros/list.py#L35-L41

in order to create a json file formatted the same way pack.py does here:

https://github.com/mcremone/decaf/blob/master/analysis/macros/pack.py#L94-L119