CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 117 of file TotemTimingEventInfo.h.

References TotemTimingEventInfo::eventNumber(), TotemTimingEventInfo::hardwareId(), and TotemTimingEventInfo::l1ATimestamp().

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 }
unsigned int hardwareId() const
Return digi values number.
unsigned int l1ATimestamp() const
unsigned int eventNumber() const
std::ostream& operator<< ( std::ostream &  o,
const TotemTimingEventInfo digi 
)
inline

Definition at line 127 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(), TotemTimingEventInfo::offsetOfSamples(), TotemTimingEventInfo::orbitNumber(), and TotemTimingEventInfo::pllInfo().

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 }
unsigned int hardwareSampicId() const
unsigned int hardwareId() const
Return digi values number.
unsigned int offsetOfSamples() const
unsigned int l1ALatency() const
unsigned int hardwareBoardId() const
unsigned int hardwareChannelId() const
unsigned int l1ATimestamp() const
unsigned int numberOfSamples() const
unsigned int eventNumber() const
uint8_t pllInfo() const
unsigned int bunchNumber() const
unsigned int orbitNumber() const
uint16_t channelMap() const