BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page
//____________________________________________________________________
// 
// BrDvDig is the class of dataobject for the raw TDC data from the
// TPC DriftVelocityMonitors. Each monitor provides a timing start
// and a width. A given event will probably only result in a single
// channel being set. The data structure is never the less a fixed size
// structure with 4 data words for channel and width each.
// The four data words comes from DVM1, DVM2 DVF1, DVF2 in that order.
//
//

// $Id: BrDvDig.cxx,v 1.3 2001/11/02 13:21:22 pchristi Exp $
// $Author: pchristi $
// $Date: 2001/11/02 13:21:22 $
// $Copyright: 2001 BRAHMS Collaboration <brahmlib@rhic.bnl.gov>
//


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

ClassImp(BrDvDig);

 BrDvDig::BrDvDig()
{
  // 
  // Set contents to 0 since all are not
  // required to be there in a given event.
  //
  for(int i=0;i<kNumDvChan;i++){
    fTime[i]=0;
    fWidth[i]=0;
  }
}

 BrDvDig::BrDvDig(const Char_t* Name, const Char_t* Title)  :
  BrDataObject(Name, Title)
{
  // 
  // Set contents to 0 since all are not
  // required to be there in a given event.
  //
  for(int i=0;i<kNumDvChan;i++){
    fTime[i]=0;
    fWidth[i]=0;
  }
}

 Int_t BrDvDig::GetTime(const Int_t i) const {
if(i<kNumDvChan) {
   return fTime[i];
   }
else return 0;
}

 Int_t BrDvDig::GetWidth(const Int_t i) const {
if(i<kNumDvChan) {
   return fWidth[i];
   }
else return 0;
}

 void BrDvDig::SetWidth(const Int_t itube,
		       const Int_t val) {
  if(itube<kNumDvChan) {
    fWidth[itube] = val;
  }
}
 void BrDvDig::SetTime(const Int_t itube,
		      const Int_t val) {
  if(itube<kNumDvChan) {
    fTime[itube] = val;
  }
}

 void BrDvDig::Print(Option_t* option) const{
  // Place holder for object Printing
  //
}

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