CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
EcalMGPASample.cc File Reference
#include "DataFormats/EcalDigi/interface/EcalMGPASample.h"
#include <iostream>

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 8 of file EcalMGPASample.cc.

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

8  {
9  s << "ADC=" << samp.adc() << ", gainId=" << samp.gainId();
10  return s;
11 }
int gainId() const
get the gainId (2 bits)
int adc() const
get the ADC sample (12 bits)