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/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 53 of file HcalUpgradeDataFrame.h.

Function Documentation

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

Definition at line 54 of file HcalUpgradeDataFrame.cc.

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

54  {
55  s << digi.id() << " " << digi.size() << " samples " << digi.presamples() << " presamples \n";
56  for (int i=0; i<digi.size(); i++) {
57  if ( i < digi.presamples() ) s << " (PRE) " ;
58  else s << " " ;
59  s << int(digi.capId(i)) << " (capId) ";
60  s << int(digi.adc(i)) << " (adc) " ;
61  s << int(digi.tdc(i)) << " (tdc) " ;
62  if ( digi.valid(i) ) s << " (DV) " ;
63  s << std::endl ;
64  }
65  return s;
66 }
int i
Definition: DBlmapReader.cc:9