CMS 3D CMS Logo

Classes | Functions
TotemTimingDigi.h File Reference
#include <cstdint>
#include <vector>
#include <DataFormats/CTPPSDigi/interface/TotemTimingEventInfo.h>
#include <iostream>

Go to the source code of this file.

Classes

class  TotemTimingDigi
 

Functions

bool operator< (const TotemTimingDigi &one, const TotemTimingDigi &other)
 
std::ostream & operator<< (std::ostream &os, const TotemTimingDigi &digi)
 

Function Documentation

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

Definition at line 186 of file TotemTimingDigi.h.

References TotemTimingDigi::getEventInfo(), and TotemTimingDigi::getHardwareId().

187 {
188  if ( one.getEventInfo() < other.getEventInfo() )
189  return true;
190  if ( one.getHardwareId() < other.getHardwareId() )
191  return true;
192  return false;
193 }
TotemTimingEventInfo getEventInfo() const
unsigned int getHardwareId() const
Return digi values number.
std::ostream& operator<< ( std::ostream &  os,
const TotemTimingDigi digi 
)
inline

Definition at line 195 of file TotemTimingDigi.h.

References TauDecayModes::dec, TotemTimingDigi::getCellInfo(), TotemTimingDigi::getEventInfo(), TotemTimingDigi::getFPGATimestamp(), TotemTimingDigi::getHardwareBoardId(), TotemTimingDigi::getHardwareChannelId(), TotemTimingDigi::getHardwareId(), TotemTimingDigi::getHardwareSampicId(), TotemTimingDigi::getNumberOfSamples(), TotemTimingDigi::getTimestampA(), and TotemTimingDigi::getTimestampB().

196 {
197  return os << "TotemTimingDigi:"
198  << "\nHardwareId:\t" << std::hex << digi.getHardwareId()
199  << "\nDB: " << std::dec << digi.getHardwareBoardId() << "\tSampic: " << digi.getHardwareSampicId() << "\tChannel: " << digi.getHardwareChannelId()
200  << "\nFPGATimestamp:\t" << std::dec << digi.getFPGATimestamp()
201  << "\nTimestampA:\t" << std::dec << digi.getTimestampA()
202  << "\nTimestampB:\t" << std::dec << digi.getTimestampB()
203  << "\nCellInfo:\t" << std::hex << digi.getCellInfo()
204  << "\nNumberOfSamples:\t" << std::dec << digi.getNumberOfSamples()
205  << std::endl << digi.getEventInfo() << std::endl;
206 }
TotemTimingEventInfo getEventInfo() const
unsigned int getTimestampA() const
unsigned int getHardwareId() const
Return digi values number.
unsigned int getFPGATimestamp() const
unsigned int getTimestampB() const
unsigned int getCellInfo() const
unsigned int getNumberOfSamples() const
unsigned int getHardwareChannelId() const
unsigned int getHardwareBoardId() const
unsigned int getHardwareSampicId() const