diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 03a1b21ecc48..e90472510352 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,12 +11,14 @@ on: - '.github/workflows/**' - 'bin/Powheg/**' - '!**/*.input' + - 'bin/utils/**' pull_request: branches: [ master ] paths: - '.github/workflows/**' - 'bin/Powheg/**' - '!**/*.input' + - 'bin/utils/**' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -44,8 +46,16 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v3 - + - uses: dorny/paths-filter@v2 + id: filter + with: + filters: | + powheg1: + - 'bin/Powheg/**' + workflow: + - '.github/workflows/**' - name: Build gridpack + if: steps.filter.outputs.powheg1 == 'true' || steps.filter.outputs.workflow == 'true' uses: nick-fields/retry@v2 with: max_attempts: 5 @@ -54,6 +64,7 @@ jobs: command: docker run --rm -v /cvmfs:/cvmfs -v $PWD:$PWD -w $PWD gitlab-registry.cern.ch/cms-cloud/cmssw-docker/cc7-cms bash bin/Powheg/test/test_build.sh -r ${{ matrix.cmssw_release }} -a ${{ matrix.scram_arch }} -p ${{ matrix.proc }} - name: Check pwg-stat.dat + if: steps.filter.outputs.powheg1 == 'true' || steps.filter.outputs.workflow == 'true' run: git diff --exit-code bin/Powheg/test/pwg-stat.dat.${{ matrix.proc }}_${{ matrix.scram_arch }}_${{ matrix.cmssw_release }} - name: Create Pull Request @@ -66,4 +77,26 @@ jobs: title: Automated addition ${{ matrix.proc }}_${{ matrix.scram_arch }}_${{ matrix.cmssw_release }} body: | Automated addition by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action. - Please review the cross section file carefully! \ No newline at end of file + Please review the cross section file carefully! + ############################################################# + req_check_script: + # The type of runner that the job will run on + runs-on: [self-hosted, linux, x64] + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + - uses: dorny/paths-filter@v2 + id: filter + with: + filters: | + bin: + - 'bin/utils/**' + workflow: + - '.github/workflows/**' + - name: Run the request checking script on local mcm requests + #shell: python + if: steps.filter.outputs.bin == 'true' || steps.filter.outputs.workflow == 'true' + run: | + python3 bin/utils/request_fragment_check.py --bypass_status --develop --local --prepid SUS-RunIISummer20UL16wmLHEGEN-00768 diff --git a/bin/utils/SUS-RunIISummer20UL16wmLHEGEN-00768 b/bin/utils/SUS-RunIISummer20UL16wmLHEGEN-00768 new file mode 100644 index 000000000000..03777a2d84fd --- /dev/null +++ b/bin/utils/SUS-RunIISummer20UL16wmLHEGEN-00768 @@ -0,0 +1,61 @@ +import FWCore.ParameterSet.Config as cms + + +externalLHEProducer = cms.EDProducer("ExternalLHEProducer", + args = cms.vstring('/cvmfs/cms.cern.ch/phys_generator/gridpacks/UL/13TeV/powheg/V2/VBF_H_slc7_amd64_gcc820_CMSSW_10_6_20_VBF_H_M110/v1/VBF_H_slc7_amd64_gcc820_CMSSW_10_6_20_VBF_H_M110.tgz'), + nEvents = cms.untracked.uint32(5000), + numberOfParameters = cms.uint32(1), + outputFile = cms.string('cmsgrid_final.lhe'), + generateConcurrently = cms.untracked.bool(True), + postGenerationCommand = cms.untracked.vstring('mergeLHE.py', '-i', 'thread*/cmsgrid_final.lhe', '-o', 'cmsgrid_final.lhe'), + scriptName = cms.FileInPath('GeneratorInterface/LHEInterface/data/run_generic_tarball_cvmfs.sh') +) + +from Configuration.Generator.Herwig7Settings.Herwig7LHECommonSettings_cfi import * +from Configuration.Generator.Herwig7Settings.Herwig7StableParticlesForDetector_cfi import * +from Configuration.Generator.Herwig7Settings.Herwig7CH3TuneSettings_cfi import * +from Configuration.Generator.Herwig7Settings.Herwig7LHEPowhegSettings_cfi import * +from Configuration.Generator.Herwig7Settings.Herwig7_7p1SettingsFor7p2_cfi import * + + +generator = cms.EDFilter("Herwig7GeneratorFilter", + herwig7LHECommonSettingsBlock, + herwig7LHEPowhegSettingsBlock, + herwig7StableParticlesForDetectorBlock, + herwig7CH3SettingsBlock, + herwig7p1SettingsFor7p2Block, + configFiles = cms.vstring(), + crossSection = cms.untracked.double(1.0), + dataLocation = cms.string('${HERWIGPATH:-6}'), + eventHandlers = cms.string('/Herwig/EventHandlers'), + filterEfficiency = cms.untracked.double(1.0), + generatorModule = cms.string('/Herwig/Generators/EventGenerator'), + hw_user_settings = cms.vstring( + 'cd /Herwig/EventHandlers', + 'create Herwig::BranchingRatioReweighter /Herwig/Generators/BRReweighter', + 'insert /Herwig/Generators/EventGenerator:EventHandler:PostHadronizationHandlers 0 /Herwig/Generators/BRReweighter', + 'cd /', + 'set /Herwig/Particles/h0:NominalMass 110.0', + 'decaymode /Herwig/Particles/h0->tau+,mu-; 0.1 1 /Herwig/Decays/Mambo', + 'decaymode /Herwig/Particles/h0->mu+, tau-; 0.1 1 /Herwig/Decays/Mambo' + ), + parameterSets = cms.vstring( + 'hw_lhe_common_settings', + 'hw_lhe_powheg_settings', + 'herwig7CH3PDF', + 'herwig7CH3AlphaS', + 'herwig7CH3MPISettings', + 'herwig7StableParticlesForDetector', + 'hw_user_settings', + 'hw_7p1SettingsFor7p2', + 'emudecay' + ), + emudecay = cms.vstring( + 'do /Herwig/Particles/h0:SelectDecayModes h0->mu-,tau+;', + 'do /Herwig/Particles/h0:SelectDecayModes h0->mu+,tau-;' + ), + repository = cms.string('${HERWIGPATH}/HerwigDefaults.rpo'), + run = cms.string('HerwigConfig'), + runModeList = cms.untracked.string('read,run'), +) +