source: trunk/MagicSoft/Simulation/Detector/include-MC/MCEventHeader_2.cxx@ 18468

Last change on this file since 18468 was 1563, checked in by blanch, 22 years ago
Class to read the header reflector file of reflector > 0.6
File size: 1.4 KB
Line 
1/////////////////////////////////////////////////////////////////
2//
3// MCEventHeader_2
4//
5// Created: Sat Oct 19 12:11:43 CEST 2002
6// Author: Oscar Blanch Bigas
7// Purpose: Base class for reflector 0.6 EventHeader
8// Notes:
9//
10/////////////////////////////////////////////////////////////////
11
12// @T \newpage
13
14// @section Source code of {\tt MCEventHeader_2.cxx}
15
16// @subsection Class {\em MCEventHeader_2}: Implementation
17
18// @code
19
20#include "MCEventHeader_2.hxx"
21
22void MCEventHeader_2::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.