CMS 3D CMS Logo

Functions
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

◆ operator<<()

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

Definition at line 32 of file HOTriggerPrimitiveDigi.cc.

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 }

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

HOTriggerPrimitiveDigi::nsamples
int nsamples() const
get the number of samples used to compute the TP
Definition: HOTriggerPrimitiveDigi.h:38
alignCSCRings.s
s
Definition: alignCSCRings.py:92
HOTriggerPrimitiveDigi::ieta
int ieta() const
get the signed ieta value
Definition: HOTriggerPrimitiveDigi.h:34
HOTriggerPrimitiveDigi::whichSampleTriggered
int whichSampleTriggered() const
get the number of the triggering sample
Definition: HOTriggerPrimitiveDigi.h:40
HOTriggerPrimitiveDigi::iphi
int iphi() const
get the iphi value
Definition: HOTriggerPrimitiveDigi.h:36
HOTriggerPrimitiveDigi::data
bool data(int whichbit=HO_TP_SAMPLES_MAX) const
Definition: HOTriggerPrimitiveDigi.cc:23