Low-Energy Muon (LEM) Experiment
0.5.2
|
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <time.h>
#include <string.h>
#include <math.h>
#include <vector>
#include "midas.h"
#include "experim.h"
#include "nemu_experim.h"
#include <TFolder.h>
#include <TH1F.h>
#include <TH2F.h>
#include <TTree.h>
Go to the source code of this file.
Macros | |
#define | SC_MOD_CF 0 |
#define | SC_MOD_XTC 1 |
#define | SC_MOD_HV 2 |
#define | SC_SAMPLE_CF 3 |
#define | SC_PRESSURE_SC_GJ 4 |
#define | SC_SAMPLE_HV 5 |
#define | SC_SAMPLE_ZERO_FLUX 6 |
#define | N_SC_HIST 8 |
Functions | |
SCANAMODULE_PARAM_STR (sc_ana_param_str) | |
float | get_magnetic_field (float current) |
INT | sc_init (void) |
INT | sc_exit () |
INT | sc_ana (EVENT_HEADER *, void *) |
INT | sc_bor (INT run_number) |
INT | sc_eor (INT run_number) |
Variables | |
INFO | info |
global info structure, in/out-init routines need the same structure More... | |
RUNINFO | runinfo |
/Runinfo ODB key, defined in from midas.h More... | |
TRIGGER_SETTINGS | trigger_settings |
/Equipment/Trigger/Settings More... | |
MEAN_BANK | mean |
SCANAMODULE_PARAM | sc_ana_param |
ANA_MODULE | sc_ana_module |
std::vector< std::vector < double > > | sc_histo_vec |
static TH1F * | hSC_Hist [N_SC_HIST] |
TFolder * | gManaHistosFolder |
TObjArray * | gHistoFolderStack |
static INT | offset |
#define N_SC_HIST 8 |
Definition at line 80 of file sc_ana_module.cxx.
#define SC_MOD_CF 0 |
Definition at line 39 of file sc_ana_module.cxx.
Referenced by sc_ana().
#define SC_MOD_HV 2 |
Definition at line 41 of file sc_ana_module.cxx.
Referenced by sc_ana().
#define SC_MOD_XTC 1 |
Definition at line 40 of file sc_ana_module.cxx.
Referenced by sc_ana().
#define SC_PRESSURE_SC_GJ 4 |
Definition at line 43 of file sc_ana_module.cxx.
Referenced by sc_ana().
#define SC_SAMPLE_CF 3 |
Definition at line 42 of file sc_ana_module.cxx.
Referenced by sc_ana().
#define SC_SAMPLE_HV 5 |
Definition at line 44 of file sc_ana_module.cxx.
Referenced by sc_ana().
#define SC_SAMPLE_ZERO_FLUX 6 |
Definition at line 45 of file sc_ana_module.cxx.
Referenced by sc_ana().
float get_magnetic_field | ( | float | current | ) |
Calculate magnetic field from zero flux current
return: B-field of either WEW or Bpar magnet
current | running through the magnet |
Definition at line 998 of file analyzer.cxx.
References INFO::bpar, INFO::lem_setup_parameter, INFO::magnet_parameter, and INFO::wew.
Referenced by sc_ana(), and update_info().
INT sc_ana | ( | EVENT_HEADER * | pheader, |
void * | pevent | ||
) |
Function sc_ana:
Fill selected slow control parameter in histograms, every 30s.
Calculate mean values and errors of mean values for selected slow control parameter. Write mean and errors to /Equipment/SlowControl/Variables/MEAN.
Definition at line 235 of file sc_ana_module.cxx.
References get_magnetic_field(), hDB, hKey, SCANAMODULE_PARAM::mod_cf1_channel, SCANAMODULE_PARAM::mod_hv_channel, SCANAMODULE_PARAM::mod_xtc_channel, MEAN_BANK::moderator_hv, MEAN_BANK::sample_b, SCANAMODULE_PARAM::sample_cf_ctrl_channel, MEAN_BANK::sample_hv, SCANAMODULE_PARAM::sample_hv_channel, SCANAMODULE_PARAM::sample_sc_gj_channel, MEAN_BANK::sample_t, SCANAMODULE_PARAM::sample_zeroflux_channel, sc_histo_vec, SC_MOD_CF, SC_MOD_HV, SC_MOD_XTC, SC_PRESSURE_SC_GJ, SC_SAMPLE_CF, SC_SAMPLE_HV, SC_SAMPLE_ZERO_FLUX, MEAN_BANK::var_moderator_hv, MEAN_BANK::var_sample_b, MEAN_BANK::var_sample_hv, and MEAN_BANK::var_sample_t.
INT sc_bor | ( | INT | run_number | ) |
Definition at line 111 of file sc_ana_module.cxx.
References hDB, hKey, N_SC_HIST, and sc_histo_vec.
INT sc_eor | ( | INT | run_number | ) |
Function sc_eor:
Definition at line 152 of file sc_ana_module.cxx.
References gHistoFolderStack, gManaHistosFolder, hDB, SCANAMODULE_PARAM::histotitles, hKey, hSC_Hist, N_SC_HIST, runinfo, runname, sc_histo_vec, and SCANAMODULE_PARAM::titles.
INT sc_exit | ( | ) |
Definition at line 101 of file sc_ana_module.cxx.
References sc_histo_vec.
INT sc_init | ( | void | ) |
Definition at line 91 of file sc_ana_module.cxx.
References N_SC_HIST, and sc_histo_vec.
SCANAMODULE_PARAM_STR | ( | sc_ana_param_str | ) |
TObjArray* gHistoFolderStack |
TFolder* gManaHistosFolder |
|
static |
Definition at line 82 of file sc_ana_module.cxx.
Referenced by sc_eor().
INFO info |
global info structure, in/out-init routines need the same structure
Definition at line 94 of file analyzer.cxx.
Referenced by hv_nhq_20xm_mscb(), hv_nhq_20xm_mscb_init(), mirror(), mirror_init(), open_odb_records(), SM_in(), sm_in_init(), SM_out(), and sm_out_init().
MEAN_BANK mean |
Definition at line 51 of file sc_ana_module.cxx.
|
static |
Definition at line 88 of file sc_ana_module.cxx.
Referenced by frontend_loop(), hv_nhq_20xm_mscb_set_ramping(), and hv_nhq_20xm_mscb_update_odb().
RUNINFO runinfo |
/Runinfo ODB key, defined in from midas.h
Not defined in experim.h:
Definition at line 83 of file analyzer.cxx.
ANA_MODULE sc_ana_module |
Definition at line 63 of file sc_ana_module.cxx.
SCANAMODULE_PARAM sc_ana_param |
Definition at line 52 of file sc_ana_module.cxx.
std::vector< std::vector<double> > sc_histo_vec |
TRIGGER_SETTINGS trigger_settings |
/Equipment/Trigger/Settings
The following structures are defined in experim.h that is created by entering 'make' in ODBedit.
ODB record values can be easily accessed by db_open_record which creates a hot-link to the structure; structure_name.keyvalue
Definition at line 93 of file analyzer.cxx.