BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page
//	$Id: BrTrigZdc.cxx,v 1.1 2001/11/26 17:55:27 videbaek Exp $
//

////////////////////////////////////////////////////////////////////////
//
//	BrTrigZdc
//
//  Raw data object from the trigger time of the Left and Right
//  (Yellow and Blue) ZDC sums.
//  These data comes from an 1877 TDC after the logic discriminators and
//  There may be multiple hits per zdc mopdule.
//  The definition is that left==yellow==0 and
//  right==blue==1
//

#include "BrTrigZdc.h"
#include <iostream.h>
#if !defined ROOT_TString
#include "TString.h"
#endif

ClassImp(BrTrigZdc)
  
//_________________________________________________
 Int_t BrTrigZdc::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.
  //
  BrTrigZdc * digbb = (BrTrigZdc*) digbb_p;
 
 if( fTypeId > digbb->GetTypeId() ) return 1;
 if( fTypeId < digbb->GetTypeId() ) return -1;
 return 0;
}


//________________________________________________________
 void BrTrigZdc::Print(Option_t* option) const{
  //
  // List the content of an object on cout
  // Overrides the TObject method.
  //
 TString opt(option);
  opt.ToLower();

  TObject::Print(option);
  if (opt.Contains("d")) 
    cout << endl 
         << "  Original author: Flemming Videbaek" << endl
         << "  Last Modifications: " << endl 
         << "    $Author: videbaek $" << endl  
         << "    $Date: 2001/11/26 17:55:27 $$"   << endl 
         << "    $Revision: 1.1 $ " << endl  
         << endl 
         << "-------------------------------------------------" << endl;

  if (opt.Contains("r")){
    cout << " Zdc type " << fTypeId << "n";
    cout << " Tdc      " << fTdc  << "n";
    cout << " TdcWidth " << fWidth  << "n";
    cout << flush ;
  }
  
}

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