CMS 3D CMS Logo

EcalMGPASample.h File Reference

#include <iosfwd>
#include <boost/cstdint.hpp>

Go to the source code of this file.

Namespaces

namespace  ecalMGPA

Classes

class  EcalMGPASample
 Simple container packer/unpacker for a single sample from teh MGPA electronics. More...

Typedefs

typedef uint16_t ecalMGPA::sample_type

Functions

int ecalMGPA::adc (sample_type sample)
 get the ADC sample (12 bits)
int ecalMGPA::gainId (sample_type sample)
 get the gainId (2 bits)
std::ostream & operator<< (std::ostream &, const EcalMGPASample &)
sample_type ecalMGPA::pack (int adc, int gainId)


Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const EcalMGPASample  
)

Definition at line 8 of file EcalMGPASample.cc.

References EcalMGPASample::adc(), and EcalMGPASample::gainId().

00008                                                                   {
00009   s << "ADC=" << samp.adc() << ", gainId=" << samp.gainId();
00010   return s;
00011 }


Generated on Tue Jun 9 17:52:01 2009 for CMSSW by  doxygen 1.5.4