Low-Energy Muon (LEM) Experiment
0.5.2
|
#include <cstdio>
#include <cstring>
#include <ctime>
#include "midas.h"
#include "msystem.h"
#include "experim.h"
#include "nemu_experim.h"
Go to the source code of this file.
Data Structures | |
struct | ODB |
Macros | |
#define | MAXLINE 160 |
#define | N_FUG 16 |
#define | MODERATOR_HV_CHANNEL 4 |
#define | SAMPLE_HV_CHANNEL 15 |
#define | SPINROTATOR_VOLTAGE_CHANNEL 2 |
#define | SPINROTATOR_CURRENT_CHANNEL 3 |
#define | N_ELEMENTS 23 |
Functions | |
INT | open_odb_records (void) |
INT | create_sum_filename (char *filename, const char *flag) |
INT | write_sum_file (char *filename) |
void | strcut (char *result, char *orgstr, char *cutstr) |
INT | write_hvtrans (FILE *f) |
INT | write_hvdet (FILE *f) |
INT | write_trigger (FILE *f) |
INT | write_beamline (FILE *f) |
INT | write_env (FILE *f) |
INT | write_temp (FILE *f, BOOL running) |
void | write_control_room_scaler (FILE *f) |
INT | write_eloss (FILE *f) |
INT | write_t0 (FILE *f) |
INT | write_rates (FILE *f, double norm, double ip_norm, double scaler_sum, const char *label) |
INT | display_scaler (FILE *f) |
main (int argc, char *argv[]) | |
Variables | |
const char * | odbElements [] |
ODB | odb |
void * | podb |
INFO | info |
FILE * | file |
char | sumfile [256] |
char | line [MAXLINE] |
HNDLE | hDB |
HNDLE | hKey |
#define MAXLINE 160 |
Definition at line 23 of file write_summary.cxx.
Referenced by write_sum_file().
#define MODERATOR_HV_CHANNEL 4 |
Definition at line 25 of file write_summary.cxx.
#define N_ELEMENTS 23 |
Definition at line 36 of file write_summary.cxx.
Referenced by open_odb_records().
#define N_FUG 16 |
Definition at line 24 of file write_summary.cxx.
Referenced by write_hvtrans().
#define SAMPLE_HV_CHANNEL 15 |
Definition at line 26 of file write_summary.cxx.
#define SPINROTATOR_CURRENT_CHANNEL 3 |
Definition at line 28 of file write_summary.cxx.
Referenced by write_hvtrans().
#define SPINROTATOR_VOLTAGE_CHANNEL 2 |
Definition at line 27 of file write_summary.cxx.
Referenced by write_hvtrans().
INT create_sum_filename | ( | char * | filename, |
const char * | flag | ||
) |
Definition at line 202 of file write_summary.cxx.
References ODB::runinfo.
Referenced by main(), and write_sum_file().
INT display_scaler | ( | FILE * | f | ) |
Definition at line 942 of file write_summary.cxx.
References VME_STATS::bc_clean, BCL1, BCR4, SCALERSUMRATE_PARAM::channel_norm_time, VME_STATS::channelCounts, CLOCK, VME_STATS::fastMuonEvents, hDB, hKey, SCALERSUMRATE_PARAM::ip_channel, IpSCALE, line, VME_STATS::mcp1_clean, VME_STATS::mcp1_good, VME_STATS::mcp2_clean, VME_STATS::mcp2_good, N_SCALER, SCALER_SETTINGS::names_scl0, rate, SCALERSUMRATE_PARAM::rate_norm_time, VME_STATS::readcounts, ODB::runinfo, ODB::scaler_param, ODB::scaler_settings, VME_STATS::slowMuonEvents, VME_STATS::td_clean, VME_STATS::td_good, VME_STATS::tdc_error_counts, ODB::vme_stats, and write_rates().
Referenced by write_sum_file().
main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 1137 of file write_summary.cxx.
References create_sum_filename(), hDB, open_odb_records(), ODB::runinfo, sumfile, and write_sum_file().
INT open_odb_records | ( | void | ) |
Definition at line 117 of file write_summary.cxx.
References hDB, hKey, info, N_ELEMENTS, odb, odbElements, and podb.
Referenced by main().
void strcut | ( | char * | result, |
char * | orgstr, | ||
char * | cutstr | ||
) |
Definition at line 459 of file write_summary.cxx.
Referenced by write_hvtrans().
INT write_beamline | ( | FILE * | f | ) |
Definition at line 686 of file write_summary.cxx.
References ODB::beamline_event, ODB::beamline_settings, INFO::beamline_settings, BEAMLINE_EVENT::demand, line, BEAMLINE_EVENT::measured, and BEAMLINE_SETTINGS::names.
Referenced by write_sum_file().
void write_control_room_scaler | ( | FILE * | f | ) |
write the relevant control room scaler information.
f | file pointer |
Definition at line 926 of file write_summary.cxx.
References INFO::ahpos_date, INFO::controlroom_scaler_info, line, INFO::nominal_value, and INFO::target.
Referenced by write_sum_file().
INT write_eloss | ( | FILE * | f | ) |
Definition at line 523 of file write_summary.cxx.
References INFO::energy_loss, INFO::implantation_energy, and line.
Referenced by write_sum_file().
INT write_env | ( | FILE * | f | ) |
Definition at line 794 of file write_summary.cxx.
References INFO::angle, INFO::angle_horizontal, INFO::angle_vertical, INFO::height, MODCRYO_EVENT::input, LEMVAC_EVENT::input, SCS2001M_EVENT::input, INFO::lem_setup, ODB::lemvac_event, ODB::lemvac_settings, line, INFO::magnetic_field, ODB::mean_bank, INFO::mirror, ODB::moddy_event, ODB::moddy_settings, INFO::moderator, INFO::moderatorDATE, MODCRYO_SETTINGS::names_input, LEMVAC_SETTINGS::names_input, MEAN_BANK::sample_b, INFO::sample_cryo, INFO::sample_name, ODB::scs2001m_event, INFO::trigger, MEAN_BANK::var_sample_b, and xtc().
Referenced by write_sum_file().
INT write_hvdet | ( | FILE * | f | ) |
Definition at line 719 of file write_summary.cxx.
Referenced by write_sum_file().
INT write_hvtrans | ( | FILE * | f | ) |
Definition at line 484 of file write_summary.cxx.
References ODB::danfysik_spin_rot_event, ODB::hv_event, ODB::hv_settings, DANFYSIK_SPIN_ROT_EVENT::input, line, ODB::mean_bank, HV_EVENT::measured, MEAN_BANK::moderator_hv, N_FUG, HV_SETTINGS::names, INFO::rotation_angle, MEAN_BANK::sample_hv, INFO::spinrot_parameter, SPINROTATOR_CURRENT_CHANNEL, SPINROTATOR_VOLTAGE_CHANNEL, strcut(), MEAN_BANK::var_moderator_hv, and MEAN_BANK::var_sample_hv.
Referenced by write_sum_file().
INT write_rates | ( | FILE * | f, |
double | norm, | ||
double | ip_norm, | ||
double | scaler_sum, | ||
const char * | label | ||
) |
Definition at line 1105 of file write_summary.cxx.
Referenced by display_scaler().
INT write_sum_file | ( | char * | filename | ) |
Definition at line 281 of file write_summary.cxx.
References EXP_PARAM::comment, create_sum_filename(), display_scaler(), ODB::exp_param, file, line, MAXLINE, ODB::runinfo, write_beamline(), write_control_room_scaler(), write_eloss(), write_env(), write_hvdet(), write_hvtrans(), write_t0(), write_temp(), and write_trigger().
Referenced by main().
INT write_t0 | ( | FILE * | f | ) |
Definition at line 545 of file write_summary.cxx.
References line, N_DECAY_HISTS, INFO::t0, and INFO::t0_parameter.
Referenced by write_sum_file().
INT write_temp | ( | FILE * | f, |
BOOL | running | ||
) |
Definition at line 865 of file write_summary.cxx.
References MODCRYO_EVENT::input, SAMPLECRYO_EVENT::input, OMEGA_EVENT::input, line, ODB::mean_bank, ODB::moddy_event, ODB::moddy_settings, MODCRYO_SETTINGS::names_input, SAMPLECRYO_SETTINGS::names_input, ODB::oven_omega_event, ODB::sample_event, ODB::sample_settings, MEAN_BANK::sample_t, and MEAN_BANK::var_sample_t.
Referenced by write_sum_file().
INT write_trigger | ( | FILE * | f | ) |
Definition at line 564 of file write_summary.cxx.
References TRIGGER_SETTINGS::beamcounter_active, TRIGGER_SETTINGS::comment, TRIGGER_SETTINGS::data_window, TRIGGER_SETTINGS::event_0_active, TRIGGER_SETTINGS::event_0_settings, TRIGGER_SETTINGS::event_1_active, TRIGGER_SETTINGS::event_1_settings, TRIGGER_SETTINGS::event_2_active, TRIGGER_SETTINGS::event_2_settings, TRIGGER_SETTINGS::events, line, TRIGGER_SETTINGS::master_delay, TRIGGER_SETTINGS::mcp1_delay, TRIGGER_SETTINGS::mcp2_active, TRIGGER_SETTINGS::mcp2_master, TRIGGER_SETTINGS::positron_delay, TRIGGER_SETTINGS::positrons_active, TOFANAMODULE_PARAM::rotationangle, TOFANAMODULE_PARAM::scalefactor, TRIGGER_SETTINGS::t0_offset, TRIGGER_SETTINGS::td_active, TRIGGER_SETTINGS::td_delay, TRIGGER_SETTINGS::td_master, TRIGGER_SETTINGS::tof_bc_pileup_window, TRIGGER_SETTINGS::tof_bc_window, TRIGGER_SETTINGS::tof_m2_pileup_window, TRIGGER_SETTINGS::tof_m2_window, ODB::tof_param, TOFANAMODULE_PARAM::tofm2fmax, TOFANAMODULE_PARAM::tofm2fmin, ODB::trigger_settings, TOFANAMODULE_PARAM::xoffset_mm_, and TOFANAMODULE_PARAM::yoffset_mm_.
Referenced by write_sum_file().
FILE* file |
Definition at line 94 of file write_summary.cxx.
Referenced by write_sum_file().
HNDLE hDB |
Definition at line 97 of file write_summary.cxx.
Referenced by ana_begin_of_run(), ana_end_of_run(), ana_resume_run(), analyzer_init(), analyzer_loop(), disp_scaler(), display_scaler(), frontend_exit(), frontend_init(), frontend_loop(), get_t0(), get_t0L3RA(), hv_nhq_20xm_mscb_init(), main(), mcp1_init(), mirror_init(), open_odb_records(), sc_ana(), sc_bor(), sc_eor(), scaler_clear(), scaler_init(), scaler_mode(), scaler_sum(), sm_in_init(), sm_out_init(), tof_init(), update_info(), update_run_header(), update_t0shift(), and write_histogram_file().
HNDLE hKey |
Definition at line 97 of file write_summary.cxx.
Referenced by analyzer_init(), analyzer_loop(), disp_scaler(), display_scaler(), frontend_exit(), frontend_init(), frontend_loop(), get_t0(), get_t0L3RA(), hv_nhq_20xm_mscb(), hv_nhq_20xm_mscb_set_ramping(), hv_nhq_20xm_mscb_update_odb(), mirror(), mirror_init(), open_odb_records(), sample_cryo_changed(), sc_ana(), sc_bor(), sc_eor(), SM_in(), sm_in_init(), SM_out(), update_info(), update_run_header(), and update_t0shift().
INFO info |
Definition at line 91 of file write_summary.cxx.
char line[MAXLINE] |
Definition at line 96 of file write_summary.cxx.
Referenced by disp_scaler(), display_scaler(), extract_summary_data(), read_lem00_ipmi_log(), read_lem03_ipmi_log(), write_beamline(), write_control_room_scaler(), write_eloss(), write_env(), write_hvtrans(), write_rates(), write_sum_file(), write_t0(), write_temp(), and write_trigger().
ODB odb |
Definition at line 89 of file write_summary.cxx.
Referenced by open_odb_records().
const char* odbElements[] |
Definition at line 37 of file write_summary.cxx.
Referenced by open_odb_records().
void* podb |
Definition at line 90 of file write_summary.cxx.
Referenced by open_odb_records().
char sumfile[256] |
Definition at line 95 of file write_summary.cxx.
Referenced by main().