BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page
//	$Id: BrBbDig.cxx,v 1.2 2001/10/19 15:24:02 ouerdane Exp $
//
//	$Log: BrBbDig.cxx,v $
//	Revision 1.2  2001/10/19 15:24:02  ouerdane
//	Added method Print(Option_t*) const in BrBbDig
//	
//	Revision 1.1  2001/06/22 17:32:15  cholm
//	Change names so that every data class has the same format so that
//	we have that down from the very beginning, so that we will not have to
//	worry about that later on.  The
//	affected classes are:
//	
//	        BrDigBB             ->        BrBbDig
//	        BrDigZDC            ->        BrZdcDig
//	        BrDigRHIC           ->        BrRichDig
//	        BrDigDC             ->        BrDcDig
//	        BrDigC1             ->        BrDcC1
//		BrDigHit            ->	      BrHitDig
//		BrDigTof	    ->	      BrTofDig
//		BrTPCSequence	    ->	      BrTpcSequence
//	
//	Revision 1.1.1.1  2001/06/21 14:55:01  hagel
//	Initial revision of brat2
//	
//	Revision 1.5  2001/05/31 01:38:12  cholm
//	Fix of output problems, an some beautification
//	
//	Revision 1.4  1999/11/30 22:21:17  videbaek
//	Added method to convert geant module no to real life module no of
//	beam beam counters.
//	
//	Revision 1.3  1998/07/31 19:32:15  videbaek
//	Working version of BB digitize
//
//	Revision 1.2  1998/07/27 16:27:04  videbaek
//	Stat on modifiing BB - not complete
//
//	Revision 1.1  1998/07/02 19:40:35  videbaek
//	Preliminary version of BB

//	Brat Beam beam counter structure
//
//___________________
//
//	BrBbDig
//
//  Elementary objects for digitized BB 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 "BrBbDig.h"
#include <iostream.h>
#include <iomanip.h>

//____________________________________________________________________
ClassImp(BrBbDig)

//____________________________________________________________________
 Int_t BrBbDig::Compare(TObject *digbb_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 BB.
  //
  BrBbDig * digbb = (BrBbDig*) digbb_p;
  
  if( fModuleNo > digbb->GetModuleNo() ) return 1;
  if( fModuleNo < digbb->GetModuleNo() ) return -1;
  return 0;
}

//____________________________________________________________________
 void BrBbDig::Print(Option_t* option) const
{
  //
  // List the content of an object on cout
  //
  cout << " ----- BB Digit -----  " << endl
       << "   Tube : " << setw(4) << fModuleNo << endl
       << "   Adc  : " << setw(7) << fAdc  << endl
       << "   Tdc  : " << setw(7) << fTdc  << endl;
}

//____________________________________________________________________
//
// $Id: BrBbDig.cxx,v 1.2 2001/10/19 15:24:02 ouerdane Exp $
//

This page automatically generated by script docBrat by Christian Holm

Copyright ; 2002 BRAHMS Collaboration <brahmlib@rcf.rhic.bnl.gov>
Last Update on by

Validate HTML
Validate CSS