def _deduce_settings_from_file(self, opened_raw_data_file):  
try:  <EOL><INDENT>flavor = opened_raw_data_file.root.configuration.miscellaneous[:][np.where(opened_raw_data_file.root.configuration.miscellaneous[:]['<STR_LIT:name>'] == '<STR_LIT>')]['<STR_LIT:value>'][<NUM_LIT:0>]<EOL>self._settings_from_file_set = True<EOL>if "<STR_LIT>" in opened_raw_data_file.root.configuration.run_conf[:]['<STR_LIT:name>']:<EOL><INDENT>trig_count = opened_raw_data_file.root.configuration.run_conf[:][np.where(opened_raw_data_file.root.configuration.run_conf[:]['<STR_LIT:name>'] == '<STR_LIT>')]['<STR_LIT:value>'][<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>trig_count = opened_raw_data_file.root.configuration.global_register[:][np.where(opened_raw_data_file.root.configuration.global_register[:]['<STR_LIT:name>'] == '<STR_LIT>')]['<STR_LIT:value>'][<NUM_LIT:0>]<EOL><DEDENT>vcal_c0 = opened_raw_data_file.root.configuration.calibration_parameters[:][np.where(opened_raw_data_file.root.configuration.calibration_parameters[:]['<STR_LIT:name>'] == '<STR_LIT>')]['<STR_LIT:value>'][<NUM_LIT:0>]<EOL>vcal_c1 = opened_raw_data_file.root.configuration.calibration_parameters[:][np.where(opened_raw_data_file.root.configuration.calibration_parameters[:]['<STR_LIT:name>'] == '<STR_LIT>')]['<STR_LIT:value>'][<NUM_LIT:0>]<EOL>c_low = opened_raw_data_file.root.configuration.calibration_parameters[:][np.where(opened_raw_data_file.root.configuration.calibration_parameters[:]['<STR_LIT:name>'] == '<STR_LIT>')]['<STR_LIT:value>'][<NUM_LIT:0>]<EOL>c_mid = opened_raw_data_file.root.configuration.calibration_parameters[:][np.where(opened_raw_data_file.root.configuration.calibration_parameters[:]['<STR_LIT:name>'] == '<STR_LIT>')]['<STR_LIT:value>'][<NUM_LIT:0>]<EOL>c_high = opened_raw_data_file.root.configuration.calibration_parameters[:][np.where(opened_raw_data_file.root.configuration.calibration_parameters[:]['<STR_LIT:name>'] == '<STR_LIT>')]['<STR_LIT:value>'][<NUM_LIT:0>]<EOL>self.c_low_mask = opened_raw_data_file.root.configuration.C_Low[:]<EOL>self.c_high_mask = opened_raw_data_file.root.configuration.C_High[:]<EOL>self.fei4b = False if str(flavor) == '<STR_LIT>' else True<EOL>self.trig_count = int(trig_count)<EOL>self.vcal_c0 = float(vcal_c0)<EOL>self.vcal_c1 = float(vcal_c1)<EOL>self.c_low = float(c_low)<EOL>self.c_mid = float(c_mid)<EOL>self.c_high = float(c_high)<EOL>self.n_injections = int(opened_raw_data_file.root.configuration.run_conf[:][np.where(opened_raw_data_file.root.configuration.run_conf[:]['<STR_LIT:name>'] == '<STR_LIT>')]['<STR_LIT:value>'][<NUM_LIT:0>])<EOL><DEDENT>except tb.exceptions.NoSuchNodeError:<EOL><INDENT>if not self._settings_from_file_set:<EOL><INDENT>logging.warning('<STR_LIT>', opened_raw_data_file.filename)<EOL><DEDENT>else:<EOL><INDENT>logging.info('<STR_LIT>', opened_raw_data_file.filename)<EOL><DEDENT><DEDENT>except IndexError:  <EOL><INDENT>pass<EOL><DEDENT>
Tries to get the scan parameters needed for analysis from the raw data file