00001 00002 // $Id: ANtpHeader.h,v 1.1 2005/05/06 21:13:02 minoscvs Exp $ 00003 // 00004 // A header class for ANtp info objects - shamelessly stolen from NueAna 00005 // 00006 // B. Rebel 05/2005 00008 #ifndef ANTPHEADER_H 00009 #define ANTPHEADER_H 00010 00011 #include "Validity/VldContext.h" 00012 #include "Record/RecHeader.h" 00013 00014 class ANtpHeader : public RecHeader 00015 { 00016 public: 00017 ANtpHeader(); 00018 ANtpHeader(const VldContext &vld); 00019 virtual ~ANtpHeader(); 00020 00021 virtual std::ostream &Print(std::ostream &os) const; 00022 virtual void Print(Option_t *option="") const; 00023 00024 const int GetSnarl() const; 00025 const int GetRun() const; 00026 const int GetSubRun() const; 00027 const int GetEvents() const; 00028 const double GetJulianDate() const; 00029 const double GetLocalSiderealTime() const; 00030 00031 void SetSnarl(int s); 00032 void SetRun(int r); 00033 void SetSubRun(int sr); 00034 void SetEvents(int nevt); 00035 void SetJulianDate(double jd); 00036 void SetLocalSiderealTime(double lst); 00037 00038 private: 00039 int fSnarl; 00040 int fRun; 00041 int fSubRun; 00042 int fEvents; 00043 double fJulianDate; 00044 double fLocalSiderealTime; 00045 00046 ClassDef(ANtpHeader, 1) 00047 }; 00048 00049 inline const int ANtpHeader::GetSnarl() const {return fSnarl;} 00050 inline const int ANtpHeader::GetRun() const {return fRun;} 00051 inline const int ANtpHeader::GetSubRun() const {return fSubRun;} 00052 inline const int ANtpHeader::GetEvents() const {return fEvents;} 00053 inline const double ANtpHeader::GetJulianDate() const {return fJulianDate;} 00054 inline const double ANtpHeader::GetLocalSiderealTime() const {return fLocalSiderealTime;} 00055 00056 inline void ANtpHeader::SetSnarl(int s) {fSnarl = s;} 00057 inline void ANtpHeader::SetRun(int r) {fRun = r;} 00058 inline void ANtpHeader::SetSubRun(int sr) {fSubRun = sr;} 00059 inline void ANtpHeader::SetEvents(int n) {fEvents = n;} 00060 inline void ANtpHeader::SetJulianDate(double jd) {fJulianDate = jd;} 00061 inline void ANtpHeader::SetLocalSiderealTime(double lst) {fLocalSiderealTime = lst;} 00062 00063 #endif //ANTPHEADER_H
1.3.9.1