4#ifndef TRIGT1INTERFACES_CTPSLINK_H
5#define TRIGT1INTERFACES_CTPSLINK_H
16#include "CTPfragment/CTPdataformatVersion.h"
49 CTPSLink(
const std::vector<uint32_t>& roiVec,
unsigned int ctpVersionNumber );
74 const std::vector<uint32_t>
getHeader()
const;
76 const std::vector<uint32_t>
getTrailer()
const;
85 const std::vector<uint32_t>
getTBP()
const;
87 const std::vector<uint32_t>
getTAP()
const;
89 const std::vector<uint32_t>
getTAV()
const;
102 const std::string
dump()
const;
104 const std::string
print(
const bool longFormat =
false)
const;
124 const std::string
convert(
const std::vector<uint32_t>&
data,
125 const bool longFormat =
false)
const;
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
char data[hepevt_bytes_allocation_ATLAS]
unsigned int getHeaderSize() const
number of words in header
const std::string convert(const std::vector< uint32_t > &data, const bool longFormat=false) const
convert data contetn into string (used by dump and print)
unsigned int getTrailerSize() const
number of words in trailer
bool getAcceptAP() const
get trigger accept after prescale
unsigned int getDataElementSize() const
number of words in data
unsigned int m_wordsPerHeader
number of words per header
CTPSLink(CTPSLink const &)=delete
const std::vector< uint32_t > m_CTPSLinkVector
this vector contains the header, data elements and trailer
unsigned int m_wordsPerDataElement
number of words per data element
CTPSLink & operator=(CTPSLink const &)=delete
const std::vector< uint32_t > & getCTPToRoIBWords() const
get full raw data content
bool getAcceptBP() const
get trigger accept before prescale
unsigned int getNumWordsPerCTPSLink() const
unsigned int getCTPVersionNumber() const
retrieve CTP version number
unsigned int getSize() const
toal number of words in object
const std::vector< uint32_t > getTrailer() const
get raw trailer content
~CTPSLink()
empty default destructor
unsigned int m_ctpVersionNumber
const std::vector< uint32_t > getTBP() const
get trigger result before prescale
const std::vector< uint32_t > getDataElements() const
get raw data content
const std::vector< uint32_t > getTAP() const
get trigger result after prescale
CTPSLink(const std::vector< uint32_t > &roiVec, unsigned int ctpVersionNumber)
constructor initializing data content from given vector
unsigned int m_wordsPerTrailer
number of words per trailer
bool getAccept() const
get standard trigger accept
unsigned int m_wordsPerCTPSLink
number of words per CTPSLink
bool getAcceptAV() const
get trigger accept after veto
const std::string dump() const
dump raw object content to string
CTPdataformatVersion * m_ctpVersion
const std::vector< uint32_t > getHeader() const
get raw header content
const std::string print(const bool longFormat=false) const
print object content in a human readable form to string
const std::vector< uint32_t > getTAV() const
get trigger result after veto