Ignore:
Timestamp:
12/11/03 11:48:32 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.h

    r2521 r2636  
    77///////////////////////////////////////////////////////////////////////
    88
    9 #ifndef MARS_MParContainer
    10 #include "MParContainer.h"
     9#ifndef MARS_MTime
     10#include "MTime.h"
    1111#endif
    12 
    13 // gcc 3.2
    14 //class ifstream;
    15 #include <iosfwd>
    1612
    1713class TBuffer;
     
    4541    Char_t    fProjectName[22];
    4642    Char_t    fSourceName[12];
    47     //Float_t   fSourceRA;
    48     //Float_t   fSourceDEC;
    4943    Char_t    fSourceEpochChar[2];
    5044    UShort_t  fSourceEpochDate;
    51     Float_t   fMJD;
    52     UShort_t  fDateYear;
    53     UShort_t  fDateMonth;
    54     UShort_t  fDateDay;
    5545    UShort_t  fNumCrates;
    5646    UShort_t  fNumPixInCrate;
     
    5848    UShort_t  fNumSamplesHiGain;
    5949    UInt_t    fNumEvents;
     50    MTime     fRunStart;
     51    MTime     fRunStop;
    6052    MArrayS  *fPixAssignment;
    6153
     
    6456    ~MRawRunHeader();
    6557
    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; }
    7265    void SetNumSamples(UShort_t low, UShort_t high)
    7366    {
     
    7568        fNumSamplesHiGain=high;
    7669    }
    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; }
    8072
     73    // This is to get the numbers...
    8174    UShort_t GetMagicNumber() const       { return fMagicNumber; }
    82     UShort_t GetFormatversion() const     { return fFormatVersion; }
     75    UShort_t GetFormatVersion() const     { return fFormatVersion; }
    8376    UShort_t GetSoftVersion() const       { return fSoftVersion; }
    8477    UShort_t GetRunType() const           { return fRunType; }
     
    8679    const Char_t  *GetProjectName() const { return fProjectName; }
    8780    const Char_t  *GetSourceName() const  { return fSourceName; }
    88     //Float_t  GetSourceRa() const         { return fSourceRA; }
    89     //Float_t  GetSourceDec() const        { return fSourceDEC; }
    9081    const Char_t  *GetSourceEpocheChar() const { return fSourceEpochChar; }
    9182    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; }
    9683    UShort_t GetNumCrates() const         { return fNumCrates; }
    9784    UShort_t GetNumPixInCrate() const     { return fNumPixInCrate; }
     
    9986    UShort_t GetNumSamplesHiGain() const  { return fNumSamplesHiGain; }
    10087    UInt_t   GetNumEvents() const         { return fNumEvents; }
     88    const MTime &GetRunStart() const      { return fRunStart; }
     89    const MTime &GetRunEnd() const        { return fRunStop; }
    10190    UShort_t GetPixAssignment(UShort_t i) const;
    10291    UShort_t GetNumConnectedPixels() const;
     
    114103    void ReadEvt(istream& fin);
    115104
    116     ClassDef(MRawRunHeader, 1)  // storage container for general info
     105    ClassDef(MRawRunHeader, 2)  // storage container for general info
    117106};
    118107#endif
Note: See TracChangeset for help on using the changeset viewer.