ROOT logo
Podd » SRC » THaTrackInfo

class THaTrackInfo


 THaTrackInfo

 Utility class/structure for holding track information.


Function Members (Methods)

public:
THaTrackInfo()
THaTrackInfo(const THaTrackInfo& t)
THaTrackInfo(Double_t p, Double_t dp, Double_t x, Double_t y, Double_t th, Double_t ph, const TVector3& pvect)
THaTrackInfo(Double_t p, Double_t dp, Double_t x, Double_t y, Double_t th, Double_t ph, Double_t px, Double_t py, Double_t pz)
virtual~THaTrackInfo()
static TClass*Class()
voidClear(Option_t* opt = "")
Double_tGetDp() const
Double_tGetP() const
Double_tGetPhi() const
const TVector3&GetPvect() const
Double_tGetPx() const
Double_tGetPy() const
Double_tGetPz() const
THaSpectrometer*GetSpectrometer() const
Double_tGetTheta() const
Double_tGetX() const
Double_tGetY() const
virtual TClass*IsA() const
Bool_tIsOK() const
THaTrackInfo&operator=(const THaTrackInfo&)
THaTrackInfo&operator=(const THaTrack&)
voidSet(Double_t p, Double_t dp, Double_t x, Double_t y, Double_t th, Double_t ph, const TVector3& pvect)
voidSet(Double_t p, Double_t dp, Double_t x, Double_t y, Double_t th, Double_t ph, Double_t px, Double_t py, Double_t pz)
voidSetP(Double_t p)
voidSetSpectrometer(THaSpectrometer* s)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)

Data Members

protected:
Double_tfDpTRANSPORT delta
Int_tfOKData ok (0:no 1:yes)
Double_tfPTrack momentum (GeV)
Double_tfPhiTangent of TRANSPORT phi at target
TVector3fPvectMomentum vector in lab (GeV)
THaSpectrometer*fSpectro! Spectrometer creating this track
Double_tfThetaTangent of TRANSPORT theta at target
Double_tfXTRANSPORT x at target (m)
Double_tfYTRANSPORT y at target (m)
private:
static const Double_tkBig

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

THaTrackInfo& operator=(const THaTrackInfo& )
 Assignment operator
THaTrackInfo& operator=(const THaTrack& )
 Assignment to a track
void Clear(Option_t* opt = "")
void SetP(Double_t p)
 Set momentum to new value. Changes p, dp, and pvect
THaTrackInfo()
{}
THaTrackInfo(Double_t p, Double_t dp, Double_t x, Double_t y, Double_t th, Double_t ph, Double_t px, Double_t py, Double_t pz)
{ fPvect.SetXYZ(px,py,pz); }
THaTrackInfo(Double_t p, Double_t dp, Double_t x, Double_t y, Double_t th, Double_t ph, const TVector3& pvect)
{}
THaTrackInfo(const THaTrackInfo& t)
{}
virtual ~THaTrackInfo()
{}
Bool_t IsOK() const
{ return fOK; }
Double_t GetPx() const
{ return fPvect.X(); }
Double_t GetPy() const
{ return fPvect.Y(); }
Double_t GetPz() const
{ return fPvect.Z(); }
Double_t GetP() const
{ return fP; }
Double_t GetDp() const
{ return fDp; }
Double_t GetX() const
{ return fX; }
Double_t GetY() const
{ return fY; }
Double_t GetTheta() const
{ return fTheta; }
Double_t GetPhi() const
{ return fPhi; }
const TVector3& GetPvect() const
{ return fPvect; }
THaSpectrometer* GetSpectrometer() const
{ return fSpectro; }
void Set(Double_t p, Double_t dp, Double_t x, Double_t y, Double_t th, Double_t ph, Double_t px, Double_t py, Double_t pz)
void Set(Double_t p, Double_t dp, Double_t x, Double_t y, Double_t th, Double_t ph, const TVector3& pvect)
void SetSpectrometer(THaSpectrometer* s)
{ fSpectro = s; }