1 #ifndef EventFilter_RPCRawToDigi_RPCAMC13Record_h 2 #define EventFilter_RPCRawToDigi_RPCAMC13Record_h 22 Header(
unsigned int ufov,
unsigned int n_amc,
unsigned int orbit_counter);
34 void setNAMC(
unsigned int n_amc);
49 static unsigned int const crc_offset_ = 32;
50 static unsigned int const block_number_offset_ = 20;
51 static unsigned int const event_counter_offset_ = 12;
52 static unsigned int const bx_counter_offset_ = 0;
57 ,
unsigned int block_number
58 ,
unsigned int event_counter
59 ,
unsigned int bx_counter);
66 std::uint32_t getCRC()
const;
67 unsigned int getBlockNumber()
const;
68 unsigned int getEventCounter()
const;
69 unsigned int getBXCounter()
const;
71 void setCRC(std::uint32_t crc);
72 void setBlockNumber(
unsigned int block_number);
73 void setEventCounter(
unsigned int event_counter);
74 void setBXCounter(
unsigned int bx_counter);
95 static unsigned int const size_offset_ = 32;
96 static unsigned int const block_number_offset_ = 20;
97 static unsigned int const amc_number_offset_ = 16;
98 static unsigned int const board_id_offset_ = 0;
100 static unsigned int const size_limit_ = 0x1400;
101 static unsigned int const size_max_ = 0x1000;
113 ,
unsigned int block_number
114 ,
unsigned int amc_number
115 ,
unsigned int board_id);
122 bool isLengthCorrect()
const;
123 bool isLastBlock()
const;
124 bool isFirstBlock()
const;
125 bool isEnabled()
const;
126 bool isPresent()
const;
127 bool isValid()
const;
128 bool isCRCOk()
const;
129 unsigned int getSize()
const;
130 unsigned int getSizeInBlock()
const;
131 bool hasTotalSize()
const;
132 unsigned int getBlockNumber()
const;
133 unsigned int getAMCNumber()
const;
134 unsigned int getBoardId()
const;
136 void setLengthCorrect(
bool length_correct);
137 void setLastBlock(
bool last_block);
138 void setFirstBlock(
bool first_block);
140 void setPresent(
bool present);
141 void setValid(
bool valid);
142 void setCRCOk(
bool crc_ok);
143 void setSize(
unsigned int size);
144 void setBlockNumber(
unsigned int block_number);
145 void setAMCNumber(
unsigned int amc_number);
146 void setBoardId(
unsigned int board_id);
157 bool isValid()
const;
160 std::vector<std::uint64_t>
const &
getData()
const;
161 std::vector<std::uint64_t> &
getData();
163 void setValid(
bool valid);
176 #include "EventFilter/RPCRawToDigi/interface/RPCAMC13Record.icc" 178 #endif // EventFilter_RPCRawToDigi_RPCAMC13Record_h
def getData(doc, options, dataset, site)
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
std::vector< std::uint64_t > data_
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
unsigned long long uint64_t