cms-tau-pog / TauFW

Analysis framework for tau analysis at CMS using NanoAOD
9 stars 41 forks source link

Update of modify_cutflow_hist functionality #54

Closed hephysicist closed 10 months ago

hephysicist commented 10 months ago

The main problem of this function was in parsing filenames. To overcome potential ambiguities I moved all process of sample name extraction from the filename to check_sample_name. Now it returns the name of the sample that should be contained in the n_evt dictionary from JSON file. If not, then it returns 0 and the code throws a warning. Also there appeared a functionality to veto datasets even if they were included in --samples option.

hephysicist commented 10 months ago

Asked to do a merge request with PODAS23 branch from Andrea's fork.