CMS 3D CMS Logo

Classes | Namespaces | Typedefs | Functions
EcalLiteDTUSample.h File Reference
#include <iosfwd>
#include <cstdint>
#include "DataFormats/EcalDigi/interface/EcalConstants.h"

Go to the source code of this file.

Classes

class  EcalLiteDTUSample
 

Namespaces

 ecalLiteDTU
 

Typedefs

typedef uint16_t ecalLiteDTU::sample_type
 

Functions

constexpr int ecalLiteDTU::adc (sample_type sample)
 get the ADC sample (12 bits) More...
 
constexpr int ecalLiteDTU::gainId (sample_type sample)
 get the gainId (2 bits) More...
 
std::ostream & operator<< (std::ostream &, const EcalLiteDTUSample &)
 
constexpr sample_type ecalLiteDTU::pack (int adc, int gainId)
 

Function Documentation

◆ operator<<()

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

Definition at line 8 of file EcalLiteDTUSample.cc.

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

8  {
9  s << "ADC=" << samp.adc() << ", gainId=" << samp.gainId();
10  return s;
11 }