Skip to content

Instantly share code, notes, and snippets.

@mconcas
Last active October 24, 2022 15:26
Show Gist options
  • Save mconcas/fd541451761b309f33b663a4497d1bf7 to your computer and use it in GitHub Desktop.
Save mconcas/fd541451761b309f33b663a4497d1bf7 to your computer and use it in GitHub Desktop.
Run three different configuration of reconstruction
#! /bin/bash
# global params
DATA_LIST="${1}"
# global arguments
GLO_ARG="--shm-segment-size 24000000000"
# raw arguments
CLPAR_RAW=" --configKeyValues ITSClustererParam.maxBCDiffToMaskBias=-10;ITSClustererParam.maxBCDiffToSquashBias=-10;fastMultConfig.cutMultClusLow=-1;fastMultConfig.cutMultClusHigh=-1;fastMultConfig.cutMultVtxHigh=-1;ITSVertexerParam.phiCut=0.5;ITSVertexerParam.clusterContributorsCut=3;ITSVertexerParam.tanLambdaCut=0.2;"
# mask arguments
CLPAR_MSK=" --configKeyValues ITSClustererParam.maxBCDiffToMaskBias=10;ITSClustererParam.maxBCDiffToSquashBias=-10;ITSClustererParam.maxSOTMUS=8.;fastMultConfig.cutMultClusLow=-1;fastMultConfig.cutMultClusHigh=-1;fastMultConfig.cutMultVtxHigh=-1;ITSVertexerParam.phiCut=0.5;ITSVertexerParam.clusterContributorsCut=3;ITSVertexerParam.tanLambdaCut=0.2;"
# squash arguments
CLPAR_SQ3=" --configKeyValues ITSClustererParam.maxBCDiffToMaskBias=-10;ITSClustererParam.maxBCDiffToSquashBias=10;ITSClustererParam.maxSOTMUS=8.;fastMultConfig.cutMultClusLow=-1;fastMultConfig.cutMultClusHigh=-1;fastMultConfig.cutMultVtxHigh=-1;ITSVertexerParam.phiCut=0.5;ITSVertexerParam.clusterContributorsCut=3;ITSVertexerParam.tanLambdaCut=0.2;"
# run raw
echo "running reconstruction raw"
o2-raw-tf-reader-workflow $GLO_ARG --input-data $DATA_LIST --onlyDet ITS -b --delay 0.01 --max-cached-files 10 | \
o2-itsmft-stf-decoder-workflow $GLO_ARG --no-clusters --digits -b | \
o2-its-reco-workflow $GLO_ARG --disable-mc --digits-from-upstream --trackerCA $CLPAR_RAW --tracking-mode sync_misaligned -b --run > raw.log
mv o2trac_its.root o2trac_its_raw.root
mv o2clus_its.root o2clus_its_raw.root
# run mask
echo "running reconstruction with masking"
o2-raw-tf-reader-workflow $GLO_ARG --input-data $DATA_LIST --onlyDet ITS -b --delay 0.01 --max-cached-files 10 | \
o2-itsmft-stf-decoder-workflow $GLO_ARG --no-clusters --digits -b | \
o2-its-reco-workflow $GLO_ARG --disable-mc --digits-from-upstream --trackerCA $CLPAR_MSK --tracking-mode sync_misaligned -b --run > mask.log
mv o2trac_its.root o2trac_its_mask.root
mv o2clus_its.root o2clus_its_mask.root
# run squash
echo "running reconstruction with squashing"
o2-raw-tf-reader-workflow $GLO_ARG --input-data $DATA_LIST --onlyDet ITS -b --delay 0.01 --max-cached-files 10 | \
o2-itsmft-stf-decoder-workflow $GLO_ARG --no-clusters --digits -b | \
o2-its-reco-workflow $GLO_ARG --disable-mc --digits-from-upstream --trackerCA $CLPAR_SQ3 --tracking-mode sync_misaligned -b --run > squash.log
mv o2trac_its.root o2trac_its_sq3.root
mv o2clus_its.root o2clus_its_sq3.root
# epilog
echo "done"
@mconcas
Copy link
Author

mconcas commented Oct 24, 2022

Fix cluster filename

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment