//*-- Author : Anar Rustamov
//HSplineTrack
//The output of HSplineTrackF task, like HKickTrack;
//There is no matching with META yet, there is the 
//matched MDC tracks corresponding momentum defined 
//from spline fitting;
#include "hsplinetrack.h"
using namespace std;
 HSplineTrack::HSplineTrack() 
{
    qSpline=-1;
    numOfChambers=0;
}
 HSplineTrack::~HSplineTrack()
{
  ;
}

 void HSplineTrack::Streamer(TBuffer &R__b)
{
   // Stream an object of class HSplineTrack.

  Double_t tofdist;
   UInt_t R__s, R__c;
   if (R__b.IsReading()) {
      Version_t R__v = R__b.ReadVersion(&R__s, &R__c); if (R__v) { }
      HBaseTrack::Streamer(R__b); 
	if (R__v>3) 
	  { 
	    R__b >> qSpline;
	    R__b >> numOfChambers;
	  } else if (R__v>2) {
	    R__b >> tofdist;
	    R__b >> qSpline;
	    R__b >> numOfChambers;
	  } else if(R__v>1) {
	    R__b >> tofdist;
	    R__b >> qSpline;
	    numOfChambers=0;
	  } else 
	    {
              
	      R__b >> tofdist;
	      qSpline=0;
	      numOfChambers=0;
	    }
	R__b.CheckByteCount(R__s, R__c, HSplineTrack::IsA());
   } else {
     R__c = R__b.WriteVersion(HSplineTrack::IsA(), kTRUE);
     HBaseTrack::Streamer(R__b);
     R__b << qSpline;
     R__b <<numOfChambers;
     R__b.SetByteCount(R__c, kTRUE);
   }
}


ClassImp(HSplineTrack)


ROOT page - Class index - Class Hierarchy - Top of the page

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.