Low-Energy Muon (LEM) Experiment
0.5.2
|
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <math.h>
#include "midas.h"
#include "rmidas.h"
#include "v1190.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 | POS_FLAG_LD (1<<0) |
#define | POS_FLAG_TD (1<<1) |
#define | POS_FLAG_RD (1<<2) |
#define | POS_FLAG_BD (1<<3) |
#define | POS_FLAG_LU (1<<4) |
#define | POS_FLAG_TU (1<<5) |
#define | POS_FLAG_RU (1<<6) |
#define | POS_FLAG_BU (1<<7) |
Functions | |
DECAYANAMODULE_PARAM_STR (decay_ana_param_str) | |
INT | decay_init (void) |
INT | decay_ana (EVENT_HEADER *, void *) |
INT | decay_bor (INT run_number) |
INT | decay_eor (INT run_number) |
Variables | |
RUNINFO | runinfo |
/Runinfo ODB key, defined in from midas.h More... | |
TRIGGER_SETTINGS | trigger_settings |
/Equipment/Trigger/Settings More... | |
T0SHIFT_PARAM | t0shift_param |
DECAYANAMODULE_PARAM | decay_ana_param |
ANA_MODULE | decay_ana_module |
static TH1F * | hDecHist [4 *N_DECAY_HISTS] |
TFolder * | gManaHistosFolder |
TObjArray * | gHistoFolderStack |
static DWORD | dataWindowMuonDecay |
#define POS_FLAG_BD (1<<3) |
Definition at line 77 of file decay_ana_module.cxx.
Referenced by decay_ana().
#define POS_FLAG_BU (1<<7) |
Definition at line 81 of file decay_ana_module.cxx.
Referenced by decay_ana().
#define POS_FLAG_LD (1<<0) |
Definition at line 74 of file decay_ana_module.cxx.
Referenced by decay_ana().
#define POS_FLAG_LU (1<<4) |
Definition at line 78 of file decay_ana_module.cxx.
Referenced by decay_ana().
#define POS_FLAG_RD (1<<2) |
Definition at line 76 of file decay_ana_module.cxx.
Referenced by decay_ana().
#define POS_FLAG_RU (1<<6) |
Definition at line 80 of file decay_ana_module.cxx.
Referenced by decay_ana().
#define POS_FLAG_TD (1<<1) |
Definition at line 75 of file decay_ana_module.cxx.
Referenced by decay_ana().
#define POS_FLAG_TU (1<<5) |
Definition at line 79 of file decay_ana_module.cxx.
Referenced by decay_ana().
INT decay_ana | ( | EVENT_HEADER * | pheader, |
void * | pevent | ||
) |
Function decay_ana:
locates TDC0 bank, fills decay time histograms
Definition at line 183 of file decay_ana_module.cxx.
References LEM_DATA::channel, LEM_DATA::data, DATA_N_HITS, dataWindowMuonDecay, T0SHIFT_PARAM::delta_t0, EVENT_0_TYPE, EXTOFF1_FLAG, EXTON1_FLAG, hDecHist, MCP2F, N_TDC_CHANNELS, NEW_EVENT_MASK, POS_FLAG_BD, POS_FLAG_BU, POS_FLAG_LD, POS_FLAG_LU, POS_FLAG_RD, POS_FLAG_RU, POS_FLAG_TD, POS_FLAG_TU, POSBDI, POSBDO, POSBUI, POSBUO, POSLDI, POSLDO, POSLUI, POSLUO, POSRDI, POSRDO, POSRUI, POSRUO, POSTDI, POSTDO, POSTUI, POSTUO, and TD.
INT decay_bor | ( | INT | run_number | ) |
Function decay_bor:
Changes titles of decay histograms:
overwrites runname and run_number
Definition at line 141 of file decay_ana_module.cxx.
References TRIGGER_SETTINGS::data_window, dataWindowMuonDecay, DECAYANAMODULE_PARAM::decaytitles, TRIGGER_SETTINGS::event_1_active, TRIGGER_SETTINGS::event_1_settings, TRIGGER_SETTINGS::event_2_settings, TRIGGER_SETTINGS::events, hDecHist, DECAYANAMODULE_PARAM::histotitles, N_DECAY_HISTS, runinfo, and runname.
INT decay_eor | ( | INT | run_number | ) |
Definition at line 171 of file decay_ana_module.cxx.
INT decay_init | ( | void | ) |
Function decay_init:
Creates decay histograms. Gets title and bin information from ODB.
Definition at line 92 of file decay_ana_module.cxx.
References dataWindowMuonDecay, DECAYANAMODULE_PARAM::decaybin, DECAYANAMODULE_PARAM::decaytitles, hDecHist, DECAYANAMODULE_PARAM::histobinning, DECAYANAMODULE_PARAM::histotitles, N_DECAY_HISTS, N_OFFSET_ONOFF_HISTOGRAMS, N_OFFSET_PPC_HISTOGRAMS, runinfo, and runname.
DECAYANAMODULE_PARAM_STR | ( | decay_ana_param_str | ) |
|
static |
Definition at line 83 of file decay_ana_module.cxx.
Referenced by decay_ana(), decay_bor(), and decay_init().
ANA_MODULE decay_ana_module |
Define analyser modules which are from external source code. ana_module tof_ana_module = tof_ana_module.c ana_module scaler_rate_sum = scaler_rate_sum.c
Definition at line 53 of file decay_ana_module.cxx.
DECAYANAMODULE_PARAM decay_ana_param |
Definition at line 44 of file decay_ana_module.cxx.
TObjArray* gHistoFolderStack |
Referenced by sc_eor().
TFolder* gManaHistosFolder |
|
static |
Definition at line 68 of file decay_ana_module.cxx.
Referenced by decay_ana(), decay_bor(), and decay_init().
RUNINFO runinfo |
/Runinfo ODB key, defined in from midas.h
Not defined in experim.h:
Definition at line 83 of file analyzer.cxx.
T0SHIFT_PARAM t0shift_param |
Definition at line 99 of file analyzer.cxx.
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.