-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlatexcleaner.py
58 lines (45 loc) · 3.15 KB
/
latexcleaner.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import re
# This is your text
text = '''Figure 5-19: The 2D histograms of events in ��2 and ���� for each configuration of final
level BH-DVCS events. The kinematic regions are bordered by the certain required
conditions: (1) ����′ > 2 GeV/c (green), (2) ��2 > 1 (GeV/c)2 (blue) and (3) �� > 2
GeV (red).
finite bin effects - center is not average mean diff
bin volume correction - distribution cutoffs
It is important to choose an optimal multidimensional binning scheme for the cross
section extraction. In this thesis, the bin shape was designed to be a four dimensional
box. Some bins are not well fitted into the box due to the phase space condition. For
example, Fig. 5-19 shows several triangular bins in the ��2 −���� plane at the left side,
whose hypotenuse is determined by ����′ > 2 GeV/c.
The advantage of finer binning is to provide improved density estimation. The
acceptance corrections and the finite bin width effects should increase with the bin
size. However, the bin size cannot be narrower than the effective resolutions in the
binning variables to minimize bin migration. Extremely small bins would not have
any statistical significance in each bin, which would lead to an invalid analysis. It is
important to determine the optimal binning.
The different proton momentum thresholds were considered for the |��| binning.
The momentum thresholds required for the proton momentum reconstruction, 0.3
GeV/c for CD, 0.42 GeV/c for FD inbending, 0.5 GeV/c for FD outbending lead to
|��| threhsold of 0.09, 0.17 and 0.23 GeV2 respectively. To consider the bin migration
effect, the |��| bin was loosely set as [0.110, 0.150, 0.250, 0.400, 0.600, 0.800, 1.000]
GeV2. The number of events in the first bin was estimated with CD protons only.
Likewise, the FD outbending data was not used for the second bin event counting.
There are not enough statistics above |t|=1 GeV2 to determine the cross sections with
reasonable precision from the RG-A fall 2018 data alone.
The ��2−���� phase space was evenly divided by the bin edges [1.000, 1.200, 1.456,
1.912, 2.510, 3.295, 4.326, 5.761, 7.000] (GeV/c)2 and [0.062, 0.090, 0.118, 0.155,
0.204, 0.268, 0.357, 0.446, 0.581]. The ��2 − ���� bin boundaries are presented in
��2 − ���� plane with the 2D histogram of entire experimental data set in Fig. 5-19
with an explanation of the kinematics boundaries at the caption
The �� distributions are binned in equal width bins of width 15∘. Other possible
binning schemes include (1) the adjusted equal width binning to widen the bin width
at the central region to compensate for low statistics, and (2) the equal frequency
binning. The chosen binning scheme has three advantages; (1) the binning scheme is
symmetric with respect to �� = 180∘, (2) the frequency is directly translated into the
probability distribution in the same ��2 − ���� − |��| bin, and (3) it was used by other
experiments [107, 129]."
...
'''
# Replace all non-LaTeX friendly characters with nothing
latex_friendly_text = re.sub(r'[^a-zA-Z0-9\s.,\-:;(){}\[\]=/]', '', text)
print(latex_friendly_text)