CMS 3D CMS Logo

Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/DataFormats/HcalDigi/src/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 26 of file CastorTriggerPrimitiveDigi.cc.

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

                                                                              {
  s << digi.id() << " " << digi.size() << " samples "<< digi.presamples() << " presamples";
  if (digi.zsUnsuppressed()) s << " zsUS";
  if (digi.zsMarkAndPass()) s << " zsM&P";
  s << std::endl;
  s << " SOI  tpchannel="<< digi.SOI_tpchannel() <<" tpdata 0x" << std::hex << digi.SOI_tpdata() << std::dec << std::endl;
  for (int i=0; i<digi.size(); i++) {
    s << "  0x" << std::hex << digi.sample(i).raw() <<  " tpdata 0x" << digi.tpdata(i) << std::dec << " channel=" << digi.tpchannel(i) ;
        if (  digi.isSOI(i) ) s << " SOI" ; 
        s << std::endl;
  }
  return s;
}