CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/DataFormats/HcalDigi/interface/HOTriggerPrimitiveDigi.h File Reference

#include <boost/cstdint.hpp>
#include <ostream>
#include "DataFormats/HcalDetId/interface/HcalDetId.h"

Go to the source code of this file.

Classes

class  HOTriggerPrimitiveDigi

Functions

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

Function Documentation

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

Definition at line 29 of file HOTriggerPrimitiveDigi.cc.

References HOTriggerPrimitiveDigi::data(), HOTriggerPrimitiveDigi::ieta(), HOTriggerPrimitiveDigi::iphi(), HOTriggerPrimitiveDigi::nsamples(), asciidump::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;
}