1 |
pam-fi |
1.1 |
#ifndef runinfostruct_h |
2 |
|
|
#define runinfostruct_h |
3 |
|
|
|
4 |
|
|
struct cSoftInfo { |
5 |
|
|
|
6 |
|
|
char trig_ver[8]; |
7 |
|
|
char tof_ver[8]; |
8 |
|
|
char ac_ver[8]; |
9 |
|
|
char trk_ver[8]; |
10 |
|
|
char cal_ver[8]; |
11 |
|
|
char s4_ver[8]; |
12 |
|
|
char nd_ver[8]; |
13 |
|
|
char orb_ver[8]; |
14 |
|
|
|
15 |
|
|
/** |
16 |
|
|
* Fill the struct variables from a TString object |
17 |
|
|
*/ |
18 |
|
|
void FillTrigWith(TString s){ |
19 |
|
|
int triglen = s.Length(); |
20 |
|
|
const char *pc = s.Data(); |
21 |
|
|
for(Int_t i=0; i<=triglen; i++) trig_ver[i] = *pc++; |
22 |
|
|
}; |
23 |
|
|
|
24 |
|
|
void FillTofWith(TString s){ |
25 |
|
|
int toflen = s.Length(); |
26 |
|
|
const char *pc = s.Data(); |
27 |
|
|
for(Int_t i=0; i<=toflen; i++) tof_ver[i] = *pc++; |
28 |
|
|
}; |
29 |
|
|
|
30 |
|
|
void FillTrkWith(TString s){ |
31 |
|
|
int trklen = s.Length(); |
32 |
|
|
const char *pc = s.Data(); |
33 |
|
|
for(Int_t i=0; i<=trklen; i++) trk_ver[i] = *pc++; |
34 |
|
|
}; |
35 |
|
|
|
36 |
|
|
void FillAcWith(TString s){ |
37 |
|
|
int aclen = s.Length(); |
38 |
|
|
const char *pc = s.Data(); |
39 |
|
|
for(Int_t i=0; i<=aclen; i++) ac_ver[i] = *pc++; |
40 |
|
|
}; |
41 |
|
|
|
42 |
|
|
void FillCalWith(TString s){ |
43 |
|
|
int callen = s.Length(); |
44 |
|
|
const char *pc = s.Data(); |
45 |
|
|
for(Int_t i=0; i<=callen; i++) cal_ver[i] = *pc++; |
46 |
|
|
}; |
47 |
|
|
|
48 |
|
|
void FillS4With(TString s){ |
49 |
|
|
int s4len = s.Length(); |
50 |
|
|
const char *pc = s.Data(); |
51 |
|
|
for(Int_t i=0; i<=s4len; i++) s4_ver[i] = *pc++; |
52 |
|
|
}; |
53 |
|
|
|
54 |
|
|
void FillNdWith(TString s){ |
55 |
|
|
int ndlen = s.Length(); |
56 |
|
|
const char *pc = s.Data(); |
57 |
|
|
for(Int_t i=0; i<=ndlen; i++) nd_ver[i] = *pc++; |
58 |
|
|
}; |
59 |
|
|
|
60 |
|
|
void FillOrbWith(TString s){ |
61 |
|
|
int orblen = s.Length(); |
62 |
|
|
const char *pc = s.Data(); |
63 |
|
|
for(Int_t i=0; i<=orblen; i++) orb_ver[i] = *pc++; |
64 |
|
|
}; |
65 |
|
|
|
66 |
|
|
}; |
67 |
|
|
|
68 |
|
|
#endif |