|
// $Id: BrTrigClock.cxx,v 1.1 2001/11/26 17:55:27 videbaek Exp $ // //////////////////////////////////////////////////////////////////////// // // BrTrigClock // // Raw data from the pipeline TDC feeding the time signals for bunch#1 // from the V124 module (channel 4 in yellow and blue). // There can be multiple bunch1 signals per event since th depth of the // pipeline is 32 microsec and the revolution time is 12 microsec. // These data can be used to get the bunch number causing the event. // TypeId == 0 Yellow beam, ==1 Blue beam // Only in data stream following 11/23/01. // Most important for the pp polarized running, where we need to know the // bunch number in each ring for polarization. // #include "BrTrigClock.h" #if !defined ROOT_TString #include "TString.h" #endif #include <iostream.h> ClassImp(BrTrigClock) //_________________________________________________ Int_t BrTrigClock::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. // BrTrigClock * digbb = (BrTrigClock*) digbb_p; if( fTypeId > digbb->GetTypeId() ) return 1; if( fTypeId < digbb->GetTypeId() ) return -1; return 0; } //________________________________________________________ void BrTrigClock::Print(Option_t* option) const{ // // List the content of an object on cout // 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 << " Tube No." << 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>
|