Hall A RCS Analyzer =================== RCS analyzer is a version of the Hall A C++/Root analyzer, which is used for reconstruction of physics quantities in the Photon spectrometer detectors. The reconstructed parameters are written into output file as a Root tree. This file then used to merge Photon spectrometer and HRS data, for further physics replay and physics analysis. Before running the analyzer make sure that database files /adaql3/home/adaq/e99114/rcs_db/db_calorimeter.dat /adaql3/home/adaq/e99114/rcs_db/db_veto.dat /adaql3/home/adaq/e99114/rcs_db/db_miscellaneous.dat have correct settings. Then chose the configuration of output variables, which you would like to include into the output root tree. Different versions of the configuration are named DEV, PRO, and PHY, and are differ on contents of output parameters. Lists of the parameters for different version (including default version) is shown next. NOTE: Default version can be changed any time, so do not use it ! List of parameters DEV PRO PHY Default Description ~~~~~~~~~~~~~~~~~~ ~~~ ~~~ ~~~ ~~~~~~~ ~~~~~~~~~~~ fEvtHdr YES YES YES YES Event header fG_EV_type YES YES YES YES Event type fG_VH_nadc YES - - YES Number of paddles with ADC > 0 fG_VH_adc[129] - - - - Array of ADC amplitudes of paddles fG_VH_adc_p[129] - - - YES Array of ADC amplitudes minus peds fG_VH_adc_c[129] YES YES - - Array of corrected ADC amplitudes fG_VH_ntdc1 YES - - YES Number of pads with TDC > 0 for Hit 1 fG_VH_tdc1[129] YES - - YES Array of TDC times for Hit 1 fG_VH_tdc1_c[129] - YES - - Array of corrected TDCs for Hit 1 fG_VH_ntdc2 YES - - YES Number of pads with TDC > 0 for Hit 2 fG_VH_tdc2[129] YES - - YES Array of TDC times for Hit 2 fG_VH_tdc2_c[129] - YES - - Array of corrected TDCs for Hit 2 fG_VH_ntdc3 YES - - YES Number of pads with TDC > 0 for Hit 3 fG_VH_tdc3[129] YES - - YES Array of TDC times for Hit 3 fG_VH_tdc3_c[129] - YES - - Array of corrected TDCs for Hit 3 fG_VH_nhit YES - - YES Number of electron hits fG_VH_ampl[129] - - - - Array of amplitudes of electron hits fG_VH_time[129] - - - - Array of times of electron hits fG_VV_nadc YES - - YES Number of paddles with ADC > 0 fG_VV_adc[89] - - - - Array of ADC amplitudes of paddles fG_VV_adc_p[89] - - - YES Array of ADC amplitudes minus peds fG_VV_adc_c[89] YES YES - - Array of corrected ADC amplitudes fG_VV_ntdc1 YES - - YES Number of pads with TDC > 0 for Hit 1 fG_VV_tdc1[89] YES - - YES Array of TDC times for Hit 1 fG_VV_tdc1_c[89] - YES - - Array of corrected TDCs for Hit 1 fG_VV_ntdc2 YES - - YES Number of pads with TDC > 0 for Hit 2 fG_VV_tdc2[89] YES - - YES Array of TDC times for Hit 2 fG_VV_tdc2_c[89] - YES - - Array of corrected TDCs for Hit 2 fG_VV_ntdc3 YES - - YES Number of pads with TDC > 0 for Hit 3 fG_VV_tdc3[89] YES - - YES Array of TDC times for Hit 3 fG_VV_tdc3_c[89] - YES - - Array of corrected TDCs for Hit 3 fG_VV_nhit YES - - YES Number of electron hits fG_VV_ampl[89] - - - - Array of amplitudes of electron hits fG_VV_time[89] - - - - Array of times of electron hits fG_GC_nadc YES - - YES Number of modules with ADC > 0 fG_GC_adc[705] - - - YES Array of ADC amplitudes of modules fG_GC_adc_p[705] - - - YES Array of ADC amplitudes minus peds fG_GC_adc_c[705] YES - - - Array of corrected ADC amplitudes fG_GC_asum_p - - - - Sum of ADC minus peds of fired blocks fG_GC_asum_c - - - - Sum of corrected ADCs of fired blocks fG_GC_nsadc YES - - YES Number of Sum_32 signals with ADC > 0 fG_GC_sadc[57] - - - YES Array of Sum_32 ADC values fG_GC_sadc_p[57] - - - YES Array of Sum_32 ADC minus pedestals fG_GC_sadc_c[57] YES YES - - Array of Sum_32 corrected ADC values fG_GC_sasum_p - - - - Sum of Sum_32 ADC minus pedestals fG_GC_sasum_c - - - - Sum of Sum_32 corrected ADC values fG_GC_nstdc1 YES - - YES Number of Sum_32 TDC > 0 for Hit 1 fG_GC_stdc1[57] YES - - YES Array of Sum_32 TDC times for Hit 1 fG_GC_stdc1_c[57] - YES - - Array of Sum_32 correct TDC for Hit 1 fG_GC_nstdc2 YES - - YES Number of Sum_32 TDC > 0 for Hit 2 fG_GC_stdc2[57] YES - - YES Array of Sum_32 TDC times for Hit 2 fG_GC_stdc2_c[57] - YES - - Array of Sum_32 correct TDC for Hit 2 fG_GC_nstdc3 YES - - YES Number of Sum_32 TDC > 0 for Hit 3 fG_GC_stdc3[57] YES - - YES Array of Sum_32 TDC times for Hit 3 fG_GC_stdc3_c[57] - YES - - Array of Sum_32 correct TDC for Hit 3 fG_GC_nclust - - - - Number of clusters in Calorimeter fG_GC_e - YES YES YES Energy (MeV) of the "main" cluster fG_GC_gx - YES YES YES X(cm) of gravity center of the clust fG_GC_gy - YES YES YES Y(cm) of gravity center of the clust fG_GC_mult - - - - Number of blocks in the cluster fG_GC_id - YES YES YES Particle identifier fG_MS_ntdc1 YES - - YES Number of chans with TDC>0 for Hit 1 fG_MS_tdc1[33] YES - - YES Array of TDC times for Hit 1 fG_MS_tdc1_c[33] - YES YES - Array of corrected TDCs for Hit 1 fG_MS_ntdc2 YES - - YES Number of chans with TDC>0 for Hit 2 fG_MS_tdc2[33] YES - - YES Array of TDC times for Hit 2 fG_MS_tdc2_c[33] - YES YES - Array of corrected TDCs for Hit 2 fG_MS_ntdc3 YES - - YES Number of chans with TDC>0 for Hit 3 fG_MS_tdc3[33] YES - - YES Array of TDC times for Hit 3 fG_MS_tdc3_c[33] - YES YES - Array of corrected TDCs for Hit 3 fG_MS_nadc YES - - YES Number of channels with ADC > 0 fG_MS_adc[25] - - - - Array of ADC values fG_MS_adc_p[25] YES YES - YES Array of ADC minus pedestal values fG_MS_tcoinc - - - - Coincidense time Run the analyzer as follows: ./analyzer and in the analyzer prompt type .x setupTTT.C When TTT is one of DEV, PRO, or PHY - is name of the version you chosed. Then you will be prompted to input run number, and number of events which you would like to analyze. Row CODA data will be taken from the file /adaqfs/halla/a-onl/runlink/run_NNNN where NNNN is the run number. In result an output Root file /net/l1.work1/e99114/TTT/rcsTTT_NNNN.root will be created. You can now work with the Root file with standard ROOT or the analyzer. To view a plots of the parameters included in the output Root file for version PHY, one can use macro plot.C. For this do not exit analyzer, but in the analyzer prompt type .x plot.C It will plot distributions of all parameters included into the output Root tree. These parameters are listed below: Usage ~~~~~ Here is an example session that analyzes 10000 events of run 1295 data file, by running macro setupPHY.C. Then for 5000 analyzed events distributions of output parameters are plotted by using macro plot.C. > ./analyzer ******************************************* * * * W E L C O M E to the * * H A L L A C++ A N A L Y Z E R * * * * Release 0.4 ALPHA 5 July 2000 * * Based on ROOT 3.01/06 23 July 2001 * * Development version * * * * For information visit * * http://hallaweb.jlab.org/root/ * * * ******************************************* CINT/ROOT C/C++ Interpreter version 5.15.07, July 7 2001 Type ? for help. Commands must be C++ statements. Enclose multiple statements between { }. analyzer [0] .x setupPHY.C // Macro setup.C Enter the run number: 1295 // Run number Enter events number: 10000 // Events number Source Data File: /adaqfs/halla/a-onl/runlink/run_1295 Output Data File: /net/l1.work1/e99114/PHY/rcsPHY_1295.root ..... ..... analyzer [1] .x plot.C Enter the run number: 1295 // Run number Input Root File: /net/l1.work1/e99114/PHY/rcsPHY_1295.root nentries = 9734 Enter events number: 5000 // Events number ..... ..... analyzer [2] .q > In result of the macro plot.C two postscript files of plots anal1.ps and anal2.ps are created. Documentation ~~~~~~~~~~~~~ More details on how to set database files and how to run the RCS analyzer see in document "How to prepare and run RCS analyzer" (file rcs_analyzer.ps)