CMS 3D CMS Logo

Classes | Functions
TCDSRecord.h File Reference
#include <bitset>
#include <ostream>
#include <cstdint>
#include <vector>
#include "DataFormats/TCDS/interface/BSTRecord.h"
#include "DataFormats/TCDS/interface/L1aInfo.h"

Go to the source code of this file.

Classes

class  TCDSRecord
 Class to contain information from TCDS FED. More...
 

Functions

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

Function Documentation

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

Pretty-print operator for TCDSRecord.

Definition at line 70 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.

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