5#ifndef TileDigitsCollection_H
6#define TileDigitsCollection_H
35 uint32_t lvl1Id, uint32_t lvl1Type, uint32_t detEvType, uint32_t rodBCID,
36 const std::vector<uint32_t>& fragChipCRCWords,
const std::vector<uint32_t>& fragChipCRCWordsHIGH,
37 const std::vector<uint32_t>& fragChipHeaderWords,
const std::vector<uint32_t>& fragChipHeaderWordsHIGH,
38 const std::vector<uint32_t>& fragExtraWords, uint32_t fragSize, uint32_t fragBCID)
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
SG::OwnershipPolicy ownPolicy() const
size_type size() const noexcept
TileDigitsCollection(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
void setFragExtraWords(const std::vector< uint32_t > &extra)
Set vector of extra words for this collection.
const std::vector< uint32_t > & getFragChipCRCWords() const
Get chip CRC words for collection If calib mode, LOW gain CRC.
std::vector< uint32_t > m_FragChipHeaderWords
Header words from Frag data, one word for each chip LOW gain if calib mode.
void setFragChipCRCWordsHigh(std::vector< uint32_t > &&chipCRCWordsH)
friend class TileDigitsContainerCnv
const std::vector< uint32_t > & getFragChipHeaderWordsHigh() const
High gain headers.
void setFragSize(uint32_t s)
Set Frag size.
std::vector< uint32_t > m_FragChipCRCWordsHIGH
CRC words from Frag data, HIGH gain if in calib mode.
void clear()
Clear everything for next event.
const std::vector< uint32_t > & getFragChipHeaderWords() const
Get chip headers for this collcetion If calib mode, this is LOW gain headers.
const std::vector< uint32_t > & getFragChipCRCWordsHigh() const
High gain CRC.
TileDigitsCollection(TileDigitsCollection &&other)=default
Move constructor.
bool isCalibMode() const
Check if this Collection holds data from calibration mode.
uint32_t m_FragSize
Size of drawer fragment.
void setFragChipHeaderWords(const std::vector< uint32_t > &chipHWords)
Set chip header words for this collection If calib mode, this must be LOW gain headers.
std::vector< uint32_t > m_FragChipHeaderWordsHIGH
Header words from Frag data, one word for each chip HIGH gain if calib mode.
TileDigitsCollection(ID id, SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
uint32_t getFragSize() const
Get Frag size.
void setFragChipHeaderWords(std::vector< uint32_t > &&chipHWords)
TileDigitsCollection(SG::OwnershipPolicy ownPolicy, ID id)
std::vector< uint32_t > m_FragChipCRCWords
CRC words from Frag data, one word for each chip LOW gain if calib mode.
void setFragChipCRCWordsHigh(const std::vector< uint32_t > &chipCRCWordsH)
High gain CRC.
uint32_t getFragDMUMask() const
Get Frag DMU mask for this collection.
void setFragExtraWords(std::vector< uint32_t > &&extra)
uint32_t getFragBCID() const
Get BCID.
void setFragChipCRCWords(std::vector< uint32_t > &&chipCRCWords)
uint32_t getFragCRC() const
Set CRC word for collection.
uint32_t getFragStatus() const
void setFragChipCRCWords(const std::vector< uint32_t > &chipCRCWords)
Set chip CRC words for collection If calib mode, this is LOW gain CRC.
TileDigitsCollection(SG::OwnershipPolicy ownPolicy, ID id, uint32_t lvl1Id, uint32_t lvl1Type, uint32_t detEvType, uint32_t rodBCID, const std::vector< uint32_t > &fragChipCRCWords, const std::vector< uint32_t > &fragChipCRCWordsHIGH, const std::vector< uint32_t > &fragChipHeaderWords, const std::vector< uint32_t > &fragChipHeaderWordsHIGH, const std::vector< uint32_t > &fragExtraWords, uint32_t fragSize, uint32_t fragBCID)
void setFragChipHeaderWordsHigh(const std::vector< uint32_t > &chipHWordsH)
Header words in calib mode.
uint32_t getFragExtraWord(unsigned int i) const
void setFragBCID(uint32_t bcid)
Set BCID.
std::vector< uint32_t > m_FragExtraWords
all extra words from the trailer of the drawer fragment first two words are always DMU Mask and CRC w...
TileRawDataCollection< TileDigits > MyBase
void setFragChipHeaderWordsHigh(std::vector< uint32_t > &&chipHWordsH)
const std::vector< uint32_t > & getFragExtraWords() const
Get Frag extra words for this collection.
TileRawDataCollection(ID id, SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
@ OWN_ELEMENTS
this data object owns its elements