test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 92 of file CTPPSDiamondDigi.h.

References HPTDCErrorFlags::getErrorFlag(), CTPPSDiamondDigi::getHPTDCErrorFlags(), CTPPSDiamondDigi::getLeadingEdge(), CTPPSDiamondDigi::getMultipleHit(), CTPPSDiamondDigi::getThresholdVoltage(), and CTPPSDiamondDigi::getTrailingEdge().

93 {
94  if( one.getLeadingEdge() < other.getLeadingEdge() )
95  return true;
96  if( one.getLeadingEdge() > other.getLeadingEdge() )
97  return false;
98  if( one.getTrailingEdge() < other.getTrailingEdge() )
99  return true;
100  if( one.getTrailingEdge() > other.getTrailingEdge() )
101  return false;
102  if( one.getMultipleHit() < other.getMultipleHit() )
103  return true;
104  if( one.getMultipleHit() > other.getMultipleHit() )
105  return false;
107  return true;
109  return false;
110  if( one.getThresholdVoltage() < other.getThresholdVoltage() )
111  return true;
112  if( one.getThresholdVoltage() > other.getThresholdVoltage() )
113  return false;
114  return false;
115 }
unsigned short getErrorFlag() const
unsigned int getThresholdVoltage() const
HPTDCErrorFlags getHPTDCErrorFlags() const
unsigned int getLeadingEdge() const
Return digi values number.
bool getMultipleHit() const
unsigned int getTrailingEdge() const
std::ostream& operator<< ( std::ostream &  o,
const CTPPSDiamondDigi digi 
)
inline

Definition at line 118 of file CTPPSDiamondDigi.h.

References HPTDCErrorFlags::getErrorFlag(), CTPPSDiamondDigi::getHPTDCErrorFlags(), CTPPSDiamondDigi::getLeadingEdge(), CTPPSDiamondDigi::getMultipleHit(), CTPPSDiamondDigi::getThresholdVoltage(), and CTPPSDiamondDigi::getTrailingEdge().

119 {
120  return o << " " << digi.getLeadingEdge()
121  << " " << digi.getTrailingEdge()
122  << " " << digi.getThresholdVoltage()
123  << " " << digi.getMultipleHit()
124  << " " << digi.getHPTDCErrorFlags().getErrorFlag();
125 }
unsigned short getErrorFlag() const
unsigned int getThresholdVoltage() const
HPTDCErrorFlags getHPTDCErrorFlags() const
unsigned int getLeadingEdge() const
Return digi values number.
bool getMultipleHit() const
unsigned int getTrailingEdge() const