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.

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

References TotemTimingDigi::eventInfo(), TotemTimingDigi::hardwareId(), and trackingPlots::other.

◆ operator<<()

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

Definition at line 133 of file TotemTimingDigi.h.

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 }

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

TotemTimingDigi::timestampA
unsigned int timestampA() const
Definition: TotemTimingDigi.h:48
TotemTimingDigi::hardwareBoardId
unsigned int hardwareBoardId() const
Definition: TotemTimingDigi.h:40
TotemTimingDigi::hardwareId
unsigned int hardwareId() const
Return digi values number.
Definition: TotemTimingDigi.h:38
TotemTimingDigi::fpgaTimestamp
unsigned int fpgaTimestamp() const
Definition: TotemTimingDigi.h:46
TotemTimingDigi::hardwareSampicId
unsigned int hardwareSampicId() const
Definition: TotemTimingDigi.h:42
TotemTimingDigi::numberOfSamples
unsigned int numberOfSamples() const
Definition: TotemTimingDigi.h:60
trackingPlots.other
other
Definition: trackingPlots.py:1465
TotemTimingDigi::cellInfo
unsigned int cellInfo() const
Definition: TotemTimingDigi.h:52
TotemTimingDigi::hardwareChannelId
unsigned int hardwareChannelId() const
Definition: TotemTimingDigi.h:44
TotemTimingDigi::timestampB
unsigned int timestampB() const
Definition: TotemTimingDigi.h:50
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143
TotemTimingDigi::eventInfo
TotemTimingEventInfo eventInfo() const
Definition: TotemTimingDigi.h:69