CMS 3D CMS Logo

Classes | Functions
TotemTimingEventInfo.h File Reference
#include <cstdint>
#include <bitset>
#include <iostream>

Go to the source code of this file.

Classes

class  TotemTimingEventInfo
 

Functions

bool operator< (const TotemTimingEventInfo &one, const TotemTimingEventInfo &other)
 
std::ostream & operator<< (std::ostream &o, const TotemTimingEventInfo &digi)
 

Function Documentation

◆ operator<()

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

Definition at line 115 of file TotemTimingEventInfo.h.

References trackingPlots::other.

115  {
116  if (one.eventNumber() < other.eventNumber())
117  return true;
118  if (one.l1ATimestamp() < other.l1ATimestamp())
119  return true;
120  if (one.hardwareId() < other.hardwareId())
121  return true;
122  return false;
123 }

◆ operator<<()

std::ostream& operator<< ( std::ostream &  o,
const TotemTimingEventInfo digi 
)
inline

Definition at line 125 of file TotemTimingEventInfo.h.

References TotemTimingEventInfo::bunchNumber(), TotemTimingEventInfo::channelMap(), TauDecayModes::dec, TotemTimingEventInfo::eventNumber(), TotemTimingEventInfo::hardwareBoardId(), TotemTimingEventInfo::hardwareChannelId(), TotemTimingEventInfo::hardwareId(), TotemTimingEventInfo::hardwareSampicId(), TotemTimingEventInfo::l1ALatency(), TotemTimingEventInfo::l1ATimestamp(), TotemTimingEventInfo::numberOfSamples(), EcalTangentSkim_cfg::o, TotemTimingEventInfo::offsetOfSamples(), TotemTimingEventInfo::orbitNumber(), and TotemTimingEventInfo::pllInfo().

125  {
126  std::bitset<16> bitsPLLInfo(digi.pllInfo());
127  return o << "TotemTimingEventInfo:"
128  << "\nHardwareId:\t" << std::hex << digi.hardwareId() << "\nDB: " << std::dec << digi.hardwareBoardId()
129  << "\tSampic: " << digi.hardwareSampicId() << "\tChannel: " << digi.hardwareChannelId()
130  << "\nL1A Timestamp:\t" << std::dec << digi.l1ATimestamp() << "\nL1A Latency:\t" << std::dec
131  << digi.l1ALatency() << "\nBunch Number:\t" << std::dec << digi.bunchNumber() << "\nOrbit Number:\t"
132  << std::dec << digi.orbitNumber() << "\nEvent Number:\t" << std::dec << digi.eventNumber()
133  << "\nChannels fired:\t" << std::hex << digi.channelMap() << "\nNumber of Samples:\t" << std::dec
134  << digi.numberOfSamples() << "\nOffset of Samples:\t" << std::dec << digi.offsetOfSamples()
135  << "\nPLL Info:\t" << bitsPLLInfo.to_string() << std::endl;
136 }
unsigned int hardwareSampicId() const
unsigned int l1ALatency() const
unsigned int bunchNumber() const
unsigned int hardwareId() const
Return digi values number.
unsigned int l1ATimestamp() const
unsigned int hardwareBoardId() const
unsigned int offsetOfSamples() const
unsigned int numberOfSamples() const
uint16_t channelMap() const
unsigned int orbitNumber() const
unsigned int eventNumber() const
unsigned int hardwareChannelId() const