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

Function Documentation

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

Definition at line 43 of file HcalUpgradeDataFrame.cc.

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

43  {
44  s << digi.id() << " " << digi.size() << " samples " << digi.presamples() << " presamples ";
45  for (int i=0; i<digi.size(); i++) {
46  int relSample = i - digi.presamples() ;
47  if ( relSample < 0 ) s << " (PRE) " ;
48  else s << " " ;
49  s << int(digi.adc(relSample)) << " (adc) " ;
50  s << int(digi.tdc(relSample)) << " (tdc) " ;
51  if ( digi.valid(relSample) ) s << " (DV) " ;
52  s << std::endl ;
53  }
54  return s;
55 }
int i
Definition: DBlmapReader.cc:9