CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/DataFormats/HcalDigi/src/HOTriggerPrimitiveDigi.cc File Reference

#include "DataFormats/HcalDigi/interface/HOTriggerPrimitiveDigi.h"
#include <cstdio>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const HOTriggerPrimitiveDigi &HOtpd)

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const HOTriggerPrimitiveDigi HOtpd 
)

Definition at line 29 of file HOTriggerPrimitiveDigi.cc.

References HOTriggerPrimitiveDigi::data(), HOTriggerPrimitiveDigi::ieta(), HOTriggerPrimitiveDigi::iphi(), HOTriggerPrimitiveDigi::nsamples(), alignCSCRings::s, and HOTriggerPrimitiveDigi::whichSampleTriggered().

                                                                           {
  s << "(HO TP " << HOtpd.ieta() << ", " << HOtpd.iphi() << ",  ";
  //  s << HOtpd.whichSampleTriggered() << "_of_" << HOtpd.nsamples() << " [";
  for (int bit=0; bit<HOtpd.nsamples(); bit++) {
    if (HOtpd.data(bit)) s << "1";
    else s << "0";
    if (bit==HOtpd.whichSampleTriggered()) s<<"* ";
    else s << " ";
  }
  s << " )";
  return s;
}