BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page
//	$Id: BrTrigStart.cxx,v 1.2 2001/09/18 13:53:27 operator Exp $
//

/////////////////////////////////////////////////////////////////////////////
//
// BrTrigStart is a class which holds information on TDC starts from
// different camac crates.
// The start supplied to each Crate is put into the Beam Crate 
// i.e. camac crate no 1. This is started by the BB gate.
// and stopped by the start from the following other  crates.
//
// channel 1: BB   itself
// channel 2: H1   gate
// channel 3: H2   gate
// channel 4: TOFW gate
// channel 5: LVL0 gate
//
/////////////////////////////////////////////////////////////////////////////

#include "BrTrigStart.h"
#include <BrIostream.h>

ClassImp(BrTrigStart)

 Int_t BrTrigStart::GetTdc(const Int_t i) const {
if(i>0 && i<kChan) {
   return fTdc[i-1];
   }
else return 0;
}
 
 void BrTrigStart::SetTdc(const Int_t i ,const Int_t value) {
if(i>0 && i<kChan) {
   fTdc[i-1] = value;
   }
else return;
}


//________________________________________________________________
 void BrTrigStart::Print(Option_t* option) const{
  //
  // List the content of an object on cout
  //
 TString opt(option);
  opt.ToLower();

  BrDataObject::Print(option);
  if (opt.Contains("d")) 
    cout << endl 
         << "  Original author: Flemming Videbaek" << endl
         << "  Last Modifications: " << endl 
         << "    $Author: operator $" << endl  
         << "    $Date: 2001/09/18 13:53:27 $$"   << endl 
         << "    $Revision: 1.2 $ " << endl  
         << endl 
         << "-------------------------------------------------" << endl;

  if (opt.Contains("r"))
    for (Short_t i = 0; i < kChan; i++)
      cout << " Chan # " << setw(4) << i+1 
	   << " TDC: " << setw(8) << fTdc[i] << endl;

}
//__________________________________________________________________
//
//	$Log: BrTrigStart.cxx,v $
//	Revision 1.2  2001/09/18 13:53:27  operator
//	Added comment for content of tdcs
//	
//	Revision 1.1  2001/09/18 13:48:28  operator
//	dding a new raw dataclass, namely BrTrigStart.
//	
//

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