User:Dalton

From GlueXWiki
Revision as of 16:03, 6 April 2021 by Dalton (Talk | contribs)

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

Mark Dalton's User Page

Links

Off Site Links

coding

On Site Links

This Wiki Links

git

Instructions for Working with GlueX Git Repositories

Guide to Using Git

Notes

git

After each commit remember to

  • push to origin
  • issue pull request
  • revert local master
  • pull remote changes

Inverses

  • add <-> reset

Useful commands

  • find difference with 2 versions previous
    • git diff HEAD~2
  • If you've made 10 local commits, push changes to origin, return to 10 versions previous and pull most recent changes
    • EITHER git push origin master:dalton_new_branch_name
      • OR git branch new_local_branch_name
    • git reset --hard HEAD~10
    • git pull
  • deleta a brach from github
    • git push origin master:dalton_new_branch_name

sim-recon Plugins

DAQTree

DAQTree plugin

IntegralWidthvsNumSamps

  • Intended to work with mode 8 LED data (waveforms).
  • For each channel, will integrate the signal varying the start and stop sample relative to the threshold crossing.
    • Find the relative width for each configuration of integral and find the minimum width.
    • Do this for case with and without pedestal subtraction.
    • log 3345807
  • Also used for comparing signals end-to-end to investigate LED width


F250_mode8_pedestal

BCAL_attenlength_gainratio

Plugin to determine the attenuation length and gain ratio for the BCAL channels

  • For each channel will
    • Fill a histogram of log integral ration versus position
    • Fit a line to the histogram
    • Extract the attenuation length and gain ratio from fit
  • Log entries

bcal_calib_cosmic_cdc

Plugin to do BCAL energy calibration using cosmic rays.

cron

crontab -e

0-59 * * * *  $HOME/work/epics/cron_cratesettemps_BCALFCAL.sh > /dev/null
0-59 * * * *  $HOME/work/epics/cron_cratesettemps_FDCCDC.sh > /dev/null



Analysis

ω

[1]

Epics

  • Graphical Viewer MyaViewer
  • Text access
    • myget : sequenc of channel events for 1 channel
    • myData : All changes in channel values (like myget)
    • mySampler : Interpolated values at regular intervals
      • mySampler -b "2016-02-13 12:00:00" -s 1m -n 5760 IPM5C11.YPOS IPM5C11B.YPOS bpu_mean_y AC:inner:position:y >> position_Y.txt
    • myStats : Statistics for a particular channel
      • myStats -P -b'2015-12-06 00:15' -e^5m -lvmebcal1:sens1Temp,vmebcal1:sens3Temp,vmebcal1:sens5Temp,vmebcal1:sens6Temp,vmebcal1:sens6Temp,vmebcal1:sens8Temp
      • myStats -P -b'2016-02-14 13:09' -e'2016-02-14 13:18' -lMQPAD00M,IPMAD00C.XPOS,IPMAD00C.YPOS,IPM5C11B.XPOS,IPM5C11B.YPOS,IPM5C11.XPOS,IPM5C11.YPOS
  • MyaViewer -signal "IPMAD00C.XPOS IPMAD00C.YPOS MQPAD00M" -type Strip
  • Possibly useful from offsite??

BCAL Attenuation Length and Gain Ratios

  • Analyze data with plugin BCAL_attenlength_gainratio

Root

Plotting Style

.rootrc

Rint.History .root.history
Rint.Logon /home/dalton/rootlogon.C

rootlogon.C


int rootlogon()
{
	printf(".rootrc forced running of ~/rootlogon.C\n");
	gROOT->SetStyle("Plain");

	gStyle->SetPadRightMargin(0.05);
	gStyle->SetPadLeftMargin(0.15);
	gStyle->SetPadBottomMargin(0.12);
	gStyle->SetPadTopMargin(0.12);

	gStyle->SetTitleSize(0.06,"xyz");
	gStyle->SetTitleSize(0.07,"h");
	gStyle->SetLabelSize(0.06,"xyz");
	gStyle->SetTitleX(0);
	gStyle->SetTitleAlign(13);
	gStyle->SetNdivisions(505,"xy");

	gStyle->SetTitleOffset(0.9, "X");
	gStyle->SetTitleOffset(1.1, "Y");

	gStyle->SetStatH(0.20);
	gStyle->SetStatW(0.30);
	gStyle->SetStatX(0.99);
	gStyle->SetStatY(0.99);

	gStyle->SetOptStat(0);
	gStyle->SetOptFit(0);
}

Cailbration

GlueX Calibration output

location

/volatile/halld/home/gxproj3/calib_jobs/


FADC Calibration

cd ~/work/DAQ/new/daq_dev_vers/daq/vme/src/epics/

master configuration files at

/gluonfs1/home/hdops/CDAQ/daq_dev_v0.31/daq/config/hd_all

parameters found at

/gluex/CALIB/ALL/fadc250/default