CMS 3D CMS Logo

Functions
HcalTriggerPrimitiveDigi.cc File Reference
#include "DataFormats/HcalDigi/interface/HcalTriggerPrimitiveDigi.h"

Go to the source code of this file.

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().

26  {
27  s << digi.id() << " " << digi.size() << " samples "<< digi.presamples() << " presamples";
28  if (digi.zsUnsuppressed()) s << " zsUS";
29  if (digi.zsMarkAndPass()) s << " zsM&P";
30  s << std::endl;
31  for (int i=0; i<digi.size(); i++)
32  s << " " << digi.sample(i) << std::endl;
33  return s;
34 }
int i
Definition: DBlmapReader.cc:9
bool zsMarkAndPass() const
was ZS MarkAndPass?
bool zsUnsuppressed() const
was ZS unsuppressed?
const HcalTriggerPrimitiveSample & sample(int i) const
const HcalTrigTowerDetId & id() const