Difference between revisions of "JustInTimeFcl"

From Mu2eWiki
Jump to navigation Jump to search
Line 12: Line 12:
 
</pre>
 
</pre>
  
Input the content below to the file called "template.fcl"
+
Append the content below to the file called "template.fcl"
 
<pre>
 
<pre>
 
#include "Production/JobConfig/cosmic/S2Resampler.fcl"
 
#include "Production/JobConfig/cosmic/S2Resampler.fcl"

Revision as of 17:13, 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

Append 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