Difference between revisions of "JustInTimeFcl"

From Mu2eWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
==Introduction==
 
==Introduction==
  
 +
==Example==
  
  
 +
Setup the SimJob, mu2etools and mu2egrid
 +
<pre>
 +
source /cvmfs/mu2e.opensciencegrid.org/setupmu2e-art.sh
 +
muse setup SimJob MDC2020aa
 +
setup mu2etools
 +
setup mu2egrid
 +
</pre>
 +
 +
Input the content below to the file called "template.fcl"
 +
<pre>
 +
#include "Production/JobConfig/cosmic/S2Resampler.fcl"
 +
#include "Production/JobConfig/cosmic/S2ResamplerLow.fcl"
 +
outputs.PrimaryOutput.fileName: "dts.owner.CosmicCORSIKALow.version.sequencer.art"
 +
</pre>
 +
 +
Prepare input file list:
 +
<pre>
 +
samweb list-definition-files sim.mu2e.CosmicDSStopsCORSIKALow.MDC2020ab.art | head -n 10 > CosmicDSStop.txt
 +
</pre>
 +
 +
Prepare the tarball
 +
<pre>
 +
mu2ejobdef --dsconf MDC2020ab --dsowner mu2e --run-number 1203 --jobdesc CosmicCORSIKALow --embed template.fcl --events-per-job 500000 --auxinput=1:physics.filters.CosmicResampler.fileNames:CosmicDSStop.txt --setup /cvmfs/mu2e.opensciencegrid.org/Musings/SimJob/MDC2020aa/setup.sh
 +
</pre>
 +
 +
Submit your job
 +
<pre>
 +
mu2ejobsub --jobdef cnf.mu2e.CosmicCORSIKALow.MDC2020ab.0.tar --firstjob=1 --njobs=10 --default-protocol root --default-location tapemu2ejobsub --firstjob=0 --njobs=10
 +
</pre>
 +
 +
Dump fcl content
 +
<pre>
 +
mu2ejobfcl --jobdef cnf.mu2e.CosmicCORSIKALow.MDC2020ab.0.tar --index 1 --default-proto root --default-loc tape
 +
</pre>
 +
 +
Get the file inputs:
 +
<pre>
 +
mu2ejobiodetail --jobdef cnf.mu2e.CosmicCORSIKALow.MDC2020ab.0.tar --index 1 --inputs
 +
</pre>
  
 
[[Category:Computing]]
 
[[Category:Computing]]
 
[[Category:Workflows]]
 
[[Category:Workflows]]

Revision as of 16:05, 18 April 2024

Introduction

Example

Setup the SimJob, mu2etools and mu2egrid

source /cvmfs/mu2e.opensciencegrid.org/setupmu2e-art.sh
muse setup SimJob MDC2020aa
setup mu2etools
setup mu2egrid

Input the content below to the file called "template.fcl"

#include "Production/JobConfig/cosmic/S2Resampler.fcl"
#include "Production/JobConfig/cosmic/S2ResamplerLow.fcl"
outputs.PrimaryOutput.fileName: "dts.owner.CosmicCORSIKALow.version.sequencer.art"

Prepare input file list:

samweb list-definition-files sim.mu2e.CosmicDSStopsCORSIKALow.MDC2020ab.art | head -n 10 > CosmicDSStop.txt

Prepare the tarball

mu2ejobdef --dsconf MDC2020ab --dsowner mu2e --run-number 1203 --jobdesc CosmicCORSIKALow --embed template.fcl --events-per-job 500000 --auxinput=1:physics.filters.CosmicResampler.fileNames:CosmicDSStop.txt --setup /cvmfs/mu2e.opensciencegrid.org/Musings/SimJob/MDC2020aa/setup.sh

Submit your job

mu2ejobsub --jobdef cnf.mu2e.CosmicCORSIKALow.MDC2020ab.0.tar --firstjob=1 --njobs=10 --default-protocol root --default-location tapemu2ejobsub --firstjob=0 --njobs=10

Dump fcl content

mu2ejobfcl --jobdef cnf.mu2e.CosmicCORSIKALow.MDC2020ab.0.tar --index 1 --default-proto root --default-loc tape

Get the file inputs:

mu2ejobiodetail --jobdef cnf.mu2e.CosmicCORSIKALow.MDC2020ab.0.tar --index 1 --inputs