Low-Energy Muon (LEM) Experiment  0.5.2
write_summary.cxx File Reference
#include <cstdio>
#include <cstring>
#include <ctime>
#include "midas.h"
#include "msystem.h"
#include "experim.h"
#include "nemu_experim.h"
Include dependency graph for write_summary.cxx:

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
 

Macro Definition Documentation

#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().

Function Documentation

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().

main ( int  argc,
char *  argv[] 
)
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().

void write_control_room_scaler ( FILE *  f)

write the relevant control room scaler information.

Parameters
ffile 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_hvdet ( FILE *  f)

Definition at line 719 of file write_summary.cxx.

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.

References line, and rate.

Referenced by display_scaler().

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().

Variable Documentation

FILE* file

Definition at line 94 of file write_summary.cxx.

Referenced by write_sum_file().

INFO info

Definition at line 91 of file write_summary.cxx.

ODB odb

Definition at line 89 of file write_summary.cxx.

Referenced by open_odb_records().

const char* odbElements[]
Initial value:
= {"/Runinfo",
"/Experiment/Run Parameters",
"/Equipment/Trigger/Settings",
"/Equipment/Trigger/Vme_Statistics",
"/Equipment/Scaler/Settings",
"/Analyzer/Parameters/ScalerSumRate",
"/Equipment/HV/Settings",
"/Equipment/HV/Variables",
"/Equipment/HV Detectors/Settings",
"/Equipment/HV Detectors/Variables",
"/Equipment/Beamline/Settings",
"/Equipment/Beamline/Variables",
"/Equipment/ModCryo/Settings",
"/Equipment/ModCryo/Variables",
"/Equipment/SampleCryo/Settings",
"/Equipment/SampleCryo/Variables",
"/Equipment/LEMVAC/Settings",
"/Equipment/LEMVAC/Variables",
"/Equipment/SCS2001M/Variables",
"/Equipment/SlowControl/Variables/MEAN",
"/Analyzer/Parameters/TOFAnaModule",
"/Equipment/Danfysik_Spin_Rot/Variables",
"/Equipment/Omega/Variables",
}

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().