Beispiel #1
0
    def setup(self):
        is_CMT = isinstance(self.config['s1_xyz_correction_map'], tuple)

        if is_CMT:
            cmt, cmt_conf, is_nt = self.config['s1_xyz_correction_map']
            cmt_conf = (
                f'{cmt_conf[0]}_{self.config["default_reconstruction_algorithm"]}',
                cmt_conf[1])
            map_algo = cmt, cmt_conf, is_nt

            self.s1_map = InterpolatingMap(
                get_resource(get_config_from_cmt(self.run_id, map_algo)))
        else:
            self.s1_map = InterpolatingMap(
                get_resource(self.config['s1_xyz_correction_map']))

        self.s2_map = InterpolatingMap(
            get_resource(
                get_config_from_cmt(self.run_id,
                                    self.config['s2_xy_correction_map'])))
        self.elife = get_correction_from_cmt(self.run_id,
                                             self.config['elife_conf'])

        if isinstance(self.elife, str):
            # Legacy 1T support
            self.elife = get_elife(self.run_id, self.elife)
Beispiel #2
0
    def setup(self):

        self.electron_drift_velocity = get_correction_from_cmt(
            self.run_id, self.config['electron_drift_velocity'])
        self.electron_drift_time_gate = get_correction_from_cmt(
            self.run_id, self.config['electron_drift_time_gate'])

        if isinstance(self.config['fdc_map'], str):
            self.map = InterpolatingMap(
                get_resource(self.config['fdc_map'], fmt='binary'))

        elif is_cmt_option(self.config['fdc_map']):
            self.map = InterpolatingMap(
                get_cmt_resource(
                    self.run_id,
                    tuple([
                        'suffix',
                        self.config['default_reconstruction_algorithm'],
                        *self.config['fdc_map']
                    ]),
                    fmt='binary'))
            self.map.scale_coordinates([1., 1., -self.electron_drift_velocity])

        else:
            raise NotImplementedError('FDC map format not understood.')
Beispiel #3
0
    def setup(self):

        is_CMT = isinstance(self.config['fdc_map'], tuple)

        if is_CMT:

            cmt, cmt_conf, is_nt = self.config['fdc_map']
            cmt_conf = (
                f'{cmt_conf[0]}_{self.config["default_reconstruction_algorithm"]}',
                cmt_conf[1])
            map_algo = cmt, cmt_conf, is_nt

            self.map = InterpolatingMap(
                get_resource(get_config_from_cmt(self.run_id, map_algo),
                             fmt='binary'))
            self.map.scale_coordinates(
                [1., 1., -self.config['electron_drift_velocity']])

        elif isinstance(self.config['fdc_map'], str):
            self.map = InterpolatingMap(
                get_resource(self.config['fdc_map'], fmt='binary'))

        else:
            raise NotImplementedError('FDC map format not understood.')
Beispiel #4
0
 def setup(self):
     self.s1_map = InterpolatingMap(
         get_resource(self.config['s1_relative_lce_map']))
     self.s2_map = InterpolatingMap(
         get_resource(self.config['s2_relative_lce_map']))
     self.elife = get_elife(self.run_id,self.config['elife_file'])
Beispiel #5
0
 def setup(self):
     self.map = InterpolatingMap(
         get_resource(self.config['fdc_map'], fmt='binary'))
Beispiel #6
0
 def setup(self):
     self.s1_map = InterpolatingMap(
         get_resource(self.config['s1_relative_lce_map']))
     self.s2_map = InterpolatingMap(
         get_resource(self.config['s2_relative_lce_map']))
Beispiel #7
0
 def setup(self):
     self.map = InterpolatingMap(
         get_resource(self.config['fdc_map'], binary=True))