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

◆ operator<<()

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

Pretty-print operator for TCDSRecord.

Definition at line 64 of file TCDSRecord.cc.

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

References tcds::bgoCount_v1, TauDecayModes::dec, mps_fire::i, GlobalPosition_Frontier_DevDB_cff::record, and alignCSCRings::s.

mps_fire.i
i
Definition: mps_fire.py:355
GlobalPosition_Frontier_DevDB_cff.record
record
Definition: GlobalPosition_Frontier_DevDB_cff.py:10
alignCSCRings.s
s
Definition: alignCSCRings.py:92
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143
tcds::bgoCount_v1
const uint8_t bgoCount_v1
Definition: TCDSRaw.h:100