CMS 3D CMS Logo

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

◆ operator<<()

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

Definition at line 30 of file CastorTriggerPrimitiveDigi.cc.

30  {
31  s << digi.id() << " " << digi.size() << " samples " << digi.presamples() << " presamples";
32  if (digi.zsUnsuppressed())
33  s << " zsUS";
34  if (digi.zsMarkAndPass())
35  s << " zsM&P";
36  s << std::endl;
37  s << " SOI tpchannel=" << digi.SOI_tpchannel() << " tpdata 0x" << std::hex << digi.SOI_tpdata() << std::dec
38  << std::endl;
39  for (int i = 0; i < digi.size(); i++) {
40  s << " 0x" << std::hex << digi.sample(i).raw() << " tpdata 0x" << digi.tpdata(i) << std::dec
41  << " channel=" << digi.tpchannel(i);
42  if (digi.isSOI(i))
43  s << " SOI";
44  s << std::endl;
45  }
46  return s;
47 }

References TauDecayModes::dec, mps_fire::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().

mps_fire.i
i
Definition: mps_fire.py:355
CastorTriggerPrimitiveDigi::tpchannel
int tpchannel(int i) const
Definition: CastorTriggerPrimitiveDigi.h:41
CastorTriggerPrimitiveDigi::sample
const HcalTriggerPrimitiveSample & sample(int i) const
Definition: CastorTriggerPrimitiveDigi.h:32
CastorTriggerPrimitiveDigi::id
const HcalCastorDetId & id() const
Definition: CastorTriggerPrimitiveDigi.h:20
CastorTriggerPrimitiveDigi::SOI_tpchannel
int SOI_tpchannel() const
Definition: CastorTriggerPrimitiveDigi.h:44
CastorTriggerPrimitiveDigi::tpdata
int tpdata(int i) const
Definition: CastorTriggerPrimitiveDigi.h:42
CastorTriggerPrimitiveDigi::zsMarkAndPass
bool zsMarkAndPass() const
was ZS MarkAndPass?
Definition: CastorTriggerPrimitiveDigi.h:25
HcalTriggerPrimitiveSample::raw
uint16_t raw() const
get the raw word
Definition: HcalTriggerPrimitiveSample.h:19
CastorTriggerPrimitiveDigi::size
int size() const
Definition: CastorTriggerPrimitiveDigi.h:21
alignCSCRings.s
s
Definition: alignCSCRings.py:92
CastorTriggerPrimitiveDigi::zsUnsuppressed
bool zsUnsuppressed() const
was ZS unsuppressed?
Definition: CastorTriggerPrimitiveDigi.h:27
CastorTriggerPrimitiveDigi::SOI_tpdata
int SOI_tpdata() const
Definition: CastorTriggerPrimitiveDigi.h:45
CastorTriggerPrimitiveDigi::isSOI
bool isSOI(int i) const
Definition: CastorTriggerPrimitiveDigi.h:43
CastorTriggerPrimitiveDigi::presamples
int presamples() const
Definition: CastorTriggerPrimitiveDigi.h:22
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143