CMS 3D CMS Logo

Classes | Functions
CTPPSPixelDigi.h File Reference
#include "FWCore/Utilities/interface/Exception.h"
#include <iostream>

Go to the source code of this file.

Classes

class  CTPPSPixelDigi
 

Functions

bool operator< (const CTPPSPixelDigi &one, const CTPPSPixelDigi &other)
 Comparison operator. More...
 
std::ostream & operator<< (std::ostream &o, const CTPPSPixelDigi &digi)
 

Function Documentation

◆ operator<()

bool operator< ( const CTPPSPixelDigi one,
const CTPPSPixelDigi other 
)
inline

Comparison operator.

Definition at line 57 of file CTPPSPixelDigi.h.

57  {
58  return (one.packedData() & CTPPSPixelDigi::rowcol_mask) < (other.packedData() & CTPPSPixelDigi::rowcol_mask);
59 }

References trackingPlots::other, CTPPSPixelDigi::packedData(), and CTPPSPixelDigi::rowcol_mask.

◆ operator<<()

std::ostream& operator<< ( std::ostream &  o,
const CTPPSPixelDigi digi 
)
inline

Definition at line 62 of file CTPPSPixelDigi.h.

62  {
63  return o << " " << digi.row() << " " << digi.column() << " " << digi.adc();
64 }

References CTPPSPixelDigi::adc(), CTPPSPixelDigi::column(), EcalTangentSkim_cfg::o, and CTPPSPixelDigi::row().

CTPPSPixelDigi::packedData
uint32_t packedData() const
Definition: CTPPSPixelDigi.h:27
CTPPSPixelDigi::column
int column() const
Definition: CTPPSPixelDigi.h:25
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
CTPPSPixelDigi::rowcol_mask
static const uint32_t rowcol_mask
Definition: CTPPSPixelDigi.h:41
CTPPSPixelDigi::row
int row() const
Access to digi information.
Definition: CTPPSPixelDigi.h:24
CTPPSPixelDigi::adc
unsigned short adc() const
Definition: CTPPSPixelDigi.h:26
trackingPlots.other
other
Definition: trackingPlots.py:1465