DAC Calibration

From GlueXWiki
Revision as of 09:59, 14 August 2014 by Wmcginle (Talk | contribs)

Jump to: navigation, search

To change the DAC values:

Go to the directory that contains the global configuration files: /gluonfs1/home/hdbcalops/daq_dev_vers/daq/config/hd_bcal_n or /gluonfs1/home/wmcginle/daq_dev_vers/daq/config/hd_bcal_s

Open a pulser configuration file (i.e led_upstream.cnf)

Change FADC250_COM_VER upstreamLED to FADC250_COM_VER DAC3200

Now for the upstream LED pulser configuration the DAC values should all read 3200. This can be checked in the read out list after the download step.

Take pedestal run setting all DAC values to 3200 with all BCAL modules voltages on.

Then go back into the global configuration file and change FADC250_COM_VER DAC3200 to FADC250_COM_VER DAC3300

Take pedestal run setting all DAC values to 3300 with all BCAL modules voltages on.

Make root files from your data runs with DAC=3200 and DAC=3300 using the command hd_root -PPLUGINS=DAQ,DAQTree bcal_XXXX -o bcal_XXXX

Copy these root files over to the directory /gluex/Subsystems/BCAL/scripts/DAC_Calibration

Run root

Use the root command .L BCAL_CALIB_Reiterative.C+

CalibrateDAC("rocbcalnorth_3200.cnf","bcal_DAC3200","rocbcalnorth_3300.cnf","rocbcalnorth_3300.cnf")

This will output configuration files called rocbcalX_newconfigurationfiles.cnf

Copy these new configuration files over to /gluex/CALIB/BCAL/fadc250

Change their names to anything that you can read in with the global configuration files to make a test run to check the pedestal values ( i.e. rocbcalX_upstreamLED.cnf)

Go back to the globcal configuration files at /gluonfs1/home/hdbcalops/daq_dev_vers/daq/config/hd_bcal_n or /gluonfs1/home/wmcginle/daq_dev_vers/daq/config/hd_bcal_s and change FADC250_COM_VER DAC3300 to FADC250_COM_VER upstreamLED

Check the pedestal values using the new DAC values and if they are good then change all the other configuration files to have the new DAC values for the crates that you just calibrated.