コード例 #1
0
def main():
    path_ac_23 = get_data(
        "d191122_dc_tf/ac_tf/TFInput_File_SN0038_temp_23_180317.tcal")
    path_ac_cc_23 = get_data("d191122_dc_tf/ac_tf/ac_23deg_tf.h5")
    path_dc_ext23 = get_data(
        "d191122_dc_tf/dc_tf/dc_externalsync_23deg_tf.tcal")
    path_vped_23 = get_data("d191122_dc_tf/vped/VPED_23deg.h5")
    path_pedestal_23 = get_checs(
        "d181203_erlangen/pedestal/Pedestal_23deg_ped.tcal")

    tf_ac_23 = get_ac_tf(path_ac_23)
    tf_ac_cc_23 = get_ac_cc_tf(path_ac_cc_23)
    tf_dc_ext23 = get_dc_tf(path_dc_ext23, path_vped_23)
    pedestal_23 = get_pedestal(path_pedestal_23)

    # r0_paths = glob(get_checs("d181203_erlangen/dynrange/23deg/r0/Amplitude_*_Run_0_r0.tio"))
    # output_path = get_data("d191122_dc_tf/charge/dc_externalsync_23deg_charge.h5")
    # process(r0_paths, pedestal_23, tf_dc_ext23, output_path)
    #
    # r0_paths = glob(get_checs("d181203_erlangen/dynrange/23deg/r0/Amplitude_*_Run_0_r0.tio"))
    # output_path = get_data("d191122_dc_tf/charge/ac_23deg_charge.h5")
    # process(r0_paths, pedestal_23, tf_ac_23, output_path)

    r0_paths = glob(
        get_checs(
            "d181203_erlangen/dynrange/23deg/r0/Amplitude_*_Run_0_r0.tio"))
    output_path = get_data("d191122_dc_tf/charge/ac_cc_23deg_charge.h5")
    process(r0_paths, pedestal_23, tf_ac_cc_23, output_path)
コード例 #2
0
def main():
    # tf_r0_paths = glob(get_checs("d181203_erlangen/dc_tf/externalsync/23deg/*.tio"))
    # pedestal_path = get_checs("d181203_erlangen/pedestal/Pedestal_23deg_ped.tcal")
    # tf_path = get_data("d191122_dc_tf/dc_tf/dc_externalsync_23deg_tf.tcal")
    # tf_class = TFDC
    # process(tf_r0_paths, pedestal_path, tf_path, tf_class)
    #
    # tf_r0_paths = glob(get_checs("d181203_erlangen/dc_tf/externalsync/40deg/*.tio"))
    # pedestal_path = get_checs("d181203_erlangen/pedestal/Pedestal_40deg_ped.tcal")
    # tf_path = get_data("d191122_dc_tf/dc_tf/dc_externalsync_40deg_tf.tcal")
    # tf_class = TFDC
    # process(tf_r0_paths, pedestal_path, tf_path, tf_class)
    #
    # tf_r0_paths = glob(get_checs("d181203_erlangen/dc_tf/hardsync/23deg/*.tio"))
    # pedestal_path = get_checs("d181203_erlangen/pedestal/Pedestal_23deg_ped.tcal")
    # tf_path = get_data("d191122_dc_tf/dc_tf/dc_hardsync_23deg_tf.tcal")
    # tf_class = TFDC
    # process(tf_r0_paths, pedestal_path, tf_path, tf_class)
    #
    # tf_r0_paths = glob(get_checs("d181203_erlangen/dc_tf/hardsync/40deg/*.tio"))
    # pedestal_path = get_checs("d181203_erlangen/pedestal/Pedestal_40deg_ped.tcal")
    # tf_path = get_data("d191122_dc_tf/dc_tf/dc_hardsync_40deg_tf.tcal")
    # tf_class = TFDC
    # process(tf_r0_paths, pedestal_path, tf_path, tf_class)

    tf_r0_paths = glob(
        get_checs("d181203_erlangen/ac_tf/23deg/Amplitude_*.tio"))
    pedestal_path = get_checs(
        "d181203_erlangen/pedestal/Pedestal_23deg_ped.tcal")
    tf_path = get_data("d191122_dc_tf/ac_tf/ac_23deg_tf.h5")
    tf_class = TFACCrossCorrelation
    process(tf_r0_paths, pedestal_path, tf_path, tf_class)
コード例 #3
0
def main():
    pedestal_path = get_checs(
        "d181203_erlangen/pedestal/Pedestal_10deg_ped.tcal")
    output_dir = get_checs("d181203_erlangen/pedestal/Pedestal_10deg_r0")
    process(pedestal_path, output_dir)

    pedestal_path = get_checs(
        "d181203_erlangen/pedestal/Pedestal_15deg_ped.tcal")
    output_dir = get_checs("d181203_erlangen/pedestal/Pedestal_15deg_r0")
    process(pedestal_path, output_dir)

    pedestal_path = get_checs(
        "d181203_erlangen/pedestal/Pedestal_23deg_ped.tcal")
    output_dir = get_checs("d181203_erlangen/pedestal/Pedestal_23deg_r0")
    process(pedestal_path, output_dir)

    pedestal_path = get_checs(
        "d181203_erlangen/pedestal/Pedestal_30deg_ped.tcal")
    output_dir = get_checs("d181203_erlangen/pedestal/Pedestal_30deg_r0")
    process(pedestal_path, output_dir)

    pedestal_path = get_checs(
        "d181203_erlangen/pedestal/Pedestal_40deg_ped.tcal")
    output_dir = get_checs("d181203_erlangen/pedestal/Pedestal_40deg_r0")
    process(pedestal_path, output_dir)
コード例 #4
0
def main():
    r0_paths = glob(
        get_checs("d191118_pedestal_temperature/data/d191118/*.tio"))
    pedestal_paths = glob(
        get_checs("d191118_pedestal_temperature/lookup/*_ped.tcal"))
    output_path = get_data(
        f"d191118_pedestal_temperature/d191118/residuals_pchip.h5")
    process(r0_paths, pedestal_paths, output_path)
コード例 #5
0
def main():
    r0_path = get_checs("d181203_erlangen/ac_tf/23deg/Amplitude_600_r0.tio")
    pedestal_path = get_checs(
        "d181203_erlangen/pedestal/Pedestal_23deg_ped.tcal")
    tf_path = get_data("d191122_dc_tf/ac_tf/ac_23deg_tf.h5")

    pedestal = get_pedestal(pedestal_path)
    tf = get_ac_cc_tf(tf_path)

    output_path = get_data("d191122_dc_tf/average_wf.txt")
    process(r0_path, pedestal, tf, output_path)
コード例 #6
0
def main():
    # input_paths = glob(get_checs("d191118_pedestal_temperature/data/*.tio"))
    # process(input_paths)

    # input_paths = glob(get_checs("d191118_pedestal_temperature/data/d191118/*.tio"))
    # process(input_paths)

    input_paths = glob(
        get_checs("d191118_pedestal_temperature/data/d191119/*.tio"))
    process(input_paths)

    input_paths = glob(
        get_checs("d191118_pedestal_temperature/data/d191120/*.tio"))
    process(input_paths)
コード例 #7
0
def main():
    pedestal_paths = glob(
        get_checs("d191118_pedestal_temperature/data/d191118/*_ped.tcal"))
    output_path = get_data(
        f"d191118_pedestal_temperature/d191118/adc_vs_temperature.h5")
    process(pedestal_paths, output_path)

    pedestal_paths = glob(
        get_checs("d191118_pedestal_temperature/data/d191119/*_ped.tcal"))
    output_path = get_data(
        f"d191118_pedestal_temperature/d191119/adc_vs_temperature.h5")
    process(pedestal_paths, output_path)

    pedestal_paths = glob(
        get_checs("d191118_pedestal_temperature/data/d191120/*_ped.tcal"))
    output_path = get_data(
        f"d191118_pedestal_temperature/d191120/adc_vs_temperature.h5")
    process(pedestal_paths, output_path)
コード例 #8
0
def main():
    # r0_paths = glob(get_checs("d191118_pedestal_temperature/data/d191118/*.tio"))
    # pedestal_paths = glob(get_checs("d191118_pedestal_temperature/lookup/*_ped.tcal"))
    # output_path = get_data(f"d191118_pedestal_temperature/d191118/residuals_interp.h5")
    # process(r0_paths, pedestal_paths, output_path)
    #
    # r0_paths = glob(get_checs("d191118_pedestal_temperature/data/d191119/*.tio"))
    # pedestal_paths = glob(get_checs("d191118_pedestal_temperature/lookup/*_ped.tcal"))
    # output_path = get_data(f"d191118_pedestal_temperature/d191119/residuals_interp.h5")
    # process(r0_paths, pedestal_paths, output_path)

    r0_paths = glob(
        get_checs("d191118_pedestal_temperature/data/d191120/*.tio"))
    pedestal_paths = glob(
        get_checs("d191118_pedestal_temperature/lookup/*_ped.tcal"))
    output_path = get_data(
        f"d191118_pedestal_temperature/d191120/residuals_interp.h5")
    process(r0_paths, pedestal_paths, output_path)
コード例 #9
0
ファイル: __init__.py プロジェクト: watsonjj/sstcam-sandbox
 def __init__(self):
     super().__init__()
     self.directory = get_checs("d190111_trigger_stability/d190111")
     self.spoi = [
         151,
         101,
         399,
         # 296,
         145,
     ]
コード例 #10
0
ファイル: __init__.py プロジェクト: watsonjj/sstcam-sandbox
 def __init__(self):
     super().__init__()
     self.directory = get_checs("d190121_trigger_stability")
     self.spoi = [
         17,
         # 296,
         297,
         # 298,
         372,
         408,
         412,
         415,
         503
     ]
コード例 #11
0
def main():
    first_half_path = get_checs("d181203_erlangen/vped/VPED_TF_0-31_13deg.txt")
    second_half_path = get_checs(
        "d181203_erlangen/vped/VPED_TF_32-63_13deg.txt")
    output_path = get_data("d191122_dc_tf/vped/VPED_13deg.h5")
    process(first_half_path, second_half_path, output_path)

    first_half_path = get_checs("d181203_erlangen/vped/VPED_TF_0-31_23deg.txt")
    second_half_path = get_checs(
        "d181203_erlangen/vped/VPED_TF_32-63_23deg.txt")
    output_path = get_data("d191122_dc_tf/vped/VPED_23deg.h5")
    process(first_half_path, second_half_path, output_path)

    first_half_path = get_checs("d181203_erlangen/vped/VPED_TF_0-31_33deg.txt")
    second_half_path = get_checs(
        "d181203_erlangen/vped/VPED_TF_32-63_33deg.txt")
    output_path = get_data("d191122_dc_tf/vped/VPED_33deg.h5")
    process(first_half_path, second_half_path, output_path)

    first_half_path = get_checs("d181203_erlangen/vped/VPED_TF_0-31_43deg.txt")
    second_half_path = get_checs(
        "d181203_erlangen/vped/VPED_TF_32-63_43deg.txt")
    output_path = get_data("d191122_dc_tf/vped/VPED_43deg.h5")
    process(first_half_path, second_half_path, output_path)
コード例 #12
0
ファイル: __init__.py プロジェクト: watsonjj/sstcam-sandbox
 def __init__(self, **kwargs):
     super().__init__(**kwargs)
     self.dl1_paths = [
         # get_checs("d190312_spectra_fitting/mc/run43490_dl1.h5"),
         # get_checs("d190312_spectra_fitting/mc/run43491_dl1.h5"),
         # get_checs("d190312_spectra_fitting/mc/run43492_dl1.h5"),
         # get_checs("d190312_spectra_fitting/mc/run43493_dl1.h5"),
         # get_checs("d190312_spectra_fitting/mc/run43494_dl1.h5"),
         # get_checs("d190312_spectra_fitting/mc/run43495_dl1.h5"),
         # get_checs("d190312_spectra_fitting/mc/run43496_dl1.h5"),
         # get_checs("d190312_spectra_fitting/mc/run43497_dl1.h5"),
         # get_checs("d190312_spectra_fitting/mc/run43498_dl1.h5"),
         # get_checs("d190312_spectra_fitting/mc/run43499_dl1.h5"),
         # get_checs("d190312_spectra_fitting/mc/run43500_dl1.h5"),
         # get_checs("d190312_spectra_fitting/mc/run43501_dl1.h5"),
         # get_checs("d190312_spectra_fitting/mc/run43502_dl1.h5"),
         # get_checs("d190312_spectra_fitting/mc/run43503_dl1.h5"),
         # get_checs("d190312_spectra_fitting/mc/run43504_dl1.h5"),
         get_checs("d190312_spectra_fitting/mc/run43505_dl1.h5"),
         get_checs("d190312_spectra_fitting/mc/run43506_dl1.h5"),
         get_checs("d190312_spectra_fitting/mc/run43507_dl1.h5"),
         get_checs("d190312_spectra_fitting/mc/run43508_dl1.h5"),
         get_checs("d190312_spectra_fitting/mc/run43509_dl1.h5"),
         get_checs("d190312_spectra_fitting/mc/run43510_dl1.h5"),
         get_checs("d190312_spectra_fitting/mc/run43511_dl1.h5"),
         get_checs("d190312_spectra_fitting/mc/run43512_dl1.h5"),
         get_checs("d190312_spectra_fitting/mc/run43513_dl1.h5"),
         get_checs("d190312_spectra_fitting/mc/run43514_dl1.h5"),
         get_checs("d190312_spectra_fitting/mc/run43515_dl1.h5"),
         get_checs("d190312_spectra_fitting/mc/run43516_dl1.h5"),
         get_checs("d190312_spectra_fitting/mc/run43517_dl1.h5"),
         get_checs("d190312_spectra_fitting/mc/run43518_dl1.h5"),
         get_checs("d190312_spectra_fitting/mc/run43519_dl1.h5"),
         get_checs("d190312_spectra_fitting/mc/run43520_dl1.h5"),
     ]
     self.spe_config = get_checs(
         "d190312_spectra_fitting/mc/spe_config.yml")
コード例 #13
0
def main():
    r0_paths = glob(
        get_checs("d191118_pedestal_temperature/data/d191118/*.tio"))
    output_dir = get_data(
        f"d191118_pedestal_temperature/d191118/residuals_self.h5")
    process(r0_paths, output_dir)
コード例 #14
0
def main():
    input_paths = glob(get_checs("d181203_erlangen/pedestal/*.tio"))
    for path in input_paths:
        process(path)