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

◆ operator<()

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

Definition at line 125 of file TotemTimingDigi.h.

References trackingPlots::other.

125  {
126  if (one.eventInfo() < other.eventInfo())
127  return true;
128  if (one.hardwareId() < other.hardwareId())
129  return true;
130  return false;
131 }

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const TotemTimingDigi digi 
)
inline

Definition at line 133 of file TotemTimingDigi.h.

References TotemTimingDigi::cellInfo(), TauDecayModes::dec, TotemTimingDigi::eventInfo(), TotemTimingDigi::fpgaTimestamp(), TotemTimingDigi::hardwareBoardId(), TotemTimingDigi::hardwareChannelId(), TotemTimingDigi::hardwareId(), TotemTimingDigi::hardwareSampicId(), TotemTimingDigi::numberOfSamples(), TotemTimingDigi::timestampA(), and TotemTimingDigi::timestampB().

133  {
134  return os << "TotemTimingDigi:"
135  << "\nHardwareId:\t" << std::hex << digi.hardwareId() << "\nDB: " << std::dec << digi.hardwareBoardId()
136  << "\tSampic: " << digi.hardwareSampicId() << "\tChannel: " << digi.hardwareChannelId()
137  << "\nFPGATimestamp:\t" << std::dec << digi.fpgaTimestamp() << "\nTimestampA:\t" << std::dec
138  << digi.timestampA() << "\nTimestampB:\t" << std::dec << digi.timestampB() << "\nCellInfo:\t" << std::hex
139  << digi.cellInfo() << "\nNumberOfSamples:\t" << std::dec << digi.numberOfSamples() << std::endl
140  << digi.eventInfo() << std::endl;
141 }
unsigned int timestampA() const
unsigned int timestampB() const
unsigned int numberOfSamples() const
unsigned int fpgaTimestamp() const
unsigned int hardwareSampicId() const
unsigned int hardwareChannelId() const
unsigned int hardwareId() const
Return digi values number.
TotemTimingEventInfo eventInfo() const
unsigned int hardwareBoardId() const
unsigned int cellInfo() const