CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
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().

29  {
30  s << "(HO TP " << HOtpd.ieta() << ", " << HOtpd.iphi() << ", ";
31  // s << HOtpd.whichSampleTriggered() << "_of_" << HOtpd.nsamples() << " [";
32  for (int bit=0; bit<HOtpd.nsamples(); bit++) {
33  if (HOtpd.data(bit)) s << "1";
34  else s << "0";
35  if (bit==HOtpd.whichSampleTriggered()) s<<"* ";
36  else s << " ";
37  }
38  s << " )";
39  return s;
40 }
string s
Definition: asciidump.py:422