7 #ifndef LARBYTESTREAM_LARRODBLOCKCALIBRATIONV0_H
8 #define LARBYTESTREAM_LARRODBLOCKCALIBRATIONV0_H
51 template<
class DSPHEADER>
64 virtual void setPulsed(
const unsigned channelNumber);
68 inline bool getPulsed(
const unsigned channelNumber)
const;
75 template<
class DSPHEADER>
78 return this->getHeader16(DSPHEADER::Dac);
81 template<
class DSPHEADER>
84 return this->getHeader16(DSPHEADER::Delay);
87 template<
class DSPHEADER>
89 {
return this->getBit(this->m_FebBlock+(DSPHEADER::IsPulsed/2),channelNumber);}
92 template<
class DSPHEADER>
94 {this->setHeader16(DSPHEADER::Delay,delayValue);}
96 template<
class DSPHEADER>
98 {this->setHeader16(DSPHEADER::Dac,dacValue);
103 template<
class DSPHEADER>
106 #ifdef LARBYTESTREAMRODBLOCK_CHCKBOUNDARIES
107 if (channelNumber>=128) {
108 std::cout <<
"Error WRITE BEYOND ARRAY BONDARY!" << std::endl;
112 this->setBit((
uint32_t*) (&(this->m_vFragment->front())+(DSPHEADER::IsPulsed/2)),channelNumber);