CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/DataFormats/HcalDigi/interface/HcalTriggerPrimitiveDigi.h File Reference

#include <ostream>
#include <vector>
#include "DataFormats/HcalDetId/interface/HcalTrigTowerDetId.h"
#include "DataFormats/HcalDigi/interface/HcalTriggerPrimitiveSample.h"

Go to the source code of this file.

Classes

class  HcalTriggerPrimitiveDigi

Functions

std::ostream & operator<< (std::ostream &s, const HcalTriggerPrimitiveDigi &digi)

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const HcalTriggerPrimitiveDigi digi 
)

Definition at line 26 of file HcalTriggerPrimitiveDigi.cc.

References i, HcalTriggerPrimitiveDigi::id(), HcalTriggerPrimitiveDigi::presamples(), alignCSCRings::s, HcalTriggerPrimitiveDigi::sample(), HcalTriggerPrimitiveDigi::size(), HcalTriggerPrimitiveDigi::zsMarkAndPass(), and HcalTriggerPrimitiveDigi::zsUnsuppressed().

                                                                            {
  s << digi.id() << " " << digi.size() << " samples "<< digi.presamples() << " presamples";
  if (digi.zsUnsuppressed()) s << " zsUS";
  if (digi.zsMarkAndPass()) s << " zsM&P";
  s << std::endl;
  for (int i=0; i<digi.size(); i++) 
    s << "  " << digi.sample(i) << std::endl;
  return s;
}