Changeset 2636 for trunk/MagicSoft/Mars/mraw/MRawRunHeader.h
- Timestamp:
- 12/11/03 11:48:32 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawRunHeader.h
r2521 r2636 7 7 /////////////////////////////////////////////////////////////////////// 8 8 9 #ifndef MARS_M ParContainer10 #include "M ParContainer.h"9 #ifndef MARS_MTime 10 #include "MTime.h" 11 11 #endif 12 13 // gcc 3.214 //class ifstream;15 #include <iosfwd>16 12 17 13 class TBuffer; … … 45 41 Char_t fProjectName[22]; 46 42 Char_t fSourceName[12]; 47 //Float_t fSourceRA;48 //Float_t fSourceDEC;49 43 Char_t fSourceEpochChar[2]; 50 44 UShort_t fSourceEpochDate; 51 Float_t fMJD;52 UShort_t fDateYear;53 UShort_t fDateMonth;54 UShort_t fDateDay;55 45 UShort_t fNumCrates; 56 46 UShort_t fNumPixInCrate; … … 58 48 UShort_t fNumSamplesHiGain; 59 49 UInt_t fNumEvents; 50 MTime fRunStart; 51 MTime fRunStop; 60 52 MArrayS *fPixAssignment; 61 53 … … 64 56 ~MRawRunHeader(); 65 57 66 void SetMagicNumber(UShort_t a) { fMagicNumber=a; } 67 void SetFormatVersion(UShort_t a){ fFormatVersion=a; } 68 void SetSoftVersion(UShort_t a) { fSoftVersion=a; } 69 void SetRunType(UShort_t a) { fRunType=a; } 70 void SetRunNumber(UInt_t a) { fRunNumber=a; } 71 void SetNumEvents(UInt_t a) { fNumEvents=a; } 58 // This is to be used in the MC chain only! 59 void SetMagicNumber(UShort_t a) { fMagicNumber=a; } 60 void SetFormatVersion(UShort_t a) { fFormatVersion=a; } 61 void SetSoftVersion(UShort_t a) { fSoftVersion=a; } 62 void SetRunType(UShort_t a) { fRunType=a; } 63 void SetRunNumber(UInt_t a) { fRunNumber=a; } 64 void SetNumEvents(UInt_t a) { fNumEvents=a; } 72 65 void SetNumSamples(UShort_t low, UShort_t high) 73 66 { … … 75 68 fNumSamplesHiGain=high; 76 69 } 77 void SetNumCrates(UShort_t a) {fNumCrates=a; } 78 void SetNumPixInCrate(UShort_t a){fNumPixInCrate=a; } 79 void SetMJD(Float_t a) {fMJD=a; } 70 void SetNumCrates(UShort_t a) { fNumCrates=a; } 71 void SetNumPixInCrate(UShort_t a) { fNumPixInCrate=a; } 80 72 73 // This is to get the numbers... 81 74 UShort_t GetMagicNumber() const { return fMagicNumber; } 82 UShort_t GetFormat version() const { return fFormatVersion; }75 UShort_t GetFormatVersion() const { return fFormatVersion; } 83 76 UShort_t GetSoftVersion() const { return fSoftVersion; } 84 77 UShort_t GetRunType() const { return fRunType; } … … 86 79 const Char_t *GetProjectName() const { return fProjectName; } 87 80 const Char_t *GetSourceName() const { return fSourceName; } 88 //Float_t GetSourceRa() const { return fSourceRA; }89 //Float_t GetSourceDec() const { return fSourceDEC; }90 81 const Char_t *GetSourceEpocheChar() const { return fSourceEpochChar; } 91 82 UShort_t GetSourceEpocheDate() const { return fSourceEpochDate; } 92 Float_t GetMJD() const { return fMJD; }93 UShort_t GetDateYear() const { return fDateYear; }94 Byte_t GetDateMonth() const { return fDateMonth; }95 Byte_t GetDateDay() const { return fDateDay; }96 83 UShort_t GetNumCrates() const { return fNumCrates; } 97 84 UShort_t GetNumPixInCrate() const { return fNumPixInCrate; } … … 99 86 UShort_t GetNumSamplesHiGain() const { return fNumSamplesHiGain; } 100 87 UInt_t GetNumEvents() const { return fNumEvents; } 88 const MTime &GetRunStart() const { return fRunStart; } 89 const MTime &GetRunEnd() const { return fRunStop; } 101 90 UShort_t GetPixAssignment(UShort_t i) const; 102 91 UShort_t GetNumConnectedPixels() const; … … 114 103 void ReadEvt(istream& fin); 115 104 116 ClassDef(MRawRunHeader, 1) // storage container for general info105 ClassDef(MRawRunHeader, 2) // storage container for general info 117 106 }; 118 107 #endif
Note:
See TracChangeset
for help on using the changeset viewer.