#ifndef HRTSEGMENTREF_H
#define HRTSEGMENTREF_H

#include "TObject.h"
#include "hgeomvector.h"
#include "hmdcseg.h"
#include "hmdchit.h"
#include "hrtmetaseg.h"

class HRtSegmentRef : public TObject {
public:
  HRtSegmentRef(void) { fTimesUsed=0; }
  ~HRtSegmentRef(void);
  HGeomVector &getR(void) { return fR; }
  HGeomVector &getAlpha(void) { return fAlpha; }
  TObject *getSegment(void) { return fSeg; }
  void setSegment(HMdcSeg *seg) { fSeg = seg; }
  void setSegment(HMdcHit *hit) { fSeg = hit; }
  void setSegment(HRtMetaSeg *hit) { fSeg = hit; }
  Int_t getUsedTimes(void) { return fTimesUsed; }
  HSymMat &getCovariance(void) { return fCovariance; }
protected:
  HGeomVector fR, fAlpha; //These two vectors define a straight line
  HSymMat4 fCovariance; //Covariance in the system x0,y0,x',y'
  TObject *fSeg;          //Original segment
  Int_t fTimesUsed;       //How many times this Ref was used
public:
  ClassDef(HRtSegmentRef,1)
};

#endif

Last change: Sat May 22 13:12:11 2010
Last generated: 2010-05-22 13:12

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.