CMS 3D CMS Logo

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

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

125  {
126  if (one.eventInfo() < other.eventInfo())
127  return true;
128  if (one.hardwareId() < other.hardwareId())
129  return true;
130  return false;
131 }
TotemTimingEventInfo eventInfo() const
unsigned int hardwareId() const
Return digi values number.
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 }
TotemTimingEventInfo eventInfo() const
unsigned int numberOfSamples() const
unsigned int timestampA() const
unsigned int hardwareSampicId() const
unsigned int hardwareId() const
Return digi values number.
unsigned int cellInfo() const
unsigned int hardwareBoardId() const
unsigned int fpgaTimestamp() const
unsigned int hardwareChannelId() const
unsigned int timestampB() const