test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalHTRData.cc
Go to the documentation of this file.
1 //#include "Utilities/Configuration/interface/Architecture.h"
2 /*
3  * \author J. Mans -- UMD
4  */
5 #ifndef HTBDAQ_DATA_STANDALONE
7 #else
8 #include "HcalHTRData.h"
11 #endif
12 #include <string.h>
13 #include <stdio.h>
14 
15 HcalHTRData::HcalHTRData() : m_formatVersion(-2), m_rawLength(0), m_rawConst(0), m_ownData(0) { }
16 HcalHTRData::HcalHTRData(const unsigned short* data, int length) {
17  adoptData(data,length);
18  m_ownData=0;
19 }
20 HcalHTRData::HcalHTRData(const HcalHTRData& hd) : m_formatVersion(hd.m_formatVersion), m_rawLength(hd.m_rawLength), m_rawConst(hd.m_rawConst), m_ownData(0) { }
21 
22 HcalHTRData::HcalHTRData(int version_to_create) : m_formatVersion(version_to_create) {
23  allocate(version_to_create);
24 }
25 
26 void HcalHTRData::allocate(int version_to_create) {
27  m_formatVersion=version_to_create;
28  // the needed space is for the biggest possible event...
29  const int needed=0x200;
30  // create a buffer big enough...
31  m_ownData=new unsigned short[needed];
32  // clear isn't really necessary, but it makes valgrind happy
33  memset(m_ownData,0,sizeof(unsigned short)*needed);
34  m_rawLength=0;
36 }
37 
39  if (m_ownData==0) {
43  }
44  return (*this);
45 }
46 
47 void HcalHTRData::adoptData(const unsigned short* data, int length) {
48  m_rawLength=length;
50  if (m_rawLength<5) {
51  m_formatVersion=-2; // invalid!
52  } else {
53  // determine format version
54  if ((m_rawConst[2]&0x8000)==0) m_formatVersion=-1; // original format before versions
55  else m_formatVersion=(m_rawConst[4]>>12)&0xF;
56  }
57 }
58 
59 // check :: not EE, length is reasonable, length matches wordcount
60 // length required for tp+daq is correct
61 
62 bool HcalHTRData::check() const {
63  if (m_formatVersion==-1) {
64  // length checks
65  // minimum length
66  if (m_rawLength<6+12) return false;
67  // matches wordcount
68  if (m_rawLength!=m_rawConst[m_rawLength-3]) return false;
69  // empty event check
70  if (m_rawConst[2]&0x20) return false;
71  } else {
72  // length checks
73  // minimum length
74  if (m_rawLength<8+4) return false;
75  if (m_formatVersion<=3) {
76  // matches wordcount
78  if (isHistogramEvent() && m_rawConst[m_rawLength-3]==786) {
79  // known bug!
80  } else
81  return false;
82  }
83  } else {
84  // eventually add CRC check
85  }
86  // empty event check (redundant...)
87  if (m_rawConst[2]&0x4) return false;
88  }
89 
90  if (!isHistogramEvent()) {
91  // daq/tp length check
92  int tp, daq, header, trailer;
93  determineSectionLengths(tp,daq,header,trailer);
94  if (tp+daq+header+trailer>m_rawLength) return false;
95  }
96 
97  return true;
98 }
99 
101  if (m_formatVersion==-1) {
102  return (m_rawConst[2]&0x20)!=0;
103  } else {
104  return (m_rawConst[2]&0x4)!=0;
105  }
106 }
107 
108 
110  if (m_formatVersion==-1) {
111  return false; // too old to care.
112  } else {
113  return (m_rawConst[2]&0x1)!=0;
114  }
115 }
116 
117 bool HcalHTRData::isBusy() const {
118  if (m_formatVersion==-1) {
119  return false; // too old to care.
120  } else {
121  return (m_rawConst[2]&0x2)!=0;
122  }
123 }
124 
125 void HcalHTRData::determineSectionLengths(int& tpWords, int& daqWords, int& headerWords, int& trailerWords) const {
126  if (m_formatVersion==-1) {
127  tpWords=m_rawConst[5]>>8;
128  daqWords=CHANNELS_PER_SPIGOT*(m_rawConst[m_rawLength-4]>>8); // always 24 channels, no zero suppresion
129  headerWords=6;
130  trailerWords=12;
131  } else {
132  tpWords=m_rawConst[5]>>8;
133  if (m_rawLength>4)
134  daqWords=m_rawConst[m_rawLength-4]&0x7FF; // zero suppression supported
135  headerWords=8;
136  trailerWords=4; // minimum, may be more...
137  }
138 }
139 
140 void HcalHTRData::determineStaticLengths(int& headerWords, int& trailerWords) const {
141  if (m_formatVersion==-1) {
142  headerWords=6;
143  trailerWords=12;
144  } else if (m_formatVersion<5) {
145  headerWords=8;
146  trailerWords=4; // minimum, may be more...
147  } else {
148  headerWords=8;
149  trailerWords=12; // minimum, may be more...
150  }
151 }
152 
153 void HcalHTRData::dataPointers(const unsigned short** daq_first,
154  const unsigned short** daq_last,
155  const unsigned short** tp_first,
156  const unsigned short** tp_last) const {
157  int tp_words_total, daq_words_total, headerLen, trailerLen;
158  determineSectionLengths(tp_words_total,daq_words_total,headerLen,trailerLen);
159 
160  *tp_first=m_rawConst+headerLen;
161  *tp_last=*tp_first+(tp_words_total-1);
162  *daq_first=*tp_last+1;
163  *daq_last=*daq_first+(daq_words_total-1);
164 }
165 
166 /* using FiberAd[2:0] ChanId[1:0] */
167 static const int channelDecoder[32] = { 0, 1, 2, 99, 3, 4, 5, 99,
168  6, 7, 8, 99, 9,10,11, 99,
169  12,13,14,99,15,16,17, 99,
170  18,19,20,99,21,22,23, 99};
171 
172 void HcalHTRData::unpack(unsigned char* daq_lengths, unsigned short* daq_samples,
173  unsigned char* tp_lengths, unsigned short* tp_samples) const {
174 
175  if (daq_lengths!=0) memset(daq_lengths,0,CHANNELS_PER_SPIGOT);
176  if (tp_lengths!=0) memset(tp_lengths,0,CHANNELS_PER_SPIGOT);
177 
178  // currently, the major differences between the versions are
179  // -1 : 6 word header, no zero suppression, trailer setup
180  // 0 : 8 word header, zero suppression,
181 
182  int tp_words_total, daq_words_total, headerLen, trailerLen;
183  determineSectionLengths(tp_words_total,daq_words_total,headerLen,trailerLen);
184 
185  // printf("%d %d %d %d\n",tp_words_total,daq_words_total,headerLen,trailerLen);
186  int wordPtr;
187  const unsigned short* tpBase=m_rawConst+headerLen;
188  // process the trigger primitive words
189  if (tp_lengths!=0) {
190  for (wordPtr=0; wordPtr<tp_words_total; wordPtr++) {
191  int ichan=channelDecoder[tpBase[wordPtr]>>11];
192  if (ichan>=24) continue;
193  tp_samples[ichan*MAXIMUM_SAMPLES_PER_CHANNEL+tp_lengths[ichan]]=tpBase[wordPtr]&0x3ff;
194  tp_lengths[ichan]++;
195  }
196  }
197 
198  const unsigned short* daqBase=m_rawConst+headerLen+tp_words_total;
199  // process the DAQ words [ assumes that data from one channel will always be together ]
200  int lastChan=-1;
201  int lastCapid=0;
202  if (daq_lengths!=0) {
203  for (wordPtr=0; wordPtr<daq_words_total; wordPtr++) {
204  int ichan=channelDecoder[daqBase[wordPtr]>>11];
205  if (ichan>=24) continue;
206  int capid=(daqBase[wordPtr]&0x180)>>7;
207  int erdv=(daqBase[wordPtr]&0x600)>>9;
208  if (erdv!=0x1 ||
209  (lastChan==ichan && (capid!=((lastCapid+1)%4)))) {
210  daq_lengths[ichan]|=0x80;
211  }
212  lastChan=ichan;
213  lastCapid=capid;
214 
215  int useLength=daq_lengths[ichan]&0x1F;
216  // printf("%d %d\n",ichan,useLength);
217  daq_samples[ichan*MAXIMUM_SAMPLES_PER_CHANNEL+useLength]=daqBase[wordPtr]&0x3ff;
218  daq_lengths[ichan]=(useLength+1)|(daq_lengths[ichan]&0xE0); // keep the error bits
219  }
220  }
221 
222 }
223 
224 void HcalHTRData::pack(unsigned char* daq_lengths, unsigned short* daq_samples,
225  unsigned char* tp_lengths, unsigned short* tp_samples, bool do_capid) {
226 
227  int tp_words_total=0, daq_words_total=0, headerLen, trailerLen;
228  determineStaticLengths(headerLen,trailerLen);
229 
230  tp_words_total=0;
231  daq_words_total=0;
232  int ichan,isample;
233 
234  // trigger primitive words
235  unsigned short* ptr=m_ownData+headerLen;
236  if (tp_samples!=0 && tp_lengths!=0) {
237  for (ichan=0; ichan<24; ichan++) {
238  unsigned short chanid=((ichan%4)+(((ichan/4)+1)<<2))<<11;
239  for (isample=0; isample<tp_lengths[ichan] && isample<MAXIMUM_SAMPLES_PER_CHANNEL; isample++) {
240  ptr[tp_words_total]=chanid|(tp_samples[ichan*MAXIMUM_SAMPLES_PER_CHANNEL+isample]&0x3FF);
241  tp_words_total++;
242  }
243  }
244  }
245 
246  // daq words
247  ptr=m_ownData+headerLen+tp_words_total;
248  for (ichan=0; ichan<24; ichan++) {
249  unsigned short chanid=((ichan%3)+((ichan/3)<<2))<<11;
250  for (isample=0; isample<daq_lengths[ichan] && isample<MAXIMUM_SAMPLES_PER_CHANNEL; isample++) {
251  unsigned short basedata=daq_samples[ichan*MAXIMUM_SAMPLES_PER_CHANNEL+isample]&0x7FF;
252  if (do_capid) basedata=(basedata&0x7F)|(0x200)|((isample%4)<<7);
253  ptr[daq_words_total]=chanid|basedata;
254  daq_words_total++;
255  }
256  }
257  unsigned short totalLen;
258  if (m_formatVersion==-1) {
259  m_ownData[5]=(tp_words_total<<8)|0x1;
260  totalLen=headerLen+tp_words_total+daq_words_total+trailerLen;
261  m_rawLength=totalLen;
262  m_ownData[totalLen-3]=totalLen;
263  m_ownData[totalLen-4]=(tp_words_total/CHANNELS_PER_SPIGOT)|((daq_words_total/CHANNELS_PER_SPIGOT)<<8);
264  } else {
265  m_ownData[5]=(tp_words_total<<8)|0x1;
266  totalLen=headerLen+tp_words_total+daq_words_total+trailerLen;
267  if ((totalLen%2)==1) {
268  m_ownData[totalLen-4]=0xFFFF; // parity word
269  totalLen++; // round to even number of 16-bit words
270  }
271  m_rawLength=totalLen;
272  m_ownData[totalLen-2]=totalLen/2; // 32-bit words
273  m_ownData[totalLen-3]=totalLen;
274  m_ownData[totalLen-4]=daq_words_total;
275  }
276  if (trailerLen==12) { // initialize extra trailer words if present
277  for (int i=12; i>4; i--)
278  m_ownData[totalLen-i]=0;
279  }
280 
281 }
282 
283 void HcalHTRData::packHeaderTrailer(int L1Anumber, int bcn, int submodule, int orbitn, int pipeline, int ndd, int nps, int firmwareRev, int firmwareFlav) {
284  m_ownData[0]=L1Anumber&0xFF;
285  m_ownData[1]=(L1Anumber&0xFFFF00)>>8;
286  if (m_formatVersion==-1) {
287  m_ownData[2]=((pipeline&0x7F)<<8); // no error bits
288  m_ownData[3]=((orbitn&0xFF)<<8)|(submodule&0xFF);
289  m_ownData[4]=bcn&0xFFF;
290  // m_ownData[5]&=0xFF01;
291  } else {
292  m_ownData[2]=0x8000; // Version is valid, no error bits
293  if (m_formatVersion==0)
294  m_ownData[3]=((orbitn&0x3F)<<10)|(submodule&0x3FF);
295  else
296  m_ownData[3]=((orbitn&0x1F)<<11)|(submodule&0x7FF);
297  m_ownData[4]=((m_formatVersion&0xF)<<12)|(bcn&0xFFF);
298  m_ownData[5]|=((nps&0x1F)<<3)|0x1;
299  m_ownData[6]=((firmwareRev&0x70000)>>3)|(firmwareRev&0x1FFF);
300  m_ownData[7]=(pipeline&0xFF)|((firmwareFlav&0x3F)<<8);
301  m_ownData[m_rawLength-4]&=0x7FF;
302  m_ownData[m_rawLength-4]|=(ndd&0x1F)<<11;
303  }
304  m_ownData[m_rawLength-2]=m_rawLength/2; // 32-bit words
305  m_ownData[m_rawLength-1]=(L1Anumber&0xFF)<<8;
306 }
307 
308 void HcalHTRData::packUnsuppressed(const bool* mp) {
309  if (m_formatVersion<4) return;
310 
311  for (int fiber=1; fiber<=8; fiber++) {
312  for (int fiberchan=0; fiberchan<=2; fiberchan++) {
313  int linchan=(fiber-1)*3+fiberchan;
314 
315  unsigned short& val=m_ownData[m_rawLength-12+(linchan/8)];
316  if (mp[linchan]) val|=1<<(linchan%8);
317  }
318  }
319 
320  // set the unsupressed bit
321  m_ownData[6]|=0x8000;
322 }
323 
324 unsigned int HcalHTRData::getOrbitNumber() const {
325  switch (m_formatVersion) {
326  case (-1) : return (m_rawConst[3]>>8);
327  case (0) : return (m_rawConst[3]>>10);
328  default : return (m_rawConst[3]>>11);
329  }
330 }
331 unsigned int HcalHTRData::getSubmodule() const {
332  switch (m_formatVersion) {
333  case (-1) : return (m_rawConst[3]&0xFF);
334  case (0) : return (m_rawConst[3]&0x3FF);
335  default : return (m_rawConst[3]&0x7FF);
336  }
337 }
338 unsigned int HcalHTRData::htrSlot() const{
339  const unsigned int smid = getSubmodule();
340  return ((smid>>1)&0x1F);
341 }
342 unsigned int HcalHTRData::htrTopBottom() const{
343  const unsigned int smid = getSubmodule();
344  return (smid&0x01);
345 }
346 unsigned int HcalHTRData::readoutVMECrateId() const{
347  const unsigned int smid = getSubmodule();
348  return ((smid>>6)&0x1F);
349 }
351  return (m_formatVersion==-1)?(false):(m_rawConst[2]&0x4000);
352 }
354  return (m_formatVersion<4)?(false):(m_rawConst[6]&0x8000);
355 }
356 bool HcalHTRData::wasMarkAndPassZS(int fiber, int fiberchan) const {
357  if (fiber<1 || fiber>8 || fiberchan<0 || fiberchan>2) return false;
358  if (!isUnsuppressed() || m_formatVersion<5) return false;
359  int linchan=(fiber-1)*3+fiberchan;
360 
361  unsigned short val=m_rawConst[m_rawLength-12+(linchan/8)];
362  return ((val>>(linchan%8))&0x1)!=0;
363 }
364 bool HcalHTRData::wasMarkAndPassZSTP(int slb, int slbchan) const {
365  if (slb<1 || slb>6 || slbchan<0 || slbchan>3) return false;
366  if (!isUnsuppressed() || m_formatVersion<5) return false;
367  int linchan=(slb-1)*4+slbchan;
368 
369  unsigned short val=m_rawConst[m_rawLength-12+(linchan/8)];
370  return ((val>>(linchan%8))&0x100)!=0;
371 }
372 
373 uint32_t HcalHTRData::zsBunchMask() const {
374  uint32_t mask=0;
375  if (isUnsuppressed() && m_formatVersion>=5) {
376  mask=m_rawConst[m_rawLength-5]|
377  ((m_rawConst[m_rawLength-6]&0xF000)<<4);
378  }
379  return mask;
380 }
381 
383  return (m_formatVersion==-1)?(false):(m_rawConst[2]&0x1000);
384 }
386  return (m_formatVersion==-1)?(m_rawConst[2]&0x2):(m_rawConst[2]&0x2000);
387 }
388 int HcalHTRData::getNDD() const {
389  return (m_formatVersion==-1)?(m_rawConst[m_rawLength-4]>>8):(m_rawConst[m_rawLength-4]>>11);
390 }
391 int HcalHTRData::getNTP() const {
392  int retval=-1;
393  if (m_formatVersion==-1) retval=m_rawConst[m_rawLength-4]&0xFF;
394  else if (m_formatVersion<3) retval=m_rawConst[m_rawLength-4]>>11;
395  return retval;
396 }
398  return (m_formatVersion==-1)?(m_rawConst[m_rawLength-4]&0xFF):(m_rawConst[m_rawLength-4]&0x7FF);
399 }
400 int HcalHTRData::getNPS() const {
401  return (m_formatVersion==-1)?(0):((m_rawConst[5]>>3)&0x1F);
402 }
403 unsigned int HcalHTRData::getPipelineLength() const {
404  return (m_formatVersion==-1)?(m_rawConst[2]>>8):(m_rawConst[7]&0xFF);
405 }
406 unsigned int HcalHTRData::getFirmwareRevision() const {
407  return (m_formatVersion==-1)?(0):((m_rawConst[6]&0x1FFF)+((m_rawConst[6]&0xE000)<<3));
408 }
410  return (m_formatVersion<2)?(-1):((m_rawConst[7]>>8)&0xFF);
411 }
412 
413 void HcalHTRData::getHistogramFibers(int& a, int& b) const {
414  a=-1;
415  b=-1;
416  if (m_formatVersion==-1) {
417  a=((m_rawConst[2]&0x0F00)>>8);
418  b=((m_rawConst[2]&0xF000)>>12);
419  } else {
420  a=((m_rawConst[5]&0x0F00)>>8)+1;
421  b=((m_rawConst[5]&0xF000)>>12)+1;
422  }
423 }
424 
425 bool HcalHTRData::wasHistogramError(int ifiber) const {
426  bool retval=!isHistogramEvent();
427  if (!retval) {
428  retval=((m_rawConst[7])&(1<<ifiber))!=0;
429  }
430  return retval;
431 }
432 
433 bool HcalHTRData::unpack_per_channel_header(unsigned short header, int& flav, int& error_flags, int& capid0, int& channelid) {
434  flav=(header>>12)&0x7;
435  error_flags=(header>>10)&0x3;
436  capid0=(header>>8)&0x3;
437  channelid=(header)&0xFF;
438  return (header&0x8000)!=0;
439 }
440 
441 bool HcalHTRData::unpackHistogram(int myfiber, int mysc, int capid, unsigned short* histogram) const {
442  // check for histogram mode
443  if (!isHistogramEvent()) return false;
444 
445  int fiber1, fiber2;
446  getHistogramFibers(fiber1,fiber2);
447  if (fiber1!=myfiber && fiber2!=myfiber) return false;
448 
449  if (m_formatVersion==-1) {
450  int offset=6+mysc*4*32+capid*32;
451  if (myfiber==fiber2) offset+=3*4*32; // skip to the second half...
452  for (int i=0; i<32; i++)
453  histogram[i]=m_rawConst[offset+i];
454  return true;
455  } else {
456  int offset=8+mysc*4*32+capid*32;
457  if (myfiber==fiber2) offset+=3*4*32; // skip to the second half...
458  for (int i=0; i<32; i++)
459  histogram[i]=m_rawConst[offset+i];
460  return true;
461  }
462 }
unsigned short * m_ownData
Definition: HcalHTRData.h:255
int i
Definition: DBlmapReader.cc:9
int getNDD() const
Get the number of daq data samples per channel when not zero-suppressed.
Definition: HcalHTRData.cc:388
bool check() const
Check for a good event Requires a minimum length, matching wordcount and length, not an empty event...
Definition: HcalHTRData.cc:62
static int slb(const HcalTriggerPrimitiveSample &theSample)
int m_formatVersion
Definition: HcalHTRData.h:252
unsigned int htrTopBottom() const
HcalElectronicsId-style HTR top/bottom (1=top/0=bottom)
Definition: HcalHTRData.cc:342
void packUnsuppressed(const bool *mp)
pack trailer with Mark and Pass bits
Definition: HcalHTRData.cc:308
bool isPatternRAMEvent() const
Is this event a pattern-ram event?
Definition: HcalHTRData.cc:382
const unsigned short * m_rawConst
Definition: HcalHTRData.h:254
void determineStaticLengths(int &headerWords, int &trailerWords) const
Definition: HcalHTRData.cc:140
bool wasMarkAndPassZS(int fiber, int fiberchan) const
Was this channel passed as part of Mark&amp;Pass ZS?
Definition: HcalHTRData.cc:356
bool wasHistogramError(int ifiber) const
Was there an error on the given fiber for this event (only in histogram mode!)
Definition: HcalHTRData.cc:425
static const int CHANNELS_PER_SPIGOT
Definition: HcalHTRData.h:18
static bool unpack_per_channel_header(unsigned short, int &flav, int &error_flags, int &capid0, int &channelid)
Unpack a per-channel header word (compact format)
Definition: HcalHTRData.cc:433
static const int MAXIMUM_SAMPLES_PER_CHANNEL
Definition: HcalHTRData.h:19
void getHistogramFibers(int &a, int &b) const
Get the fiber numbers for the data present in this event (only in histogram mode!) ...
Definition: HcalHTRData.cc:413
unsigned int getOrbitNumber() const
Get the HTR orbit number.
Definition: HcalHTRData.cc:324
HcalHTRData & operator=(const HcalHTRData &)
Definition: HcalHTRData.cc:38
int getNPrecisionWords() const
Get the total number of precision data 16-bit words.
Definition: HcalHTRData.cc:397
bool isCalibrationStream() const
Is this event a calibration-stream event?
Definition: HcalHTRData.cc:350
bool isUnsuppressed() const
Is this event an unsuppresed event?
Definition: HcalHTRData.cc:353
void allocate(int version_to_create=0)
Definition: HcalHTRData.cc:26
unsigned int getPipelineLength() const
Get the pipeline length used for this event.
Definition: HcalHTRData.cc:403
bool isOverflowWarning() const
Definition: HcalHTRData.cc:109
unsigned int htrSlot() const
HcalElectronicsId-style HTR slot.
Definition: HcalHTRData.cc:338
void unpack(unsigned char *daq_lengths, unsigned short *daq_samples, unsigned char *tp_lengths, unsigned short *tp_samples) const
Unpack the HTR data into TP and DAQ data sorted by channel.
Definition: HcalHTRData.cc:172
bool unpackHistogram(int fiber, int fiberchan, int capid, unsigned short *histogram) const
Unpack special histogramming mode data.
Definition: HcalHTRData.cc:441
int getNTP() const
Get the number of trigger data samples when not zero-suppressed (not available after FW 4) ...
Definition: HcalHTRData.cc:391
bool isEmptyEvent() const
Definition: HcalHTRData.cc:100
void pack(unsigned char *daq_lengths, unsigned short *daq_samples, unsigned char *tp_lengths, unsigned short *tp_samples, bool do_capid=false)
Unpack the HTR data into TP and DAQ data sorted by channel.
Definition: HcalHTRData.cc:224
void dataPointers(const unsigned short **daq_first, const unsigned short **daq_last, const unsigned short **tp_first, const unsigned short **tp_last) const
Obtain the starting and ending pointers for external unpacking of the data.
Definition: HcalHTRData.cc:153
static const int channelDecoder[32]
Definition: HcalHTRData.cc:167
double b
Definition: hdecay.h:120
int getNPS() const
Get the number of presamples in daq data.
Definition: HcalHTRData.cc:400
int getFirmwareFlavor() const
Get the HTR firmware flavor.
Definition: HcalHTRData.cc:409
unsigned int readoutVMECrateId() const
HcalElectronicsId-style VME crate number.
Definition: HcalHTRData.cc:346
void packHeaderTrailer(int L1Anumber, int bcn, int submodule, int orbitn, int pipeline, int ndd, int nps, int firmwareRev=0, int firmwareFlav=0)
pack header and trailer (call after pack)
Definition: HcalHTRData.cc:283
void adoptData(const unsigned short *data, int length)
Definition: HcalHTRData.cc:47
bool wasMarkAndPassZSTP(int slb, int slbchan) const
Was this channel passed as part of Mark&amp;Pass ZS?
Definition: HcalHTRData.cc:364
double a
Definition: hdecay.h:121
uint32_t zsBunchMask() const
ZS Bunch Mask (if available)
Definition: HcalHTRData.cc:373
unsigned int getSubmodule() const
Get the HTR submodule number.
Definition: HcalHTRData.cc:331
bool isBusy() const
Definition: HcalHTRData.cc:117
unsigned int getFirmwareRevision() const
Get the HTR firmware version.
Definition: HcalHTRData.cc:406
bool isHistogramEvent() const
Is this event a histogram event? (do not call standard unpack in this case!!!!!)
Definition: HcalHTRData.cc:385
void determineSectionLengths(int &tpWords, int &daqWords, int &headerWords, int &trailerWords) const
Definition: HcalHTRData.cc:125