#ifndef HMDCSEGSIM_H #define HMDCSEGSIM_H #include "hmdcseg.h" class HMdcSegSim : public HMdcSeg { protected: Short_t nTracks; // number of tracks in the list of tracks Int_t listTracks[5]; // list of tracks UChar_t nTimes[5]; // number of times from each track Int_t status; // status of seg. (e.g. 1 if ok) public: HMdcSegSim(void) : nTracks(-1), status(0) {;} ~HMdcSegSim(void) {;} void clear(void) {nTracks=0; status=0; HMdcSeg::Clear();} void setStatus(const Int_t f) { status=f; } void setNTracks(const Int_t nTr, const Int_t* listTr, const UChar_t* nTm); Int_t getStatus(void) const { return status; } Int_t getNTracks(void) { return (nTracks>=0) ? nTracks : calcNTracks(); } Int_t getTrack(const Int_t n) { if(nTracks<0) calcNTracks(); return (n>=0 && n=0 && n