// $Id: BrDigTof.cxx,v 1.1.1.1 1998/03/04 21:33:37 brahmlib Exp $
// $Log: BrDigTof.cxx,v $
// Revision 1.1.1.1 1998/03/04 21:33:37 brahmlib
// Brat tof
//
//
//___________________
//
// BrDigTof
//
// Elementary objects for digitized TOF information. They
// constitute a simple class (like structures).
// The class is implemented as inheriting from TObject. The main
// reason for this is to have the capabilities of manipulating these
// interactively within root.
//
#include "BrDigTof.h"
#include <iostream.h>
ClassImp(BrDigTof)
Int_t BrDigTof::Compare(TObject *digtof_p)
{
//This routine overloads TObject::Compare(TObject *object)
//For BRAHMS, this routine is typically called by QSort
//It needs to return 1 if you want digtof_o to be earlier
//in the list and -1 if you want digtof_o to be later in
//the list.
// I (fv) do not really know if we need this for TOF?
//
BrDigTof * digtof = (BrDigTof*) digtof_p;
if( fSlatno > digtof->GetSlatno() ) return 1;
if( fSlatno < digtof->GetSlatno() ) return -1;
return 0;
}
void BrDigTof::List(){
// List the content of an object on cout
//
cout << "Slat No. " << fSlatno << "n";
cout << " Adc Up " << fAdcUp << "n";
cout << " Adc down " << fAdcDown << "n";
cout << " Tdc Up " << fTdcUp << "n";
cout << " Tdc down " << fTdcDown << "n" << endl;
}
ROOT page - Class index - 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.