CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Attributes | Private Attributes
HcalDCCHeader Class Reference

#include <HcalDCCHeader.h>

Public Member Functions

unsigned short BOEshouldBe5Always () const
 
short BOEshouldBeZeroAlways () const
 
void clear ()
 
void copySpigotData (unsigned int spigot_id, const HcalHTRData &data, bool valid=true, unsigned char LRB_error_word=0)
 Add the given HcalHTRData as the given spigot's data. This should be done in increasing spigot order! More...
 
int getAcceptTimeTTS () const
 
int getBunchId () const
 
bool getBxMismatchWithDCC (unsigned int nspigot) const
 Read the "BxID FAILS TO MATCH WITH DCC" bit for this spigot. More...
 
int getByte1Zeroes () const
 
int getByte3Zeroes () const
 
int getByte567Zeroes () const
 
HcalCalibrationEventType getCalibType () const
 
unsigned short getCDFEventType () const
 
short getCDFversionNumber () const
 
short getDCCDataFormatVersion () const
 
unsigned long getDCCEventNumber () const
 
int getDCCStatus () const
 
int getHTRStatusBits () const
 
unsigned char getLRBErrorBits (unsigned int nspigot) const
 Access the Link Receiver Board error bits (decoding tbd) More...
 
unsigned int getOrbitNumber () const
 
unsigned int getSlink64ReservedBits () const
 
int getSourceId () const
 
bool getSpigotCRCError (unsigned int nspigot) const
 Read the "CRC-Mismatch" bit for this spigot. More...
 
int getSpigotData (int nspigot, HcalHTRData &decodeTool, int validSize) const
 
void getSpigotData (int nspigot, HcalHTRData &decodeTool) const
 
unsigned int getSpigotDataLength (int nspigot) const
 
bool getSpigotDataTruncated (unsigned int nspigot) const
 Read the "TRUNCATED" bit for this spigot; LRB truncated data (took too long) More...
 
bool getSpigotEnabled (unsigned int nspigot) const
 Read the "ENABLED" bit for this spigot. More...
 
unsigned char getSpigotErrorBits (unsigned int nspigot) const
 Access the HTR error bits (decoding tbd) More...
 
bool getSpigotErrorFlag (int nspigot) const
 
bool getSpigotPresent (unsigned int nspigot) const
 Read the "PRESENT" bit for this spigot. More...
 
int getSpigotSummary (int nspigot) const
 
bool getSpigotValid (unsigned int nspigot) const
 Read the "VALID" bit for this spigot; TTC EvN matched HTR EvN. More...
 
unsigned int getTotalLengthBytes () const
 
 HcalDCCHeader ()
 
bool isCalibType () const
 
bool SawCT_BcN_MxMx () const
 
bool SawCT_EvN_MxMx () const
 
bool SawL1A_BcN_MxMx () const
 
bool SawL1A_EvN_MxMx () const
 
bool SawOrbitLengthErr () const
 
bool SawTTC_DoubErr () const
 
bool SawTTC_SingErr () const
 
bool SawTTS_BSY () const
 
bool SawTTS_OFW () const
 
bool SawTTS_SYN () const
 
void setHeader (int sourceid, int bcn, int l1aN, int orbN)
 
bool thereIsASecondCDFHeaderWord () const
 
bool thereIsAThirdCDFHeaderWord () const
 

Static Public Attributes

static const int SPIGOT_COUNT = 15
 

Private Attributes

unsigned int commondataformat0
 
unsigned int commondataformat1
 
unsigned int commondataformat2
 
unsigned int commondataformat3
 
unsigned int dcch0
 
unsigned int dcch1
 
unsigned int spigotInfo [18]
 

Detailed Description

Interpretive class for an HcalDCCHeader

Author
J. Mans - UMD

Definition at line 17 of file HcalDCCHeader.h.

Constructor & Destructor Documentation

HcalDCCHeader::HcalDCCHeader ( )

Definition at line 12 of file HcalDCCHeader.cc.

Referenced by copySpigotData(), getSpigotData(), and getTotalLengthBytes().

12 { }

Member Function Documentation

unsigned short HcalDCCHeader::BOEshouldBe5Always ( ) const
inline

Get the inviolable '5' in the highest 4 bits of the CDF header.

Definition at line 40 of file HcalDCCHeader.h.

References commondataformat1.

Referenced by CastorDataIntegrityMonitor::unpack(), HcalDataIntegrityTask::unpack(), and HcalRawDataMonitor::unpack().

40 { return ( (commondataformat1>>28) & 0x0F ); }
unsigned int commondataformat1
short HcalDCCHeader::BOEshouldBeZeroAlways ( ) const
inline

Get the Beginning Of Event bits. If it's not the first or last CDF Slink64 word, the high 4 bits must be zero.

Definition at line 50 of file HcalDCCHeader.h.

References commondataformat3.

Referenced by CastorDataIntegrityMonitor::unpack(), HcalDataIntegrityTask::unpack(), and HcalRawDataMonitor::unpack().

50 { return ( (commondataformat3>>28) & 0x0F); }
unsigned int commondataformat3
void HcalDCCHeader::clear ( void  )

clear the contents of this header

Definition at line 40 of file HcalDCCHeader.cc.

References commondataformat0, commondataformat1, commondataformat2, commondataformat3, dcch0, dcch1, i, and spigotInfo.

Referenced by Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), CastorPacker::pack(), HcalPacker::pack(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and Vispa.Views.PropertyView.PropertyView::updateContent().

40  {
42  commondataformat1=0x50000000u;
45  dcch0=0x1; // format version 1
46  dcch1=0;
47  for (int i=0; i<18; i++)
48  spigotInfo[i]=0;
49 }
unsigned int commondataformat1
int i
Definition: DBlmapReader.cc:9
unsigned int commondataformat2
unsigned int dcch1
unsigned int commondataformat3
unsigned int commondataformat0
unsigned int dcch0
unsigned int spigotInfo[18]
void HcalDCCHeader::copySpigotData ( unsigned int  spigot_id,
const HcalHTRData data,
bool  valid = true,
unsigned char  LRB_error_word = 0 
)

Add the given HcalHTRData as the given spigot's data. This should be done in increasing spigot order!

Parameters
spigot_id
spigot_data
validflag
LRB_error_word

Definition at line 56 of file HcalDCCHeader.cc.

References dcch0, HcalHTRData::getErrorsWord(), HcalHTRData::getRawData(), HcalHTRData::getRawLength(), getSpigotDataLength(), HcalDCCHeader(), i, SPIGOT_COUNT, and spigotInfo.

Referenced by CastorPacker::pack(), and HcalPacker::pack().

56  {
57  if (spigot_id>=(unsigned int)SPIGOT_COUNT) return;
58  // construct the spigot info
59  spigotInfo[spigot_id]=(data.getRawLength()/2)|0xc000;
60  if (valid) spigotInfo[spigot_id]|=0x2000;
61  spigotInfo[spigot_id]|=(LRB_error_word<<16)|((data.getErrorsWord()&0xFF)<<24);
62  // status info...
63  if (valid) dcch0|=(1<<(spigot_id+14));
64  // copy
65  unsigned int lenSoFar=0;
66  for (unsigned int i=0; i<spigot_id; i++) lenSoFar+=getSpigotDataLength(i);
67  unsigned short* startingPoint=((unsigned short*)this)+sizeof(HcalDCCHeader)/sizeof(unsigned short)+lenSoFar*2;
68  memcpy(startingPoint,data.getRawData(),sizeof(unsigned short)*data.getRawLength());
69  // update the trailer...
70  lenSoFar+=data.getRawLength()/2; // 32-bit words
71  uint32_t* trailer=((uint32_t*)this)+sizeof(HcalDCCHeader)/sizeof(uint32_t)+lenSoFar;
72  int len64=sizeof(HcalDCCHeader)/8+lenSoFar/2+1;
73  trailer[1]=0;
74  trailer[0]=0xA0000000u|len64;
75 }
int i
Definition: DBlmapReader.cc:9
unsigned int getSpigotDataLength(int nspigot) const
Definition: HcalDCCHeader.h:96
unsigned int dcch0
const int getRawLength() const
Get the length of the raw data.
Definition: HcalHTRData.h:39
unsigned int spigotInfo[18]
const unsigned short * getRawData() const
Get a pointer to the raw data.
Definition: HcalHTRData.h:36
unsigned int getErrorsWord() const
Get the errors word.
Definition: HcalHTRData.h:156
static const int SPIGOT_COUNT
Definition: HcalDCCHeader.h:19
int HcalDCCHeader::getAcceptTimeTTS ( ) const
inline

Definition at line 58 of file HcalDCCHeader.h.

References dcch0.

Referenced by HcalRawDataMonitor::unpack().

58 { return ((dcch0>>8)& 0x0000000F); }
unsigned int dcch0
int HcalDCCHeader::getBunchId ( ) const
inline

get the bunch id from the CDF header

Definition at line 34 of file HcalDCCHeader.h.

References commondataformat0.

Referenced by HcalRawDataMonitor::unpack().

34 { return (commondataformat0>>20)&0xFFF; }
unsigned int commondataformat0
bool HcalDCCHeader::getBxMismatchWithDCC ( unsigned int  nspigot) const
inline

Read the "BxID FAILS TO MATCH WITH DCC" bit for this spigot.

Definition at line 103 of file HcalDCCHeader.h.

References spigotInfo.

Referenced by HcalRawDataMonitor::unpack().

103 { return (nspigot>=15)?(false):(spigotInfo[nspigot]&0x2000); }
unsigned int spigotInfo[18]
int HcalDCCHeader::getByte1Zeroes ( ) const
inline

Definition at line 59 of file HcalDCCHeader.h.

References dcch0.

59 { return ((dcch0>>12)& 0x00000003); }
unsigned int dcch0
int HcalDCCHeader::getByte3Zeroes ( ) const
inline

Definition at line 61 of file HcalDCCHeader.h.

References dcch0.

61 { return ((dcch0>>29)& 0x00000007); }
unsigned int dcch0
int HcalDCCHeader::getByte567Zeroes ( ) const
inline

Definition at line 63 of file HcalDCCHeader.h.

References dcch1.

63 { return (dcch1 & 0xFF00FC00); }
unsigned int dcch1
HcalCalibrationEventType HcalDCCHeader::getCalibType ( ) const
inline

Definition at line 54 of file HcalDCCHeader.h.

References commondataformat3.

Referenced by isCalibType().

54 { return HcalCalibrationEventType ((commondataformat3>>24)&0x0000000F);}
HcalCalibrationEventType
unsigned int commondataformat3
unsigned short HcalDCCHeader::getCDFEventType ( ) const
inline

Get the Event Type value (2007.11.03 - Not defined, but should stay consistent among events.)

Definition at line 38 of file HcalDCCHeader.h.

References commondataformat1.

Referenced by CastorDataIntegrityMonitor::unpack(), and HcalDataIntegrityTask::unpack().

38 { return ( (commondataformat1>>24) & 0x0F ); }
unsigned int commondataformat1
short HcalDCCHeader::getCDFversionNumber ( ) const
inline

Get the Format Version of the Common Data Format

Definition at line 30 of file HcalDCCHeader.h.

References commondataformat0.

Referenced by CastorDataIntegrityMonitor::unpack(), HcalDataIntegrityTask::unpack(), and HcalRawDataMonitor::unpack().

30 {return ((commondataformat0>>4) & 0x0F); }
unsigned int commondataformat0
short HcalDCCHeader::getDCCDataFormatVersion ( ) const
inline

Definition at line 57 of file HcalDCCHeader.h.

References dcch0.

Referenced by HcalUnpacker::unpack(), and HcalRawDataMonitor::unpack().

57 { return (dcch0 & 0xFF); }
unsigned int dcch0
unsigned long HcalDCCHeader::getDCCEventNumber ( ) const
inline

get the Event Number from the CDF header

Definition at line 36 of file HcalDCCHeader.h.

References commondataformat1.

Referenced by HcalRawDataMonitor::unpack().

36 { return (commondataformat1 & 0x00FFFFFF); }
unsigned int commondataformat1
int HcalDCCHeader::getDCCStatus ( ) const
inline
int HcalDCCHeader::getHTRStatusBits ( ) const
inline

Definition at line 60 of file HcalDCCHeader.h.

References dcch0.

60 { return ((dcch0>>14)& 0x00007FFF); }
unsigned int dcch0
unsigned char HcalDCCHeader::getLRBErrorBits ( unsigned int  nspigot) const
inline

Access the Link Receiver Board error bits (decoding tbd)

Definition at line 113 of file HcalDCCHeader.h.

References spigotInfo.

Referenced by operator<<(), CastorDataIntegrityMonitor::unpack(), HcalEEUSMonitor::unpack(), and HcalRawDataMonitor::unpack().

113 { return (nspigot>=15)?(0):((unsigned char)(spigotInfo[nspigot]>>16)); }
unsigned int spigotInfo[18]
unsigned int HcalDCCHeader::getOrbitNumber ( ) const
inline

Get the Orbit Number from the CDF.

Definition at line 46 of file HcalDCCHeader.h.

References commondataformat2, and commondataformat3.

Referenced by HcalEEUSMonitor::unpack(), and HcalRawDataMonitor::unpack().

46 { return ( ((commondataformat3 & 0xF) << 28) + ( commondataformat2>>4) ); }
unsigned int commondataformat2
unsigned int commondataformat3
unsigned int HcalDCCHeader::getSlink64ReservedBits ( ) const
inline

get the (undefined) 'Reserved' part of the second Slink64 CDF word

Definition at line 48 of file HcalDCCHeader.h.

References commondataformat3.

Referenced by CastorDataIntegrityMonitor::unpack(), HcalDataIntegrityTask::unpack(), and HcalRawDataMonitor::unpack().

48 { return ( (commondataformat3>>4)&0x00FFFFFF ); }
unsigned int commondataformat3
int HcalDCCHeader::getSourceId ( ) const
inline
bool HcalDCCHeader::getSpigotCRCError ( unsigned int  nspigot) const
inline

Read the "CRC-Mismatch" bit for this spigot.

Definition at line 109 of file HcalDCCHeader.h.

References spigotInfo.

Referenced by CastorDataIntegrityMonitor::unpack(), CastorUnpacker::unpack(), HcalUnpacker::unpack(), and HcalRawDataMonitor::unpack().

109 { return (nspigot>=15)?(false):(spigotInfo[nspigot]&0x0400); }
unsigned int spigotInfo[18]
int HcalDCCHeader::getSpigotData ( int  nspigot,
HcalHTRData decodeTool,
int  validSize 
) const

Load the given decoder with the pointer and length from this spigot Returns 0 on success Returns -1 if spigot points to data area beyond validSize

Definition at line 27 of file HcalDCCHeader.cc.

References HcalHTRData::adoptData(), newFWLiteAna::base, HcalDCCHeader(), i, evf::evtn::offset(), and spigotInfo.

Referenced by DQMHcalPhiSymAlCaReco::analyze(), HcalDigiMonitor::analyze(), HcalMonitorModule::CheckSubdetectorStatus(), HcalEmptyEventFilter::filter(), getSpigotData(), HLTHcalNZSFilter::hltFilter(), HcalNZSMonitor::processEvent(), HcalTriggerPrimitiveAlgo::runFEFormatError(), CastorDataIntegrityMonitor::unpack(), CastorUnpacker::unpack(), HcalEEUSMonitor::unpack(), HcalUnpacker::unpack(), and HcalRawDataMonitor::unpack().

27  {
28  const unsigned short* base=((unsigned short*)this)+sizeof(HcalDCCHeader)/sizeof(unsigned short);
29  int offset=0,i,len=0;
30  for (i=0; i<=nspigot; i++) {
31  offset+=len;
32  len=(spigotInfo[i]&0x3FF)*2;
33  }
34  if ((offset+len+sizeof(HcalDCCHeader)/sizeof(unsigned short))<(validSize/sizeof(unsigned short))) {
35  decodeTool.adoptData(base+offset,len);
36  return 0;
37  } else { return -1; }
38 }
tuple base
Main Program
Definition: newFWLiteAna.py:92
int i
Definition: DBlmapReader.cc:9
unsigned int spigotInfo[18]
unsigned int offset(bool)
void adoptData(const unsigned short *data, int length)
Definition: HcalHTRData.cc:47
void HcalDCCHeader::getSpigotData ( int  nspigot,
HcalHTRData decodeTool 
) const

Old (unsafe) getSpigotData. All calls should be replaced by the new call. This call will generate WARN log messages.

Definition at line 21 of file HcalDCCHeader.cc.

References getSpigotData().

21  {
22  edm::LogWarning("HCAL-Unpacker") << "Using unsafe getSpigotData without length controls. Not recommended! Replace with new getSpigotData call";
23  getSpigotData(nspigot,decodeTool,10000000);
24 }
int getSpigotData(int nspigot, HcalHTRData &decodeTool, int validSize) const
unsigned int HcalDCCHeader::getSpigotDataLength ( int  nspigot) const
inline

Get the size (in 32-bit words) of the data from this spigot

Definition at line 96 of file HcalDCCHeader.h.

References spigotInfo.

Referenced by copySpigotData(), operator<<(), CastorDataIntegrityMonitor::unpack(), and HcalRawDataMonitor::unpack().

96 { return (nspigot>=15)?(0):(spigotInfo[nspigot]&0x3ff); }
unsigned int spigotInfo[18]
bool HcalDCCHeader::getSpigotDataTruncated ( unsigned int  nspigot) const
inline

Read the "TRUNCATED" bit for this spigot; LRB truncated data (took too long)

Definition at line 107 of file HcalDCCHeader.h.

References spigotInfo.

Referenced by CastorDataIntegrityMonitor::unpack(), and HcalRawDataMonitor::unpack().

107 { return (nspigot>=15)?(false):(spigotInfo[nspigot]&0x0800); }
unsigned int spigotInfo[18]
bool HcalDCCHeader::getSpigotEnabled ( unsigned int  nspigot) const
inline

Read the "ENABLED" bit for this spigot.

Definition at line 99 of file HcalDCCHeader.h.

References spigotInfo.

Referenced by operator<<(), CastorDataIntegrityMonitor::unpack(), and HcalRawDataMonitor::unpack().

99 { return (nspigot>=15)?(false):(spigotInfo[nspigot]&0x8000); }
unsigned int spigotInfo[18]
unsigned char HcalDCCHeader::getSpigotErrorBits ( unsigned int  nspigot) const
inline

Access the HTR error bits (decoding tbd)

Definition at line 111 of file HcalDCCHeader.h.

References spigotInfo.

Referenced by operator<<(), HcalEEUSMonitor::unpack(), and HcalRawDataMonitor::unpack().

111 { return (nspigot>=15)?(0):((unsigned char)(spigotInfo[nspigot]>>24)); }
unsigned int spigotInfo[18]
bool HcalDCCHeader::getSpigotErrorFlag ( int  nspigot) const
inline

Get the value flagging a spigot's summary of error flags.

Definition at line 66 of file HcalDCCHeader.h.

References dcch0.

66  {
67  return (( dcch0>>(14+nspigot) )&0x0001); }
unsigned int dcch0
bool HcalDCCHeader::getSpigotPresent ( unsigned int  nspigot) const
inline
int HcalDCCHeader::getSpigotSummary ( int  nspigot) const
inline

Get a given spigot summary from the DCC Header

Definition at line 82 of file HcalDCCHeader.h.

References spigotInfo.

Referenced by HcalRawDataMonitor::unpack().

82 { return spigotInfo[nspigot]; }
unsigned int spigotInfo[18]
bool HcalDCCHeader::getSpigotValid ( unsigned int  nspigot) const
inline

Read the "VALID" bit for this spigot; TTC EvN matched HTR EvN.

Definition at line 105 of file HcalDCCHeader.h.

References spigotInfo.

Referenced by operator<<(), and HcalRawDataMonitor::unpack().

105 { return (nspigot>=15)?(false):(spigotInfo[nspigot]&0x1000); }
unsigned int spigotInfo[18]
unsigned int HcalDCCHeader::getTotalLengthBytes ( ) const

Determine the expected total length of this packet in bytes

Definition at line 14 of file HcalDCCHeader.cc.

References HcalDCCHeader(), i, SPIGOT_COUNT, and spigotInfo.

14  {
15  unsigned int totalSize=sizeof(HcalDCCHeader);
16  for (int i=0; i<SPIGOT_COUNT; i++)
17  totalSize+=(spigotInfo[i]&0x3FF)*4;
18  return totalSize;
19 }
int i
Definition: DBlmapReader.cc:9
unsigned int spigotInfo[18]
static const int SPIGOT_COUNT
Definition: HcalDCCHeader.h:19
bool HcalDCCHeader::isCalibType ( ) const
inline

Get the Calibration Type

Definition at line 53 of file HcalDCCHeader.h.

References getCalibType().

53 { return ( 0 != getCalibType ());}
HcalCalibrationEventType getCalibType() const
Definition: HcalDCCHeader.h:54
bool HcalDCCHeader::SawCT_BcN_MxMx ( ) const
inline

Definition at line 76 of file HcalDCCHeader.h.

References getDCCStatus().

76 { return ((getDCCStatus()>>6) & 0x00000001);}
int getDCCStatus() const
Definition: HcalDCCHeader.h:62
bool HcalDCCHeader::SawCT_EvN_MxMx ( ) const
inline

Definition at line 75 of file HcalDCCHeader.h.

References getDCCStatus().

75 { return ((getDCCStatus()>>5) & 0x00000001);}
int getDCCStatus() const
Definition: HcalDCCHeader.h:62
bool HcalDCCHeader::SawL1A_BcN_MxMx ( ) const
inline

Definition at line 74 of file HcalDCCHeader.h.

References getDCCStatus().

74 { return ((getDCCStatus()>>4) & 0x00000001);}
int getDCCStatus() const
Definition: HcalDCCHeader.h:62
bool HcalDCCHeader::SawL1A_EvN_MxMx ( ) const
inline

Definition at line 73 of file HcalDCCHeader.h.

References getDCCStatus().

73 { return ((getDCCStatus()>>3) & 0x00000001);}
int getDCCStatus() const
Definition: HcalDCCHeader.h:62
bool HcalDCCHeader::SawOrbitLengthErr ( ) const
inline

Definition at line 77 of file HcalDCCHeader.h.

References getDCCStatus().

77 { return ((getDCCStatus()>>7) & 0x00000001);}
int getDCCStatus() const
Definition: HcalDCCHeader.h:62
bool HcalDCCHeader::SawTTC_DoubErr ( ) const
inline

Definition at line 79 of file HcalDCCHeader.h.

References getDCCStatus().

79 { return ((getDCCStatus()>>9) & 0x00000001);}
int getDCCStatus() const
Definition: HcalDCCHeader.h:62
bool HcalDCCHeader::SawTTC_SingErr ( ) const
inline

Definition at line 78 of file HcalDCCHeader.h.

References getDCCStatus().

78 { return ((getDCCStatus()>>8) & 0x00000001);}
int getDCCStatus() const
Definition: HcalDCCHeader.h:62
bool HcalDCCHeader::SawTTS_BSY ( ) const
inline

Definition at line 71 of file HcalDCCHeader.h.

References getDCCStatus().

71 { return ((getDCCStatus()>>1) & 0x00000001);}
int getDCCStatus() const
Definition: HcalDCCHeader.h:62
bool HcalDCCHeader::SawTTS_OFW ( ) const
inline

Get the status of these error counters in the DCC motherboard.

Definition at line 70 of file HcalDCCHeader.h.

References getDCCStatus().

70 { return ((getDCCStatus()>>0) & 0x00000001);}
int getDCCStatus() const
Definition: HcalDCCHeader.h:62
bool HcalDCCHeader::SawTTS_SYN ( ) const
inline

Definition at line 72 of file HcalDCCHeader.h.

References getDCCStatus().

72 { return ((getDCCStatus()>>2) & 0x00000001);}
int getDCCStatus() const
Definition: HcalDCCHeader.h:62
void HcalDCCHeader::setHeader ( int  sourceid,
int  bcn,
int  l1aN,
int  orbN 
)

setup the header

Definition at line 51 of file HcalDCCHeader.cc.

References commondataformat0, and commondataformat1.

Referenced by CastorPacker::pack(), and HcalPacker::pack().

51  {
52  commondataformat0=0x8|((sourceid&0xFFF)<<8)|((bcn&0xFFF)<<20);
53  commondataformat1=0x50000000u|(l1aN&0xFFFFFF);
54 }
unsigned int commondataformat1
unsigned int commondataformat0
bool HcalDCCHeader::thereIsASecondCDFHeaderWord ( ) const
inline

get the bit indicating that another CDF header Slink64 word follows the first one.

Definition at line 28 of file HcalDCCHeader.h.

References commondataformat0.

Referenced by CastorDataIntegrityMonitor::unpack(), HcalDataIntegrityTask::unpack(), HcalEEUSMonitor::unpack(), and HcalRawDataMonitor::unpack().

28 {return ((commondataformat0>>3) & 0x0001); }
unsigned int commondataformat0
bool HcalDCCHeader::thereIsAThirdCDFHeaderWord ( ) const
inline

Check the third bit of second Slink64 CDF word

Definition at line 44 of file HcalDCCHeader.h.

References commondataformat2.

Referenced by CastorDataIntegrityMonitor::unpack(), HcalDataIntegrityTask::unpack(), and HcalRawDataMonitor::unpack().

44 {return ((commondataformat2>>3) & 0x0001); }
unsigned int commondataformat2

Member Data Documentation

unsigned int HcalDCCHeader::commondataformat0
private
unsigned int HcalDCCHeader::commondataformat1
private
unsigned int HcalDCCHeader::commondataformat2
private

Definition at line 133 of file HcalDCCHeader.h.

Referenced by clear(), getOrbitNumber(), and thereIsAThirdCDFHeaderWord().

unsigned int HcalDCCHeader::commondataformat3
private
unsigned int HcalDCCHeader::dcch0
private
unsigned int HcalDCCHeader::dcch1
private

Definition at line 136 of file HcalDCCHeader.h.

Referenced by clear(), getByte567Zeroes(), and getDCCStatus().

const int HcalDCCHeader::SPIGOT_COUNT = 15
static
unsigned int HcalDCCHeader::spigotInfo[18]
private