Info

  • This page summarises links and information for RPC offline analysis, including the following functions:
    • gas gaps currents study as a function of HV, luminosity, temperature with and without the beam-induced background
    • matching of DCS variables, including gas gaps current, HV, Vth, efficiency
    • plotting the data of a specific run extracted from the DCS system
    • extracting DCS variable data from DDV server and plotting

Code setup

Athena, 21.0.125

  • Cloning the repository and building the package, the first time only
     $ mkdir -p ~/testarea/RPCPlot21
     $ cd ~/testarea/RPCPlot21
     $ mkdir build run source
     $ cd source
     $ git clone https://:@gitlab.cern.ch:8443/ustc/RPC/PlotRPCDCS.git
     $ cd ~/testarea/RPCPlot21
     $ source source/PlotRPCDCS/macros/setup/first_setup_rel21.sh
     $ cd source
     $ source setup_atlas_analysis.sh

  • On every login
     $ cd ~/testarea/RPCPlot21/source
     $ source setup_atlas_analysis.sh
     $ cd build 
     $ make -j4
     $ cd build
     $ cmake ../source

AthAnalysisBase, 2.4.30

  • Commands to setup code for the first time:
     $ mkdir -p testarea/RelDCS
     $ cd testarea/RelDCS
     $ git clone ssh://git@gitlab.cern.ch:7999/ustc/RPC/PlotRPCDCS.git
     $ source PlotRPCDCS/macros/setup/setup_atlas_analysis_release_rel20.sh
     $ cd PlotRPCDCS/cmt
     $ cmt config
     $ source setup.sh
     $ exit

  • Setting up cmt and then running make in the same shell session can cause errors - suggest to exit and start new session
     $ cd testarea/RelDCS
     $ source PlotRPCDCS/macros/setup/setup_atlas_analysis_release_rel20.sh
     $ cd PlotRPCDCS/cmt
     $ make

Code running

Gas gaps currents study as a function of HV, luminosity, temperature with and without the beam-induced background

  • Before running the codes always run: source PlotRPCDCS /macros/setup/setup_atlas_analysis_release_rel20.sh

  • Analysis gas volume current as function of Lumi
    $ python macros/runCurrentAnalysisWithCool.py --beg-run=356250 --end-run=356251 --badalias-file=data/CurrentData_run356250/disconnected_Igap_DCS_IvsLumi.txt --curr-file=data/CurrentData_run356250/db-Igap-actual.vMean-20181018-112300.txt -w --panel1=BOS1 --panel2=DZ2 --do-ivslumi

  • Analysis Igap vs HV with beam induced background
    $ python $TestArea/PlotRPCDCS/macros/plotHVScan.py $TestArea/PlotRPCDCS/data/HVscan-withbeam --badaliasDCS-file=data/HVscan-withbeam/badgaps/disconnected_Igap_DCS.txt  --do-plot-beam --panel=BOL2 -w

  • Analysis Igap vs HV w/o beam induced background
    $ python $TestArea/PlotRPCDCS/macros/plotHVScan.py $TestArea/PlotRPCDCS/data/HVscan-2018-09-13  --badaliasDCS-file=data/HVscan-2018-09-13/disconnected_Igap_DCS.txt  --do-plot --panel=BOL2 -w

  • Analyis Rampup test
    $ python macros/runCurrentAnalysisWithCool.py --beg-run=356250 --end-run=356251 --badalias-file=data/Ramp_up_7Dec/disconnected_Igap_DCS_rampup.txt --curr-file=data/Ramp_up_7Dec/db-Igap-actual.vMean-20180812-170700.txt -w --panel1=BOS1 --panel2=DZ2 --do-rampup

Matching of DCS variables, including gas gaps current, HV, Vth, efficiency

  • Environment setup
    $ cd RPCPlot21/source/
    $ source setup_atlas_analysis.sh
    $ cd ../run
  • Read alias files of gas gap current, HV, vth, efficiency
    $ python $TestArea/PlotRPCDCS/macros/matchDCS.py --do-Readinfo 
  • Output matching lists and root files in specified area, for example:
    $ panel_name="BML"
    $ python $TestArea/PlotRPCDCS/macros/matchDCS.py --do-VthvsEff --panel=${panel_name} -w
    $ python $TestArea/PlotRPCDCS/macros/matchDCS.py --do-IgapHVvsVth --panel=${panel_name} -w
    $ python $TestArea/PlotRPCDCS/macros/matchDCS.py --do-IgapvsHV --panel=${panel_name} -w
    $ python $TestArea/PlotRPCDCS/macros/matchDCS.py --do-IgapvsEff --panel=${panel_name} -w

Plotting the data of a specific run extracted from the DCS system

  • Match gas gap current and HV and draw graphs of them
    $ python $TestArea/PlotRPCDCS/macros/drawDCSdata_matchpanel.py -w

Extracting DCS variable data from DDV server and plotting

  • Extract all gas gap currents and HV data for one run (command takes about 2 hours to complete):
    $ cd  ~/testarea/RPCPlot21/source/PlotRPCDCS
    $ python macros/readDataDDV.py --beg-run=358615 --end-run=358615 --do-all
  • Extract data for one run for selected gas gaps and selected HV channels:
    $ python macros/readDataDDV.py --beg-run=364292 --end-run=364292 --do-igap --dp-key=ATLRPCL2:CAEN/PS_RPC_DOWN/branchController15/easyCrate5/easyBoard17/channel04 
    $ python macros/readDataDDV.py --beg-run=364292 --end-run=364292 --do-all --gap-key=BMS4A16.CO.* --hv-dp-key=ATLRPCH1:CAEN/PS_RPC_UP/branchController01/easyCrate0/easyBoard06/channel00.*
  • Plot extracted current data:
    $ python macros/plotDDV.py Run364292 --wait --do-all
  • Extract all sensor data for one run:
    $ python macros/readDataDDV.py --beg-run=364292 --end-run=364292 --do-sensor
  • Plot extracted sensor data, and save the graphs in a folder :
    $ python macros/plotDDV.py Run364292 --do-sensor --save --store-pics=plot_sensors
  • Above python code uses wget command to extract data from DDV server, for example:
    wget --post-data "queryInfo=atlas_pvssRPC, element_name, ATLRPCH1:CAEN/PS_RPC_UP/branchController01/easyCrate4/easyBoard11/channel063.actual.vMean, 19-08-2018 04:14, 19-08-2018 23:02, , , , , ,no, , +1" http://atlas-ddv.cern.ch:8089/multidata/getDataSafely
  • A website to show graphs and tables: DDV Data

Useful links:

RpcDCSExpert page

DCS trainning

RPC page by Rustem

RPCOffline

DDV server

Edit | Attach | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r11 - 2021-05-07 - XiWang
 
    • 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