CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
CastorTriggerPrimitiveDigi.cc File Reference
#include "DataFormats/HcalDigi/interface/CastorTriggerPrimitiveDigi.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 30 of file CastorTriggerPrimitiveDigi.cc.

References TauDecayModes::dec, mps_fire::i, CastorTriggerPrimitiveDigi::id(), CastorTriggerPrimitiveDigi::isSOI(), CastorTriggerPrimitiveDigi::presamples(), HcalTriggerPrimitiveSample::raw(), alignCSCRings::s, CastorTriggerPrimitiveDigi::sample(), CastorTriggerPrimitiveDigi::size(), CastorTriggerPrimitiveDigi::SOI_tpchannel(), CastorTriggerPrimitiveDigi::SOI_tpdata(), CastorTriggerPrimitiveDigi::tpchannel(), CastorTriggerPrimitiveDigi::tpdata(), CastorTriggerPrimitiveDigi::zsMarkAndPass(), and CastorTriggerPrimitiveDigi::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  s << " SOI tpchannel=" << digi.SOI_tpchannel() << " tpdata 0x" << std::hex << digi.SOI_tpdata() << std::dec
38  << std::endl;
39  for (int i = 0; i < digi.size(); i++) {
40  s << " 0x" << std::hex << digi.sample(i).raw() << " tpdata 0x" << digi.tpdata(i) << std::dec
41  << " channel=" << digi.tpchannel(i);
42  if (digi.isSOI(i))
43  s << " SOI";
44  s << std::endl;
45  }
46  return s;
47 }
bool zsUnsuppressed() const
was ZS unsuppressed?
const HcalCastorDetId & id() const
bool zsMarkAndPass() const
was ZS MarkAndPass?
uint16_t raw() const
get the raw word
const HcalTriggerPrimitiveSample & sample(int i) const