Trigger Shifter

Troubleshooting

  • uGT dies (skull and bones): stop run, restart process, red-recycle trigger, reconfigure trigger (more than once if needed), start new run
  • uGT Error: check Central Cell, Operations, Run Control. Usually necessary to stop the run
  • OMTF and/or EMTF Error: ask DAQ shifter for a Hard Reset, do not stop the run
  • EMTF Error: number of broken link inputs: reconfigure trigger, call L1 DOC
  • Process dies: Check OnlineWBL1OnlineIssues
    • uGT, CaloL1: stop run and restart process
    • uGMT, CaloL2, BMTF, EMTF, OMTF, TWINMUX: continue the run

After red-recycling the trigger, check the prescale column!

  • Big disgrace: large deadtime

Windows

  • L1 page
  • Rate meter
  • WBM L1 rates
  • HLT monitoring tool
  • uGT swatch cell: Trigger Rates
  • uGT swatch cell: Prescales
  • Prescales twiki OnlineWBL1CollisionPrescales
  • DQM L1T

GIT

Remove old tags

From this guide: http://www.alwaystwisted.com/articles/deleting-git-tags-locally-and-on-github

  • Removing all tags with CMSSW and X in it:

git tag -d `git tag | grep -E '.' | grep CMSSW | grep _X_`
git ls-remote --tags my-cmssw | awk '/^(.*)(s+)(.*[a-zA-Z0-9])$/ {print ":" $2}' | xargs git push my-cmssw

Errors

  • fatal: unable to access [name of the repository]: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
  • This seems to be caused by an old git version, but the error can be avoided by cloning with SSH: git clone git@githubNOSPAMPLEASE.com:[username]/[repository].git

cmsShow tricks

Download event

Use a recent release:

cmsrel CMSSW_8_0_21
cd CMSSW_8_0_21/src/
cmsenv

Get the edmPickEvents.py script from Git (wget https://raw.githubusercontent.com/cms-sw/cmssw/CMSSW_8_0_X/PhysicsTools/Utilities/scripts/edmPickEvents.py .) if you have the CMSSW PhysicsTools package locally, edit the script here $CMSSW_BASE/src//PhysicsTools/Utilities/scripts/edmPickEvents.py

Then, change the following line:

-    jsondict = das_client.get_data('https://cmsweb.cern.ch', query, 0, 0, False)
+    jsondict = das_client.get_data('https://cmsweb.cern.ch', query, 0, 0, False, ckey=das_client.x509(), cert=das_client.x509())

Then run (remembering that the latest version of python to be used to interact with the database is 2.6):

python2.6 edmPickEvents.py /JetHT/Run2016B-PromptReco-v2/MINIAOD 275371:441:862926383
(or a .txt file with list of run:ls:event, line separated)

The output is a edmCopyPickMerge command, which should be run in the terminal. It will download a pickevents.root in the current directory.

Open with cmsShow

Run cmsShow with the command:

cmsShow --free-palette event.root

the --free-palette allows to pick a whatever color from the TColorWheel instead of the default ones.

Then, to change the style:

  • Open Common preferences, and set the background color to white
  • Set style to Fall
  • Click on the PFCandidates color box, and select the kAzure+9
  • Deselect jets, photons collections
  • Click on Add Collection, and select PFSecondaryVertices
  • Before saving a view, in the (i) menu, show Logo and event / lumi / run info.

UZH framework

Mount remote directory

Tier 2

  • Create mount point: mkdir /scratch/$USER/gfalFS/T2_CH_CSCS
  • Mount: gfalFS -s /scratch/$USER/gfalFS/T2_CH_CSCS srm://storage01.lcg.cscs.ch
  • The mounted directory is: /scratch/$USER/gfalFS/T2_CH_CSCS/pnfs/lcg.cscs.ch/cms/trivcat/store/user/
  • Unmount: gfalFS_umount /scratch/$USER/gfalFS/T2_CH_CSCS

Tier 3

  • Create mount point: mkdir /scratch/$USER/gfalFS/T3_CH_PSI
  • Mount: gfalFS -s /scratch/$USER/gfalFS/T3_CH_PSI/ gsiftp://t3se01.psi.ch
  • Unmount: gfalFS_umount /scratch/$USER/gfalFS/T3_CH_PSI

Ntuple production

  • CRAB submission (remember to set the correct name of the output directory in submit_all.py, and to always specify -s ""):
    • python submit_all.py -d crab_MC_V3 -c config_MC_crab_miniAODv2.py -f samples/Moriond17/samples_MC_ext_Alberto.txt  -s "_ext"

  • Automatic resubmission:
    • ls /mnt/t3nfs01/data01/shome/zucchett/CMSSW_8_0_21/src/EXOVVNtuplizerRunII/Ntuplizer/crab*/*  | grep Ntuplizer  | awk {' print "crab resubmit " $0 }' | sed 's/:/ /' > resubmit.sh
    • chmod +x resubmit.sh
    • ./resubmit.sh

  • Copy from T2 to T3:
    • URL="gsiftp://storage01.lcg.cscs.ch//pnfs/lcg.cscs.ch/cms/trivcat/store/user/zucchett/Ntuple_Moriond17/"
    • uberftp -ls -r $URL | grep .root$  | awk {' print "globus-url-copy -v -cd gsiftp://storage01.lcg.cscs.ch//"$8" gsiftp://t3se01.psi.ch/"$8}' | sed 's:lcg.cscs.ch/cms/trivcat/store/user/zucchett/Ntuple_Moriond17:psi.ch/cms/trivcat/store/t3groups/uniz-higgs/Summer16/Ntuple_80_20170206:2' | grep -v failed > copyCommands.txt
    • cat copyCommands.txt | parallel -j 10

  • Create lists
    • ls /pnfs/psi.ch/cms/trivcat/store/t3groups/uniz-higgs/Summer16/Ntuple_80_20170206/*/*/*/* | grep store | sed 's/://' > Data_list.txt
    • python createXMLfile.py  Data_list.txt  -o xmls_ReReco

  • Access files on T2:
    • root -l "dcap://t3se01.psi.ch:22125/ filename

Ntuple studies

How to do the event size cake plot:

  • Open file with ROOT: root -l dcap://t3se01.psi.ch:22125//pnfs/psi.ch/cms/trivcat/store/t3groups/uniz-higgs/Summer16/Ntuple_80_20170206/TT_TuneCUETP8M2T4_13TeV-powheg-pythia8/TT_TuneCUETP8M2T4_13TeV-powheg-pythia8/170206_181747/0000/flatTuple_110.root
  • Read tree: TTree* tree=(TTree*)_file0->Get("ntuplizer/tree")
  • Print info: tree->Print()
  • Copy output to txt file (content.txt)
  • Filter first column: cat content.txt | grep -e Br | awk '{print $3,$5}' > content1.txt
  • Filter second column: cat content.txt | grep -e "File Size" | awk '{print $12}' > content2.txt
  • Copy to spreadsheet, make nice plot

How to work with a Mac

Setup T3 mount point

First, avoid the need to input password every time. Create a ssh key:

  • To create a shared key, ssh-keygen -t rsa -b 4096 -C "zucchett@t3ui03.psi.ch" -f .ssh/t3ui03_id_rsa. The passphrase can be empty.
  • Check that the .ssh/authorized_keys on the remote server has writing permissions. Log in with ssh, then: chmod 700 .ssh/authorized_keys
  • On the local machine, copy the key using the previously installed script: ssh-copy-id -i ~/.ssh/t3ui03_id_rsa.pub zucchett@t3ui03NOSPAMPLEASE.psi.ch
  • Test that the setup is working: ssh -i ~/.ssh/t3ui03_id_rsa zucchett@t3ui03NOSPAMPLEASE.psi.ch

Then, use sshfs to mount the remote directory:

  • Create local mount directory: mkdir t3ui03
  • Mount with sshfs: sshfs  -o volname=t3ui03,IdentityFile=~/.ssh/t3ui03_id_rsa zucchett@t3ui03NOSPAMPLEASE.psi.ch:/mnt/t3nfs01/data01/shome/zucchett/ t3ui03/

Finally, create a double-click executable:

  • Create file: nano t3ui03.command
  • Assign execution rights: chmod +x t3ui03.command
  • Add the following commands:

-- AlbertoZucchetta - 2017-09-20

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r6 - 2018-12-03 - AlbertoZucchetta
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

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