17 if (raw.
size() < 3 * 8) {
24 std::vector<uint16_t> qadcvals;
31 const unsigned int* hitbase = (&(qdctdc->
n_tdc_hits)) + 1;
32 unsigned int totalhits = 0;
37 for (
unsigned int i = 0;
i < totalhits;
i++) {
38 int channel = (hitbase[
i] & 0x7FC00000) >> 22;
39 int time = (hitbase[
i] & 0xFFFFF);
40 if (channel == 0 &&
time == 0 &&
i == (totalhits - 1))
size_t size() const
Lenght of the data buffer in bytes.
void addTDCHit(int channel, int hittime)
void setQADC(const std::vector< uint16_t > &values)
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
void unpack(const FEDRawData &raw, HcalLaserDigi &digi) const