CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
CastorTriggerPrimitiveDigi.h File Reference
#include <ostream>
#include <vector>
#include "DataFormats/HcalDetId/interface/HcalCastorDetId.h"
#include "DataFormats/HcalDigi/interface/HcalTriggerPrimitiveSample.h"

Go to the source code of this file.

Classes

class  CastorTriggerPrimitiveDigi
 

Functions

std::ostream & operator<< (std::ostream &s, const CastorTriggerPrimitiveDigi &digi)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const CastorTriggerPrimitiveDigi digi 
)

Definition at line 26 of file CastorTriggerPrimitiveDigi.cc.

References TauDecayModes::dec, i, CastorTriggerPrimitiveDigi::id(), CastorTriggerPrimitiveDigi::isSOI(), CastorTriggerPrimitiveDigi::presamples(), HcalTriggerPrimitiveSample::raw(), alignCSCRings::s, CastorTriggerPrimitiveDigi::sample(), CastorTriggerPrimitiveDigi::size(), CastorTriggerPrimitiveDigi::SOI_tpchannel(), CastorTriggerPrimitiveDigi::SOI_tpdata(), CastorTriggerPrimitiveDigi::tpchannel(), CastorTriggerPrimitiveDigi::tpdata(), CastorTriggerPrimitiveDigi::zsMarkAndPass(), and CastorTriggerPrimitiveDigi::zsUnsuppressed().

26  {
27  s << digi.id() << " " << digi.size() << " samples "<< digi.presamples() << " presamples";
28  if (digi.zsUnsuppressed()) s << " zsUS";
29  if (digi.zsMarkAndPass()) s << " zsM&P";
30  s << std::endl;
31  s << " SOI tpchannel="<< digi.SOI_tpchannel() <<" tpdata 0x" << std::hex << digi.SOI_tpdata() << std::dec << std::endl;
32  for (int i=0; i<digi.size(); i++) {
33  s << " 0x" << std::hex << digi.sample(i).raw() << " tpdata 0x" << digi.tpdata(i) << std::dec << " channel=" << digi.tpchannel(i) ;
34  if ( digi.isSOI(i) ) s << " SOI" ;
35  s << std::endl;
36  }
37  return s;
38 }
int i
Definition: DBlmapReader.cc:9
bool zsUnsuppressed() const
was ZS unsuppressed?
const HcalCastorDetId & id() const
bool zsMarkAndPass() const
was ZS MarkAndPass?
uint16_t raw() const
get the raw word
const HcalTriggerPrimitiveSample & sample(int i) const