aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/analyze-genie-mc15
-rwxr-xr-xutils/calculate_limits.py15
-rwxr-xr-xutils/convert-genie-to-gst15
-rwxr-xr-xutils/convert-ratdb15
-rw-r--r--utils/index.py15
-rwxr-xr-xutils/plot15
-rwxr-xr-xutils/plot-fit-results15
7 files changed, 105 insertions, 0 deletions
diff --git a/utils/analyze-genie-mc b/utils/analyze-genie-mc
index 9739c65..7fdb948 100755
--- a/utils/analyze-genie-mc
+++ b/utils/analyze-genie-mc
@@ -1,4 +1,19 @@
#!/usr/bin/env python3
+# Copyright (c) 2019, Anthony Latorre <tlatorre at uchicago>
+#
+# This program is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+# more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program. If not, see <https://www.gnu.org/licenses/>.
+
import ROOT
import numpy as np
diff --git a/utils/calculate_limits.py b/utils/calculate_limits.py
index f297a69..464051a 100755
--- a/utils/calculate_limits.py
+++ b/utils/calculate_limits.py
@@ -1,4 +1,19 @@
#!/usr/bin/env python3
+# Copyright (c) 2019, Anthony Latorre <tlatorre at uchicago>
+#
+# This program is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+# more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program. If not, see <https://www.gnu.org/licenses/>.
+
import numpy as np
from scipy.integrate import quad
from scipy.stats import expon
diff --git a/utils/convert-genie-to-gst b/utils/convert-genie-to-gst
index b2861e5..bb6ce6b 100755
--- a/utils/convert-genie-to-gst
+++ b/utils/convert-genie-to-gst
@@ -1,4 +1,19 @@
#!/usr/bin/env python
+# Copyright (c) 2019, Anthony Latorre <tlatorre at uchicago>
+#
+# This program is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+# more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program. If not, see <https://www.gnu.org/licenses/>.
+
from subprocess import check_call
from os.path import split, splitext, join
import os
diff --git a/utils/convert-ratdb b/utils/convert-ratdb
index 5dd6ee4..08b4f73 100755
--- a/utils/convert-ratdb
+++ b/utils/convert-ratdb
@@ -1,4 +1,19 @@
#!/usr/bin/env python
+# Copyright (c) 2019, Anthony Latorre <tlatorre at uchicago>
+#
+# This program is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+# more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program. If not, see <https://www.gnu.org/licenses/>.
+
"""
Script to convert the PMT database in RAT to a CSV file (with spaces instead of commas).
"""
diff --git a/utils/index.py b/utils/index.py
index 4edcd59..3e3aef6 100644
--- a/utils/index.py
+++ b/utils/index.py
@@ -1,4 +1,19 @@
#!/usr/bin/env python
+# Copyright (c) 2019, Anthony Latorre <tlatorre at uchicago>
+#
+# This program is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+# more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program. If not, see <https://www.gnu.org/licenses/>.
+
"""
This is a script to calculate the index of refraction of water as a function of
wavelength, temperature, and pressure and fit it to a linear approximation in a
diff --git a/utils/plot b/utils/plot
index d671016..8fd2fae 100755
--- a/utils/plot
+++ b/utils/plot
@@ -1,4 +1,19 @@
#!/usr/bin/env python
+# Copyright (c) 2019, Anthony Latorre <tlatorre at uchicago>
+#
+# This program is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+# more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program. If not, see <https://www.gnu.org/licenses/>.
+
from __future__ import print_function, division
import yaml
import numpy as np
diff --git a/utils/plot-fit-results b/utils/plot-fit-results
index c3d3f16..7a9708e 100755
--- a/utils/plot-fit-results
+++ b/utils/plot-fit-results
@@ -1,4 +1,19 @@
#!/usr/bin/env python
+# Copyright (c) 2019, Anthony Latorre <tlatorre at uchicago>
+#
+# This program is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+# more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program. If not, see <https://www.gnu.org/licenses/>.
+
from __future__ import print_function, division
import yaml
import numpy as np