source: trunk/MagicSoft/Simulation/Detector/include-MC/MCEventHeader.cxx@ 18066

Last change on this file since 18066 was 295, checked in by harald, 25 years ago
In this directory you can find a implementation to write and read the output of the reflector program. This classes are needed in the reflector and the camera program. The work in the past was done by Jose Carlos Gonzales. In the future all can work on this using CVS.
File size: 1.4 KB
Line 
1/////////////////////////////////////////////////////////////////
2//
3// MCEventHeader
4//
5// Created: Tue Apr 28 16:27:14 1998
6// Author: Jose Carlos Gonzales
7// Purpose: Base class for EventHeader-classes
8// Notes:
9//
10/////////////////////////////////////////////////////////////////
11
12// @T \newpage
13
14// @section Source code of {\tt MCEventHeader.cxx}
15
16// @subsection Class {\em MCEventHeader}: Implementation
17
18// @code
19
20#include "MCEventHeader.hxx"
21
22void MCEventHeader::transport( COREventHeader *e )
23{
24 EvtNumber = e->EvtNumber;
25 PrimaryID = e->PrimaryID;
26 Etotal = e->Etotal;
27 Thick0 = e->Thick0;
28 FirstTarget = e->FirstTarget;
29 zFirstInt = e->zFirstInt;
30 Theta = e->Theta;
31 Phi = e->Phi;
32 NumRndSeq = e->NumRndSeq;
33 RunNumber = e->RunNumber;
34 DateRun = e->DateRun;
35 VersionPGM = e->VersionPGM;
36 NumObsLev = e->NumObsLev;
37 SlopeSpec = e->SlopeSpec;
38 ELowLim = e->ELowLim;
39 EUppLim = e->EUppLim;
40 ThetaMin = e->ThetaMin;
41 ThetaMax = e->ThetaMax;
42 PhiMin = e->PhiMin;
43 PhiMax = e->PhiMax;
44 CWaveLower = e->CWaveLower;
45 CWaveUpper = e->CWaveUpper;
46
47 memcpy( p, e->p, 3*sizeof(Float_t) );
48 memcpy( RndData, e->RndData, 30*sizeof(Float_t) );
49 memcpy( HeightLev, e->HeightLev, 10*sizeof(Float_t) );
50 memcpy( CorePos, e->CorePos, 40*sizeof(Float_t) );
51}
52
53// @endcode
Note: See TracBrowser for help on using the repository browser.