// Author: Thomas Hadig (Group EB SLAC Stanford CA USA)
// Last update: $Date: 2003/08/22 22:31:12 $
// Copyright: Thomas Hadig, hadig@slac.stanford.edu
#ifndef __CRTTDCADCBOARD_CXX
#define __CRTTDCADCBOARD_CXX
////////////////////////////////////////////////////////////////////////////////
//
// Cosmic Ray Telescope Data Aquisition Software
//
// abstract class for a TDC or ADC board.
//
////////////////////////////////////////////////////////////////////////////////
#include <gendriver/tdcadcboard.hh>
namespace CRT
{
//{{{}}}
//{{{ constructor
CrtTdcAdcBoard::CrtTdcAdcBoard()
{
// default constructor
}
//}}}
//{{{ constructor CrtTdcAdcBoard(const Char_t *inName, Int_t inIdent, CrtCrate *inCrate)
CrtTdcAdcBoard::CrtTdcAdcBoard(const Char_t *inName, Int_t inIdent, CrtCrate *inCrate)
: CrtCamacBoard(inName, inIdent, inCrate)
{
// constructor
// inIdent : identification number for board
// inCrate : corresponding controler
}
//}}}
//{{{ destructor
CrtTdcAdcBoard::~CrtTdcAdcBoard()
{
// destructor
}
//}}}
//{{{ WaitForData
Int_t CrtTdcAdcBoard::WaitForData(Int_t inTimeout) const
{
// waits until data has arrived in this module
// inTimeout defines the maximum number of seconds that is waited for
// until the function returns. A inTimeout of 0 will cause infinite
// waiting.
// return value is 1 if that is available, 0 if the timeout occured
inTimeout *= 1000; // seconds * 10^6 / 1 usec wait intervals
while (HasData()==0)
{
if (inTimeout!=0)
{
inTimeout--;
if (inTimeout==0) return 0;
}
//usleep(1); // wait 1 micro seconds
}
return 1;
}
//}}}
}
ClassImp(CRT::CrtTdcAdcBoard) //generic description of a TDC or ADC board
#endif
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.