//**************************************************************************** // HGeantMdc // // GEANT MDC hit data class // // last modified on 31/03/2004 by R.Holzmann (GSI) //**************************************************************************** #ifndef HGEANTMDC_H #define HGEANTMDC_H #include "hlinkeddataobject.h" class HGeantMdc : public HLinkedDataObject { private: Int_t trackNumber; // GEANT track number (1...N) Float_t xHit; // x of hit (in mm) in module coord. system Float_t yHit; // y of hit (in mm) in module coord. system Float_t thetaHit; // theta of hit (0-180 deg) in module coord. sys. Float_t phiHit; // phi of hit (0-360 deg) in module coord. sys. Float_t tofHit; // time of flight of hit (in ns) Float_t momHit; // total momentum of hitting particle (in MeV/c) Char_t sector; // sector number (0...5) Char_t module; // module number (0...3) Char_t layer; // layer number (0...6, layer 6 = central cathode) public: HGeantMdc(void); HGeantMdc(HGeantMdc &aMdc); ~HGeantMdc(void); inline void setTrack(Int_t aTrack) {trackNumber = aTrack;} void setHit(Float_t ax, Float_t ay, Float_t atof, Float_t ptof); void setIncidence(Float_t ath, Float_t aph); void setAddress (Char_t s, Char_t m, Char_t l); virtual Int_t getTrack(void) {return trackNumber;} void getHit(Float_t& ax, Float_t& ay, Float_t& atof, Float_t& ptof); void getIncidence(Float_t &ath, Float_t &aph); inline Char_t getSector(void) {return sector;} inline Char_t getModule(void) {return module;} inline Char_t getLayer(void) {return layer;} inline Int_t getNLocationIndex(void) {return 3;} Int_t getLocationIndex(Int_t i); ClassDef(HGeantMdc,3) // GEANT MDC hit data class }; #endif /*! HGEANTMDC_H */