#include "BrTPCCluster.h"
ClassImp(BrTPCCluster)
/////////////////////////////////////////////////////////////
//
// TBrTPCCluster is a BRAHMS data class for storing information for
// one detector TPC Digitized hit.
//
//////////////////////////////////////////////////////////////
Int_t BrTPCCluster::Compare(TObject *clus_o)
{
//This routine overloads TObject::Compare(TObject *object)
//For BRAHMS, this routine is typically called by QSort
//It needs to return 1 if you want clus_o to be earlier
//in the list and -1 if you want clus_o to be later in
//the list.
BrTPCCluster * clus_p = (BrTPCCluster*) clus_o;
if( fPav > clus_p->GetPav() ) return 1;
if( fPav < clus_p->GetPav() ) return -1;
//fPadno's must be equal
if( fTav > clus_p->GetTav() ) return 1;
if( fTav < clus_p->GetTav() ) return -1;
//fTime's must be equal
if( fPsig > clus_p->GetPsig() ) return 1;
if( fPsig < clus_p->GetPsig() ) return -1;
//fAdc's must be equal
if( fTsig > clus_p->GetTsig() ) return 1;
if( fTsig < clus_p->GetTsig() ) return -1;
//Everything is equal!!!
return 0;
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.