CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Typedefs | Functions
HcalUpgradeDataFrame.h File Reference
#include <vector>
#include <ostream>
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "DataFormats/HcalDetId/interface/HcalElectronicsId.h"
#include "DataFormats/HcalDigi/interface/HcalUpgradeQIESample.h"
#include "DataFormats/Common/interface/SortedCollection.h"

Go to the source code of this file.

Classes

class  HcalUpgradeDataFrame
 

Typedefs

typedef edm::SortedCollection
< HcalUpgradeDataFrame
HcalUpgradeDigiCollection
 

Functions

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

Typedef Documentation

Definition at line 61 of file HcalUpgradeDataFrame.h.

Function Documentation

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

Definition at line 69 of file HcalUpgradeDataFrame.cc.

References HcalUpgradeDataFrame::adc(), HcalUpgradeDataFrame::capId(), i, HcalUpgradeDataFrame::id(), HcalUpgradeDataFrame::presamples(), alignCSCRings::s, HcalUpgradeDataFrame::size(), HcalUpgradeDataFrame::tdc(), HcalUpgradeDataFrame::valid(), HcalUpgradeDataFrame::zsMarkAndPass(), and HcalUpgradeDataFrame::zsUnsuppressed().

69  {
70  s << digi.id() << " " << digi.size() << " samples " << digi.presamples() << " presamples ";
71  if (digi.zsUnsuppressed()) s << " zsUS";
72  if (digi.zsMarkAndPass()) s << " zsM&P";
73  s << std::endl;
74  for (int i=0; i<digi.size(); i++) {
75  if ( i < digi.presamples() ) s << " (PRE) " ;
76  else s << " " ;
77  s << int(digi.capId(i)) << " (capId) ";
78  s << int(digi.adc(i)) << " (adc) " ;
79  s << int(digi.tdc(i)) << " (tdc) " ;
80  if ( digi.valid(i) ) s << " (DV) " ;
81  s << std::endl ;
82  }
83  return s;
84 }
int i
Definition: DBlmapReader.cc:9