uhh-cms / cmsdb

CMS related campaigns, processes, cross sections and common definitions for analyses.
GNU General Public License v3.0
1 stars 16 forks source link

Mention run_range to apply trigger #50

Open gsaha009 opened 2 months ago

gsaha009 commented 2 months ago

Hello cmsdb experts,

First of all this is more like a discussion rather than an issue. I was trying to apply one HLT which should be applied for the events after run e.g. 300ZZZ as recommended. So, is there any way to specify run numbers in cmsdb campaigns? Thanks :)

Gourab

mafrahm commented 2 months ago

Hi @gsaha009, you can always add auxiliary information to your order objects yourself, e.g. via

# add run ranges to the campaign
config_inst.campaign.x.run_ranges = {"B": (first_run, last_run), ...}

# when needed, combine dataset info with run ranges from campaign
if dataset_inst.is_data and dataset_inst.has_aux("era"):
    run_range = config_inst.campaign.x.run_ranges[dataset_inst.x.era]

If this is useful to a general audience, this information could of course be added to the campaigns directly in the cmsdb.