diff options
Diffstat (limited to 'src/fit.c')
-rw-r--r-- | src/fit.c | 27 |
1 files changed, 26 insertions, 1 deletions
@@ -6365,7 +6365,7 @@ int main(int argc, char **argv) goto err; } - if (optics_init()) { + if (optics_init(10000)) { fprintf(stderr, "failed to initialize optics: %s\n", optics_err); goto err; } @@ -6554,6 +6554,31 @@ skip_mc: goto err; } + if (bev.run < 19999) { + if (load_file(db, "pmt_response_qoca_d2o_20060216.dat", 1)) { + fprintf(stderr, "failed to load pmt_response_qoca_d2o_20060216.dat: %s\n", db_err); + goto err; + } + } else if (bev.run < 33907) { + if (load_file(db, "pmt_response_qoca_salt_20060420.dat", 1)) { + fprintf(stderr, "failed to load pmt_response_qoca_salt_20060420.dat: %s\n", db_err); + goto err; + } + } else { + fprintf(stderr, "error: no PMT response data for ncd or h2o phase!\n"); + goto err; + } + + if (pmt_response_init(db)) { + fprintf(stderr, "failed to initialize PMTR bank: %s\n", pmtr_err); + goto err; + } + + if (optics_init(bev.run)) { + fprintf(stderr, "failed to initialize optics: %s\n", optics_err); + goto err; + } + last_run = bev.run; } |