source: trunk/MagicSoft/Mars/mcorsika/MCorsikaRunHeader.h@ 9291

Last change on this file since 9291 was 9212, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 2.6 KB
Line 
1#ifndef MARS_MCorsikaRunHeader
2#define MARS_MCorsikaRunHeader
3///////////////////////////////////////////////////////////////////////
4// //
5// MRunHeader //
6// //
7///////////////////////////////////////////////////////////////////////
8
9#ifndef MARS_MTime
10#include "MTime.h"
11#endif
12
13class MCorsikaRunHeader : public MParContainer
14{
15 friend class MCorsikaEvtHeader;
16
17private:
18 UInt_t fRunNumber; // Run number
19 UInt_t fNumEvents; // Number of events
20 MTime fRunStart; // Date of begin (yymmdd)
21 Float_t fProgramVersion; // Version of program
22
23 Byte_t fNumObsLevel; // Number of observation levels
24 Float_t fObsLevel[10]; //[fNumObsLevel] Observation levels [cm]
25
26 Float_t fSlopeSpectrum; // Slope of energy spectrum
27 Float_t fEnergyMin; // Lower limit of energy range
28 Float_t fEnergyMax; // Upper limit of energy range
29
30 Float_t fZdMin; // [rad] Zenith distance
31 Float_t fZdMax; // [rad] Zenith distance
32 Float_t fAzMin; // [rad] Azimuth (north=0; west=90)
33 Float_t fAzMax; // [rad] Azimuth (north=0; west=90)
34
35 Float_t fWavelengthMin; // [nm] Wavelength bandwidth lo edge
36 Float_t fWavelengthMax; // [nm] Wavelength bandwidth up edge
37
38 //Float_t fImpactMax; // [cm] Maximum simulated impact
39
40 Float_t fViewConeInnerAngle; // [deg]
41 Float_t fViewConeOuterAngle; // [deg]
42
43public:
44 MCorsikaRunHeader(const char *name=NULL, const char *title=NULL);
45
46 UInt_t GetFormatVersion() const { return (UInt_t)fProgramVersion; }
47 Bool_t HasViewCone() const { return fViewConeOuterAngle>0; }
48
49 Float_t GetZdMin() const { return fZdMin; }
50 Float_t GetZdMax() const { return fZdMax; }
51
52 Float_t GetAzMin() const { return fAzMin; }
53 Float_t GetAzMax() const { return fAzMax; }
54
55 Float_t GetWavelengthMin() const { return fWavelengthMin; }
56 Float_t GetWavelengthMax() const { return fWavelengthMax; }
57
58 //Float_t GetImpactMax() const { return fImpactMax; }
59
60 Float_t GetViewConeOuterAngle() const { return fViewConeOuterAngle; }
61
62 UInt_t GetNumEvents() const { return fNumEvents; }
63
64 void Print(Option_t *t=NULL) const;
65
66 Bool_t ReadEvt(istream& fin);
67 Bool_t ReadEvtEnd(istream& fin);
68 Bool_t SeekEvtEnd(istream &fin);
69
70 ClassDef(MCorsikaRunHeader, 1) // storage container for general info
71};
72#endif
Note: See TracBrowser for help on using the repository browser.