source: trunk/MagicSoft/Simulation/Detector/include-CORSIKA/CORRunHeader.cxx@ 10117

Last change on this file since 10117 was 791, checked in by domingo, 24 years ago
New classes needed for MaxiSingle
File size: 3.0 KB
Line 
1/////////////////////////////////////////////////////////////////
2//
3// CORRunHeader
4//
5// Created: Thu May 10 15:32:13 2001
6// Author: Carles Domingo
7// Purpose: Base class for RunHeader-classes
8// Notes:
9//
10/////////////////////////////////////////////////////////////////
11
12// @T \newpage
13
14// @section Source code of {\tt CORRunHeader.cxx}
15
16// @subsection Class {\em CORRunHeader}: Implementation
17
18// @code
19
20#include "CORRunHeader.hxx"
21
22void
23CORRunHeader::reset(void) {
24
25 RunNumber = 0.;
26 DateRun = 0.;
27 VersionPGM = 0.;
28
29 NumObsLev = 0.;
30
31 SlopeSpec = 0.;
32 ELowLim = 0.;
33 EUppLim = 0.;
34
35 EGS4yn = 0.;
36 NKGyn = 0.;
37
38 Ecutoffh = 0.;
39 Ecutoffm = 0.;
40 Ecutoffe = 0.;
41 Ecutoffg = 0.;
42
43 NFLAIN = 0.;
44 NFLDIF = 0.;
45 NFLPI0_PIF = 0.;
46 NFLCHE_AGM = 0.;
47
48 for (Int_t i=0; i<5; i++ ){
49 AATM[i]=0.;
50 BATM[i]=0.;
51 CATM[i]=0.;
52 CETA[i]=0.;
53 }
54 for (Int_t i=0; i<10; i++){
55 HeightLev[i]=0.;
56 }
57 for (Int_t i=0; i<11; i++){
58 CSTRBA[i]=0.;
59 }
60 for (Int_t i=0; i<20; i++){
61 dmmy1[i]=0.;
62 }
63 for (Int_t i=0; i<40; i++){
64 CKA[i]=0.;
65 }
66 for (Int_t i=0; i<50; i++){
67 C[i]=0.;
68 }
69 for (Int_t i=0; i<104; i++){
70 dmmy2[i]=0.;
71 }
72}
73
74void
75CORRunHeader::print(void) {
76
77 cout << " RUNH :" << (char*)RUNH << endl;
78 cout << " RunNumber :" << RunNumber << endl;
79 cout << " DateRun :" << DateRun << endl;
80 cout << " VersionPGM :" << VersionPGM << endl;
81
82 cout << " NumObsLev :" << NumObsLev << endl;
83 cout << " HeightLev[0] :" << HeightLev[0] << endl;
84
85 cout << " SlopeSpec :" << SlopeSpec << endl;
86 cout << " ELowLim :" << ELowLim << endl;
87 cout << " EUppLim :" << EUppLim << endl;
88
89 cout << " EGS4yn :" << EGS4yn << endl;
90 cout << " NKGyn :" << NKGyn << endl;
91
92 cout << " Ecutoffh :" << Ecutoffh << endl;
93 cout << " Ecutoffm :" << Ecutoffm << endl;
94 cout << " Ecutoffe :" << Ecutoffe << endl;
95 cout << " Ecutoffg :" << Ecutoffg << endl;
96
97 cout << " NFLPI0_PIF :" << NFLPI0_PIF << endl;
98 cout << " NFLCHE_AGM :" << NFLCHE_AGM << endl;
99
100 cout << flush;
101}
102
103void CORRunHeader::transport( COREventHeader *e )
104{
105 CORRunHeader::reset () ;
106 strcpy (RUNH,"RUNH");
107 RunNumber = e->RunNumber;
108 DateRun = e->DateRun;
109 VersionPGM = e->VersionPGM;
110 NumObsLev = e->NumObsLev;
111
112 memcpy( HeightLev, e->HeightLev, 10*sizeof(Float_t) );
113
114 SlopeSpec = e->SlopeSpec;
115 ELowLim = e->ELowLim;
116 EUppLim = e->EUppLim;
117 EGS4yn = e->EGS4yn;
118 NKGyn = e->NKGyn;
119 Ecutoffh = e->Ecutoffh;
120 Ecutoffm = e->Ecutoffm;
121 Ecutoffe = e->Ecutoffe;
122 Ecutoffg = e->Ecutoffg;
123
124 NFLAIN = e->NFLAIN;
125 NFLDIF = e->NFLDIF;
126 NFLPI0_PIF = (e->NFLPI0) + 100*(e->NFLPIF) ;
127 NFLCHE_AGM = (e->NFLCHE) + 100*(e->NFRAGM) ;
128}
129
130// @endcode
Note: See TracBrowser for help on using the repository browser.