4 for (
int i = 0;
i < 8;
i++) {
7 for (
int j = 0;
j < 5;
j++)
20 for (
int i = 0;
i < 8;
i++) {
23 for (
int j = 0;
j < 5;
j++)
29 const uint16_t* triggerInputs,
30 const uint32_t algodep,
31 const uint8_t outputTrigger) {
33 if (linSample >= 0 && linSample <
samples_) {
35 for (
int i = 0;
i < 4;
i++)
46 std::vector<bool> retval;
48 if (linSample >= 0 && linSample <
samples_) {
49 for (
int i = 0;
i < 72;
i++) {
51 retval.push_back(
triggerInputs_[linSample * 5 + ioff] & (1 << (
i % 16)));
59 if (linSample >= 0 && linSample <
samples_)
67 if (linSample >= 0 && linSample <
samples_)
89 out <<
"HcalTTPDigi " << digi.
id() <<
" with " << digi.
size() <<
" samples, " << digi.
presamples() <<
" presamples. " 91 out <<
"Firmware version " << digi.
fwVersion() <<
" and flavor/algo " << digi.
algorithm();
104 for (
int j = 19;
j >= 0;
j--)
108 for (
int j = 3;
j >= 0;
j--)
unsigned int pipelineLength() const
uint32_t algorithmWord(int relativeSample=0) const
bool operator==(const HcalTTPDigi &digi) const
uint8_t triggerOutput(int relativeSample=0) const
void setSample(int relativeSample, const uint16_t *triggerInputs, const uint32_t algodep, const uint8_t outputTrigger)
unsigned int fwVersion() const
std::vector< bool > inputPattern(int relativeSample=0) const
std::ostream & operator<<(std::ostream &out, const HcalTTPDigi &digi)
uint8_t triggerOutput_[8]
uint16_t triggerInputs_[5 *8]