Difference between revisions of "Data Analysis - Overview"

From Xem2
Jump to navigationJump to search
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Calibration and Passes==
+
=Calibration and Passes=
 
 
===Overview===
 
The XEM2 analysis can be broken into two major parts; online and offline data-taking.  Online data-taking leverages the online GUI, and the 50k replays.  These will be discussed below.  Timing windows and reference times must be set for each trigger type that will be used in an experiment.  Additionally, for online analysis 'okay' calibrations need to be made for the hodoscopes, calorimeter, drift chamber, and noble gas cherenkov detectors.  These calibration coefficients typically roll over from the previous experiment and are determined using cosmic ray scans and/or early commissioning beam. 
 
 
 
The offline analysis is comprised of all the same steps, but the level of detail is increased to understand the systematic uncertainties, optimal calibration parameters, cut quantities.  This process typically takes several iterations as detector calibrations depend on one another in some cases.  For instance, the drift chambers are used to construct tracks, which can be used in the calorimeter calibration code to sum energy deposition in clusters of blocks around projected electron hits.  Most importantly, the hodoscope needs to be properly calibrated for almost all detector calibrations.
 
 
 
The analysis is generally broken up into passes.  In each pass, a specific set of calibrations and corrections are applied and the data is replayed.  Each set of data in a pass is typically saved to /cache/ to save for comparisons between passes.
 
  
 +
==Overview==
 +
The XEM2 analysis can be broken into two major parts; online and offline data analysis. 
 +
<br><br>
 +
'''Online data analysis''' leverages the online GUI, and the 50k replays.  These are used as a quick diagnostic that all detector components are reading out data as expected.  For online analysis 'okay' calibrations are made for the hodoscopes, calorimeter, drift chamber, and noble gas cherenkov detectors.  These calibration coefficients typically roll over from the previous experiment and are determined using cosmic ray scans and/or early commissioning beam.  These become the 'default' calibrations that are overwritten once more in-depth calibrations are done in the offline analysis.
 +
<br><br>
 +
'''Offline data analysis''' is a deep dive into the calibrations of each detector for each kinematic and trigger settings.  We are moving from 'okay' calibrations for all settings to the best possible calibrations we can have for each kinematic.  This is accomplished through many passes through the data where incremental improvements, calibrations / corrections are made. 
 +
<br>
 +
The first step is to pick the real physics signal.  This is done by placing appropriate reference time and timing window cuts.  Refer to the reference time and timing window section[https://wiki.jlab.org/xem2wiki/index.php/Data_Analysis_-_Timing_Windows_and_Reference_Times] for more details.  Timing windows and reference times must be set for each trigger type that will be used in an experiment.  Next, the hodoscope is calibrated.  This is typically done once for each experiment / trigger setting.  The hodoscope calibration doesn't change much over time.  It is mainly checked at this stage once for each kinematic.
 +
Next, the PID detectors are gain matched.  That is, software gain coefficients are applied to correct for any differences in high-voltage setting for the PMTs.  This is done by following the instructions for calorimeter and Cherenkov calibration.  In the case of the SHMS, special delta scan and defocused run was done to ensure there were enough events in each block to do the calibration.  The analysis is generally broken up into passes.  In each pass, a specific set of calibrations and corrections are applied and the data is replayed.  Each set of data in a pass is typically saved to /cache/ to save for comparisons between passes.
 +
<br><br>
 +
Once all the calibrations are completed, systematic checks are performed on efficiencies and live-times.  Luminosity scans are performed for the cryogenic targets and pion and charge-symmetric backgrounds are studied.
 +
<br><br>
 
Carlos Yero made an amazing analysis note based on his thesis experiment, which can be accessed by logging into the private [https://hallcweb.jlab.org/doc-private/DocumentDatabase Hall C DocDB] and searching for entry 1032.
 
Carlos Yero made an amazing analysis note based on his thesis experiment, which can be accessed by logging into the private [https://hallcweb.jlab.org/doc-private/DocumentDatabase Hall C DocDB] and searching for entry 1032.
  
===Pedestal Defaults===
+
==Hodoscope Calibration==
The FADC250 modules used for data analysis automatically determine the pedestal by looking at the first 4 samples of the programmable lookback (PL), which corresponds to the same four samples of the programmable trigger window (PTW).  The average of the fisrt four samples is saved as the Pulse Pedestal, which is saved in the EVIO file and used inside hcana to calculate the pulse integral <code>PulseInt = PulseIntRaw - PulsePed</code>.  When any of the first four samples are above threshold of the PTW, the FADC250 sets the Pulse Pedestal to zero.  Prior to April 2020 hcana would throw out events, which had a PulseAmpRaw==0.  In an April 2020 update, Mark Jones added 'cut' parameters to set a default pedestal for all ADCs that are not the hodoscope.  The change for the hodoscope is outlined in the below for the ScintillatorPlane::ProcessHits function of the THcScintillatorPlane Class. 
+
More details found in specific calibration section.
 
+
==Drift Chamber Calibration==
====THcScintillatorPlane.cxx Changes====
+
More details found in specific calibration section.
<blockquote>
+
==Noble Gas Cherenkov Calibration==
ScintillatorPlane::ProcessHits
+
More details found in specific calibration section.
* Selects first TDC PMT hit within the TDC_min and TDC_max windows.
+
==Heavy Gas Cherenkov Calibration==
* Old code
+
Not really used for our analysis
** If Raw ADC Amp = 0 , then do not use hit.
+
==Calorimeter Calibration==
** First ADC hit within ADCTDC_min < TDC_time – ADC_time < ADCTDC_max
+
More details found in specific calibration section.
** If no ADC hit is found then PMT hit is not “good”. Need both ADC and TDC info for “good” PMT hit.
 
* <font color=red>New Code</font>
 
** If Raw ADC amp = 0, then use hit and test ADC hit setting ADC Amp =200.
 
*** Adc Amp=200 sets the timewalk correction to zero.
 
** First ADC hit within ADCTDC_min < TDC_time – ADC_time < ADCTDC_max with largest ADC value
 
** If none found then selects one with smallest TDC_time – ADC_time .
 
** So if there is an ADC hit for paddle PMT, then it will set “good” PMT hit if there is TDC PMT hit.
 
;Mark Jones DocDB ref. 1055 v2.
 
</blockquote>
 
====hcana April-2020 Changes to Other Detectors====
 
<blockquote>
 
*The FADC uses the first four samples of the FADC time window to determine the pedestal.
 
* In a pulse is detected in the first four samples
 
** FADC sets the raw pulse amp for all pulses in the window to zero
 
** The pedestal is not the true pedestal for later pulses in the window.
 
* Old Code : Throw out the detector hits when found PulseAmpRaw ==0
 
* New Code: When PulseAmpRaw ==0
 
** Uses an average pedestal value, PedDefault, that is a parameter for each detector PMT.
 
** Calculates the PulseInt = PulseIntRaw – PedDefault
 
** Set PulseAmp=0. Can be used as tag to look for these events.
 
** Hodoscope detector is special. It does not use PedDefault. The PulseAmp is used for time walk correction. So when PulseAmpRaw==0, set PulseAmp=200.
 
;Mark Jones DocDB ref. 1056 v1.
 
<blockquote>
 
 
 
==Notes==
 
<references />
 
 
 
 
 
Pedestal defaults are read directly from the fADC250 and are typically 4 samples long.  In some cases, a pulse can occur when the fADC is attempting to determine the pedestal.  In this case we need to give hcana a default pedestal, which is determined from the same PMT.  Pedestals tend to be stable, so setting pedestal defaults at the beginning of the run and checking periodically is probably enough.
 
* Check: Every 100 runs
 
* Responsibility: Casey Morean
 
* Commissioning, overview GUI added to web
 
[//https://hallcweb.jlab.org/doc-private/ShowDocument?docid=1056 Hodoscope Changes]
 
[//https://hallcweb.jlab.org/doc-private/ShowDocument?docid=1056 HCANA-April2020]
 
 
 
===Reference Times===
 
<font size=+1>The reference times must be determined before moving onto the timing windows.</font>  We use multihit TDCs and ADCs, which can have multiple hits recorded.  Given the rate of physics triggers, and the wide width of the drift chamber reference time, it is quite likely the wrong hit is taken.  We shrink the timing windows by cutting on the raw adc or tdc spectra
 
* Check: Every kinematic, every change of trigger
 
* Responsibility: Casey Morean
 
* Commissioning, overview GUI added to web
 
 
 
===Timing window Calibration===
 
 
 
* Check: Every kinematic, every change of trigger
 
* Responsibility: Casey Morean
 
* Commissioning, overview GUI added to web
 
 
 
===Hodoscope Calibration===
 
 
 
===Drift Chamber Calibration===
 
 
 
===Noble Gas Cherenkov Calibration===
 
 
 
===Heavy Gas Cherenkov Calibration===
 
 
 
===Calorimeter Calibration===
 
 
 
==Online Monitoring==
 
===Runlist Aggregation===
 
===Deadtime Monitoring===
 
===Good electron rate / Rate Information===
 
===Charge Monitor===
 
===Spectrometer Angle Monitor===
 
  
 
==Studies==
 
==Studies==
 +
===Electronic live time===
 +
===Luminosity Scan===
 
===Beam Current Studies===
 
===Beam Current Studies===
 
===Optics Studies===
 
===Optics Studies===
 
===Open Trigger Study===
 
===Open Trigger Study===

Latest revision as of 17:33, 28 February 2023

Calibration and Passes

Overview

The XEM2 analysis can be broken into two major parts; online and offline data analysis.

Online data analysis leverages the online GUI, and the 50k replays. These are used as a quick diagnostic that all detector components are reading out data as expected. For online analysis 'okay' calibrations are made for the hodoscopes, calorimeter, drift chamber, and noble gas cherenkov detectors. These calibration coefficients typically roll over from the previous experiment and are determined using cosmic ray scans and/or early commissioning beam. These become the 'default' calibrations that are overwritten once more in-depth calibrations are done in the offline analysis.

Offline data analysis is a deep dive into the calibrations of each detector for each kinematic and trigger settings. We are moving from 'okay' calibrations for all settings to the best possible calibrations we can have for each kinematic. This is accomplished through many passes through the data where incremental improvements, calibrations / corrections are made.
The first step is to pick the real physics signal. This is done by placing appropriate reference time and timing window cuts. Refer to the reference time and timing window section[1] for more details. Timing windows and reference times must be set for each trigger type that will be used in an experiment. Next, the hodoscope is calibrated. This is typically done once for each experiment / trigger setting. The hodoscope calibration doesn't change much over time. It is mainly checked at this stage once for each kinematic. Next, the PID detectors are gain matched. That is, software gain coefficients are applied to correct for any differences in high-voltage setting for the PMTs. This is done by following the instructions for calorimeter and Cherenkov calibration. In the case of the SHMS, special delta scan and defocused run was done to ensure there were enough events in each block to do the calibration. The analysis is generally broken up into passes. In each pass, a specific set of calibrations and corrections are applied and the data is replayed. Each set of data in a pass is typically saved to /cache/ to save for comparisons between passes.

Once all the calibrations are completed, systematic checks are performed on efficiencies and live-times. Luminosity scans are performed for the cryogenic targets and pion and charge-symmetric backgrounds are studied.

Carlos Yero made an amazing analysis note based on his thesis experiment, which can be accessed by logging into the private Hall C DocDB and searching for entry 1032.

Hodoscope Calibration

More details found in specific calibration section.

Drift Chamber Calibration

More details found in specific calibration section.

Noble Gas Cherenkov Calibration

More details found in specific calibration section.

Heavy Gas Cherenkov Calibration

Not really used for our analysis

Calorimeter Calibration

More details found in specific calibration section.

Studies

Electronic live time

Luminosity Scan

Beam Current Studies

Optics Studies

Open Trigger Study