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

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

Definition at line 181 of file TotemTimingEventInfo.h.

References TotemTimingEventInfo::getEventNumber(), TotemTimingEventInfo::getHardwareId(), and TotemTimingEventInfo::getL1ATimestamp().

182 {
183  if ( one.getEventNumber() < other.getEventNumber() )
184  return true;
185  if ( one.getL1ATimestamp() < other.getL1ATimestamp() )
186  return true;
187  if ( one.getHardwareId() < other.getHardwareId() )
188  return true;
189  return false;
190 }
unsigned int getEventNumber() const
unsigned int getHardwareId() const
Return digi values number.
unsigned int getL1ATimestamp() const
std::ostream& operator<< ( std::ostream &  o,
const TotemTimingEventInfo digi 
)
inline

Definition at line 192 of file TotemTimingEventInfo.h.

References TauDecayModes::dec, TotemTimingEventInfo::getBunchNumber(), TotemTimingEventInfo::getChannelMap(), TotemTimingEventInfo::getEventNumber(), TotemTimingEventInfo::getHardwareBoardId(), TotemTimingEventInfo::getHardwareChannelId(), TotemTimingEventInfo::getHardwareId(), TotemTimingEventInfo::getHardwareSampicId(), TotemTimingEventInfo::getL1ALatency(), TotemTimingEventInfo::getL1ATimestamp(), TotemTimingEventInfo::getNumberOfSamples(), TotemTimingEventInfo::getOffsetOfSamples(), TotemTimingEventInfo::getOrbitNumber(), and TotemTimingEventInfo::getPLLInfo().

193 {
194  std::bitset<16> bitsPLLInfo( digi.getPLLInfo() );
195  return o << "TotemTimingEventInfo:"
196  << "\nHardwareId:\t" << std::hex << digi.getHardwareId()
197  << "\nDB: " << std::dec << digi.getHardwareBoardId() << "\tSampic: " << digi.getHardwareSampicId() << "\tChannel: " << digi.getHardwareChannelId()
198  << "\nL1A Timestamp:\t" << std::dec << digi.getL1ATimestamp()
199  << "\nL1A Latency:\t" << std::dec << digi.getL1ALatency()
200  << "\nBunch Number:\t" << std::dec << digi.getBunchNumber()
201  << "\nOrbit Number:\t" << std::dec << digi.getOrbitNumber()
202  << "\nEvent Number:\t" << std::dec << digi.getEventNumber()
203  << "\nChannels fired:\t" << std::hex << digi.getChannelMap()
204  << "\nNumber of Samples:\t" << std::dec << digi.getNumberOfSamples()
205  << "\nOffset of Samples:\t" << std::dec << digi.getOffsetOfSamples()
206  << "\nPLL Info:\t" << bitsPLLInfo.to_string()
207  << std::endl;
208 }
unsigned int getEventNumber() const
unsigned int getNumberOfSamples() const
unsigned int getBunchNumber() const
uint8_t getPLLInfo() const
unsigned int getHardwareId() const
Return digi values number.
unsigned int getL1ALatency() const
unsigned int getHardwareSampicId() const
uint16_t getChannelMap() const
unsigned int getHardwareChannelId() const
unsigned int getL1ATimestamp() const
unsigned int getOrbitNumber() const
unsigned int getHardwareBoardId() const
unsigned int getOffsetOfSamples() const