Skip to content

The 'filelumis' REST API can sometimes respond with null event_count #111

@amaltaro

Description

@amaltaro

While investigating some datasets from central production, I noticed that the filelumis REST API sometimes provides the wrong information.

For instance, this filelumis query gives me the following response:

[
{"event_count":null,"logical_file_name":"/store/mc/Run3Summer22NanoAODv12/ZPrime2DarkPhoton_HMass-1000_DPMass-0p3_TuneCP5_13p6TeV-pythia8/NANOAODSIM/130X_mcRun3_2022_realistic_v5-v4/40000/9b81675a-8a98-476f-8482-8a061d054adb.root","lumi_section_num":7,"run_num":1}
]

Now if I query for this exact LFN in the files REST API, for instance this files query, I get the following response:

[
{"adler32":"f22b0f76","auto_cross_section":0,"block_id":35323312,"block_name":"/ZPrime2DarkPhoton_HMass-1000_DPMass-0p3_TuneCP5_13p6TeV-pythia8/Run3Summer22NanoAODv12-130X_mcRun3_2022_realistic_v5-v4/NANOAODSIM#f98c387a-9206-4367-8991-c1e181f4b0d2","branch_hash_id":null,"check_sum":"4025616205","create_by":"WMAgent","creation_date":1707861820,"dataset":"/ZPrime2DarkPhoton_HMass-1000_DPMass-0p3_TuneCP5_13p6TeV-pythia8/Run3Summer22NanoAODv12-130X_mcRun3_2022_realistic_v5-v4/NANOAODSIM","dataset_id":14895314,"event_count":712,"file_id":12096384677,"file_size":5133026,"file_type":"EDM","file_type_id":1,"is_file_valid":1,"last_modification_date":1707861820,"last_modified_by":"WMAgent","logical_file_name":"/store/mc/Run3Summer22NanoAODv12/ZPrime2DarkPhoton_HMass-1000_DPMass-0p3_TuneCP5_13p6TeV-pythia8/NANOAODSIM/130X_mcRun3_2022_realistic_v5-v4/40000/9b81675a-8a98-476f-8482-8a061d054adb.root","md5":null}
]

and we can see that their event_count is different.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions