-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
651 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<FrameworkJobReport> | ||
<ReadBranches> | ||
</ReadBranches> | ||
<PerformanceReport> | ||
<PerformanceSummary Metric="StorageStatistics"> | ||
<Metric Name="Parameter-untracked-bool-enabled" Value="true"/> | ||
<Metric Name="Parameter-untracked-bool-stats" Value="true"/> | ||
<Metric Name="Parameter-untracked-string-cacheHint" Value="application-only"/> | ||
<Metric Name="Parameter-untracked-string-readHint" Value="auto-detect"/> | ||
<Metric Name="ROOT-tfile-read-totalMegabytes" Value="0"/> | ||
<Metric Name="ROOT-tfile-write-totalMegabytes" Value="0"/> | ||
</PerformanceSummary> | ||
</PerformanceReport> | ||
|
||
<GeneratorInfo> | ||
</GeneratorInfo> | ||
</FrameworkJobReport> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
# 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"), | ||
) | ||
|
||
# Output definition | ||
process.RAWSIMoutput = cms.OutputModule( | ||
"PoolOutputModule", | ||
splitLevel=cms.untracked.int32(0), | ||
eventAutoFlushCompressedSize=cms.untracked.int32(5242880), | ||
outputCommands=process.RAWSIMEventContent.outputCommands, | ||
fileName=cms.untracked.string("minbias.root"), | ||
dataset=cms.untracked.PSet( | ||
filterName=cms.untracked.string(""), dataTier=cms.untracked.string("GEN-SIM") | ||
), | ||
SelectEvents=cms.untracked.PSet(SelectEvents=cms.vstring("generation_step")), | ||
) | ||
|
||
# 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) | ||
process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput) | ||
|
||
# Schedule definition | ||
process.schedule = cms.Schedule( | ||
process.generation_step, | ||
process.genfiltersummary_step, | ||
process.simulation_step, | ||
process.endjob_step, | ||
process.RAWSIMoutput_step, | ||
) | ||
|
||
# Filter all path with the production filter sequence | ||
for path in process.paths: | ||
getattr(process, path)._seq = process.generator * getattr(process, path)._seq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
#!/bin/bash -e | ||
JENKINS_ID=$(echo ${CRAB_ReqName} | sed 's|.*_||') | ||
if [ "${JENKINS_ID}" = "" ] ; then JENKINS_ID="$$" ; fi | ||
req=$(date +%s) | ||
rm -rf cmdrun | ||
mkdir -p cmdrun | ||
xstart=$(echo "START" | base64) | ||
xend=$(echo "END" | base64) | ||
pushd cmdrun | ||
touch run.log | ||
curl -s -L "https://muzaffar.web.cern.ch/cgi-bin/test-v2?START=1&req=${req}&uid=${JENKINS_ID}" >>run.log 2>&1 | ||
req=$(date +%s) | ||
LRUN=${req} | ||
PRECMD="" | ||
RUN_GAP=0 | ||
while [ $RUN_GAP -lt 3600 ] ; do | ||
req=$(date +%s) | ||
curl -s -L -o cmd.txt "https://muzaffar.web.cern.ch/crab-test/cmd.txt?req=${req}&uid=${JENKINS_ID}" | ||
cmd=$(grep "^cmd=${JENKINS_ID}=" cmd.txt || true) | ||
if [ "${cmd}" = "" ] ; then | ||
cmd=$(grep "^cmd=0=" cmd.txt || true) | ||
fi | ||
rm -f cmd.txt | ||
cmd=$(echo "$cmd" | sed 's|^.*=|cmd=|') | ||
if [ "$cmd" = "cmd=0" ] ; then | ||
break | ||
fi | ||
if [ "${PRECMD}" = "$cmd" -o "${cmd}" = "" ] ; then | ||
xt=$(date +%s) | ||
xd=0 | ||
while [ $xd -lt 9 ] ; do | ||
for i in 0 1 2 3 4 5 6 7 8 9 ; do | ||
for i in 0 1 2 3 4 5 6 7 8 9 ; do | ||
for i in 0 1 2 3 4 5 6 7 8 9 ; do | ||
true | ||
done | ||
done | ||
done | ||
let xd=$(date +%s)-${xt} || true | ||
done | ||
let RUN_GAP=$(date +%s)-${LRUN} | ||
b64=$(echo "previous_${cmd}" | base64) | ||
curl -s -L -X POST -d "$b64" "https://muzaffar.web.cern.ch/cgi-bin/test-v2?WAITING=1&${cmd}&req=${req}&uid=${JENKINS_ID}" >>run.log 2>&1 | ||
else | ||
curl -s -L -o run.sh "https://muzaffar.web.cern.ch/crab-test/run.sh?req=${req}&uid=${JENKINS_ID}" | ||
curl -s -L -X POST -d "${xstart}" "https://muzaffar.web.cern.ch/cgi-bin/test-v2?RUN=START&req=${req}&${cmd}&uid=${JENKINS_ID}" >>run.log 2>&1 | ||
chmod +x run.sh | ||
./run.sh > run.log 2>&1 || true | ||
total_lines=$(cat run.log | wc -l) | ||
sline=1 | ||
xline=20 | ||
while [ $sline -le $total_lines ] ; do | ||
sed -n "${sline},+${xline}p" run.log | base64 > run.base64 | ||
curl -s -L -X POST -d @run.base64 "https://muzaffar.web.cern.ch/cgi-bin/test-v2?result=${sline}of${total_lines}&${cmd}&req=${req}&uid=${JENKINS_ID}" >>run.log 2>&1 | ||
sleep 1 | ||
let sline=$sline+$xline+1 | ||
done | ||
curl -s -L -X POST -d "${xend}" "https://muzaffar.web.cern.ch/cgi-bin/test-v2?RUN=END&req=${req}&${cmd}&uid=${JENKINS_ID}" >>run.log 2>&1 | ||
rm -f run.sh run.log run.base64 | ||
PRECMD="${cmd}" | ||
LRUN=$(date +%s) | ||
RUN_GAP=0 | ||
fi | ||
done | ||
popd | ||
req=$(date +%s) | ||
mv cmdrun/run.log . | ||
rm -rf cmdrun | ||
curl -s -L "https://muzaffar.web.cern.ch/cgi-bin/test-v2?END=1&req=${req}&uid=${JENKINS_ID}" >>run.log 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash -ex | ||
scram build enable-multi-targets | ||
cp $(dirname $0)/../FrameworkJobReport.xml $WORKSPACE/ | ||
cp $(dirname $0)/../minbias.root $WORKSPACE/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 = int(os.getenv("CRAB_MAX_TIME", "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 = ["run.log"] | ||
config.JobType.inputFiles = ["FrameworkJobReport.xml", "minbias.root"] | ||
|
||
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"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
scram build enable-multi-targets |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
#!/bin/bash -ex | ||
pwd | ||
ls | ||
env > run.log | ||
ld.so --help | grep supported | grep x86-64-v | ||
which cmsRun | ||
cmsRun --help | ||
cmsRun -j FrameworkJobReport.xml PSet.py | ||
cmsRun -j FrameworkJobReport.xml PSet.py >>run.log 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.