@@ -0,0 +1,683 @@
+# -*- coding: utf-8 -*-%0A%22%22%22%0A%0A==================%0APMT Time Slewing%0A==================%0A%0AShow different variants of PMT time slewing calculations.%0A%0AVariant 3 is currently (as of 2020-10-16) what's also used in Jpp.%0A%0A%22%22%22%0A%0A# Author: Tamas Gal %3Ctgal@km3net.de%3E%0A# License: BSD-3%0A%0Aimport km3pipe as kp%0Aimport numpy as np%0Aimport matplotlib.pyplot as plt%0Akp.style.use()%0A%0Atots = np.arange(256)%0Aslews = %7Bvariant: kp.calib.slew(tots, variant=variant) for variant in (1, 2, 3)%7D%0A%0Afig, ax = plt.subplots()%0A%0Afor variant, slew in slews.items():%0A    ax.plot(tots, slew, label=f%22Variant %7Bvariant%7D%22)%0A%0Aax.set_xlabel(%22ToT / ns%22)%0Aax.set_ylabel(%22time slewing / ns%22)%0Aax.legend()%0A%0Afig.tight_layout()%0Aplt.show()%0A

Add PMT time slewing example