CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
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 30 of file HcalTriggerPrimitiveDigi.cc.

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

30  {
31  s << digi.id() << " " << digi.size() << " samples " << digi.presamples() << " presamples";
32  if (digi.zsUnsuppressed())
33  s << " zsUS";
34  if (digi.zsMarkAndPass())
35  s << " zsM&P";
36  s << std::endl;
37  for (int i = 0; i < digi.size(); i++)
38  s << " " << digi.sample(i) << std::endl;
39  return s;
40 }
bool zsMarkAndPass() const
was ZS MarkAndPass?
bool zsUnsuppressed() const
was ZS unsuppressed?
const HcalTriggerPrimitiveSample & sample(int i) const
const HcalTrigTowerDetId & id() const