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 117 of file TotemTimingEventInfo.h.

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

References SiPixelPI::one, and trackingPlots::other.

◆ operator<<()

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

Definition at line 127 of file TotemTimingEventInfo.h.

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

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().

TotemTimingEventInfo::l1ATimestamp
unsigned int l1ATimestamp() const
Definition: TotemTimingEventInfo.h:47
TotemTimingEventInfo::pllInfo
uint8_t pllInfo() const
Definition: TotemTimingEventInfo.h:63
SiPixelPI::one
Definition: SiPixelPayloadInspectorHelper.h:39
TotemTimingEventInfo::hardwareSampicId
unsigned int hardwareSampicId() const
Definition: TotemTimingEventInfo.h:43
TotemTimingEventInfo::hardwareId
unsigned int hardwareId() const
Return digi values number.
Definition: TotemTimingEventInfo.h:39
TotemTimingEventInfo::eventNumber
unsigned int eventNumber() const
Definition: TotemTimingEventInfo.h:53
TotemTimingEventInfo::orbitNumber
unsigned int orbitNumber() const
Definition: TotemTimingEventInfo.h:51
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
TotemTimingEventInfo::hardwareBoardId
unsigned int hardwareBoardId() const
Definition: TotemTimingEventInfo.h:41
trackingPlots.other
other
Definition: trackingPlots.py:1464
TotemTimingEventInfo::bunchNumber
unsigned int bunchNumber() const
Definition: TotemTimingEventInfo.h:49
TotemTimingEventInfo::channelMap
uint16_t channelMap() const
Definition: TotemTimingEventInfo.h:55
TotemTimingEventInfo::l1ALatency
unsigned int l1ALatency() const
Definition: TotemTimingEventInfo.h:57
TotemTimingEventInfo::offsetOfSamples
unsigned int offsetOfSamples() const
Definition: TotemTimingEventInfo.h:61
TotemTimingEventInfo::numberOfSamples
unsigned int numberOfSamples() const
Definition: TotemTimingEventInfo.h:59
TotemTimingEventInfo::hardwareChannelId
unsigned int hardwareChannelId() const
Definition: TotemTimingEventInfo.h:45
TauDecayModes.dec
dec
Definition: TauDecayModes.py:142