ADCDigit.h

Go to the documentation of this file.
00001 ////////////////////////////////////////////////////////////////////////
00002 /// $Id: ADCDigit.h,v 1.3 2005/05/17 21:07:33 alebedev Exp $
00003 ///
00004 /// Class for a generic digit. 
00005 ///
00006 /// lebedev@physics.harvard.edu
00007 ////////////////////////////////////////////////////////////////////////
00008 
00009 #ifndef ADC_DIGIT_H
00010 #define ADC_DIGIT_H
00011 
00012 #include "RawData/RawDigit.h"
00013 #include <iosfwd>
00014 
00015 //----------------------------------------------------------------------
00016 
00017 class ADCDigit : public RawDigit {
00018   friend std::ostream& operator<<(std::ostream& os, 
00019                   const ADCDigit& n);
00020 
00021 public:
00022   ADCDigit();
00023   ADCDigit(short nChan, short adc);
00024 
00025   short GetADC()     const { return fADC;}
00026   short GetChannel() const { return fChannel;}
00027 
00028   void Set(short chan, short adc) {
00029     fChannel = chan;
00030     fADC = adc;
00031   }
00032 
00033 private:
00034   short fADC;
00035   short fChannel;
00036 
00037   ClassDef(ADCDigit, 2) // Generic digit with channel and ADC info
00038 };
00039 
00040 #endif // ADC_DIGIT_H
00041 
00042 ////////////////////////////////////////////////////////////////////////

Generated on Mon Nov 23 08:01:43 2009 for MIPP(E907) by  doxygen 1.4.7