.sh Files for analysis script launching

This page is analysis script specific in building .sh HTCondor scripts

This section is highly script specific, the HTCondor .sh files building depends on how the analysis script handles the HTCondor variables, i.e. ProcId and ClusterId.

As done for simulation .sh files, even with the analysis .sh files, it is useful to involve the HTCondor variables with:

ProcId=$1
ClusterId=$2

And, of course, the instanciation of the SNSW environment by adding this.

Then, if we are talking about script to be read in ROOT framework, one can enter the ROOT environment, load the script file and then run it:

/cvmfs/sndlhc.cern.ch/SNDLHC-2022/June10/sw/slc7_x86-64/ROOT/v6-26-02-local1/bin/root -l <<EOC
.L /afs/cern.ch/work/d/dannc/public/SND_sim/muonrate.cpp
DoChain($ClusterId)
.q
EOC

NOTE: this example uses the muonrate.cpp analysis script, and so DoChain(ClusterId) is the function to run the whole script, but it depends on how the script is written.

Usually it is useful to use ClusterID for output files naming, and ProcID to implement parallel processing.

Last updated