Introduction

  • This page describes USTC software for plotting RPC performance data and histograms
  • Git project: ustc/PhysicsRPCPlot

PhysicsRPCPlot framework

  • PhysicsRPCPlot package contains:
    • Python macro to read run information from COOL
    • Python macro to download histograms from website
    • Python macros to plot RPC efficiency and timing - work in progress

How to setup PhysicsRPCPlot with release 21

  • Please run these commands only once:
      $ mkdir -p ~/testarea/RPCPlotRel21/source
      $ cd ~/testarea/RPCPlotRel21/source
      $ git clone https://:@gitlab.cern.ch:8443/ustc/PhysicsRPCPlot.git
      $ source PhysicsRPCPlot/macros/setup/first_setup_rel21.sh

  • Afterwards, setup Athena release using these commands:
      $ cd ~/testarea/RPCPlotRel21/source
      $ source setup_atlas_athena.sh

  • How to commit code to GitLab master
    • See ATLAS software Git tutorial for ATLAS introduction to GitLab
    • Below, use "macros/plotL1Trigger.py" as example
    • "git pull" updates local repository to master repository
    • "git commit" commits changes to local Git repository
    • "git push" pushes local repository to master repository at ustc/PhysicsRPC
      $ git pull
      $ git commit macros/plotL1Trigger.py -m 'write here good commit message'
      $ git push

PhysicsRPCPlot overview

How to run macros from PhysicsRPCPlot

  • Setup ATLAS software release:
     $ cd ~/testarea/RPCRel21/source
     $ source setup_atlas_athena.sh

  • Check local version against GitLab master and if necessary update local repository:
     $ cd $TestArea/PhysicsRPC/PhysicsRPCPlot
     $ git status
     $ git pull

  • Read run and luminosity information from COOL:
     $ python $TestArea/PhysicsRPC/PhysicsRPCPlot/macros/getRunInfoFromCOOL.py -s --beg-run=303814 --end-run=303815

  • Get histogram files from the web:
     $ cd $TestArea/PhysicsRPC/PhysicsRPCPlot
     $ python macros/getHistFilesFromWeb.py -i data/run_info_2016.txt -o rpc-hists --year=2016

  • Make RPC efficiency plots:
     $ python $TestArea/PhysicsRPC/PhysicsRPCPlot/macros/plotRPCDetEff.py $TestArea/PhysicsRPC/PhysicsRPCPlot/rpc-hists -i data/run_info_2016.txt -s -w --draw-all
  • Additional options:
    • Replace "-w" with "-b" for batch processing
    • Replace "--draw-all" with --wait-func=plotEffRef to draw plots only from selected function (eg plotEffRef)
    • To select plots only for "BM_phiStrips_dR1_gg1" layer please add: "--key=BM_phiStrips_dR1_gg1"

  • Make RPC trigger efficiency and timing plots:
     $ python macros/plotL1Trigger.py rpc-hists --input=data/run_info_2017.txt -w -s

MuonTriggerValidation framework

MuonTriggerValidation package for RPC performance code

How to run athena code

  • Download input data:
      $ rucio list-dids data16_13TeV.*DESDM_MCP.r9264_p3082_p3082* | grep CONTAINER
      $ rucio download --nrandom=10 data16_13TeV.00298862.physics_Main.merge.DESDM_MCP.r9264_p3082_p3082

  • Checkout and compiling MuonTriggerValidation package
    • Please run these commands only once when setting up the release for the first time:
      $ mkdir -p ~/testarea/AtlasRPC
      $ cd ~/testarea/AtlasRPC
      $ mkdir source build
      $ cd source
      $ source /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/user/atlasLocalSetup.sh
      $ source ${AtlasSetup}/scripts/asetup.sh 21.0.13.1,here
      $ svnco MuonSpectrometer/MuonValidation/MuonTriggerValidation

  • Commands to compile code:
      $ cd $TestArea/../build
      $ cmake $TestArea
      $ cmake --build $TestArea/../build
      $ exit 

  • Setting up Athena release:
      $ cd ~/testarea/AtlasRPC/source
      $ source /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/user/atlasLocalSetup.sh
      $ source ${AtlasSetup}/scripts/asetup.sh 21.0.13.1,here
      $ source $TestArea/../build/$CMTCONFIG/setup.sh

  • Running athena job to produce histogram files:
    • Open $TestArea/MuonSpectrometer/MuonValidation/MuonTriggerValidation/python/L1MuonBarrelValidation_T2Algs.py
    • Change "athenaCommonFlags.FilesInput" to point to the downloaded DESDM_MCP files
    • Change "athenaCommonFlags.EvtMax" to 1000 or more events
    • Command to run athena job:
      $ athena $TestArea/MuonSpectrometer/MuonValidation/MuonTriggerValidation/python/L1MuonBarrelValidation_T2Algs.py

Histogram structure

  • o.root:/eff/: trigger efficiency histograms (Massimo)
  • o.root:/roimaps/: trigger RoI occupancy (Massimo)
  • rpchist.root: numerator and denominator histograms for panel efficiency (Stefano)
    • On the website, "rpchist.root" files are renamed to "panel_eff.root"

Setup at T0

  • Script setup for T0
    $ /afs/cern.ch/atlas/tzero/software/setup/usetuptrf.sh 21.0.28

References and links

Muon reconstruction

Muon geometry

COOL online data to extract run information

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2018-04-25 - RustemOspanov
 
    • 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-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback