CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes
sistrip::TrackerSpecialHeader Class Reference

#include <SiStripFEDBufferComponents.h>

Public Member Functions

uint8_t apvAddressErrorRegister () const
 
uint8_t apveAddress () const
 
FEDBufferFormat bufferFormat () const
 
uint8_t bufferFormatByte () const
 
const uint8_t * data () const
 
FEDStatusRegister fedStatusRegister () const
 
uint16_t fedStatusRegisterWord () const
 
bool feEnabled (const uint8_t internalFEUnitNum) const
 
uint8_t feEnableRegister () const
 
bool feOverflow (const uint8_t internalFEUnitNum) const
 
uint8_t feOverflowRegister () const
 
FEDHeaderType headerType () const
 
uint8_t headerTypeNibble () const
 
FEDLegacyReadoutMode legacyReadoutMode () const
 
bool majorityAddressErrorForFEUnit (const uint8_t internalFEUnitNum) const
 
void print (std::ostream &os) const
 
FEDReadoutMode readoutMode () const
 
TrackerSpecialHeadersetAPVAddressErrorForFEUnit (const uint8_t internalFEUnitNum, const bool error)
 
TrackerSpecialHeadersetAPVEAddress (const uint8_t address)
 
TrackerSpecialHeadersetAPVEAddressErrorRegister (const uint8_t addressErrorRegister)
 
TrackerSpecialHeadersetBufferFormat (const FEDBufferFormat newBufferFormat)
 
TrackerSpecialHeadersetFEDStatusRegister (const FEDStatusRegister fedStatusRegister)
 
TrackerSpecialHeadersetFEEnableForFEUnit (const uint8_t internalFEUnitNum, const bool enabled)
 
TrackerSpecialHeadersetFEEnableRegister (const uint8_t feEnableRegister)
 
TrackerSpecialHeadersetFEOverflowForFEUnit (const uint8_t internalFEUnitNum, const bool overflow)
 
TrackerSpecialHeadersetFEOverflowRegister (const uint8_t feOverflowRegister)
 
TrackerSpecialHeadersetHeaderType (const FEDHeaderType headerType)
 
TrackerSpecialHeadersetReadoutMode (const FEDReadoutMode readoutMode)
 
uint8_t trackerEventTypeNibble () const
 
 TrackerSpecialHeader ()
 
 TrackerSpecialHeader (const FEDBufferFormat bufferFormat, const FEDReadoutMode readoutMode, const FEDHeaderType headerType, const uint8_t address=0x00, const uint8_t addressErrorRegister=0x00, const uint8_t feEnableRegister=0xFF, const uint8_t feOverflowRegister=0x00, const FEDStatusRegister fedStatusRegister=FEDStatusRegister())
 
 TrackerSpecialHeader (const uint8_t *headerPointer)
 
bool wasSwapped () const
 

Static Public Member Functions

static FEDBufferFormat bufferFormat (const uint8_t *headerPointer)
 

Private Types

enum  byteIndicies {
  FEDSTATUS = 0, FEOVERFLOW = 2, FEENABLE = 3, ADDRESSERROR = 4,
  APVEADDRESS = 5, BUFFERTYPE = 6, BUFFERFORMAT = 7
}
 

Private Member Functions

void setBufferFormatByte (const FEDBufferFormat newBufferFormat)
 
void setHeaderTypeNibble (const uint8_t value)
 
void setReadoutModeBits (const uint8_t value)
 

Private Attributes

uint8_t specialHeader_ [8]
 
bool wordSwapped_
 

Detailed Description

Definition at line 315 of file SiStripFEDBufferComponents.h.

Member Enumeration Documentation

◆ byteIndicies

Enumerator
FEDSTATUS 
FEOVERFLOW 
FEENABLE 
ADDRESSERROR 
APVEADDRESS 
BUFFERTYPE 
BUFFERFORMAT 

Definition at line 379 of file SiStripFEDBufferComponents.h.

379  {
380  FEDSTATUS = 0,
381  FEOVERFLOW = 2,
382  FEENABLE = 3,
383  ADDRESSERROR = 4,
384  APVEADDRESS = 5,
385  BUFFERTYPE = 6,
386  BUFFERFORMAT = 7
387  };

Constructor & Destructor Documentation

◆ TrackerSpecialHeader() [1/3]

sistrip::TrackerSpecialHeader::TrackerSpecialHeader ( )
inline

Definition at line 834 of file SiStripFEDBufferComponents.h.

834 : wordSwapped_(false) {}

◆ TrackerSpecialHeader() [2/3]

sistrip::TrackerSpecialHeader::TrackerSpecialHeader ( const uint8_t *  headerPointer)
explicit

Definition at line 746 of file SiStripFEDBufferComponents.cc.

746  {
747  //the buffer format byte is one of the valid values if we assume the buffer is not swapped
748  const bool validFormatByteWhenNotWordSwapped = ((headerPointer[BUFFERFORMAT] == BUFFER_FORMAT_CODE_NEW) ||
749  (headerPointer[BUFFERFORMAT] == BUFFER_FORMAT_CODE_OLD));
750  //the buffer format byte is the old value if we assume the buffer is swapped
751  const bool validFormatByteWhenWordSwapped = (headerPointer[BUFFERFORMAT ^ 4] == BUFFER_FORMAT_CODE_OLD);
752  //if the buffer format byte is valid if the buffer is not swapped or it is never valid
753  if (validFormatByteWhenNotWordSwapped || (!validFormatByteWhenNotWordSwapped && !validFormatByteWhenWordSwapped)) {
754  memcpy(specialHeader_, headerPointer, 8);
755  wordSwapped_ = false;
756  } else {
757  memcpy(specialHeader_, headerPointer + 4, 4);
758  memcpy(specialHeader_ + 4, headerPointer, 4);
759  wordSwapped_ = true;
760  }
761  }

References sistrip::BUFFER_FORMAT_CODE_NEW, sistrip::BUFFER_FORMAT_CODE_OLD, BUFFERFORMAT, specialHeader_, and wordSwapped_.

◆ TrackerSpecialHeader() [3/3]

sistrip::TrackerSpecialHeader::TrackerSpecialHeader ( const FEDBufferFormat  bufferFormat,
const FEDReadoutMode  readoutMode,
const FEDHeaderType  headerType,
const uint8_t  address = 0x00,
const uint8_t  addressErrorRegister = 0x00,
const uint8_t  feEnableRegister = 0xFF,
const uint8_t  feOverflowRegister = 0x00,
const FEDStatusRegister  fedStatusRegister = FEDStatusRegister() 
)

Member Function Documentation

◆ apvAddressErrorRegister()

uint8_t sistrip::TrackerSpecialHeader::apvAddressErrorRegister ( ) const
inline

◆ apveAddress()

uint8_t sistrip::TrackerSpecialHeader::apveAddress ( ) const
inline

◆ bufferFormat() [1/2]

FEDBufferFormat sistrip::TrackerSpecialHeader::bufferFormat ( ) const

◆ bufferFormat() [2/2]

static FEDBufferFormat sistrip::TrackerSpecialHeader::bufferFormat ( const uint8_t *  headerPointer)
inlinestatic

Definition at line 362 of file SiStripFEDBufferComponents.h.

362  {
363  if (headerPointer[BUFFERFORMAT] == BUFFER_FORMAT_CODE_NEW) {
364  return BUFFER_FORMAT_NEW;
365  } else if (headerPointer[BUFFERFORMAT] == BUFFER_FORMAT_CODE_OLD) {
367  } else if (headerPointer[BUFFERFORMAT ^ 4] == BUFFER_FORMAT_CODE_OLD) {
368  // same case as used to detect "wordSwapped_" in the constructor
369  return BUFFER_FORMAT_OLD_VME;
370  } else {
371  return BUFFER_FORMAT_INVALID;
372  }
373  }

References sistrip::BUFFER_FORMAT_CODE_NEW, sistrip::BUFFER_FORMAT_CODE_OLD, sistrip::BUFFER_FORMAT_INVALID, sistrip::BUFFER_FORMAT_NEW, sistrip::BUFFER_FORMAT_OLD_SLINK, sistrip::BUFFER_FORMAT_OLD_VME, and BUFFERFORMAT.

◆ bufferFormatByte()

uint8_t sistrip::TrackerSpecialHeader::bufferFormatByte ( ) const
inline

Definition at line 836 of file SiStripFEDBufferComponents.h.

836 { return specialHeader_[BUFFERFORMAT]; }

References BUFFERFORMAT, and specialHeader_.

Referenced by bufferFormat().

◆ data()

const uint8_t * sistrip::TrackerSpecialHeader::data ( ) const
inline

Definition at line 917 of file SiStripFEDBufferComponents.h.

917 { return specialHeader_; }

References specialHeader_.

Referenced by sistrip::FEDBufferGenerator::fillBuffer().

◆ fedStatusRegister()

FEDStatusRegister sistrip::TrackerSpecialHeader::fedStatusRegister ( ) const
inline

◆ fedStatusRegisterWord()

uint16_t sistrip::TrackerSpecialHeader::fedStatusRegisterWord ( ) const
inline

Definition at line 905 of file SiStripFEDBufferComponents.h.

905  {
906  //get 16 bits
907  uint16_t statusRegister = ((specialHeader_[(FEDSTATUS + 1)] << 8) | specialHeader_[FEDSTATUS]);
908  return statusRegister;
909  }

References FEDSTATUS, and specialHeader_.

Referenced by fedStatusRegister().

◆ feEnabled()

bool sistrip::TrackerSpecialHeader::feEnabled ( const uint8_t  internalFEUnitNum) const
inline

Definition at line 895 of file SiStripFEDBufferComponents.h.

895  {
896  return ((0x1 << internalFEUnitNum) & feEnableRegister());
897  }

References feEnableRegister(), and testProducerWithPsetDescEmpty_cfi::x1.

Referenced by sistrip::FEDBufferBase::feEnabled().

◆ feEnableRegister()

uint8_t sistrip::TrackerSpecialHeader::feEnableRegister ( ) const
inline

◆ feOverflow()

bool sistrip::TrackerSpecialHeader::feOverflow ( const uint8_t  internalFEUnitNum) const
inline

Definition at line 901 of file SiStripFEDBufferComponents.h.

901  {
902  return ((0x1 << internalFEUnitNum) & feOverflowRegister());
903  }

References feOverflowRegister(), and testProducerWithPsetDescEmpty_cfi::x1.

Referenced by sistrip::FEDBufferBase::feOverflow().

◆ feOverflowRegister()

uint8_t sistrip::TrackerSpecialHeader::feOverflowRegister ( ) const
inline

◆ headerType()

FEDHeaderType sistrip::TrackerSpecialHeader::headerType ( ) const
inline

◆ headerTypeNibble()

uint8_t sistrip::TrackerSpecialHeader::headerTypeNibble ( ) const
inline

Definition at line 838 of file SiStripFEDBufferComponents.h.

838 { return ((specialHeader_[BUFFERTYPE] & 0xF0) >> 4); }

References BUFFERTYPE, and specialHeader_.

Referenced by headerType().

◆ legacyReadoutMode()

FEDLegacyReadoutMode sistrip::TrackerSpecialHeader::legacyReadoutMode ( ) const

◆ majorityAddressErrorForFEUnit()

bool sistrip::TrackerSpecialHeader::majorityAddressErrorForFEUnit ( const uint8_t  internalFEUnitNum) const
inline

◆ print()

void sistrip::TrackerSpecialHeader::print ( std::ostream &  os) const
inline

Definition at line 915 of file SiStripFEDBufferComponents.h.

915 { printHex(specialHeader_, 8, os); }

References sistrip::printHex(), and specialHeader_.

Referenced by sistrip::DigiToRaw::createFedBuffers_().

◆ readoutMode()

FEDReadoutMode sistrip::TrackerSpecialHeader::readoutMode ( ) const
inline

Definition at line 854 of file SiStripFEDBufferComponents.h.

854  {
855  const auto nibble = trackerEventTypeNibble();
856  //if it is scope mode then return as is (it cannot be fake data)
857  //if it is premix then return as is: stripping last bit would make it spy data !
858  if ((nibble == READOUT_MODE_SCOPE) || (nibble == READOUT_MODE_PREMIX_RAW))
859  return FEDReadoutMode(nibble);
860  //if not then ignore the last bit which indicates if it is real or fake
861  else {
862  const uint8_t mode = (nibble & 0xF);
863  switch (mode) {
869  //case READOUT_MODE_ZERO_SUPPRESSED_CMOVERRIDE:
877  case READOUT_MODE_SPY:
878  return FEDReadoutMode(mode);
879  default:
880  return READOUT_MODE_INVALID;
881  }
882  }
883  }

References ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, sistrip::READOUT_MODE_INVALID, sistrip::READOUT_MODE_PREMIX_RAW, sistrip::READOUT_MODE_PROC_RAW, sistrip::READOUT_MODE_SCOPE, sistrip::READOUT_MODE_SPY, sistrip::READOUT_MODE_VIRGIN_RAW, sistrip::READOUT_MODE_ZERO_SUPPRESSED, sistrip::READOUT_MODE_ZERO_SUPPRESSED_FAKE, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE10, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE10_CMOVERRIDE, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_BOTBOT, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_BOTBOT_CMOVERRIDE, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_CMOVERRIDE, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_TOPBOT, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_TOPBOT_CMOVERRIDE, and trackerEventTypeNibble().

Referenced by sistrip::DigiToRaw::createFedBuffers_(), sistrip::FEDBufferGenerator::getReadoutMode(), majorityAddressErrorForFEUnit(), sistrip::FEDBufferBase::readoutMode(), setReadoutMode(), and TrackerSpecialHeader().

◆ setAPVAddressErrorForFEUnit()

TrackerSpecialHeader & sistrip::TrackerSpecialHeader::setAPVAddressErrorForFEUnit ( const uint8_t  internalFEUnitNum,
const bool  error 
)

Definition at line 864 of file SiStripFEDBufferComponents.cc.

865  {
866  const uint8_t mask = 0x1 << internalFEUnitNum;
867  const uint8_t result = ((apvAddressErrorRegister() & (~mask)) | (error ? mask : 0x00));
869  return *this;
870  }

References apvAddressErrorRegister(), relativeConstraints::error, mps_fire::result, and setAPVEAddressErrorRegister().

◆ setAPVEAddress()

TrackerSpecialHeader & sistrip::TrackerSpecialHeader::setAPVEAddress ( const uint8_t  address)
inline

Definition at line 929 of file SiStripFEDBufferComponents.h.

929  {
930  specialHeader_[APVEADDRESS] = address;
931  return *this;
932  }

References APVEADDRESS, and specialHeader_.

Referenced by TrackerSpecialHeader().

◆ setAPVEAddressErrorRegister()

TrackerSpecialHeader & sistrip::TrackerSpecialHeader::setAPVEAddressErrorRegister ( const uint8_t  addressErrorRegister)
inline

Definition at line 934 of file SiStripFEDBufferComponents.h.

934  {
935  specialHeader_[ADDRESSERROR] = addressErrorRegister;
936  return *this;
937  }

References ADDRESSERROR, and specialHeader_.

Referenced by setAPVAddressErrorForFEUnit(), and TrackerSpecialHeader().

◆ setBufferFormat()

TrackerSpecialHeader & sistrip::TrackerSpecialHeader::setBufferFormat ( const FEDBufferFormat  newBufferFormat)

Definition at line 793 of file SiStripFEDBufferComponents.cc.

793  {
794  //check if order in buffer is different
795  if (((bufferFormat() == BUFFER_FORMAT_OLD_VME) && (newBufferFormat != BUFFER_FORMAT_OLD_VME)) ||
796  ((bufferFormat() != BUFFER_FORMAT_OLD_VME) && (newBufferFormat == BUFFER_FORMAT_OLD_VME))) {
798  }
799  //set appropriate code
800  setBufferFormatByte(newBufferFormat);
801  return *this;
802  }

References sistrip::BUFFER_FORMAT_OLD_VME, bufferFormat(), setBufferFormatByte(), and wordSwapped_.

Referenced by sistrip::FEDBufferGenerator::setBufferFormat().

◆ setBufferFormatByte()

void sistrip::TrackerSpecialHeader::setBufferFormatByte ( const FEDBufferFormat  newBufferFormat)
private

Definition at line 804 of file SiStripFEDBufferComponents.cc.

804  {
805  switch (newBufferFormat) {
809  break;
810  case BUFFER_FORMAT_NEW:
812  break;
813  default:
814  std::ostringstream ss;
815  ss << "Invalid buffer format: ";
816  printHex(&newBufferFormat, 1, ss);
817  throw cms::Exception("FEDBuffer") << ss.str();
818  }
819  }

References sistrip::BUFFER_FORMAT_CODE_NEW, sistrip::BUFFER_FORMAT_CODE_OLD, sistrip::BUFFER_FORMAT_NEW, sistrip::BUFFER_FORMAT_OLD_SLINK, sistrip::BUFFER_FORMAT_OLD_VME, BUFFERFORMAT, Exception, sistrip::printHex(), specialHeader_, and contentValuesCheck::ss.

Referenced by setBufferFormat(), and TrackerSpecialHeader().

◆ setFEDStatusRegister()

TrackerSpecialHeader & sistrip::TrackerSpecialHeader::setFEDStatusRegister ( const FEDStatusRegister  fedStatusRegister)
inline

Definition at line 949 of file SiStripFEDBufferComponents.h.

949  {
950  specialHeader_[FEDSTATUS] = (static_cast<uint16_t>(fedStatusRegister) & 0x00FF);
951  specialHeader_[FEDSTATUS + 1] = ((static_cast<uint16_t>(fedStatusRegister) & 0xFF00) >> 8);
952  return *this;
953  }

References FEDSTATUS, fedStatusRegister(), and specialHeader_.

Referenced by TrackerSpecialHeader().

◆ setFEEnableForFEUnit()

TrackerSpecialHeader & sistrip::TrackerSpecialHeader::setFEEnableForFEUnit ( const uint8_t  internalFEUnitNum,
const bool  enabled 
)

Definition at line 872 of file SiStripFEDBufferComponents.cc.

873  {
874  const uint8_t mask = 0x1 << internalFEUnitNum;
875  const uint8_t result = ((feEnableRegister() & (~mask)) | (enabled ? mask : 0x00));
877  return *this;
878  }

References pixel_dqm_sourceclient-live_cfg::enabled, feEnableRegister(), mps_fire::result, and setFEEnableRegister().

Referenced by sistrip::FEDBufferGenerator::generateBuffer().

◆ setFEEnableRegister()

TrackerSpecialHeader & sistrip::TrackerSpecialHeader::setFEEnableRegister ( const uint8_t  feEnableRegister)
inline

Definition at line 939 of file SiStripFEDBufferComponents.h.

939  {
941  return *this;
942  }

References FEENABLE, feEnableRegister(), and specialHeader_.

Referenced by setFEEnableForFEUnit(), setFEOverflowForFEUnit(), and TrackerSpecialHeader().

◆ setFEOverflowForFEUnit()

TrackerSpecialHeader & sistrip::TrackerSpecialHeader::setFEOverflowForFEUnit ( const uint8_t  internalFEUnitNum,
const bool  overflow 
)

Definition at line 880 of file SiStripFEDBufferComponents.cc.

881  {
882  const uint8_t mask = 0x1 << internalFEUnitNum;
883  const uint8_t result = ((feOverflowRegister() & (~mask)) | (overflow ? mask : 0x00));
885  return *this;
886  }

References feOverflowRegister(), mps_fire::result, and setFEEnableRegister().

◆ setFEOverflowRegister()

TrackerSpecialHeader & sistrip::TrackerSpecialHeader::setFEOverflowRegister ( const uint8_t  feOverflowRegister)
inline

Definition at line 944 of file SiStripFEDBufferComponents.h.

944  {
946  return *this;
947  }

References FEOVERFLOW, feOverflowRegister(), and specialHeader_.

Referenced by TrackerSpecialHeader().

◆ setHeaderType()

TrackerSpecialHeader & sistrip::TrackerSpecialHeader::setHeaderType ( const FEDHeaderType  headerType)

Definition at line 821 of file SiStripFEDBufferComponents.cc.

821  {
822  switch (headerType) {
825  case HEADER_TYPE_NONE:
827  return *this;
828  default:
829  std::ostringstream ss;
830  ss << "Invalid header type: ";
831  printHex(&headerType, 1, ss);
832  throw cms::Exception("FEDBuffer") << ss.str();
833  }
834  }

References Exception, sistrip::HEADER_TYPE_APV_ERROR, sistrip::HEADER_TYPE_FULL_DEBUG, sistrip::HEADER_TYPE_NONE, headerType(), sistrip::printHex(), setHeaderTypeNibble(), and contentValuesCheck::ss.

Referenced by sistrip::FEDBufferGenerator::setHeaderType(), and TrackerSpecialHeader().

◆ setHeaderTypeNibble()

void sistrip::TrackerSpecialHeader::setHeaderTypeNibble ( const uint8_t  value)
inlineprivate

Definition at line 921 of file SiStripFEDBufferComponents.h.

921  {
922  specialHeader_[BUFFERTYPE] = ((specialHeader_[BUFFERTYPE] & 0x0F) | ((value << 4) & 0xF0));
923  }

References BUFFERTYPE, and specialHeader_.

Referenced by setHeaderType().

◆ setReadoutMode()

TrackerSpecialHeader & sistrip::TrackerSpecialHeader::setReadoutMode ( const FEDReadoutMode  readoutMode)

Definition at line 836 of file SiStripFEDBufferComponents.cc.

836  {
837  switch (readoutMode) {
838  case READOUT_MODE_SCOPE:
841  case READOUT_MODE_SPY:
854  break;
855  default:
856  std::ostringstream ss;
857  ss << "Invalid readout mode: ";
858  printHex(&readoutMode, 1, ss);
859  throw cms::Exception("FEDBuffer") << ss.str();
860  }
861  return *this;
862  }

References Exception, sistrip::printHex(), sistrip::READOUT_MODE_PREMIX_RAW, sistrip::READOUT_MODE_PROC_RAW, sistrip::READOUT_MODE_SCOPE, sistrip::READOUT_MODE_SPY, sistrip::READOUT_MODE_VIRGIN_RAW, sistrip::READOUT_MODE_ZERO_SUPPRESSED, sistrip::READOUT_MODE_ZERO_SUPPRESSED_FAKE, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE10, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE10_CMOVERRIDE, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_BOTBOT, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_BOTBOT_CMOVERRIDE, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_CMOVERRIDE, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_TOPBOT, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_TOPBOT_CMOVERRIDE, readoutMode(), setReadoutModeBits(), and contentValuesCheck::ss.

Referenced by sistrip::FEDBufferGenerator::setReadoutMode(), and TrackerSpecialHeader().

◆ setReadoutModeBits()

void sistrip::TrackerSpecialHeader::setReadoutModeBits ( const uint8_t  value)
inlineprivate

Definition at line 925 of file SiStripFEDBufferComponents.h.

925  {
926  specialHeader_[BUFFERTYPE] = ((specialHeader_[BUFFERTYPE] & (~0x0F)) | (value & 0x0F));
927  }

References BUFFERTYPE, and specialHeader_.

Referenced by setReadoutMode().

◆ trackerEventTypeNibble()

uint8_t sistrip::TrackerSpecialHeader::trackerEventTypeNibble ( ) const
inline

Definition at line 852 of file SiStripFEDBufferComponents.h.

852 { return (specialHeader_[BUFFERTYPE] & 0x0F); }

References BUFFERTYPE, and specialHeader_.

Referenced by legacyReadoutMode(), and readoutMode().

◆ wasSwapped()

bool sistrip::TrackerSpecialHeader::wasSwapped ( ) const
inline

Definition at line 919 of file SiStripFEDBufferComponents.h.

919 { return wordSwapped_; }

References wordSwapped_.

Referenced by sistrip::FEDBufferGenerator::fillBuffer().

Member Data Documentation

◆ specialHeader_

uint8_t sistrip::TrackerSpecialHeader::specialHeader_[8]
private

◆ wordSwapped_

bool sistrip::TrackerSpecialHeader::wordSwapped_
private
sistrip::TrackerSpecialHeader::specialHeader_
uint8_t specialHeader_[8]
Definition: SiStripFEDBufferComponents.h:389
sistrip::TrackerSpecialHeader::FEENABLE
Definition: SiStripFEDBufferComponents.h:382
sistrip::TrackerSpecialHeader::setReadoutModeBits
void setReadoutModeBits(const uint8_t value)
Definition: SiStripFEDBufferComponents.h:925
sistrip::READOUT_MODE_PREMIX_RAW
Definition: SiStripFEDBufferComponents.h:61
sistrip::TrackerSpecialHeader::setAPVEAddressErrorRegister
TrackerSpecialHeader & setAPVEAddressErrorRegister(const uint8_t addressErrorRegister)
Definition: SiStripFEDBufferComponents.h:934
sistrip::TrackerSpecialHeader::setAPVEAddress
TrackerSpecialHeader & setAPVEAddress(const uint8_t address)
Definition: SiStripFEDBufferComponents.h:929
sistrip::READOUT_MODE_LEGACY_PROC_RAW_FAKE
Definition: SiStripFEDBufferComponents.h:70
sistrip::READOUT_MODE_SCOPE
Definition: SiStripFEDBufferComponents.h:47
sistrip::TrackerSpecialHeader::setFEEnableRegister
TrackerSpecialHeader & setFEEnableRegister(const uint8_t feEnableRegister)
Definition: SiStripFEDBufferComponents.h:939
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition: ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
sistrip::TrackerSpecialHeader::BUFFERFORMAT
Definition: SiStripFEDBufferComponents.h:386
sistrip::READOUT_MODE_SPY
Definition: SiStripFEDBufferComponents.h:60
sistrip::TrackerSpecialHeader::wordSwapped_
bool wordSwapped_
Definition: SiStripFEDBufferComponents.h:391
sistrip::READOUT_MODE_LEGACY_ZERO_SUPPRESSED_LITE_REAL
Definition: SiStripFEDBufferComponents.h:73
sistrip::TrackerSpecialHeader::fedStatusRegisterWord
uint16_t fedStatusRegisterWord() const
Definition: SiStripFEDBufferComponents.h:905
sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_TOPBOT
Definition: SiStripFEDBufferComponents.h:51
relativeConstraints.error
error
Definition: relativeConstraints.py:53
sistrip::TrackerSpecialHeader::setFEDStatusRegister
TrackerSpecialHeader & setFEDStatusRegister(const FEDStatusRegister fedStatusRegister)
Definition: SiStripFEDBufferComponents.h:949
sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE10_CMOVERRIDE
Definition: SiStripFEDBufferComponents.h:50
sistrip::HEADER_TYPE_INVALID
Definition: SiStripFEDBufferComponents.h:38
sistrip::TrackerSpecialHeader::apvAddressErrorRegister
uint8_t apvAddressErrorRegister() const
Definition: SiStripFEDBufferComponents.h:887
sistrip::FEDReadoutMode
FEDReadoutMode
Definition: SiStripFEDBufferComponents.h:45
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
sistrip::READOUT_MODE_LEGACY_VIRGIN_RAW_FAKE
Definition: SiStripFEDBufferComponents.h:68
testProducerWithPsetDescEmpty_cfi.x1
x1
Definition: testProducerWithPsetDescEmpty_cfi.py:33
sistrip::HEADER_TYPE_NONE
Definition: SiStripFEDBufferComponents.h:41
sistrip::TrackerSpecialHeader::APVEADDRESS
Definition: SiStripFEDBufferComponents.h:384
sistrip::READOUT_MODE_LEGACY_VIRGIN_RAW_REAL
Definition: SiStripFEDBufferComponents.h:67
sistrip::READOUT_MODE_PROC_RAW
Definition: SiStripFEDBufferComponents.h:52
sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8
Definition: SiStripFEDBufferComponents.h:58
sistrip::TrackerSpecialHeader::trackerEventTypeNibble
uint8_t trackerEventTypeNibble() const
Definition: SiStripFEDBufferComponents.h:852
sistrip::TrackerSpecialHeader::fedStatusRegister
FEDStatusRegister fedStatusRegister() const
Definition: SiStripFEDBufferComponents.h:911
sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_BOTBOT_CMOVERRIDE
Definition: SiStripFEDBufferComponents.h:59
sistrip::BUFFER_FORMAT_NEW
Definition: SiStripFEDBufferComponents.h:30
sistrip::TrackerSpecialHeader::feOverflowRegister
uint8_t feOverflowRegister() const
Definition: SiStripFEDBufferComponents.h:899
sistrip::TrackerSpecialHeader::FEOVERFLOW
Definition: SiStripFEDBufferComponents.h:381
sistrip::FEDLegacyReadoutMode
FEDLegacyReadoutMode
Definition: SiStripFEDBufferComponents.h:64
sistrip::TrackerSpecialHeader::bufferFormatByte
uint8_t bufferFormatByte() const
Definition: SiStripFEDBufferComponents.h:836
sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE10
Definition: SiStripFEDBufferComponents.h:49
sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_TOPBOT_CMOVERRIDE
Definition: SiStripFEDBufferComponents.h:53
sistrip::FEDHeaderType
FEDHeaderType
Definition: SiStripFEDBufferComponents.h:37
sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_BOTBOT
Definition: SiStripFEDBufferComponents.h:55
sistrip::HEADER_TYPE_FULL_DEBUG
Definition: SiStripFEDBufferComponents.h:39
sistrip::BUFFER_FORMAT_CODE_NEW
static const uint8_t BUFFER_FORMAT_CODE_NEW
Definition: SiStripFEDBufferComponents.h:34
sistrip::TrackerSpecialHeader::setReadoutMode
TrackerSpecialHeader & setReadoutMode(const FEDReadoutMode readoutMode)
Definition: SiStripFEDBufferComponents.cc:836
sistrip::TrackerSpecialHeader::setHeaderTypeNibble
void setHeaderTypeNibble(const uint8_t value)
Definition: SiStripFEDBufferComponents.h:921
sistrip::TrackerSpecialHeader::setBufferFormatByte
void setBufferFormatByte(const FEDBufferFormat newBufferFormat)
Definition: SiStripFEDBufferComponents.cc:804
value
Definition: value.py:1
sistrip::READOUT_MODE_VIRGIN_RAW
Definition: SiStripFEDBufferComponents.h:48
sistrip::printHex
void printHex(const void *pointer, const size_t length, std::ostream &os)
Definition: SiStripFEDBufferComponents.cc:26
sistrip::TrackerSpecialHeader::bufferFormat
FEDBufferFormat bufferFormat() const
Definition: SiStripFEDBufferComponents.cc:763
sistrip::READOUT_MODE_LEGACY_ZERO_SUPPRESSED_LITE_FAKE
Definition: SiStripFEDBufferComponents.h:74
sistrip::READOUT_MODE_INVALID
Definition: SiStripFEDBufferComponents.h:46
sistrip::READOUT_MODE_LEGACY_ZERO_SUPPRESSED_FAKE
Definition: SiStripFEDBufferComponents.h:72
sistrip::TrackerSpecialHeader::headerTypeNibble
uint8_t headerTypeNibble() const
Definition: SiStripFEDBufferComponents.h:838
sistrip::BUFFER_FORMAT_OLD_SLINK
Definition: SiStripFEDBufferComponents.h:29
sistrip::TrackerSpecialHeader::feEnableRegister
uint8_t feEnableRegister() const
Definition: SiStripFEDBufferComponents.h:893
sistrip::READOUT_MODE_LEGACY_INVALID
Definition: SiStripFEDBufferComponents.h:65
sistrip::TrackerSpecialHeader::FEDSTATUS
Definition: SiStripFEDBufferComponents.h:380
sistrip::TrackerSpecialHeader::setFEOverflowRegister
TrackerSpecialHeader & setFEOverflowRegister(const uint8_t feOverflowRegister)
Definition: SiStripFEDBufferComponents.h:944
sistrip::READOUT_MODE_LEGACY_ZERO_SUPPRESSED_REAL
Definition: SiStripFEDBufferComponents.h:71
Exception
Definition: hltDiff.cc:246
sistrip::TrackerSpecialHeader::BUFFERTYPE
Definition: SiStripFEDBufferComponents.h:385
sistrip::BUFFER_FORMAT_OLD_VME
Definition: SiStripFEDBufferComponents.h:28
sistrip::TrackerSpecialHeader::ADDRESSERROR
Definition: SiStripFEDBufferComponents.h:383
sistrip::TrackerSpecialHeader::headerType
FEDHeaderType headerType() const
Definition: SiStripFEDBufferComponents.h:840
sistrip::TrackerSpecialHeader::readoutMode
FEDReadoutMode readoutMode() const
Definition: SiStripFEDBufferComponents.h:854
mps_fire.result
result
Definition: mps_fire.py:303
sistrip::READOUT_MODE_LEGACY_PROC_RAW_REAL
Definition: SiStripFEDBufferComponents.h:69
sistrip::BUFFER_FORMAT_CODE_OLD
static const uint8_t BUFFER_FORMAT_CODE_OLD
Definition: SiStripFEDBufferComponents.h:33
sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_CMOVERRIDE
Definition: SiStripFEDBufferComponents.h:54
sistrip::BUFFER_FORMAT_INVALID
Definition: SiStripFEDBufferComponents.h:27
sistrip::READOUT_MODE_ZERO_SUPPRESSED_FAKE
Definition: SiStripFEDBufferComponents.h:57
sistrip::HEADER_TYPE_APV_ERROR
Definition: SiStripFEDBufferComponents.h:40
sistrip::TrackerSpecialHeader::setHeaderType
TrackerSpecialHeader & setHeaderType(const FEDHeaderType headerType)
Definition: SiStripFEDBufferComponents.cc:821
sistrip::READOUT_MODE_ZERO_SUPPRESSED
Definition: SiStripFEDBufferComponents.h:56
pixel_dqm_sourceclient-live_cfg.enabled
enabled
Definition: pixel_dqm_sourceclient-live_cfg.py:137