CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 59 of file CTPPSDiamondDigi.h.

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

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 }
unsigned short errorFlag() const
unsigned int trailingEdge() const
unsigned int leadingEdge() const
Return digi values number.
bool multipleHit() const
unsigned int thresholdVoltage() const
HPTDCErrorFlags hptdcErrorFlags() const
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(), CTPPSDiamondDigi::thresholdVoltage(), and CTPPSDiamondDigi::trailingEdge().

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