CMS 3D CMS Logo

Classes | Functions
CTPPSDiamondDigi.h File Reference
#include <cstdint>
#include "DataFormats/CTPPSDigi/interface/HPTDCErrorFlags.h"
#include <iostream>

Go to the source code of this file.

Classes

class  CTPPSDiamondDigi
 

Functions

bool operator< (const CTPPSDiamondDigi &one, const CTPPSDiamondDigi &other)
 
std::ostream & operator<< (std::ostream &o, const CTPPSDiamondDigi &digi)
 

Function Documentation

◆ operator<()

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

Definition at line 59 of file CTPPSDiamondDigi.h.

59  {
60  if (one.leadingEdge() < other.leadingEdge())
61  return true;
62  if (one.leadingEdge() > other.leadingEdge())
63  return false;
64  if (one.trailingEdge() < other.trailingEdge())
65  return true;
66  if (one.trailingEdge() > other.trailingEdge())
67  return false;
68  if (one.multipleHit() < other.multipleHit())
69  return true;
70  if (one.multipleHit() > other.multipleHit())
71  return false;
72  if (one.hptdcErrorFlags().errorFlag() < other.hptdcErrorFlags().errorFlag())
73  return true;
74  if (one.hptdcErrorFlags().errorFlag() > other.hptdcErrorFlags().errorFlag())
75  return false;
76  if (one.thresholdVoltage() < other.thresholdVoltage())
77  return true;
78  if (one.thresholdVoltage() > other.thresholdVoltage())
79  return false;
80  return false;
81 }

References SiPixelPI::one, and trackingPlots::other.

◆ operator<<()

std::ostream& operator<< ( std::ostream &  o,
const CTPPSDiamondDigi digi 
)
inline
SiPixelPI::one
Definition: SiPixelPayloadInspectorHelper.h:39
HPTDCErrorFlags::errorFlag
unsigned short errorFlag() const
Definition: HPTDCErrorFlags.h:72
CTPPSDiamondDigi::multipleHit
bool multipleHit() const
Definition: CTPPSDiamondDigi.h:34
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
CTPPSDiamondDigi::thresholdVoltage
unsigned int thresholdVoltage() const
Definition: CTPPSDiamondDigi.h:32
trackingPlots.other
other
Definition: trackingPlots.py:1464
CTPPSDiamondDigi::leadingEdge
unsigned int leadingEdge() const
Return digi values number.
Definition: CTPPSDiamondDigi.h:28
CTPPSDiamondDigi::trailingEdge
unsigned int trailingEdge() const
Definition: CTPPSDiamondDigi.h:30
CTPPSDiamondDigi::hptdcErrorFlags
HPTDCErrorFlags hptdcErrorFlags() const
Definition: CTPPSDiamondDigi.h:36