// Author: Thomas Hadig (Group EB SLAC Stanford CA USA)
// Last update: $Date: 2003/08/22 22:31:10 $
// Copyright: Thomas Hadig, hadig@slac.stanford.edu
#ifndef __CRTBOARD_CXX
#define __CRTBOARD_CXX
////////////////////////////////////////////////////////////////////////////////
//
// Cosmic Ray Telescope Data Aquisition Software
//
// abstract class for a board.
// Board means module in crate or instrument at bus
//
////////////////////////////////////////////////////////////////////////////////
#include <gendriver/board.hh>
#include <gendriver/crate.hh>
#include <TDirectory.h>
namespace CRT
{
//{{{}}}
//{{{ constructor
CrtBoard::CrtBoard()
{
// default constructor
fIdent=-1;
fInCrate=(CrtCrate *)0;
}
//}}}
//{{{ constructor CrtBoard(const Char_t *inName, Int_t inIdent, CrtCrate *inCrate)
CrtBoard::CrtBoard(const Char_t *inName, Int_t inIdent, CrtCrate *inCrate)
: TNamed(inName, inName)
{
// constructor
// inIdent : identification number for board
// inCrate : corresponding controler
fIdent=inIdent;
fInCrate=inCrate;
fInCrate->AddBoard(this);
gDirectory->Append(this);
}
//}}}
//{{{ destructor
CrtBoard::~CrtBoard()
{
// destructor
if (fIdent>=0) fInCrate->RemoveBoard(this);
}
//}}}
}
ClassImp(CRT::CrtBoard) //generic description of a board (module or instrument)
#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.