class THaDetMap::Module


 THaDetMap

 Standard detector map.
 The detector map defines the hardware channels that correspond to a
 single detector. Typically, "channels" are Fastbus or VMW addresses
 characterized by

   Crate, Slot, range of channels


Function Members (Methods)

public:
~Module()
UInt_tGetModel() const
Int_tGetNchan() const
Bool_tIsADC() const
Bool_tIsTDC() const
voidMakeADC()
voidMakeTDC()
THaDetMap::ModuleModule()
THaDetMap::ModuleModule(const THaDetMap::Module&)
booloperator!=(const THaDetMap::Module& rhs) const
THaDetMap::Module&operator=(const THaDetMap::Module&)
booloperator==(const THaDetMap::Module& rhs) const
voidSetModel(UInt_t model)
voidSetResolution(Double_t resolution)

Data Members

public:
UShort_tcrate
UInt_tfirstlogical number of first channel
UShort_thi
UShort_tlo
UInt_tmodelmodel number of module (for ADC/TDC identification).
Int_trefchanfor pipeline TDCs: reference channel number
Int_trefindexfor pipeline TDCs: index into reference channel map
Double_tresolutionResolution (s/chan) for TDCs
Bool_treverseIndicates that "first" corresponds to hi, not lo
UShort_tslot

Class Charts

Inheritance Chart:
THaDetMap::Module

Function documentation

bool operator==(const THaDetMap::Module& rhs) const
{ return crate == rhs.crate && slot == rhs.slot; }
bool operator!=(const THaDetMap::Module& rhs) const
{ return !(*this==rhs); }
Int_t GetNchan()
{ return hi-lo+1; }
UInt_t GetModel()
{ return model & kModelMask; }
Bool_t IsTDC()
{ return model & kTDCBit; }
Bool_t IsADC()
{ return model & kADCBit; }
void SetModel(UInt_t model)
void SetResolution(Double_t resolution)
void MakeTDC()
{ model |= kTDCBit; }
void MakeADC()
{ model |= kADCBit; }
THaDetMap& operator=(const THaDetMap::Module& )

Last change: Sat Nov 7 21:26:45 2009
Last generated: 2009-11-07 21:26

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.