// File: hrichraw.h // **************************************************************************** // // HRichRaw // // Author: Witold Przygoda (przygoda@psja1.if.uj.edu.pl) // Modified: 1999/11/19 by Witold Przygoda (przygoda@psja1.if.uj.edu.pl) // ---------------------------------------------------------------------------- // // **************************************************************************** #ifndef HRICHRAW_H #define HRICHRAW_H #include "hlocateddataobject.h" #include // **************************************************************************** class HRichRaw : public HLocatedDataObject { // **************************************************************************** public: HRichRaw(); HRichRaw(const Float_t charge); virtual ~HRichRaw() {} Int_t clear(); Float_t getCharge() { return fCharge; } Float_t addCharge(Float_t q); void setCharge(Float_t q) { fCharge = q; } friend ostream& operator<< (ostream& output, HRichRaw& element); Int_t getSector() { return fSector; } Int_t getRow() { return fRow; } Int_t getCol() { return fCol; } void setSector(Int_t s) { fSector = s; } void setRow(Int_t r) { fRow = r; } void setCol(Int_t c) { fCol = c; } void setEventNr(Int_t nr) { fEventNr = nr; } Int_t getEventNr() { return fEventNr; } Int_t getNLocationIndex(); Int_t getLocationIndex(Int_t i); void getLocation(HLocation& loc); private: Int_t calcAddress(); Int_t fEventNr; Int_t fAddress; Float_t fCharge; Int_t fSector; Int_t fRow; Int_t fCol; ClassDef(HRichRaw,1) // Rich raw data }; //============================================================================ #endif // HRICHRAW_H