CMS 3D CMS Logo

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

65  {
66  s << "MacAddress: 0x" << std::hex << record.getMacAddress() << std::dec << std::endl;
67  s << "SwVersion: 0x" << std::hex << record.getSwVersion() << std::dec << std::endl;
68  s << "FwVersion: 0x" << std::hex << record.getFwVersion() << std::dec << std::endl;
69  s << "RecordVersion: " << record.getRecordVersion() << std::endl;
70  s << "RunNumber: " << record.getRunNumber() << std::endl;
71  s << "BstReceptionStatus: 0x" << std::hex << record.getBstReceptionStatus() << std::dec << std::endl;
72  s << "Nibble: " << record.getNibble() << std::endl;
73  s << "LumiSection: " << record.getLumiSection() << std::endl;
74  s << "NibblesPerLumiSection: " << record.getNibblesPerLumiSection() << std::endl;
75  s << "EventType: " << record.getEventType() << std::endl;
76  s << "TriggerTypeFlags: 0x" << std::hex << record.getTriggerTypeFlags() << std::dec << std::endl;
77  s << "Inputs: " << record.getInputs() << std::endl;
78  s << "OrbitNr: " << record.getOrbitNr() << std::endl;
79  s << "BXID: " << record.getBXID() << std::endl;
80  s << "TriggerCount: " << record.getTriggerCount() << std::endl;
81  s << "EventNumber: " << record.getEventNumber() << std::endl;
82  s << "ActivePartitions: " << record.getActivePartitions() << std::endl;
83  s << std::endl;
84 
85  s << "L1aHistory:" << std::endl;
86  for (auto l1Info : record.getFullL1aHistory())
87  s << l1Info;
88  s << std::endl;
89 
90  s << record.getBST() << std::endl;
91  s << "LastOrbitCounter0: " << record.getLastOrbitCounter0() << std::endl;
92  s << "LastTestEnable: " << record.getLastTestEnable() << std::endl;
93  s << "LastResync: " << record.getLastResync() << std::endl;
94  s << "LastStart: " << record.getLastStart() << std::endl;
95  s << "LastEventCounter0: " << record.getLastEventCounter0() << std::endl;
96  s << "LastHardReset: " << record.getLastHardReset() << std::endl;
97 
98  for (auto i = 0; i < tcds::bgoCount_v1; ++i)
99  s << "Last BGo " << std::setw(2) << i << ": " << record.getOrbitOfLastBgo(i) << std::endl;
100 
101  return s;
102 }
uint32_t getRecordVersion() const
Definition: TCDSRecord.h:59
const BSTRecord & getBST() const
Definition: TCDSRecord.h:100
uint32_t getLastResync() const
Definition: TCDSRecord.h:124
uint16_t getNibblesPerLumiSection() const
Definition: TCDSRecord.h:71
uint32_t getLastOrbitCounter0() const
Definition: TCDSRecord.h:118
uint64_t getOrbitNr() const
Definition: TCDSRecord.h:88
uint32_t getNibble() const
Definition: TCDSRecord.h:68
const uint8_t bgoCount_v1
Definition: TCDSRaw.h:100
uint32_t getLastTestEnable() const
Definition: TCDSRecord.h:121
uint64_t getTriggerCount() const
Definition: TCDSRecord.h:91
uint32_t getBstReceptionStatus() const
Definition: TCDSRecord.h:97
uint16_t getInputs() const
Definition: TCDSRecord.h:82
ActivePartitions getActivePartitions() const
Definition: TCDSRecord.h:107
uint32_t getFwVersion() const
Definition: TCDSRecord.h:56
uint16_t getTriggerTypeFlags() const
Definition: TCDSRecord.h:79
uint32_t getLastHardReset() const
Definition: TCDSRecord.h:133
uint64_t getMacAddress() const
Definition: TCDSRecord.h:50
uint16_t getBXID() const
Definition: TCDSRecord.h:85
uint32_t getOrbitOfLastBgo(const uint16_t bgo) const
Definition: TCDSRecord.h:115
const L1aHistory & getFullL1aHistory() const
Definition: TCDSRecord.h:111
uint32_t getLastEventCounter0() const
Definition: TCDSRecord.h:130
uint64_t getEventNumber() const
Definition: TCDSRecord.h:94
uint16_t getEventType() const
Definition: TCDSRecord.h:74
uint32_t getSwVersion() const
Definition: TCDSRecord.h:53
uint32_t getLastStart() const
Definition: TCDSRecord.h:127
uint32_t getRunNumber() const
Definition: TCDSRecord.h:62
uint32_t getLumiSection() const
Definition: TCDSRecord.h:65