source: trunk/MagicSoft/Simulation/Detector/ReflectorII/header.c@ 859

Last change on this file since 859 was 725, checked in by harald, 24 years ago
Ciro and Denis changed the reflector to read in the changed MMCS output (single file version). They made a big change of all the code. That is the reason why I put here a new reflector directory in the repository. This is the future development point for reflector. Until the next drastic change. WARNING: Reflector here is only proved on OSF!!!
File size: 1.4 KB
Line 
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
8static RflHeader rhead; RflHeader *rheadp = &rhead;
9static CerHeader chead; CerHeader *cheadp = &chead;
10
11void 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 */
Note: See TracBrowser for help on using the repository browser.