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

Last change on this file since 1686 was 1535, checked in by bigongia, 22 years ago
Version 0.6. Changed output format: added run header, changed event header, added ascii parameter files attached at the end of every output file to keep all info.
File size: 753 bytes
Line 
1#include <string.h>
2#include "header.h"
3
4static RflEventHeader rhead; RflEventHeader *rheadp = &rhead;
5static CerEventHeader chead; CerEventHeader *cheadp = &chead;
6
7extern float fixed_Phi, fixed_Theta;
8extern int is_Fixed_Target;
9
10void TranslateHeader(RflEventHeader *r, CerEventHeader *c)
11{
12 memcpy(r,c,154*sizeof(float));
13
14 if (is_Fixed_Target) // <- Added in September 2002, AM
15 {
16 /* Next 2 variables added in June 2002, AM */
17 r->telescopePhi = fixed_Phi;
18 r->telescopeTheta = fixed_Theta;
19 }
20 // If no fixed target, telescope always points towards shower. AM Sep 2002
21 else
22 {
23 r->telescopePhi = cheadp->Phi;
24 r->telescopeTheta = cheadp->Theta;
25 }
26} /* end of TranslateHeader */
27
28
Note: See TracBrowser for help on using the repository browser.