Browse Source

thesis

master
cetin 8 months ago
parent
commit
c4c839bf25
  1. BIN
      methods/__pycache__/adashof.cpython-310.pyc
  2. BIN
      methods/__pycache__/fit_linear_regression_model.cpython-310.pyc
  3. 983
      notebooks/B_updown.ipynb
  4. 246
      notebooks/thesis_electrons.ipynb
  5. 479
      notebooks/trackinglosses_photons.ipynb
  6. 297
      notebooks/trackinglosses_rad_length_beginVelo2endUT.ipynb
  7. BIN
      notebooks/utils/__pycache__/components.cpython-310.pyc
  8. 0
      notebooks/utils/adashof.py
  9. 48
      notebooks/utils/components.py
  10. 0
      notebooks/utils/fit_linear_regression_model.py
  11. BIN
      thesis/emitted_energy.pdf
  12. BIN
      thesis/emitted_energy_difference.pdf

BIN
methods/__pycache__/adashof.cpython-310.pyc

Binary file not shown.

BIN
methods/__pycache__/fit_linear_regression_model.cpython-310.pyc

Binary file not shown.

983
notebooks/B_updown.ipynb
File diff suppressed because one or more lines are too long
View File

246
notebooks/thesis_electrons.ipynb
File diff suppressed because one or more lines are too long
View File

479
notebooks/trackinglosses_photons.ipynb
File diff suppressed because one or more lines are too long
View File

297
notebooks/trackinglosses_rad_length_beginVelo2endUT.ipynb
File diff suppressed because one or more lines are too long
View File

BIN
notebooks/utils/__pycache__/components.cpython-310.pyc

Binary file not shown.

0
methods/adashof.py → notebooks/utils/adashof.py

48
notebooks/utils/components.py

@ -0,0 +1,48 @@
# flake8: noqaq
import inspect
import re
import importlib
import warnings
from collections import OrderedDict
from functools import lru_cache
from html import escape as html_escape
# String that separates a name from its unique ID
_UNIQUE_SEPARATOR = "_"
_IDENTITY_LENGTH = 8
_IDENTITY_TABLE = {}
# If a property ends with this key, it is a pseudo-property which exists to
# hold the data dependencies of another property value
_DATA_DEPENDENCY_KEY_SUFFIX = "_PyConfDataDependencies"
_FLOW_GRAPH_NODE_COLOUR = "aliceblue"
_FLOW_GRAPH_INPUT_COLOUR = "deepskyblue1"
_FLOW_GRAPH_OUTPUT_COLOUR = "coral1"
def unique_name_ext_re():
return "(?:%s[1234567890abcdef]{%s})?" % (_UNIQUE_SEPARATOR, _IDENTITY_LENGTH)
def findRootObjByName(rootFile, name):
"""
Finds the object with given name in the given root file,
where name is a regular expression or a set of them separated by '/' in case directories are used
"""
curObj = rootFile
for n in name.split("/"):
matches = [
k.GetName() for k in curObj.GetListOfKeys() if re.fullmatch(n, k.GetName())
]
if len(matches) > 1:
raise Exception(
"Collision of names in Root : found several objects with name matching %s inside %s : %s"
% (n, curObj.GetName(), matches)
)
if len(matches) == 0:
raise Exception(
"Failed to find object with name %s inside %s" % (n, curObj.GetName())
)
curObj = curObj.Get(matches[0])
return curObj

0
methods/fit_linear_regression_model.py → notebooks/utils/fit_linear_regression_model.py

BIN
thesis/emitted_energy.pdf

Binary file not shown.

BIN
thesis/emitted_energy_difference.pdf

Binary file not shown.
Loading…
Cancel
Save