Skip to content

cmsDriver feature request for WMCore #42450

Open
@khurtado

Description

@khurtado

We have the following issue:

dmwm/WMCore#10604

where we basically need to figure out what the physics type is from a pset. We basically support the following types for monitoring:

physics task types: ["GENSIM", "GEN", "DIGI", "RECO", "DIGIRECO", "MINIAOD"]

However, we have to guess this base on the campaign name and we have been told the cmsDriver --steps argument should help better to guess the physics type better. We think the ideal solution would be to have the physics type already as part of a commented out lien in the pset

E.g.: For this file
https://cmsweb.cern.ch/couchdb/reqmgr_config_cache/b5800d7a387fa74d27c957e2ddbd4853/configFile

to have an extra comment line at the end e.g.:

# Auto generated configuration file
# using: 
# Revision: 1.19 
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v 
# with command line options: --python_filename PPS-Run3Winter22SIM-00018_1_cfg.py --eventcontent RAWSIM --customise Configuration/DataProcessing/Utils.addMonitoring --datatier GEN-SIM --fileout file:PPS-Run3Winter22SIM-00018.root --conditions 122X_mcRun3_2021_realistic_v9 --beamspot Run3RoundOptics25ns13TeVLowSigmaZ --step SIM --geometry DB:Extended --filein file:PPS-Run3Winter22pLHEGEN-00004.root --era Run3 --no_exec --mc -n 1511
import FWCore.ParameterSet.Config as cms
# physics_type = "GENSIM"

Would this be feasible?
This would allow us not to have to guess the physics type based on patterns from the campaign names (MCM patterns) or the --step argument in cmsDriver (since there is potential for this to have mistakes or get obsolete throughout the years).

Tagging @amaltaro

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions