Performing Dithering Corrections

From PREX Wiki
Revision as of 15:51, 25 July 2019 by Catherinef (Talk | contribs) (Created page with "This code uses data taken during beam modulation, or dithering. It uses bpms 4aX, 4aY, 4eX, 4eY, and 12X and detectors asym_usl, asym_usr, asym_dsl, and asym_dsr as dependent...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This code uses data taken during beam modulation, or dithering. It uses bpms 4aX, 4aY, 4eX, 4eY, and 12X and detectors asym_usl, asym_usr, asym_dsl, and asym_dsr as dependent variables (DVs). It calculates the dithering slopes and uses either the slopes from a single run or the average slopes over the whole slug to correct the DVs.

Getting Started

  1. Login to the apar account on aonl2: ssh apar@aonl2
  2. cd ~/PREX/prompt/beam-mod

Describe how to create a root file that has all the slopes here

Setting up for analysis

To get set up, all you have to do is make sure you know the run number you would like to correct.

QuerySlugNumber.C

Give this macro your run number, and it will tell you what slug it belongs too

black.list

This file is a list of all the runs whose slopes are "outliers" and should not be used. To check that your slopes are good:


Running the analysis

There are two scripts that have several options that you can control.

DitAlias.C

This macro will use slopes from either a specific run number or the average from a slug, and uses them to correct the detector asymmetries. It draws plots of the detector asymmetry before and after the correction.

CorrectTree.C

This macro will use the slug average to correct the detector asymmetries. It saves the uncorrected and corrected detector asymmetries to a root file.