1 | /* ======================================================================== *\
|
---|
2 | !
|
---|
3 | ! *
|
---|
4 | ! * This file is part of MARS, the MAGIC Analysis and Reconstruction
|
---|
5 | ! * Software. It is distributed to you in the hope that it can be a useful
|
---|
6 | ! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
|
---|
7 | ! * It is distributed WITHOUT ANY WARRANTY.
|
---|
8 | ! *
|
---|
9 | ! * Permission to use, copy, modify and distribute this software and its
|
---|
10 | ! * documentation for any purpose is hereby granted without fee,
|
---|
11 | ! * provided that the above copyright notice appear in all copies and
|
---|
12 | ! * that both that copyright notice and this permission notice appear
|
---|
13 | ! * in supporting documentation. It is provided "as is" without express
|
---|
14 | ! * or implied warranty.
|
---|
15 | ! *
|
---|
16 | !
|
---|
17 | !
|
---|
18 | ! Author(s): Oscar Blanch 11/2002 (blanch@ifae.es)
|
---|
19 | !
|
---|
20 | ! Copyright: MAGIC Software Development, 2000-2001
|
---|
21 | !
|
---|
22 | !
|
---|
23 | \* ======================================================================== */
|
---|
24 |
|
---|
25 | /////////////////////////////////////////////////////////////////////////////
|
---|
26 | //
|
---|
27 | // MMcCorsikaRunHeader
|
---|
28 | //
|
---|
29 | // Root storage container for the CORSIKA run header
|
---|
30 | //
|
---|
31 | // It saves in a root file all variable that are in the CORSIKA run header, except
|
---|
32 | // dummies.
|
---|
33 | //
|
---|
34 | ////////////////////////////////////////////////////////////////////////////
|
---|
35 | #include "MMcCorsikaRunHeader.h"
|
---|
36 |
|
---|
37 | ClassImp(MMcCorsikaRunHeader);
|
---|
38 |
|
---|
39 | // --------------------------------------------------------------------------
|
---|
40 | //
|
---|
41 | // Default constructor.
|
---|
42 | //
|
---|
43 | //
|
---|
44 | MMcCorsikaRunHeader::MMcCorsikaRunHeader(const char *name, const char *title)
|
---|
45 | {
|
---|
46 | fName = name ? name : "MMcCorsikaRunHeader";
|
---|
47 | fTitle = title ? title : "Translation of the CORSIKA header";
|
---|
48 |
|
---|
49 | fRunNumber = 0.0;
|
---|
50 | fDate = 0.0;
|
---|
51 | fCorsika_version = 0.0;
|
---|
52 | fNumObsLev = 0.0;
|
---|
53 | for(int i=0;i<10;i++)
|
---|
54 | fHeightLev[i]=0.0;
|
---|
55 | fSlopeSpec = 0.0;
|
---|
56 | fELowLim = 0.0;
|
---|
57 | fEUppLim = 0.0;
|
---|
58 | fEGS4_flag = 0.0;
|
---|
59 | fNKG_flag = 0.0;
|
---|
60 | fEcutoffh = 0.0;
|
---|
61 | fEcutoffm = 0.0;
|
---|
62 | fEcutoffe = 0.0;
|
---|
63 | fEcutoffg = 0.0;
|
---|
64 |
|
---|
65 | for(int i=0;i<50;i++) fC[i] = 0.0;
|
---|
66 | for(int i=0;i<40;i++) fCKA[i] = 0.0;
|
---|
67 | for(int i=0;i<5 ;i++) fCETA[i] = 0.0;
|
---|
68 | for(int i=0;i<11;i++) fCSTRBA[i] = 0.0;
|
---|
69 | for(int i=0;i<5;i++){
|
---|
70 | fAATM[i] = 0.0;
|
---|
71 | fBATM[i] = 0.0;
|
---|
72 | fCATM[i] = 0.0;
|
---|
73 | }
|
---|
74 | for(int i=0;i<4;i++) fNFL[i] = 0.0;
|
---|
75 |
|
---|
76 | }
|
---|
77 |
|
---|
78 | // -------------------------------------------------------------------------
|
---|
79 | //
|
---|
80 | // Fill Corsika Run Header
|
---|
81 | //
|
---|
82 | void MMcCorsikaRunHeader::Fill(const Float_t runnumber,
|
---|
83 | const Float_t date,
|
---|
84 | const Float_t vers,
|
---|
85 | const Float_t numobslev,
|
---|
86 | const Float_t height[10],
|
---|
87 | const Float_t slope,
|
---|
88 | const Float_t elow,
|
---|
89 | const Float_t eupp,
|
---|
90 | const Float_t egs4,
|
---|
91 | const Float_t nkg,
|
---|
92 | const Float_t eh,
|
---|
93 | const Float_t em,
|
---|
94 | const Float_t ee,
|
---|
95 | const Float_t eg,
|
---|
96 | const Float_t c[50],
|
---|
97 | const Float_t cka[40],
|
---|
98 | const Float_t ceta[5],
|
---|
99 | const Float_t cstrba[11],
|
---|
100 | const Float_t aatm[5],
|
---|
101 | const Float_t batm[5],
|
---|
102 | const Float_t catm[5],
|
---|
103 | const Float_t nfl[4])
|
---|
104 | {
|
---|
105 | fRunNumber = runnumber;
|
---|
106 | fDate = date;
|
---|
107 | fCorsika_version = vers;
|
---|
108 | fNumObsLev = numobslev;
|
---|
109 | for(int i=0;i<10;i++)
|
---|
110 | fHeightLev[i]=height[i];
|
---|
111 | fSlopeSpec = slope;
|
---|
112 | fELowLim = elow;
|
---|
113 | fEUppLim = eupp;
|
---|
114 | fEGS4_flag = egs4;
|
---|
115 | fNKG_flag = nkg;
|
---|
116 | fEcutoffh = eh;
|
---|
117 | fEcutoffm = em;
|
---|
118 | fEcutoffe = ee;
|
---|
119 | fEcutoffg = eg;
|
---|
120 |
|
---|
121 | for(int i=0;i<50;i++) fC[i] = c[i];
|
---|
122 | for(int i=0;i<40;i++) fCKA[i] = cka[i];
|
---|
123 | for(int i=0;i<5 ;i++) fCETA[i] = ceta[i];
|
---|
124 | for(int i=0;i<11;i++) fCSTRBA[i] = cstrba[i];
|
---|
125 | for(int i=0;i<5;i++){
|
---|
126 | fAATM[i] = aatm[i];
|
---|
127 | fBATM[i] = batm[i];
|
---|
128 | fCATM[i] = catm[i];
|
---|
129 | }
|
---|
130 | for(int i=0;i<4;i++) fNFL[i] = nfl[i];
|
---|
131 | }
|
---|