Recipe to Run HLT Offline DQM

tested on lxplus, with zsh. You will be asked a valid grid certificate to run the below code.

git clone https://github.com/missirol/dqmutils.git
git pull https://github.com/halilg/dqmutils.git master
cd dqmutils
export SCRAM_ARCH=slc7_amd64_gcc900
# will ask for grid cert
. ./setup_CMSSW.sh

cd CMSSW_11_3_0_pre3 && cmsenv && cd -

DATASET=/RelValTTbar_14TeV/CMSSW_11_3_0_pre3-PU_113X_mcRun3_2021_realistic_v4_rsb-v1/GEN-SIM-RECO
DDIR=RelValTTbar_14TeV
WF=AOD.MC.2021.0
# create the batch jobs
./dqmJobs_driver.py  -d $DATASET  -o $DDIR  -w $WF

# run the batch jobs
for job in $DDIR/dqmjob_*/*.sh; do
   echo $job
   $job  
done

# do harvesting
./dqmJobs_harvester.py  -i $DDIR/*/*.root  -o $DDIR/harvesting/  -w MC.2021.0

# do plots
./plot_DQMHistos.py \
 -i  $DDIR/harvesting/DQM_V0001_R000000001__Global__CMSSW_X_Y_Z__RECO.root \
 -o  $DDIR/harvesting/plots \
 -e png \
 --only-keys '/JME/'

# maybe pack the plots for transfer
tar czvf plots_${DDIR}.tgz $DDIR/harvesting/plots

-- HalilGamsizkan - 2021-03-29
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2021-03-30 - HalilGamsizkan
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback