Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMS - simplify gridpack search in lhe_generators.py #238

Closed
katilp opened this issue Jun 4, 2024 · 1 comment
Closed

CMS - simplify gridpack search in lhe_generators.py #238

katilp opened this issue Jun 4, 2024 · 1 comment
Assignees

Comments

@katilp
Copy link
Member

katilp commented Jun 4, 2024

The lhe_generators.py script takes the gridpack location from the "fragment". It queries the fragment first through URL and then from the mcm-store. The URL query is not necessary.

Furthermore, all gridpack paths start with /cvmfs/cms.cern.ch/phys_generator/gridpacks so it can be used as the query string.

For the record, verified with the full mcm-store taking chains the LHE step:

Fragments that include string /cvmfs/cms.cern.ch/phys_generator/gridpacks

chains=$(ls inputs/mcm-store/chain)
for c in $chains; do f=inputs/mcm-store/chain/$c/*LHE*/dict/*json; [ -f $f ] && jq . inputs/mcm-store/chain/$c/*LHE*/dict/*json | grep '"fragment":' | grep /cvmfs/cms.cern.ch/phys_generator/gridpacks; done | wc -l

-> 20046

all LHE steps

for c in $chains; do f=inputs/mcm-store/chain/$c/*LHE*/dict/*json; [ -f $f ] && jq . inputs/mcm-store/chain/$c/*LHE*/dict/*json | grep '"fragment":'; done | wc -l

-> 20222

The difference makes 176 which is the number of LHE cases with mcdb_id (#235 )

@katilp
Copy link
Member Author

katilp commented Jun 4, 2024

Closing through 5a6eb86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant