//--------------------------------------------------------------- // File and Version Information: // $Id: TSvtTrack.hh,v 1.5 2002/11/07 20:04:06 murat Exp $ // // Description: Definition of track included in the SVTD bank // // // Author List: // L. Moneta Original author // Subir Sarkar Adapted to Stntuple //-------------------------------------------------------------- #ifndef TSvtTrack_hh #define TSvtTrack_hh #include "TObject.h" // Number of words for each track, a global! enum { SVTD_SIZE = 7 }; class TSvtTrack : public TObject { public: // ****** constructors and destructor TSvtTrack(); TSvtTrack(Int_t size, Int_t *data); virtual ~TSvtTrack(); // ****** Accessors const Int_t *Words() {return fWords;} Int_t Word(const Int_t i) { return (i >= 0 && i < SVTD_SIZE) ? fWords[i] : -1; } // **** Unpack SVTD words and produce // standard quantities (d0, phi, etc..) Float_t Phi () const ; Int_t Zin () const ; Int_t Zout () const ; Float_t Curv () const ; Float_t D0 () const ; Int_t Wedge () const ; Int_t Road () const ; Float_t Chi2 () const ; Int_t XftNumber () const ; Int_t TFStatus () const ; Int_t FitQuality () const ; Int_t TFError () const ; Int_t HitOverflow () const ; Int_t LayerOverflow() const ; Int_t CombOverflow () const ; Int_t InvalidData () const ; Int_t FitOverflow () const ; Int_t FifoOverflow () const ; Int_t ErrorOR () const ; Float_t Pt () const ; Float_t Hit (Int_t layer) const ; Int_t Hit16 (Int_t layer) const ; Int_t HitLCF(Int_t layer) const ; Int_t HitEF (Int_t layer) const ; // **** overloaded methods of TObject void Clear(Option_t *opt = ""); void Print(Option_t *opt = "") const; ClassDef (TSvtTrack, 1) public: // To convert from strip/16 to cm: // using SVXII layers 0, 1, 2, 3, 4 static const Float_t fgHitScale[5]; static const Float_t fgPhiScale; static const Float_t fgD0Scale; static const Float_t fgCurScale; static const Float_t fgChiScale; protected: Int_t fWords[SVTD_SIZE]; }; #endif