#include <SiStripFEDBufferGenerator.h>
Public Member Functions | |
FEDDAQHeader & | daqHeader () |
FEDDAQTrailer & | daqTrailer () |
FEDBufferGenerator (const uint32_t l1ID=0, const uint16_t bxID=0, const std::vector< bool > &feUnitsEnabled=std::vector< bool >(FEUNITS_PER_FED, true), const std::vector< bool > &channelsEnabled=std::vector< bool >(FEDCH_PER_FED, true), const FEDReadoutMode readoutMode=READOUT_MODE_ZERO_SUPPRESSED, const FEDHeaderType headerType=HEADER_TYPE_FULL_DEBUG, const FEDBufferFormat bufferFormat=BUFFER_FORMAT_OLD_SLINK, const FEDDAQEventType evtType=DAQ_EVENT_TYPE_PHYSICS) | |
FEDFEHeader & | feHeader () |
void | generateBuffer (FEDRawData *rawDataObject, const FEDStripData &data, uint16_t sourceID, uint8_t packetCode) const |
FEDBufferFormat | getBufferFormat () const |
uint16_t | getBXID () const |
bool | getChannelEnabled (const uint8_t internalFEDChannelNumber) const |
FEDDAQEventType | getDAQEventType () const |
bool | getFEUnitEnabled (const uint8_t internalFEUnitNumber) const |
FEDHeaderType | getHeaderType () const |
uint32_t | getL1ID () const |
FEDReadoutMode | getReadoutMode () const |
FEDBufferGenerator & | setBufferFormat (const FEDBufferFormat newBufferFormat) |
FEDBufferGenerator & | setBXID (const uint16_t newBXID) |
FEDBufferGenerator & | setChannelEnable (const uint8_t internalFEDChannelNumber, const bool enabled) |
FEDBufferGenerator & | setChannelEnables (const std::vector< bool > &channelsEnabled) |
FEDBufferGenerator & | setDAQEventType (const FEDDAQEventType newDAQEventType) |
FEDBufferGenerator & | setFEUnitEnable (const uint8_t internalFEUnitNumber, const bool enabled) |
FEDBufferGenerator & | setFEUnitEnables (const std::vector< bool > &feUnitsEnabled) |
FEDBufferGenerator & | setHeaderType (const FEDHeaderType newHeaderType) |
FEDBufferGenerator & | setL1ID (const uint32_t newL1ID) |
FEDBufferGenerator & | setReadoutMode (const FEDReadoutMode newReadoutMode) |
TrackerSpecialHeader & | trackerSpecialHeader () |
Static Private Member Functions | |
static size_t | bufferSizeInBytes (const FEDFEHeader &feHeader, const FEDBufferPayload &payload) |
static void | fillBuffer (uint8_t *pointerToStartOfBuffer, const FEDDAQHeader &daqHeader, const FEDDAQTrailer &daqTrailer, const TrackerSpecialHeader &tkSpecialHeader, const FEDFEHeader &feHeader, const FEDBufferPayload &payload) |
Private Attributes | |
std::vector< bool > | channelsEnabled_ |
FEDDAQHeader | defaultDAQHeader_ |
FEDDAQTrailer | defaultDAQTrailer_ |
std::auto_ptr< FEDFEHeader > | defaultFEHeader_ |
TrackerSpecialHeader | defaultTrackerSpecialHeader_ |
std::vector< bool > | feUnitsEnabled_ |
Definition at line 105 of file SiStripFEDBufferGenerator.h.
sistrip::FEDBufferGenerator::FEDBufferGenerator | ( | const uint32_t | l1ID = 0 , |
const uint16_t | bxID = 0 , |
||
const std::vector< bool > & | feUnitsEnabled = std::vector<bool>(FEUNITS_PER_FED,true) , |
||
const std::vector< bool > & | channelsEnabled = std::vector<bool>(FEDCH_PER_FED,true) , |
||
const FEDReadoutMode | readoutMode = READOUT_MODE_ZERO_SUPPRESSED , |
||
const FEDHeaderType | headerType = HEADER_TYPE_FULL_DEBUG , |
||
const FEDBufferFormat | bufferFormat = BUFFER_FORMAT_OLD_SLINK , |
||
const FEDDAQEventType | evtType = DAQ_EVENT_TYPE_PHYSICS |
||
) |
Definition at line 432 of file SiStripFEDBufferGenerator.cc.
References defaultFEHeader_, and Exception.
|
inlinestaticprivate |
Definition at line 389 of file SiStripFEDBufferGenerator.h.
References sistrip::FEDBufferPayload::lengthInBytes(), and sistrip::FEDFEHeader::lengthInBytes().
Referenced by fillBuffer(), and generateBuffer().
|
inline |
Definition at line 369 of file SiStripFEDBufferGenerator.h.
Referenced by sistrip::DigiToRaw::createFedBuffers_(), and generateBuffer().
|
inline |
Definition at line 374 of file SiStripFEDBufferGenerator.h.
Referenced by sistrip::DigiToRaw::createFedBuffers_().
|
inline |
Definition at line 384 of file SiStripFEDBufferGenerator.h.
Referenced by sistrip::DigiToRaw::createFedBuffers_().
|
staticprivate |
Definition at line 559 of file SiStripFEDBufferGenerator.cc.
References bufferSizeInBytes(), sistrip::calculateFEDBufferCRC(), sistrip::FEDBufferPayload::data(), sistrip::FEDDAQHeader::data(), sistrip::FEDDAQTrailer::data(), sistrip::TrackerSpecialHeader::data(), sistrip::FEDFEHeader::data(), mps_fire::i, sistrip::FEDBufferPayload::lengthInBytes(), sistrip::FEDFEHeader::lengthInBytes(), sistrip::FEDDAQTrailer::setCRC(), sistrip::FEDDAQTrailer::setEventLengthIn64BitWords(), and sistrip::TrackerSpecialHeader::wasSwapped().
Referenced by generateBuffer().
void sistrip::FEDBufferGenerator::generateBuffer | ( | FEDRawData * | rawDataObject, |
const FEDStripData & | data, | ||
uint16_t | sourceID, | ||
uint8_t | packetCode | ||
) | const |
Definition at line 524 of file SiStripFEDBufferGenerator.cc.
References bufferSizeInBytes(), channelsEnabled_, daqHeader(), FEDRawData::data(), defaultDAQHeader_, defaultDAQTrailer_, defaultFEHeader_, defaultTrackerSpecialHeader_, patPFMETCorrections_cff::enabled, sistrip::FEDCH_PER_FED, sistrip::FEDCH_PER_FEUNIT, sistrip::FEUNITS_PER_FED, feUnitsEnabled_, fillBuffer(), sistrip::FEDBufferPayload::getFELength(), getReadoutMode(), jets_cff::payload, FEDRawData::resize(), sistrip::TrackerSpecialHeader::setFEEnableForFEUnit(), and sistrip::FEDDAQHeader::setSourceID().
Referenced by sistrip::DigiToRaw::createFedBuffers_().
|
inline |
Definition at line 323 of file SiStripFEDBufferGenerator.h.
Referenced by sistrip::DigiToRaw::createFedBuffers_().
|
inline |
Definition at line 308 of file SiStripFEDBufferGenerator.h.
bool sistrip::FEDBufferGenerator::getChannelEnabled | ( | const uint8_t | internalFEDChannelNumber | ) | const |
Definition at line 461 of file SiStripFEDBufferGenerator.cc.
References channelsEnabled_, and Exception.
|
inline |
Definition at line 328 of file SiStripFEDBufferGenerator.h.
Referenced by sistrip::DigiToRaw::createFedBuffers_().
bool sistrip::FEDBufferGenerator::getFEUnitEnabled | ( | const uint8_t | internalFEUnitNumber | ) | const |
Definition at line 450 of file SiStripFEDBufferGenerator.cc.
References Exception, and feUnitsEnabled_.
|
inline |
Definition at line 318 of file SiStripFEDBufferGenerator.h.
|
inline |
Definition at line 303 of file SiStripFEDBufferGenerator.h.
|
inline |
Definition at line 313 of file SiStripFEDBufferGenerator.h.
Referenced by generateBuffer().
|
inline |
Definition at line 357 of file SiStripFEDBufferGenerator.h.
References setBufferFormat().
Referenced by setBufferFormat().
|
inline |
Definition at line 339 of file SiStripFEDBufferGenerator.h.
References setBXID().
Referenced by setBXID().
FEDBufferGenerator & sistrip::FEDBufferGenerator::setChannelEnable | ( | const uint8_t | internalFEDChannelNumber, |
const bool | enabled | ||
) |
Definition at line 487 of file SiStripFEDBufferGenerator.cc.
References channelsEnabled_, patPFMETCorrections_cff::enabled, and Exception.
FEDBufferGenerator & sistrip::FEDBufferGenerator::setChannelEnables | ( | const std::vector< bool > & | channelsEnabled | ) |
Definition at line 512 of file SiStripFEDBufferGenerator.cc.
References channelsEnabled_, Exception, and sistrip::FEDCH_PER_FED.
|
inline |
Definition at line 363 of file SiStripFEDBufferGenerator.h.
FEDBufferGenerator & sistrip::FEDBufferGenerator::setFEUnitEnable | ( | const uint8_t | internalFEUnitNumber, |
const bool | enabled | ||
) |
Definition at line 474 of file SiStripFEDBufferGenerator.cc.
References patPFMETCorrections_cff::enabled, Exception, and feUnitsEnabled_.
FEDBufferGenerator & sistrip::FEDBufferGenerator::setFEUnitEnables | ( | const std::vector< bool > & | feUnitsEnabled | ) |
Definition at line 500 of file SiStripFEDBufferGenerator.cc.
References Exception, sistrip::FEUNITS_PER_FED, and feUnitsEnabled_.
Referenced by sistrip::DigiToRaw::createFedBuffers_().
|
inline |
Definition at line 351 of file SiStripFEDBufferGenerator.h.
References setHeaderType().
Referenced by sistrip::DigiToRaw::createFedBuffers_(), and setHeaderType().
|
inline |
Definition at line 333 of file SiStripFEDBufferGenerator.h.
References setL1ID().
Referenced by sistrip::DigiToRaw::createFedBuffers_(), and setL1ID().
|
inline |
Definition at line 345 of file SiStripFEDBufferGenerator.h.
References setReadoutMode().
Referenced by sistrip::DigiToRaw::createFedBuffers_(), sistrip::DigiToRaw::DigiToRaw(), and setReadoutMode().
|
inline |
Definition at line 379 of file SiStripFEDBufferGenerator.h.
Referenced by sistrip::DigiToRaw::createFedBuffers_().
|
private |
Definition at line 169 of file SiStripFEDBufferGenerator.h.
Referenced by generateBuffer(), getChannelEnabled(), setChannelEnable(), and setChannelEnables().
|
private |
Definition at line 164 of file SiStripFEDBufferGenerator.h.
Referenced by generateBuffer().
|
private |
Definition at line 165 of file SiStripFEDBufferGenerator.h.
Referenced by generateBuffer().
|
private |
Definition at line 167 of file SiStripFEDBufferGenerator.h.
Referenced by FEDBufferGenerator(), and generateBuffer().
|
private |
Definition at line 166 of file SiStripFEDBufferGenerator.h.
Referenced by generateBuffer().
|
private |
Definition at line 168 of file SiStripFEDBufferGenerator.h.
Referenced by generateBuffer(), getFEUnitEnabled(), setFEUnitEnable(), and setFEUnitEnables().