CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 6 of file EcalMGPASample.cc.

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

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