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

Last change on this file since 9205 was 9186, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 2.4 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 fImpactMax; // [cm] Maximum simulated impact
36
37 Float_t fViewConeInnerAngle; // [deg]
38 Float_t fViewConeOuterAngle; // [deg]
39
40public:
41 MCorsikaRunHeader(const char *name=NULL, const char *title=NULL);
42
43 UInt_t GetFormatVersion() const { return (UInt_t)fProgramVersion; }
44 Bool_t HasViewCone() const { return fViewConeOuterAngle>0; }
45
46 Float_t GetZdMin() const { return fZdMin; }
47 Float_t GetZdMax() const { return fZdMax; }
48
49 Float_t GetAzMin() const { return fAzMin; }
50 Float_t GetAzMax() const { return fAzMax; }
51
52 //Float_t GetImpactMax() const { return fImpactMax; }
53
54 Float_t GetViewConeOuterAngle() const { return fViewConeOuterAngle; }
55
56 UInt_t GetNumEvents() const { return fNumEvents; }
57
58 void Print(Option_t *t=NULL) const;
59
60 Bool_t ReadEvt(istream& fin);
61 Bool_t ReadEvtEnd(istream& fin);
62 Bool_t SeekEvtEnd(istream &fin);
63
64 ClassDef(MCorsikaRunHeader, 1) // storage container for general info
65};
66#endif
Note: See TracBrowser for help on using the repository browser.