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 65 of file TCDSRecord.cc.

References tcds::bgoCount_v1, TauDecayModes::dec, mps_fire::i, AlCaHarvesting_cff::record, 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 }
const uint8_t bgoCount_v1
Definition: TCDSRaw.h:100