Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Caracterizacion de Centelleadores para la detección de Rayos Gamma
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carlos Marcelo Rubin de Celis
Caracterizacion de Centelleadores para la detección de Rayos Gamma
Commits
a6750134
Commit
a6750134
authored
3 years ago
by
Carlos Marcelo Rubin de Celis
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
6a194489
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Calculo_de_eficiencia.ipynb
+403
-0
403 additions, 0 deletions
Calculo_de_eficiencia.ipynb
with
403 additions
and
0 deletions
Calculo_de_eficiencia.ipynb
0 → 100644
+
403
−
0
View file @
a6750134
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"import math\n",
"#Funcion para calcular una integral tipo gaussiana uniforme.\n",
"#a = Altura del pico\n",
"#b = Centro de la campana\n",
"#sigma = Desviación estándar\n",
"#interv = intervalos de división para integración\n",
"#li = límite inferior de la curva\n",
"#ls = límite superior de la curva\n",
"def _gauss_integral(a, b, sigma, interv, li, ls):\n",
" incr = (ls-li)/interv\n",
" res = 0\n",
" for i in range(interv):\n",
" r = li+i*incr\n",
" r_1 = li+(i+1)*incr\n",
" b_m = math.exp(-(r-b)*(r-b)/(2*sigma*sigma))\n",
" b_M = math.exp(-(r_1-b)*(r_1-b)/(2*sigma*sigma))\n",
" res += (b_M+b_m)*incr/2\n",
" return(a*res)\n",
"\n",
"#Variables\n",
"inter= 1000000"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Centelleador LYSO - Fuente Cobalto 60"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Para el PICO 1 1173 KeV: 670087.9485019445\n"
]
}
],
"source": [
"#PICO 1 1173 KeV\n",
"height = 4118.21\n",
"center = 1169.99\n",
"sigma = 131.73\n",
"li = 1075\n",
"ls = 1250\n",
"print(\"Para el PICO 1 1173 KeV: \"+str(_gauss_integral(height, center, sigma, inter, li, ls)))"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Para el PICO 2 1333 KeV: 36573.54376706954\n"
]
}
],
"source": [
"#PICO 2 1333 KeV\n",
"height = 2516.36715-2200\n",
"center = 1326.59876\n",
"sigma = 128.014016\n",
"li = 1260\n",
"ls = 1380\n",
"print(\"Para el PICO 2 1333 KeV: \"+str(_gauss_integral(height, center, sigma, inter, li, ls)))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Centelleador BGO - Fuente Cobalto 60"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Primer fotopico 1173 KeV: 481992.1546793344\n"
]
}
],
"source": [
"#Tipo de Centelleador : BGO\n",
"#Primer fotopico 1173 KeV\n",
"\n",
"height = 5530.68837-2500\n",
"center = 1171.05450\n",
"sigma = 85.0379959\n",
"li = 1050\n",
"ls = 1250\n",
"print(\"Primer fotopico 1173 KeV: \"+str(_gauss_integral(height, center, sigma, inter, li, ls)))"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Segundo Fotopico 1333 KeV: 252038.5177349729\n"
]
}
],
"source": [
"#Tipo de Centelleador : BGO\n",
"#Segundo Fotopico 1333 KeV\n",
"\n",
"height = 3942.70339-1500\n",
"center = 1323.43289\n",
"sigma = 66.7403072\n",
"li = 1280\n",
"ls = 1400\n",
"print(\"Segundo Fotopico 1333 KeV: \"+str(_gauss_integral(height, center, sigma, inter, li, ls)))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Centelleador CSI - Fuente Cobalto 60 "
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"PICO 1173 KeV: 127306.56774417317\n"
]
}
],
"source": [
"#Tipo de Centelleador : CSI\n",
"#PICO 1173 KeV\n",
"\n",
"height = 1406.14\n",
"center = 1179.80\n",
"sigma = 66.8607\n",
"li = 1140\n",
"ls = 1240\n",
"print(\"PICO 1173 KeV: \"+str(_gauss_integral(height, center, sigma, inter, li, ls)))"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"PICO 1173 KeV: 89481.92612266203\n"
]
}
],
"source": [
"#Tipo de Centelleador : CSI\n",
"#PICO 1333 KeV\n",
"\n",
"height = 864.25\n",
"center = 1326.22\n",
"sigma = 48.70\n",
"li = 1260\n",
"ls = 1400\n",
"print(\"PICO 1173 KeV: \"+str(_gauss_integral(height, center, sigma, inter, li, ls)))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Centelleador BGO - Fuente Cesio 137"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Fotopico 662. KeV: 1151470.976408768\n"
]
}
],
"source": [
"#Tipo de Centelleador : BGO\n",
"#Fotopico 662. KeV\n",
"\n",
"height = 14365.0902-2000\n",
"center = 658.936978\n",
"sigma = 37.2170682\n",
"li = 550\n",
"ls = 800\n",
"print(\"Fotopico 662. KeV: \"+str(_gauss_integral(height, center, sigma, inter, li, ls)))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Centelleador LYSO - Fuente Cesio 137"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Tipo de Centelleador : LYSO : 314145.5297374663\n"
]
}
],
"source": [
"#Tipo de Centelleador : LYSO\n",
"\n",
"height = 3066.55380\n",
"center = 656.387332\n",
"sigma = 41.0754300\n",
"li = 550\n",
"ls = 800\n",
"print(\"Tipo de Centelleador : LYSO : \"+str(_gauss_integral(height, center, sigma, inter, li, ls)))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Centelleador CSI - fuente cesio 137"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Tipo de Centelleador : CSI: 18654.09886979009\n"
]
}
],
"source": [
"# Tipo de Centelleador : CSI\n",
"\n",
"height = 273.31\n",
"center = 654.55\n",
"sigma = 27.2305\n",
"li = 550\n",
"ls = 800\n",
"print(\"Tipo de Centelleador : CSI: \"+str(_gauss_integral(height, center, sigma, inter, li, ls)))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Centelleador Tipo NaI"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Fuente CESIO 137 fotopico GAMMA: 1192692.9032746102\n"
]
}
],
"source": [
"#Fuente CESIO 137 fotopico GAMMA 662 KeV\n",
"\n",
"height = 19529.4580-2500\n",
"center = 662.255849\n",
"sigma = 28.3688220\n",
"li = 600\n",
"ls = 750\n",
"print(\"Fuente CESIO 137 fotopico GAMMA: \"+str(_gauss_integral(height, center, sigma, inter, li, ls)))"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Fotopico 1173 KeV: 1043568.7670718948\n"
]
}
],
"source": [
"#Fuente CO 60\n",
"#Fotopico 1173 KeV\n",
"\n",
"height = 12861.6378-4000\n",
"center = 1165.65474\n",
"sigma = 59.9694536\n",
"li = 1100\n",
"ls = 1250\n",
"print(\"Fotopico 1173 KeV: \"+str(_gauss_integral(height, center, sigma, inter, li, ls)))"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Fotopico 1333 KeV: 1485177.0230626967\n"
]
}
],
"source": [
"#Fuente CO 60\n",
"#Fotopico 1333 KeV\n",
"\n",
"height = 11155.3780\n",
"center = 1331.19634\n",
"sigma = 59.6862446\n",
"li = 1250\n",
"ls = 1450\n",
"print(\"Fotopico 1333 KeV: \"+str(_gauss_integral(height, center, sigma, inter, li, ls)))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.9"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
%% Cell type:code id: tags:
```
python
import
math
#Funcion para calcular una integral tipo gaussiana uniforme.
#a = Altura del pico
#b = Centro de la campana
#sigma = Desviación estándar
#interv = intervalos de división para integración
#li = límite inferior de la curva
#ls = límite superior de la curva
def
_gauss_integral
(
a
,
b
,
sigma
,
interv
,
li
,
ls
):
incr
=
(
ls
-
li
)
/
interv
res
=
0
for
i
in
range
(
interv
):
r
=
li
+
i
*
incr
r_1
=
li
+
(
i
+
1
)
*
incr
b_m
=
math
.
exp
(
-
(
r
-
b
)
*
(
r
-
b
)
/
(
2
*
sigma
*
sigma
))
b_M
=
math
.
exp
(
-
(
r_1
-
b
)
*
(
r_1
-
b
)
/
(
2
*
sigma
*
sigma
))
res
+=
(
b_M
+
b_m
)
*
incr
/
2
return
(
a
*
res
)
#Variables
inter
=
1000000
```
%% Cell type:markdown id: tags:
Centelleador LYSO - Fuente Cobalto 60
%% Cell type:code id: tags:
```
python
#PICO 1 1173 KeV
height
=
4118.21
center
=
1169.99
sigma
=
131.73
li
=
1075
ls
=
1250
print
(
"
Para el PICO 1 1173 KeV:
"
+
str
(
_gauss_integral
(
height
,
center
,
sigma
,
inter
,
li
,
ls
)))
```
%% Output
Para el PICO 1 1173 KeV: 670087.9485019445
%% Cell type:code id: tags:
```
python
#PICO 2 1333 KeV
height
=
2516.36715
-
2200
center
=
1326.59876
sigma
=
128.014016
li
=
1260
ls
=
1380
print
(
"
Para el PICO 2 1333 KeV:
"
+
str
(
_gauss_integral
(
height
,
center
,
sigma
,
inter
,
li
,
ls
)))
```
%% Output
Para el PICO 2 1333 KeV: 36573.54376706954
%% Cell type:markdown id: tags:
Centelleador BGO - Fuente Cobalto 60
%% Cell type:code id: tags:
```
python
#Tipo de Centelleador : BGO
#Primer fotopico 1173 KeV
height
=
5530.68837
-
2500
center
=
1171.05450
sigma
=
85.0379959
li
=
1050
ls
=
1250
print
(
"
Primer fotopico 1173 KeV:
"
+
str
(
_gauss_integral
(
height
,
center
,
sigma
,
inter
,
li
,
ls
)))
```
%% Output
Primer fotopico 1173 KeV: 481992.1546793344
%% Cell type:code id: tags:
```
python
#Tipo de Centelleador : BGO
#Segundo Fotopico 1333 KeV
height
=
3942.70339
-
1500
center
=
1323.43289
sigma
=
66.7403072
li
=
1280
ls
=
1400
print
(
"
Segundo Fotopico 1333 KeV:
"
+
str
(
_gauss_integral
(
height
,
center
,
sigma
,
inter
,
li
,
ls
)))
```
%% Output
Segundo Fotopico 1333 KeV: 252038.5177349729
%% Cell type:markdown id: tags:
Centelleador CSI - Fuente Cobalto 60
%% Cell type:code id: tags:
```
python
#Tipo de Centelleador : CSI
#PICO 1173 KeV
height
=
1406.14
center
=
1179.80
sigma
=
66.8607
li
=
1140
ls
=
1240
print
(
"
PICO 1173 KeV:
"
+
str
(
_gauss_integral
(
height
,
center
,
sigma
,
inter
,
li
,
ls
)))
```
%% Output
PICO 1173 KeV: 127306.56774417317
%% Cell type:code id: tags:
```
python
#Tipo de Centelleador : CSI
#PICO 1333 KeV
height
=
864.25
center
=
1326.22
sigma
=
48.70
li
=
1260
ls
=
1400
print
(
"
PICO 1173 KeV:
"
+
str
(
_gauss_integral
(
height
,
center
,
sigma
,
inter
,
li
,
ls
)))
```
%% Output
PICO 1173 KeV: 89481.92612266203
%% Cell type:markdown id: tags:
Centelleador BGO - Fuente Cesio 137
%% Cell type:code id: tags:
```
python
#Tipo de Centelleador : BGO
#Fotopico 662. KeV
height
=
14365.0902
-
2000
center
=
658.936978
sigma
=
37.2170682
li
=
550
ls
=
800
print
(
"
Fotopico 662. KeV:
"
+
str
(
_gauss_integral
(
height
,
center
,
sigma
,
inter
,
li
,
ls
)))
```
%% Output
Fotopico 662. KeV: 1151470.976408768
%% Cell type:markdown id: tags:
Centelleador LYSO - Fuente Cesio 137
%% Cell type:code id: tags:
```
python
#Tipo de Centelleador : LYSO
height
=
3066.55380
center
=
656.387332
sigma
=
41.0754300
li
=
550
ls
=
800
print
(
"
Tipo de Centelleador : LYSO :
"
+
str
(
_gauss_integral
(
height
,
center
,
sigma
,
inter
,
li
,
ls
)))
```
%% Output
Tipo de Centelleador : LYSO : 314145.5297374663
%% Cell type:markdown id: tags:
Centelleador CSI - fuente cesio 137
%% Cell type:code id: tags:
```
python
# Tipo de Centelleador : CSI
height
=
273.31
center
=
654.55
sigma
=
27.2305
li
=
550
ls
=
800
print
(
"
Tipo de Centelleador : CSI:
"
+
str
(
_gauss_integral
(
height
,
center
,
sigma
,
inter
,
li
,
ls
)))
```
%% Output
Tipo de Centelleador : CSI: 18654.09886979009
%% Cell type:markdown id: tags:
Centelleador Tipo NaI
%% Cell type:code id: tags:
```
python
#Fuente CESIO 137 fotopico GAMMA 662 KeV
height
=
19529.4580
-
2500
center
=
662.255849
sigma
=
28.3688220
li
=
600
ls
=
750
print
(
"
Fuente CESIO 137 fotopico GAMMA:
"
+
str
(
_gauss_integral
(
height
,
center
,
sigma
,
inter
,
li
,
ls
)))
```
%% Output
Fuente CESIO 137 fotopico GAMMA: 1192692.9032746102
%% Cell type:code id: tags:
```
python
#Fuente CO 60
#Fotopico 1173 KeV
height
=
12861.6378
-
4000
center
=
1165.65474
sigma
=
59.9694536
li
=
1100
ls
=
1250
print
(
"
Fotopico 1173 KeV:
"
+
str
(
_gauss_integral
(
height
,
center
,
sigma
,
inter
,
li
,
ls
)))
```
%% Output
Fotopico 1173 KeV: 1043568.7670718948
%% Cell type:code id: tags:
```
python
#Fuente CO 60
#Fotopico 1333 KeV
height
=
11155.3780
center
=
1331.19634
sigma
=
59.6862446
li
=
1250
ls
=
1450
print
(
"
Fotopico 1333 KeV:
"
+
str
(
_gauss_integral
(
height
,
center
,
sigma
,
inter
,
li
,
ls
)))
```
%% Output
Fotopico 1333 KeV: 1485177.0230626967
%% Cell type:code id: tags:
```
python
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment