]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RALICE/icepack/iceconvert/rdmc_array_calib.c
21-jun-2005 NvE Install scripts for gcc corrected to also include the rdmc stuff
[u/mrichter/AliRoot.git] / RALICE / icepack / iceconvert / rdmc_array_calib.c
CommitLineData
f67e2651 1
2/* implements the array_calib_t structure */
3#include <string.h>
4
5#include "rdmc.h"
6
7void rdmc_init_array_calib(array_calib_t *c){
8 /* tdc */
9 c->t_0 = 0.0;
10 c->beta_t = 0.0;
11 c->alpha_t = 0.0;
12 /* adc */
13 c->ped = 0.0;
14 c->beta_a = 1.0;
15 c->kappa = 0.0;
16 /* tot */
17 c->ped_tot = 0.0;
18 c->beta_tot = 1.0;
19 c->kappa_tot = 0.0;
20
21 /* flag */
22 c->flag = 0; /* this was for longtime 1 but is now change to 0
23 because cause this is not valid but just the
24 default init */
25}
26
27void rdmc_clear_array_calib(array_calib_t *c){
28 rdmc_free_array_calib(c);
29 rdmc_init_array_calib(c);
30}
31
32void rdmc_free_array_calib(array_calib_t *c){
33 /* nothing */
34}
35
36void rdmc_init_array_calib_stat(array_calib_stat_t *cs){
37 cs->geo=0;
38 cs->adc=0;
39 cs->tdc=0;
40 cs->tot=0;
41 cs->utc=0;
42}
43
44void rdmc_clear_array_calib_stat(array_calib_stat_t *cs){
45 rdmc_free_array_calib_stat(cs);
46 rdmc_init_array_calib_stat(cs);
47}
48
49void rdmc_free_array_calib_stat(array_calib_stat_t *cs){
50 /* nothing */
51}
52
53void rdmc_init_array_calib_utc(array_calib_utc_t *cu){
54 strcpy(cu->utc_src,"?");
55 cu->secs = 0;
56 cu->nsecs = 0;
57}
58
59void rdmc_clear_array_calib_utc(array_calib_utc_t *cu){
60 rdmc_free_array_calib_utc(cu);
61 rdmc_init_array_calib_utc(cu);
62}
63
64void rdmc_free_array_calib_utc(array_calib_utc_t *cu){
65 /* nothing */
66}
67
68