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 123 of file TotemTimingDigi.h.

References trackingPlots::other.

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

◆ operator<<()

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

Definition at line 131 of file TotemTimingDigi.h.

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

131  {
132  return os << "TotemTimingDigi:"
133  << "\nHardwareId:\t" << std::hex << digi.hardwareId() << "\nDB: " << std::dec << digi.hardwareBoardId()
134  << "\tSampic: " << digi.hardwareSampicId() << "\tChannel: " << digi.hardwareChannelId()
135  << "\nFPGATimestamp:\t" << std::dec << digi.fpgaTimestamp() << "\nTimestampA:\t" << std::dec
136  << digi.timestampA() << "\nTimestampB:\t" << std::dec << digi.timestampB() << "\nCellInfo:\t" << std::hex
137  << digi.cellInfo() << "\nNumberOfSamples:\t" << std::dec << digi.numberOfSamples() << std::endl
138  << digi.eventInfo() << std::endl;
139 }
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