#ifndef HSTSRAW_H #define HSTSRAW_H #include #include class HStsRaw : public TObject { private: Char_t fModule; // module number (0 and 1 for Straw modules) Char_t fLayer; // layer number (0 - 3) Short_t fStraw; // straw number Char_t fUpDown; // up-down straw Float_t fTime; // hit detection time (tof + drift_time) Float_t fWidth; // signal width Char_t fMult; // hits multiplicity in the straw (only first is stored) public: HStsRaw(); void getAddress(Char_t &m, Char_t &l, Int_t &s, Char_t &ud) const; void setAddress(Char_t m, Char_t l, Int_t s, Char_t ud); void getTimeAndWidth(Float_t &time, Float_t &adc) const; void setTimeAndWidth(Float_t time, Float_t width); Int_t getModule() const { return fModule; } Int_t getLayer() const { return fLayer; } Int_t getStraw() const { return fStraw; } Int_t getUpDown() const { return fUpDown; } Float_t getTime() const { return fTime; } Float_t getWidth() const { return fWidth; } Int_t getMultiplicity() const { return fMult; } void print() const; ClassDef(HStsRaw, 1); }; #endif /* ! HSTSRAW_H */