#ifndef ROOT_THaVDCTrackPair
#define ROOT_THaVDCTrackPair

///////////////////////////////////////////////////////////////////////////////
//                                                                           //
// THaVDCTrackPair                                                           //
//                                                                           //
///////////////////////////////////////////////////////////////////////////////

#include "TObject.h"

class THaVDCUVTrack;
typedef THaVDCUVTrack* pUV;

class THaVDCTrackPair : public TObject {

public:
  THaVDCTrackPair() : 
    fLowerTrack(NULL), fUpperTrack(NULL), fError(1e307) {}
  THaVDCTrackPair( pUV lt, pUV ut ) :
    fLowerTrack(lt), fUpperTrack(ut), fError(1e307), fStatus(0) {}
  THaVDCTrackPair( const THaVDCTrackPair& rhs ) : TObject(rhs),
    fLowerTrack(rhs.fLowerTrack), fUpperTrack(rhs.fUpperTrack),
    fError(rhs.fError), fStatus(rhs.fStatus) {}
  THaVDCTrackPair& operator=( const THaVDCTrackPair& );
  
  virtual ~THaVDCTrackPair() {}

  void            Analyze( Double_t spacing );
  virtual Int_t   Compare( const TObject* ) const;
  Double_t        GetError()   const { return fError; }
  pUV             GetLower()   const { return fLowerTrack; }
  pUV             GetUpper()   const { return fUpperTrack; }
  Int_t           GetStatus()  const { return fStatus; }
  virtual Bool_t  IsSortable() const { return kTRUE; }
  void            SetStatus( Int_t i ) { fStatus = i; }
  virtual void    Print( Option_t* opt="" ) const;

  Double_t        GetProjectedDistance( pUV here, pUV there, Double_t spacing );

protected:

  pUV             fLowerTrack;     // Lower UV track
  pUV             fUpperTrack;     // Upper UV track
  Double_t        fError;          // Measure of goodness of match of the tracks
  Int_t           fStatus;         // Status flag


  ClassDef(THaVDCTrackPair,0)      // A pair of VDC UV tracks
};

//////////////////////////////////////////////////////////////////////////////

#endif

Last change: Sat Nov 7 21:26:55 2009
Last generated: 2009-11-07 21:26

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.