WCSimRecoVertex.hh

Go to the documentation of this file.
00001 #ifndef WCSIMRECOVERTEX_HH
00002 #define WCSIMRECOVERTEX_HH
00003 
00004 #include "TObject.h"
00005 
00006 class WCSimRecoVertex : public TObject {
00007 
00008  public: 
00009 
00010   typedef enum EFitStatus {
00011    kOK  = 0x00,
00012    kFailSimpleVertex    = 0x01,
00013    kFailSimpleDirection = 0x02,
00014    kFailPointPosition   = 0x04,
00015    kFailPointDirection  = 0x08,
00016    kFailPointVertex     = 0x10,
00017    kFailExtendedVertex  = 0x20
00018   } FitStatus_t;
00019 
00020   WCSimRecoVertex();
00021   WCSimRecoVertex( Double_t x, Double_t y, Double_t z );
00022   WCSimRecoVertex( Double_t x, Double_t y, Double_t z,
00023                    Double_t px, Double_t py, Double_t pz );
00024   WCSimRecoVertex( Double_t x, Double_t y, Double_t z, Double_t t,
00025                    Double_t px, Double_t py, Double_t pz, 
00026                    Double_t fom, Int_t nsteps, Bool_t pass, Int_t status );
00027   WCSimRecoVertex( Double_t x, Double_t y, Double_t z, Double_t t,
00028                    Double_t px, Double_t py, Double_t pz, 
00029                    Double_t angle, Double_t length,
00030                    Double_t fom, Int_t nsteps, Bool_t pass, Int_t status );
00031   ~WCSimRecoVertex();
00032 
00033   void SetVertex( Double_t x, Double_t y, Double_t z, Double_t t);
00034   void SetVertex( Double_t x, Double_t y, Double_t z );
00035   void SetDirection( Double_t px, Double_t py, Double_t pz);
00036   void SetConeAngle( Double_t angle );
00037   void SetTrackLength( Double_t length );
00038   void SetFOM(Double_t fom, Int_t nsteps, Bool_t pass);
00039   void SetStatus(Int_t status);
00040 
00041   Double_t GetX() { return fX; }
00042   Double_t GetY() { return fY; }
00043   Double_t GetZ() { return fZ; }
00044   Double_t GetTime() { return fTime; }
00045   Bool_t FoundVertex() { return fFoundVertex; }
00046 
00047   Double_t GetDirX() { return fDirX; }
00048   Double_t GetDirY() { return fDirY; }
00049   Double_t GetDirZ() { return fDirZ; }
00050   Bool_t FoundDirection() { return fFoundDirection; }
00051 
00052   Double_t GetConeAngle() { return fConeAngle; }
00053   Double_t GetTrackLength() { return fTrackLength; }
00054 
00055   Double_t GetFOM() { return fFOM; }
00056   Int_t GetIterations(){ return fIterations; }
00057   Bool_t GetPass() { return fPass; }
00058   Int_t GetStatus(){ return fStatus; }
00059 
00060   void Reset();
00061 
00062  private:
00063 
00064   Double_t fX;
00065   Double_t fY;
00066   Double_t fZ;
00067   Double_t fTime;
00068   Bool_t fFoundVertex;
00069 
00070   Double_t fDirX;
00071   Double_t fDirY;
00072   Double_t fDirZ;
00073   Bool_t fFoundDirection;
00074 
00075   Double_t fConeAngle;
00076   Double_t fTrackLength;
00077 
00078   Double_t fFOM;
00079   Int_t fIterations;
00080   Bool_t fPass;
00081 
00082   Int_t fStatus;
00083 
00084   ClassDef(WCSimRecoVertex,0)
00085 
00086 };
00087 
00088 #endif
00089 
00090 
00091 
00092 
00093 
00094 
00095