1 | #include <string.h>
|
---|
2 | #include "header.h"
|
---|
3 |
|
---|
4 | /* Need to be defined the procedures to set the values in
|
---|
5 | float TimeFirst;
|
---|
6 | float TimeLast; */
|
---|
7 |
|
---|
8 | static RflHeader rhead; RflHeader *rheadp = &rhead;
|
---|
9 | static CerHeader chead; CerHeader *cheadp = &chead;
|
---|
10 |
|
---|
11 | void TranslateHeader(RflHeader *r, CerHeader *c)
|
---|
12 | {
|
---|
13 | r->EvtNumber = c->EvtNumber;
|
---|
14 | r->PrimaryID = c->PrimaryID;
|
---|
15 | r->Etotal = c->Etotal;
|
---|
16 | r->Thick0 = c->Thick0;
|
---|
17 | r->FirstTarget = c->FirstTarget;
|
---|
18 | r->zFirstInt = c->zFirstInt;
|
---|
19 | r->Theta = c->Theta;
|
---|
20 | r->Phi = c->Phi;
|
---|
21 | r->NumRndSeq = c->NumRndSeq;
|
---|
22 | r->RunNumber = c->RunNumber;
|
---|
23 | r->DateRun = c->DateRun;
|
---|
24 | r->VersionPGM = c->VersionPGM;
|
---|
25 | r->NumObsLev = c->NumObsLev;
|
---|
26 | r->SlopeSpec = c->SlopeSpec;
|
---|
27 | r->ELowLim = c->ELowLim;
|
---|
28 | r->EUppLim = c->EUppLim;
|
---|
29 | r->ThetaMin = c->ThetaMin;
|
---|
30 | r->ThetaMax = c->ThetaMax;
|
---|
31 | r->PhiMin = c->PhiMin;
|
---|
32 | r->PhiMax = c->PhiMax;
|
---|
33 | r->CWaveLower = c->CWaveLower;
|
---|
34 | r->CWaveUpper = c->CWaveUpper;
|
---|
35 |
|
---|
36 | memcpy(r->p, c->p, 3*sizeof(float));
|
---|
37 | memcpy(r->RndData, c->RndData, 30*sizeof(float));
|
---|
38 | memcpy(r->HeightLev, c->HeightLev, 10*sizeof(float));
|
---|
39 | memcpy(r->CorePos, c->CorePos, 40*sizeof(float));
|
---|
40 |
|
---|
41 | r->deviationPhi = r->deviationTheta = r->Trigger = 0.f;
|
---|
42 |
|
---|
43 | } /* end of TranslateHeader */
|
---|