diff --git a/crab/short-matrix1/pset.py b/crab/short-matrix1/pset.py new file mode 100644 index 00000000000..6c21333b697 --- /dev/null +++ b/crab/short-matrix1/pset.py @@ -0,0 +1,115 @@ +# Auto generated configuration file +# using: +# Revision: 1.19 +# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v +# with command line options: MinBias_8TeV_cfi --conditions auto:startup -s GEN,SIM --datatier GEN-SIM -n 10 +# --relval 9000,300 --eventcontent RAWSIM --io MinBias.io --python MinBias.py --no_exec --fileout minbias.root + +import FWCore.ParameterSet.Config as cms + +process = cms.Process("SIM") + +# Import of standard configurations +process.load("Configuration.StandardSequences.Services_cff") +process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi") +process.load("FWCore.MessageService.MessageLogger_cfi") +process.load("Configuration.EventContent.EventContent_cff") +process.load("SimGeneral.MixingModule.mixNoPU_cfi") +process.load("Configuration.StandardSequences.GeometryRecoDB_cff") +process.load("Configuration.Geometry.GeometrySimDB_cff") +process.load("Configuration.StandardSequences.MagneticField_38T_cff") +process.load("Configuration.StandardSequences.Generator_cff") +process.load("IOMC.EventVertexGenerators.VtxSmearedRealistic8TeVCollision_cfi") +process.load("GeneratorInterface.Core.genFilterSummary_cff") +process.load("Configuration.StandardSequences.SimIdeal_cff") +process.load("Configuration.StandardSequences.EndOfProcess_cff") +process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") + +process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(10)) + +# Input source +process.source = cms.Source("EmptySource") + +process.options = cms.untracked.PSet() +process.options.numberOfThreads = cms.untracked.uint32(1) + +# Production Info +process.configurationMetadata = cms.untracked.PSet( + version=cms.untracked.string("$Revision: 1.19 $"), + annotation=cms.untracked.string("MinBias_8TeV_cfi nevts:10"), + name=cms.untracked.string("Applications"), +) + +# Additional output definition + +# Other statements +process.genstepfilter.triggerConditions = cms.vstring("generation_step") +from Configuration.AlCa.GlobalTag import GlobalTag + +process.GlobalTag = GlobalTag(process.GlobalTag, "auto:startup", "") + +process.generator = cms.EDFilter( + "Pythia6GeneratorFilter", + pythiaPylistVerbosity=cms.untracked.int32(0), + filterEfficiency=cms.untracked.double(1.0), + pythiaHepMCVerbosity=cms.untracked.bool(False), + comEnergy=cms.double(8000.0), + maxEventsToPrint=cms.untracked.int32(0), + PythiaParameters=cms.PSet( + pythiaUESettings=cms.vstring( + "MSTU(21)=1 ! Check on possible errors during program execution", + "MSTJ(22)=2 ! Decay those unstable particles", + "PARJ(71)=10 . ! for which ctau 10 mm", + "MSTP(33)=0 ! no K factors in hard cross sections", + "MSTP(2)=1 ! which order running alphaS", + "MSTP(51)=10042 ! structure function chosen (external PDF CTEQ6L1)", + "MSTP(52)=2 ! work with LHAPDF", + "PARP(82)=1.921 ! pt cutoff for multiparton interactions", + "PARP(89)=1800. ! sqrts for which PARP82 is set", + "PARP(90)=0.227 ! Multiple interactions: rescaling power", + "MSTP(95)=6 ! CR (color reconnection parameters)", + "PARP(77)=1.016 ! CR", + "PARP(78)=0.538 ! CR", + "PARP(80)=0.1 ! Prob. colored parton from BBR", + "PARP(83)=0.356 ! Multiple interactions: matter distribution parameter", + "PARP(84)=0.651 ! Multiple interactions: matter distribution parameter", + "PARP(62)=1.025 ! ISR cutoff", + "MSTP(91)=1 ! Gaussian primordial kT", + "PARP(93)=10.0 ! primordial kT-max", + "MSTP(81)=21 ! multiple parton interactions 1 is Pythia default", + "MSTP(82)=4 ! Defines the multi-parton model", + ), + processParameters=cms.vstring( + "MSEL=0 ! User defined processes", + "MSUB(11)=1 ! Min bias process", + "MSUB(12)=1 ! Min bias process", + "MSUB(13)=1 ! Min bias process", + "MSUB(28)=1 ! Min bias process", + "MSUB(53)=1 ! Min bias process", + "MSUB(68)=1 ! Min bias process", + "MSUB(92)=1 ! Min bias process, single diffractive", + "MSUB(93)=1 ! Min bias process, single diffractive", + "MSUB(94)=1 ! Min bias process, double diffractive", + "MSUB(95)=1 ! Min bias process", + ), + parameterSets=cms.vstring("pythiaUESettings", "processParameters"), + ), +) + +# Path and EndPath definitions +process.generation_step = cms.Path(process.pgen) +process.simulation_step = cms.Path(process.psim) +process.genfiltersummary_step = cms.EndPath(process.genFilterSummary) +process.endjob_step = cms.EndPath(process.endOfProcess) + +# Schedule definition +process.schedule = cms.Schedule( + process.generation_step, + process.genfiltersummary_step, + process.simulation_step, + process.endjob_step, +) + +# Filter all path with the production filter sequence +for path in process.paths: + getattr(process, path)._seq = process.generator * getattr(process, path)._seq diff --git a/crab/short-matrix1/run.sh b/crab/short-matrix1/run.sh new file mode 100755 index 00000000000..83afad1239e --- /dev/null +++ b/crab/short-matrix1/run.sh @@ -0,0 +1,16 @@ +#!/bin/bash -e +env > run.log +ld.so --help | grep supported | grep x86-64-v +mkdir matrix +pushd matrix + runTheMatrix.py -i all -s -j 1 --ibeos >>../run.log 2>&1 || touch runall-report-step123-.log + for f in $(find . -name '*' -type f) ; do + case $f in + *.xml|*.txt|*.log|*.py|*.json|*/cmdLog ) ;; + * ) rm -rf $f ;; + esac + done +popd +mv matrix/runall-report-step123-.log matrix.log +grep -E ' Step[0-9]' matrix.log || true +tar -czvf matrix.tar.gz matrix diff --git a/crab/short-matrix1/setup.sh b/crab/short-matrix1/setup.sh new file mode 100755 index 00000000000..d886a572f09 --- /dev/null +++ b/crab/short-matrix1/setup.sh @@ -0,0 +1,4 @@ +#!/bin/bash -ex +scram build enable-multi-targets +cp $(dirname $0)/../FrameworkJobReport.xml $WORKSPACE/ + diff --git a/crab/short-matrix1/task.py b/crab/short-matrix1/task.py new file mode 100644 index 00000000000..cd6b416bfa8 --- /dev/null +++ b/crab/short-matrix1/task.py @@ -0,0 +1,44 @@ +from CRABClient.UserUtilities import config +import os, re, time + +archs = os.environ["SCRAM_ARCH"].split("_") +osMajorVer = int(re.sub("[a-z]", "", archs[0])) + +config = config() +config.General.instance = os.getenv("CRABCONFIGINSTANCE", "prod") +config.General.requestName = os.getenv("CRAB_REQUEST", str(int(time.time()))) +config.General.transferOutputs = True +config.General.transferLogs = False + +config.Data.unitsPerJob = 10 +config.Data.totalUnits = 10 +config.Data.splitting = "EventBased" +config.Data.publication = False + +config.JobType.psetName = "pset.py" +config.JobType.pluginName = "PrivateMC" +config.JobType.maxJobRuntimeMin = 600 +config.JobType.maxMemoryMB = 2000 +config.JobType.numCores = 1 +config.JobType.allowUndistributedCMSSW = True +config.JobType.scriptExe = "run.sh" +config.JobType.disableAutomaticOutputCollection = True +config.JobType.outputFiles = ["matrix.tar.gz", "matrix.log", "run.log"] +config.JobType.inputFiles = ["FrameworkJobReport.xml"] + +config.Site.storageSite = "T2_CH_CERN" + +if "CRAB_SCHEDD_NAME" in os.environ and os.environ["CRAB_SCHEDD_NAME"] != "": + config.Debug.scheddName = os.environ["CRAB_SCHEDD_NAME"] +if "CRAB_COLLECTOR" in os.environ and os.environ["CRAB_COLLECTOR"] != "": + config.Debug.collector = os.environ["CRAB_COLLECTOR"] + +config.Debug.extraJDL = ['+REQUIRED_OS="rhel%s"' % osMajorVer] +if "amd64" == archs[1]: + config.Debug.extraJDL.append( + '+DESIRED_Archs="%s"' % "X86_64" if ("amd64" == archs[1]) else archs[1] + ) +if "SINGULARITY_IMAGE" in os.environ and os.environ["SINGULARITY_IMAGE"] != "": + config.Debug.extraJDL.append('+SingularityImage="%s"' % os.environ["SINGULARITY_IMAGE"]) +if "CRAB_SITE" in os.environ and os.environ["CRAB_SITE"] != "": + config.Debug.extraJDL.append('+DESIRED_Sites="%s"' % os.environ["CRAB_SITE"])