CMS 3D CMS Logo

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(), and HOTriggerPrimitiveDigi::whichSampleTriggered().

00029                                                                            {
00030   s << "(HO TP " << HOtpd.ieta() << ", " << HOtpd.iphi() << ",  ";
00031   //  s << HOtpd.whichSampleTriggered() << "_of_" << HOtpd.nsamples() << " [";
00032   for (int bit=0; bit<HOtpd.nsamples(); bit++) {
00033     if (HOtpd.data(bit)) s << "1";
00034     else s << "0";
00035     if (bit==HOtpd.whichSampleTriggered()) s<<"* ";
00036     else s << " ";
00037   }
00038   s << " )";
00039   return s;
00040 }


Generated on Tue Jun 9 17:52:07 2009 for CMSSW by  doxygen 1.5.4