00001 00002 // NtpSRCosmicRay 00003 // 00004 // NtpSRCosmicRay is an ntuple class to hold cosmic ray data 00005 // 00006 // Based on Roy Lee's CandEventSR/CosmicRayInfoSR class 00008 00009 #ifndef NTPSRCOSMICRAY_H 00010 #define NTPSRCOSMICRAY_H 00011 00012 #include "TObject.h" 00013 00014 class NtpSRCosmicRay; 00015 std::ostream &operator << (std::ostream& os, const NtpSRCosmicRay& cr); 00016 00017 class NtpSRCosmicRay : public TObject { 00018 00019 public: 00020 // Constructors & Destructors 00021 NtpSRCosmicRay(): zenith(-9999.),azimuth(-9999.),ra(-9999.), 00022 rahourangle(-9999.),dec(-9999.),juliandate(-9999.), 00023 locsiderialtime(-9999.) {} 00024 virtual ~NtpSRCosmicRay() {} 00025 00026 // State testing methods 00027 virtual std::ostream& Print(std::ostream& os) const; 00028 virtual void Print(Option_t* option = "") const; 00029 00030 public: 00031 // Ntuple is treated like a C-struct with public data members and 00032 // rule-breaking field data members not prefaced by "f" and all 00033 // lowercase, by popular demand. 00034 00035 Float_t zenith; // zenith angle (degrees) 00036 Float_t azimuth; // azimuthal angle measured easterly from north (degrees) 00037 Float_t ra; // right ascension (degrees) 00038 Float_t rahourangle; // right ascension (hours) 00039 Float_t dec; // declination (degrees) 00040 Double_t juliandate; // julian date (days since Jan 1, 4713 BC 12h UT) 00041 Float_t locsiderialtime; // local sidereal time (hours) 00042 00043 ClassDef(NtpSRCosmicRay,1) 00044 }; 00045 00046 00047 #endif // NTPSRCOSMICRAY_H
1.3.9.1