File indexing completed on 2024-04-06 12:10:59
0001 #include "EventFilter/RPCRawToDigi/interface/RPCAMCRecord.h"
0002
0003 namespace rpcamc {
0004
0005 Header::Header() {
0006 record_[0] = 0x0;
0007 record_[1] = 0x0;
0008 }
0009
0010 Header::Header(std::uint64_t const record[2]) {
0011 record_[0] = record[0];
0012 record_[1] = record[1];
0013 }
0014
0015 Header::Header(unsigned int amc_number,
0016 unsigned int event_counter,
0017 unsigned int bx_counter,
0018 unsigned int data_length,
0019 unsigned int orbit_counter,
0020 unsigned int board_id) {
0021 record_[0] = 0x0;
0022 record_[1] = 0x0;
0023
0024 setAMCNumber(amc_number);
0025 setEventCounter(event_counter);
0026 setBXCounter(bx_counter);
0027 setDataLength(data_length);
0028
0029 setOrbitCounter(orbit_counter);
0030 setBoardId(board_id);
0031 }
0032
0033 Header::~Header() {}
0034
0035 Trailer::Trailer(std::uint64_t const record) : record_(record) {}
0036
0037 Trailer::Trailer(std::uint32_t crc, unsigned int event_counter, unsigned int data_length) : record_(0x0) {
0038 setCRC(crc);
0039 setEventCounter(event_counter);
0040 setDataLength(data_length);
0041 }
0042
0043 }