ADCDigit Class Reference

Id
ADCDigit.h,v 1.3 2005/05/17 21:07:33 alebedev Exp
More...

#include <ADCDigit.h>

Inheritance diagram for ADCDigit:

RawDigit List of all members.

Public Member Functions

 ADCDigit ()
 ADCDigit (short nChan, short adc)
short GetADC () const
short GetChannel () const
void Set (short chan, short adc)

Private Attributes

short fADC
short fChannel

Friends

std::ostream & operator<< (std::ostream &os, const ADCDigit &n)

Detailed Description

Id
ADCDigit.h,v 1.3 2005/05/17 21:07:33 alebedev Exp

Class for a generic digit.

lebedev@physics.harvard.edu

Definition at line 17 of file ADCDigit.h.


Constructor & Destructor Documentation

ADCDigit::ADCDigit (  ) 

Definition at line 22 of file ADCDigit.cxx.

00022                    :
00023   fADC(-1),
00024   fChannel(-1)
00025 {
00026 }

ADCDigit::ADCDigit ( short  nChan,
short  adc 
)

Definition at line 30 of file ADCDigit.cxx.

00030                                          :
00031   fADC(adc),
00032   fChannel(nChan)
00033 {
00034 }


Member Function Documentation

short ADCDigit::GetADC (  )  const [inline]

Definition at line 25 of file ADCDigit.h.

References fADC.

00025 { return fADC;}

short ADCDigit::GetChannel (  )  const [inline]

Definition at line 26 of file ADCDigit.h.

References fChannel.

00026 { return fChannel;}

void ADCDigit::Set ( short  chan,
short  adc 
) [inline]

Definition at line 28 of file ADCDigit.h.

References fADC, and fChannel.

Referenced by R2REventHandle::DoEcal(), and CalDigitizer::Reco().

00028                                   {
00029     fChannel = chan;
00030     fADC = adc;
00031   }


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const ADCDigit n 
) [friend]


Member Data Documentation

short ADCDigit::fADC [private]

Definition at line 34 of file ADCDigit.h.

Referenced by GetADC(), and Set().

short ADCDigit::fChannel [private]

Definition at line 35 of file ADCDigit.h.

Referenced by GetChannel(), and Set().


The documentation for this class was generated from the following files:
Generated on Mon Nov 23 08:03:54 2009 for MIPP(E907) by  doxygen 1.4.7