CMS 3D CMS Logo

Classes | Functions
CastorTriggerPrimitiveDigi.h File Reference
#include <ostream>
#include <vector>
#include "DataFormats/HcalDetId/interface/HcalCastorDetId.h"
#include "DataFormats/HcalDigi/interface/HcalTriggerPrimitiveSample.h"

Go to the source code of this file.

Classes

class  CastorTriggerPrimitiveDigi
 

Functions

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

Function Documentation

◆ operator<<()

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 }
const HcalCastorDetId & id() const
bool zsMarkAndPass() const
was ZS MarkAndPass?
uint16_t raw() const
get the raw word
bool zsUnsuppressed() const
was ZS unsuppressed?
const HcalTriggerPrimitiveSample & sample(int i) const