cms-gem-daq-project / gem-plotting-tools

Repository for GEM commissioning plotting tools
GNU General Public License v3.0
1 stars 26 forks source link

New Feature: added script for comparing sbit thresh measurements #175

Closed bdorney closed 5 years ago

bdorney commented 5 years ago

Description

Compares SBIT threshold measurements. Also can plot x-axis in terms of charge units instead of DAC units.

Help menu:

% plotSbitThreshComp.py -h
usage: plotSbitThreshComp.py [-h] [-a] [-c CALFILEARM] [-n] [-s] filename

Arguments to supply to plotSbitThreshComp.py

positional arguments:
  filename              To Be Filled In

optional arguments:
  -h, --help            show this help message and exit
  -a, --alphaLabels     Provide this argument if alphanumeric characters exist
                        in the third column of the input file
  -c CALFILEARM, --calFileARM CALFILEARM
                        File specifying CFG_THR_ARM_DAC calibration per vfat.
                        If provided x-axis of each VFAT will be converted from
                        DAC units to charge units (fC). Format of file follows
                        from TTree::ReadFile() with brnach names:
                        'vfatN/I:slope/F:intercept/F'
  -n, --noLeg           Do not draw a TLegend on the output plots
  -s, --savePlots       Make *.png file for all plots that will be saved in
                        the output TFile

Types of changes

Motivation and Context

Needed a tool to easily compare SBIT Threshold Measurements.

How Has This Been Tested?

Example call:

plotSbitThreshComp.py -c $DATA_PATH/GE11-X-L-GHENT-0002/calFile_thrArmDAC_GE11-X-L-GHENT-0002.txt listOfScanDates_sbitThreshIterTrim_GE11-X-L-GHENT-0002.txt

Screenshots (if appropriate):

canvsbitrate_summary

Note for above measurements VFAT22 was masked from the trigger.

Checklist:

bdorney commented 5 years ago

Rebased off of HEAD of develop.