Skip to content

Commit 0efe7a6

Browse files
committed
Last CALTECH modification
1 parent 901ce6a commit 0efe7a6

File tree

3 files changed

+23
-13
lines changed

3 files changed

+23
-13
lines changed

Analysis_SiPM_Tile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,8 @@ def fill_TimeResHisto(k, dt, h2D, out_list, tagin, title_tag, canvas, save_canva
627627

628628
avg_prob = p_max/(nbx*nby)
629629
iy, ix = idx_max
630+
if k == 24:
631+
ix -= 2
630632
x_start = h.GetXaxis().GetBinCenter(ix+1) - 0.5*h.GetXaxis().GetBinWidth(ix+1)
631633
x_stop = h.GetXaxis().GetBinCenter(ix+nbx) + 0.5*h.GetXaxis().GetBinWidth(ix+nbx)
632634
y_start = h.GetYaxis().GetBinCenter(iy+1) - 0.5*h.GetYaxis().GetBinWidth(iy+1)

TimeRes_explorer.ipynb

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 12,
5+
"execution_count": 1,
66
"metadata": {},
7-
"outputs": [],
7+
"outputs": [
8+
{
9+
"name": "stdout",
10+
"output_type": "stream",
11+
"text": [
12+
"Welcome to JupyROOT 6.10/08\n"
13+
]
14+
}
15+
],
816
"source": [
917
"import numpy as np\n",
1018
"from scipy.interpolate import PchipInterpolator\n",
11-
"import matplotlib.pyplot as plt\n",
19+
"import matplotlib.pyplot as plt \n",
1220
"from lib.histo_utilities import create_TH1D\n",
1321
"import ROOT as rt\n",
1422
"from prettytable import PrettyTable"
@@ -27,11 +35,11 @@
2735
},
2836
{
2937
"cell_type": "code",
30-
"execution_count": 3,
38+
"execution_count": 4,
3139
"metadata": {},
3240
"outputs": [],
3341
"source": [
34-
"fname = '../../../www/FNAL_TB_1811/vr2/Run_1694-1733_Analysis_SiPM_Tile_vr2/TimeResolution_ch14.txt'\n",
42+
"fname = '../../../www/FNAL_TB_1811/vr2/Run_1694-1733_Analysis_SiPM_Tile_vr2/TimeResolution_ch14_FullRefScan.txt'\n",
3543
"d = []\n",
3644
"\n",
3745
"with open(fname, 'r') as f:\n",
@@ -45,7 +53,7 @@
4553
},
4654
{
4755
"cell_type": "code",
48-
"execution_count": 4,
56+
"execution_count": 5,
4957
"metadata": {},
5058
"outputs": [
5159
{
@@ -63,7 +71,7 @@
6371
},
6472
{
6573
"cell_type": "code",
66-
"execution_count": 71,
74+
"execution_count": 6,
6775
"metadata": {},
6876
"outputs": [
6977
{
@@ -112,7 +120,7 @@
112120
},
113121
{
114122
"cell_type": "code",
115-
"execution_count": 93,
123+
"execution_count": null,
116124
"metadata": {},
117125
"outputs": [],
118126
"source": [
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
-->Print: AllTracks Amp Int PosRaw PosSel+ PosWeight TimeResRaw TimeResRaw2D TimeRes2DAmp
22
-->XYcenter-width: 15 25 10
3-
-->SpaceBinSize: 0.5
3+
-->SpaceBinSize: 1.
44
-->TracksCleaning: CutOnCh9 ntracks==1 chi2<5
55
-->Var_photek: gaus_mean
66
#-->Var_photek: gaus_mean LP1_50 LP1_60 FL_50
77
-->Var_amp: None
88
#-->Var_time: LP2_2 LP2_3 LP2_5 LP2_7 LP2_10 LP2_5mV LP2_10mV LP2_20mV LP2_30mV LP2_50mV LP2_100mV LP1_40 LP1_50 LP1_60 LP1_300mV LP1_350mV LP1_400mV LP1_450mV LP1_500mV LP1_550mV LP1_600mV FL_40 FL_50 FL_60 FL_300mV FL_350mV FL_400mV FL_450mV FL_500mV FL_550mV FL_600mV
99
#-->Var_time: LP1_40 LP1_50 LP1_60 LP1_400mV LP1_500mV LP1_600mV FL_40 FL_50 FL_60 FL_400mV FL_500mV FL_600mV
10-
-->Var_time: LP1_50 FL_50
10+
-->Var_time: LP2_3 LP1_50 FL_50
1111
ch_num idx_time idx_dut idx_ref type cut min max shape SiPM
1212
9 1 0 -1 photek I 0 200 None None
1313
14 1 0 9 time A 600 1200 8x8 None
1414
15 1 0 9 time A 600 1200 11x7 None
15-
#18 2 -1 -1 photek I 0 200 None None
16-
24 2 0 -1 time&amp14 A 200 800 8x8 3x3
17-
25 2 0 -1 time&amp15 A 200 800 11x7 3x3
15+
18 2 -1 -1 photek I 0 200 None None
16+
24 2 0 18 time&amp14 A 200 800 8x8 3x3
17+
25 2 0 18 time&amp15 A 200 800 11x7 3x3

0 commit comments

Comments
 (0)