Code Monkey home page Code Monkey logo

Comments (6)

vkuznet avatar vkuznet commented on September 28, 2024

Andrew,
I don't think I support file dataset=/a/b/c run=XXX lumi=ZZZ syntax, instead you should query
file,run,lumi dataset=/ZGToLLG_01J_5f_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8/RunIISummer16MiniAODv2-PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6-v1/MINIAODSIM
which provides results, see
https://cmsweb.cern.ch/das/request?view=list&limit=50&instance=prod%2Fglobal&input=file%2Crun%2Clumi+dataset%3D%2FZGToLLG_01J_5f_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8%2FRunIISummer16MiniAODv2-PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6-v1%2FMINIAODSIM

from das.

vkuznet avatar vkuznet commented on September 28, 2024

If you use dasgoclient you can see all supported queries/synyax as easy as
dasgoclient -examples

from das.

AndrewLevin avatar AndrewLevin commented on September 28, 2024

ok, but this query definitely used to work

if the query is not supported, shouldn't there be an error instead of just returning "No results found"?

from das.

vkuznet avatar vkuznet commented on September 28, 2024

Andrew, you're right this query syntax is supported (sorry I'm in C&O week with plenty of tasks and multitasking leads to gap in my head).

But upon further investigation it seems that the problem is with DBS, see yourself:

dasgoclient -query="file dataset=/ZGToLLG_01J_5f_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8/RunIISummer16MiniAODv2-PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6-v1/MINIAODSIM run=1 lumi=1" --verbose 3

will return series of URL calls to DBS, like this

 https://cmsweb.cern.ch/dbs/prod/global/DBSReader/filelumis?block_name=%2FZGToLLG_01J_5f_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8%2FRunIISummer16MiniAODv2-PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6-v1%2FMINIAODSIM%23a712e608-0775-11e8-a129-02163e01877e&run_num=1

which by itself returns

{"exception": 500, "type": "dbsException", "message": "Server Error"}

So, we need Yuyi (@yuyiguo) to provide more info on why DBS queries are failing.

from das.

yuyiguo avatar yuyiguo commented on September 28, 2024

Hi Andrew, Valentin:
This listFileLumis API support run_num input, but run_num is not 1. Please see the doc below:
https://cms-http-group.web.cern.ch/cms-http-group/apidoc/dbs3-client/current/dbs.apis.html?highlight=listfilelumi#dbs.apis.dbsClient.DbsApi.listFileLumis

the same API called w/o run_num=1:
https://cmsweb.cern.ch/dbs/prod/global/DBSReader/filelumis?block_name=%2FZGToLLG_01J_5f_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8%2FRunIISummer16MiniAODv2-PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6-v1%2FMINIAODSIM%23a712e608-0775-11e8-a129-02163e01877e

[{"lumi_section_num": [48, 517, 6171, 6548, 6792, 46, 519, 1179, 6031, 6032, 6033, 6319, 6547, 6790, 6791, 47, 6277, 6430, 544, 6302, 545, 6170, 6303, 6321, 6431, 6432, 6169, 6279, 6301, 52, 1178, 53, 54, 518, 546, 1177, 6278, 6320, 6549], "logical_file_name": "/store/mc/RunIISummer16MiniAODv2/ZGToLLG_01J_5f_TuneCUETP8M1_13TeV-amcatnloFXFX-pythia8/MINIAODSIM/PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6-v1/00000/8A7CD5D2-7307-E811-A20D-FA163EBE1F9E.root", "run_num": 1}]

I opened a issue to fix the problem: dmwm/DBS#587.

Thanks for reporting the issue. Just a reminder that most DBS APIs do not support run_num=1 search.
Yuyi

from das.

vkuznet avatar vkuznet commented on September 28, 2024

I"m not sure that it still valid issue. If so I suggest to open new issue with new information. So far I'm closing this now.

from das.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.