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.

References trackingPlots::other.

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 }

◆ operator<<()

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

Definition at line 83 of file CTPPSDiamondDigi.h.

References HPTDCErrorFlags::errorFlag(), CTPPSDiamondDigi::hptdcErrorFlags(), CTPPSDiamondDigi::leadingEdge(), CTPPSDiamondDigi::multipleHit(), EcalTangentSkim_cfg::o, CTPPSDiamondDigi::thresholdVoltage(), and CTPPSDiamondDigi::trailingEdge().

83  {
84  return o << " " << digi.leadingEdge() << " " << digi.trailingEdge() << " " << digi.thresholdVoltage() << " "
85  << digi.multipleHit() << " " << digi.hptdcErrorFlags().errorFlag();
86 }
unsigned int thresholdVoltage() const
unsigned int leadingEdge() const
Return digi values number.
unsigned int trailingEdge() const
unsigned short errorFlag() const
HPTDCErrorFlags hptdcErrorFlags() const
bool multipleHit() const