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 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 }
JetCorrectorParameters::Record record
Definition: classes.h:7
const uint8_t bgoCount_v1
Definition: TCDSRaw.h:106