Skip to content

Commit 8ca2fd5

Browse files
committed
Modified md dis documentation
1 parent 8e1f756 commit 8ca2fd5

File tree

1 file changed

+92
-37
lines changed

1 file changed

+92
-37
lines changed

docs/data-csv.md

Lines changed: 92 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,14 @@ yplus
102102
- Files: `*.reco_dis.csv`
103103
- Conversion script: [csv_convert/csv_reco_dis.cxx](https://github.com/JeffersonLab/meson-structure/blob/main/csv_convert/csv_reco_dis.cxx)
104104

105-
Reconstructed (and true MC) event kinematic parameters including the reconstructed scattered electron information.
105+
Reconstructed (and true MC) event kinematic parameters including the reconstructed scattered electron information, beam particles, Lambda particles, and various t-value calculations.
106+
106107
EICRecon provides several algorithms calculating the DIS kinematics.
107-
We save them all to CSV. E.g. `jb_q2` correspond to Q2 obtained by Jacquet-Blondel method
108+
We save them all to CSV. E.g. `jb_q2` corresponds to Q2 obtained by Jacquet-Blondel method
108109
and `electron_q2` corresponds to scattered electron method.
109110

111+
#### DIS Kinematics Columns
112+
110113
Prefixes - EDM4EIC Collection name:
111114

112115
1. `da` - "InclusiveKinematicsDA"
@@ -115,40 +118,85 @@ Prefixes - EDM4EIC Collection name:
115118
4. `jb` - "InclusiveKinematicsJB"
116119
5. `ml` - "InclusiveKinematicsML"
117120
6. `sigma` - "InclusiveKinematicsSigma"
118-
7. `mc` - True MC values same as in `mc_dis` table
119-
8. `elec` - Reconstructed scattered electron particle
120-
121-
For each kinematic method (da, esigma, electron, jb, ml, sigma), variables are saved like:
122-
123-
1. `{}_x`
124-
2. `{}_q2`
125-
3. `{}_y`
126-
4. `{}_nu`
127-
5. `{}_w`
128-
129-
For the reconstructed scattered electron (from the Electron method), the following columns are saved:
130-
131-
1. `elec_id` - id - particle index in ReconstructedParticles collection
132-
2. `elec_pdg` - pdg - particle PDG code (should be 11 for electron)
133-
3. `elec_charge` - charge - electric charge
134-
4. `elec_energy` - energy - total energy [GeV]
135-
5. `elec_mass` - mass - invariant mass [GeV/c²]
136-
6. `elec_px` - px - momentum x-component [GeV/c]
137-
7. `elec_py` - py - momentum y-component [GeV/c]
138-
8. `elec_pz` - pz - momentum z-component [GeV/c]
139-
9. `elec_ref_x` - ref_x - reference point x-coordinate
140-
10. `elec_ref_y` - ref_y - reference point y-coordinate
141-
11. `elec_ref_z` - ref_z - reference point z-coordinate
142-
12. `elec_pid_goodness` - pid_goodness - particle ID quality metric
143-
13. `elec_type` - type - reconstruction type flag
144-
14. `elec_n_clusters` - n_clusters - number of associated clusters
145-
15. `elec_n_tracks` - n_tracks - number of associated tracks
146-
16. `elec_n_particles` - n_particles - number of daughter particles
147-
17. `elec_n_particle_ids` - n_particle_ids - number of particle ID objects
121+
7. `mc` - True MC values from event parameters
122+
123+
For each kinematic method (da, esigma, electron, jb, ml, sigma, mc), variables are saved like:
124+
125+
1. `{}_x` - Bjorken x
126+
2. `{}_q2` - Q² [GeV²]
127+
3. `{}_y` - Inelasticity y
128+
4. `{}_nu` - Energy transfer ν [GeV]
129+
5. `{}_w` - Invariant mass W [GeV]
130+
131+
#### T-value Columns
132+
133+
The script calculates several t-values (momentum transfer squared) using different beam configurations:
134+
135+
1. `mc_true_t` - True t-value from MC event parameters (dis_tspectator)
136+
2. `mc_lam_tb_t` - t calculated using MC Lambda and **true beam** proton
137+
3. `mc_lam_exp_t` - t calculated using MC Lambda and **experimental beam** proton
138+
4. `ff_lam_tb_t` - t calculated using far-forward reconstructed Lambda and **true beam**
139+
5. `ff_lam_exp_t` - t calculated using far-forward reconstructed Lambda and **experimental beam**
140+
141+
**Important Physics Note**:
142+
- **True beam** uses the actual MC beam proton momentum from the simulation
143+
- **Experimental beam** approximates what we would know in a real experiment:
144+
- Detects the beam mode (41, 100, 130, or 275 GeV) from the true momentum
145+
- Applies crossing angles: 25 mrad horizontal, 100 μrad vertical
146+
- This mimics experimental conditions where we don't know the exact beam momentum
147+
148+
#### Scattered Electron Columns
149+
150+
For the reconstructed scattered electron (from the Electron method):
151+
152+
1. `elec_id` - Particle index in ReconstructedParticles collection
153+
2. `elec_energy` - Total energy [GeV]
154+
3. `elec_px` - Momentum x-component [GeV/c]
155+
4. `elec_py` - Momentum y-component [GeV/c]
156+
5. `elec_pz` - Momentum z-component [GeV/c]
157+
6. `elec_ref_x` - Reference point x-coordinate
158+
7. `elec_ref_y` - Reference point y-coordinate
159+
8. `elec_ref_z` - Reference point z-coordinate
160+
9. `elec_pid_goodness` - Particle ID quality metric
161+
10. `elec_type` - Reconstruction type flag
162+
11. `elec_n_clusters` - Number of associated clusters
163+
12. `elec_n_tracks` - Number of associated tracks
164+
13. `elec_n_particles` - Number of daughter particles
165+
14. `elec_n_particle_ids` - Number of particle ID objects
166+
167+
#### MC Scattered Electron Momentum
168+
169+
1. `mc_elec_px` - MC truth scattered electron px [GeV/c]
170+
2. `mc_elec_py` - MC truth scattered electron py [GeV/c]
171+
3. `mc_elec_pz` - MC truth scattered electron pz [GeV/c]
172+
173+
#### Lambda Momentum Columns
174+
175+
MC truth Lambda:
176+
1. `mc_lam_px` - MC Lambda px [GeV/c]
177+
2. `mc_lam_py` - MC Lambda py [GeV/c]
178+
3. `mc_lam_pz` - MC Lambda pz [GeV/c]
179+
180+
Far-forward reconstructed Lambda:
181+
1. `ff_lam_px` - Far-forward Lambda px [GeV/c]
182+
2. `ff_lam_py` - Far-forward Lambda py [GeV/c]
183+
3. `ff_lam_pz` - Far-forward Lambda pz [GeV/c]
184+
185+
#### Beam Particle Momentum Columns
186+
187+
MC beam proton:
188+
1. `mc_beam_prot_px` - Beam proton px [GeV/c]
189+
2. `mc_beam_prot_py` - Beam proton py [GeV/c]
190+
3. `mc_beam_prot_pz` - Beam proton pz [GeV/c]
191+
192+
MC beam electron:
193+
1. `mc_beam_elec_px` - Beam electron px [GeV/c]
194+
2. `mc_beam_elec_py` - Beam electron py [GeV/c]
195+
3. `mc_beam_elec_pz` - Beam electron pz [GeV/c]
148196

149197
`evt` is the first column = event number.
150198

151-
So the total column names are:
199+
So the complete column list is:
152200

153201
```
154202
evt,
@@ -159,14 +207,21 @@ jb_x,jb_q2,jb_y,jb_nu,jb_w,
159207
ml_x,ml_q2,ml_y,ml_nu,ml_w,
160208
sigma_x,sigma_q2,sigma_y,sigma_nu,sigma_w,
161209
mc_x,mc_q2,mc_y,mc_nu,mc_w,
162-
elec_id,elec_pdg,elec_charge,elec_energy,elec_mass,elec_px,elec_py,elec_pz,elec_ref_x,elec_ref_y,elec_ref_z,elec_pid_goodness,elec_type,elec_n_clusters,elec_n_tracks,elec_n_particles,elec_n_particle_ids
210+
mc_true_t,mc_lam_tb_t,mc_lam_exp_t,ff_lam_tb_t,ff_lam_exp_t,
211+
elec_id,elec_energy,elec_px,elec_py,elec_pz,elec_ref_x,elec_ref_y,elec_ref_z,elec_pid_goodness,elec_type,elec_n_clusters,elec_n_tracks,elec_n_particles,elec_n_particle_ids,
212+
mc_elec_px,mc_elec_py,mc_elec_pz,
213+
mc_lam_px,mc_lam_py,mc_lam_pz,
214+
ff_lam_px,ff_lam_py,ff_lam_pz,
215+
mc_beam_prot_px,mc_beam_prot_py,mc_beam_prot_pz,
216+
mc_beam_elec_px,mc_beam_elec_py,mc_beam_elec_pz
163217
```
164218

165219
Notes:
166220

167-
- The electron particle information is only available when the Electron method successfully
168-
reconstructs the scattered electron
169-
- If the electron is not reconstructed, the `elec_*` columns will contain null values
221+
- The electron particle information is only available when the Electron method successfully reconstructs the scattered electron
222+
- If particles are not found/reconstructed, their columns will contain null values
223+
- T-values are calculated as t = (p1 - p2)² using 4-vectors
224+
- The experimental beam approximation is crucial for understanding systematic uncertainties in real experiments
170225

171226

172227
### mcpart_lambda

0 commit comments

Comments
 (0)