|
// $Id: BrCalTof.cxx,v 1.1.1.1 2001/06/21 14:55:02 hagel Exp $ // $Log: BrCalTof.cxx,v $ // Revision 1.1.1.1 2001/06/21 14:55:02 hagel // Initial revision of brat2 // // Revision 1.1 1999/02/06 02:34:39 hagel // Initial revision // // // //___________________ // // BrCalTof // // Calibrated objects for 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 "BrCalTof.h" #include <iostream.h> ClassImp(BrCalTof) Int_t BrCalTof::Compare(TObject *caltof_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? // BrCalTof * caltof = (BrCalTof*) caltof_p; if( fSlatno > caltof->GetSlatno() ) return 1; if( fSlatno < caltof->GetSlatno() ) return -1; return 0; } void BrCalTof::List(){ // List the content of an object on cout // cout << "Slat No. " << fSlatno << "n"; cout << " tof " << fTof << "n"; cout << " position " << fPosition << "n"; } |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|