CMS 3D CMS Logo

Classes | Functions
HOTriggerPrimitiveDigi.h File Reference
#include <ostream>
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include <cstdint>

Go to the source code of this file.

Classes

class  HOTriggerPrimitiveDigi
 

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 32 of file HOTriggerPrimitiveDigi.cc.

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

32  {
33  s << "(HO TP " << HOtpd.ieta() << ", " << HOtpd.iphi() << ", ";
34  // s << HOtpd.whichSampleTriggered() << "_of_" << HOtpd.nsamples() << " [";
35  for (int bit = 0; bit < HOtpd.nsamples(); bit++) {
36  if (HOtpd.data(bit))
37  s << "1";
38  else
39  s << "0";
40  if (bit == HOtpd.whichSampleTriggered())
41  s << "* ";
42  else
43  s << " ";
44  }
45  s << " )";
46  return s;
47 }