Skip to content
New issue

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

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

Already on GitHub? # to your account

CMS: generator parameters #106

Closed
katilp opened this issue Oct 11, 2021 · 1 comment
Closed

CMS: generator parameters #106

katilp opened this issue Oct 11, 2021 · 1 comment

Comments

@katilp
Copy link
Member

katilp commented Oct 11, 2021

Adding the missing generator parameters (typically dataset with the LHE step).
Different cases

MINIAODSIM has mcdb_id > 1 in McM

  • used before gridpack was adopted
  • find generator parameters (LHE header) in /eos/cms/store/lhe/$mcdb_id
    extract file and read the header with
    xz -d -c /eos/cms/store/lhe/$mcdb_id/* > lhe.lhe
      awk '/<header>/,/<\/header>/' lhe.lhe > lhe_header
    

GEN-SIM has no parent dataset

  • the config file should contain a *GeneratorFilter module, then that's all that is needed

GEN-SIM has a parent dataset

  • no mcdb_id

  • get the generator parameters from the gridpack

    edmProvDump -f "externalLHEProducer LHE" root://eospublic.cern.ch/$file | grep gridpacks > line
    gp=$(sed "s/'/ /g" line | awk '{print $6}')
    if [[ $file == *"madgraph"* ]]; then
          tar -xf $gp ./process/madevent/Cards/run_card.dat
          tar -xf $gp ./process/madevent/Cards/proc_card*.dat
          tar -xf $gp ./process/madevent/Cards/param_card.dat
          mv ./process/madevent/Cards/*.dat $dir/
     elif [[ $file == *"powheg"* ]]; then
          tar -xf $gp *.input
          mv *.input $dir
     elif [[ $file == *"amcatnlo"* ]]; then
          tar -xf $gp process/Cards/run_card.dat
          tar -xf $gp process/Cards/proc_card*.dat
          tar -xf $gp process/Cards/param_card.dat
          mv process/Cards/*.dat $dir/
    fi
    
@katilp
Copy link
Member Author

katilp commented Oct 11, 2021

Closing, combined with #97

@katilp katilp closed this as completed Oct 11, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant