CMS 3D CMS Logo

Functions
TCDSRecord.cc File Reference
#include <iomanip>
#include "DataFormats/FEDRawData/interface/FEDHeader.h"
#include "DataFormats/TCDS/interface/TCDSRecord.h"
#include "DataFormats/TCDS/interface/TCDSRaw.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const TCDSRecord &record)
 Pretty-print operator for TCDSRecord. More...
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const TCDSRecord record 
)

Pretty-print operator for TCDSRecord.

Definition at line 72 of file TCDSRecord.cc.

References tcds::bgoCount_v1, TauDecayModes::dec, TCDSRecord::getActivePartitions(), TCDSRecord::getBST(), TCDSRecord::getBstReceptionStatus(), TCDSRecord::getBXID(), TCDSRecord::getEventNumber(), TCDSRecord::getEventType(), TCDSRecord::getFullL1aHistory(), TCDSRecord::getFwVersion(), TCDSRecord::getInputs(), TCDSRecord::getLastEventCounter0(), TCDSRecord::getLastHardReset(), TCDSRecord::getLastOrbitCounter0(), TCDSRecord::getLastResync(), TCDSRecord::getLastStart(), TCDSRecord::getLastTestEnable(), TCDSRecord::getLumiSection(), TCDSRecord::getMacAddress(), TCDSRecord::getNibble(), TCDSRecord::getNibblesPerLumiSection(), TCDSRecord::getOrbitNr(), TCDSRecord::getOrbitOfLastBgo(), TCDSRecord::getRecordVersion(), TCDSRecord::getRunNumber(), TCDSRecord::getSwVersion(), TCDSRecord::getTriggerCount(), TCDSRecord::getTriggerTypeFlags(), mps_fire::i, and alignCSCRings::s.

73 {
74  s << "MacAddress: 0x" << std::hex << record.getMacAddress() << std::dec << std::endl;
75  s << "SwVersion: 0x" << std::hex << record.getSwVersion() << std::dec << std::endl;
76  s << "FwVersion: 0x" << std::hex << record.getFwVersion() << std::dec << std::endl;
77  s << "RecordVersion: " << record.getRecordVersion() << std::endl;
78  s << "RunNumber: " << record.getRunNumber() << std::endl;
79  s << "BstReceptionStatus: 0x" << std::hex << record.getBstReceptionStatus() << std::dec << std::endl;
80  s << "Nibble: " << record.getNibble() << std::endl;
81  s << "LumiSection: " << record.getLumiSection() << std::endl;
82  s << "NibblesPerLumiSection: " << record.getNibblesPerLumiSection() << std::endl;
83  s << "EventType: " << record.getEventType() << std::endl;
84  s << "TriggerTypeFlags: 0x" << std::hex << record.getTriggerTypeFlags() << std::dec << std::endl;
85  s << "Inputs: " << record.getInputs() << std::endl;
86  s << "OrbitNr: " << record.getOrbitNr() << std::endl;
87  s << "BXID: " << record.getBXID() << std::endl;
88  s << "TriggerCount: " << record.getTriggerCount() << std::endl;
89  s << "EventNumber: " << record.getEventNumber() << std::endl;
90  s << "ActivePartitions: " << record.getActivePartitions() << std::endl;
91  s << std::endl;
92 
93  s << "L1aHistory:" << std::endl;
94  for (auto l1Info : record.getFullL1aHistory())
95  s << l1Info;
96  s << std::endl;
97 
98  s << record.getBST() << std::endl;
99  s << "LastOrbitCounter0: " << record.getLastOrbitCounter0() << std::endl;
100  s << "LastTestEnable: " << record.getLastTestEnable() << std::endl;
101  s << "LastResync: " << record.getLastResync() << std::endl;
102  s << "LastStart: " << record.getLastStart() << std::endl;
103  s << "LastEventCounter0: " << record.getLastEventCounter0() << std::endl;
104  s << "LastHardReset: " << record.getLastHardReset() << std::endl;
105 
106  for (auto i = 0; i < tcds::bgoCount_v1; ++i)
107  s << "Last BGo " << std::setw(2) << i << ": " << record.getOrbitOfLastBgo(i) << std::endl;
108 
109  return s;
110 }
uint32_t getRecordVersion() const
Definition: TCDSRecord.h:63
const BSTRecord & getBST() const
Definition: TCDSRecord.h:104
uint32_t getLastResync() const
Definition: TCDSRecord.h:125
uint16_t getNibblesPerLumiSection() const
Definition: TCDSRecord.h:75
uint32_t getLastOrbitCounter0() const
Definition: TCDSRecord.h:119
uint64_t getOrbitNr() const
Definition: TCDSRecord.h:92
uint32_t getNibble() const
Definition: TCDSRecord.h:72
const uint8_t bgoCount_v1
Definition: TCDSRaw.h:106
uint32_t getLastTestEnable() const
Definition: TCDSRecord.h:122
uint64_t getTriggerCount() const
Definition: TCDSRecord.h:95
uint32_t getBstReceptionStatus() const
Definition: TCDSRecord.h:101
uint16_t getInputs() const
Definition: TCDSRecord.h:86
ActivePartitions getActivePartitions() const
Definition: TCDSRecord.h:108
uint32_t getFwVersion() const
Definition: TCDSRecord.h:60
uint16_t getTriggerTypeFlags() const
Definition: TCDSRecord.h:83
uint32_t getLastHardReset() const
Definition: TCDSRecord.h:134
uint64_t getMacAddress() const
Definition: TCDSRecord.h:54
uint16_t getBXID() const
Definition: TCDSRecord.h:89
uint32_t getOrbitOfLastBgo(const uint16_t bgo) const
Definition: TCDSRecord.h:116
const L1aHistory & getFullL1aHistory() const
Definition: TCDSRecord.h:112
uint32_t getLastEventCounter0() const
Definition: TCDSRecord.h:131
uint64_t getEventNumber() const
Definition: TCDSRecord.h:98
uint16_t getEventType() const
Definition: TCDSRecord.h:78
uint32_t getSwVersion() const
Definition: TCDSRecord.h:57
uint32_t getLastStart() const
Definition: TCDSRecord.h:128
uint32_t getRunNumber() const
Definition: TCDSRecord.h:66
uint32_t getLumiSection() const
Definition: TCDSRecord.h:69