5#ifndef XAODTRIGGER_VERSIONS_CTPRESULT_V1_H
6#define XAODTRIGGER_VERSIONS_CTPRESULT_V1_H
168 const std::vector<uint32_t>
header()
const;
187 const std::vector<uint32_t>
trailer()
const;
227 const std::vector< std::vector< uint32_t > >&
tipWords()
const;
233 void setTIPWords(
const std::vector< std::vector< uint32_t > >& words);
239 const std::vector< std::vector< uint32_t > >&
tbpWords()
const;
245 void setTBPWords(
const std::vector< std::vector< uint32_t > >& words);
251 const std::vector< std::vector< uint32_t > >&
tapWords()
const;
257 void setTAPWords(
const std::vector< std::vector< uint32_t > >& words);
263 const std::vector< std::vector< uint32_t > >&
tavWords()
const;
269 void setTAVWords(
const std::vector< std::vector< uint32_t > >& words);
335 std::vector< uint32_t >
getTIPWords(
const int bunchPosition=-1)
const;
341 std::vector< uint32_t >
getTBPWords(
const int bunchPosition=-1)
const;
347 std::vector< uint32_t >
getTAPWords(
const int bunchPosition=-1)
const;
353 std::vector< uint32_t >
getTAVWords(
const int bunchPosition=-1)
const;
Base class for elements of a container that can have aux data.
Base class for elements of a container that can have aux data.
This is the trigger result for each item before prescale, after prescale and after veto.
void setTimeSec(const uint32_t sec)
Set the time in seconds.
void setHeaderFormatVersion(const uint32_t word)
Set the format version of the header.
uint32_t numDataWords() const
Retrieve the number of data words.
void setTAVWords(const std::vector< std::vector< uint32_t > > &words)
Set the TAV words for all bunch crossings.
void setEventType(const uint32_t word)
Set the LVL1 event type.
uint32_t L1ID() const
Retrieve the extended LVL1 ID.
const std::vector< std::vector< uint32_t > > & tbpWords() const
Get the TBP words for all bunch crossings.
void setInfoStatus(const uint32_t word)
Set the info status word.
uint32_t numStatusWords() const
Retrieve the number of status words in the trailer.
const std::vector< std::vector< uint32_t > > & tapWords() const
Get the TAP words for all bunch crossings.
std::vector< uint32_t > getTBPWords(const int bunchPosition=-1) const
Get the TBP (Trigger Before Prescale) words.
void setNumberOfBunches(const uint32_t nBCs)
Set the number of bunch crossings.
uint32_t infoStatus() const
Retrieve the info status word.
uint32_t headerSize() const
Retrieve the number of words in the header.
void setHeader(const uint32_t marker, const uint32_t version, const uint32_t sourceid, const uint32_t l1id=0, const uint32_t runNum=0, const uint32_t bcid=0, const uint32_t trigType=0, const uint32_t evtType=0)
Set the header words.
void setHeaderSize(const uint32_t word)
Set the number of words in the header.
void setTAPWords(const std::vector< std::vector< uint32_t > > &words)
Set the TAP words for all bunch crossings.
std::vector< uint32_t > getTAPWords(const int bunchPosition=-1) const
Get the TAP (Trigger After Prescale) words.
uint32_t triggerType() const
Retrieve the LVL1 trigger type.
uint32_t runNumber() const
Retrieve the run number.
uint32_t statusPosition() const
Retrieve the position of status information in the ROD.
uint32_t numberOfAdditionalWords() const
Get the number of additional data words.
uint32_t BCID() const
Retrieve the bunch crossing ID.
void setTBPWords(const std::vector< std::vector< uint32_t > > &words)
Set the TBP words for all bunch crossings.
void setAdditionalWords(const std::vector< uint32_t > &words)
Set the additional data words.
const std::vector< uint32_t > & additionalWords() const
Get the additional data words.
void setNumStatusWords(const uint32_t word)
Set the number of status words in the trailer.
uint32_t headerFormatVersion() const
Retrieve the format version of the header.
void setHeaderMarker(const uint32_t word)
Set the header marker word.
const std::vector< uint32_t > trailer() const
Get the trailer words.
void setRunNumber(const uint32_t word)
Set the run number.
uint32_t errorStatus() const
Retrieve the error status word.
void setTurnCounter(const uint32_t val)
Set the turn counter.
void setTriggerType(const uint32_t word)
Set the LVL1 trigger type.
void setBCID(const uint32_t word)
Set the bunch crossing ID.
uint32_t timeSec() const
Get the time in seconds.
const std::vector< std::vector< uint32_t > > & tipWords() const
Get the TIP words for all bunch crossings.
const std::vector< std::vector< uint32_t > > & tavWords() const
Get the TAV words for all bunch crossings.
void setL1ID(const uint32_t word)
Set the extended LVL1 ID.
void setSourceID(const uint32_t word)
Set the sub-detector source ID.
void setStatusPosition(const uint32_t word)
Set the position of status information in the ROD.
void setTrailer(const uint32_t numData, const uint32_t errStat=0, const uint32_t infoStat=0, const uint32_t numStat=2, const uint32_t statPos=1)
Set the trailer words.
void setCtpVersionNumber(const uint32_t ctpNumber)
Set the CTP version number.
uint32_t eventType() const
Retrieve the LVL1 event type.
void setNumDataWords(const uint32_t num)
Set the number of data words.
uint32_t headerMarker() const
Retrieve the header marker word.
const CTPResult_v1::CTPBunchCrossing getBC(const int bunch=-1) const
Get the CTPBunchCrossing object for a specific bunch in the readout window.
uint32_t ctpVersionNumber() const
Get the CTP version number.
std::vector< uint32_t > getTIPWords(const int bunchPosition=-1) const
Get the TIP (Trigger Inputs to the CTP) words (in Run3 512 items)
std::vector< uint32_t > getTAVWords(const int bunchPosition=-1) const
Get the TAV (Trigger After Veto) words.
uint32_t turnCounter() const
Get the turn counter.
uint32_t timeNanoSec() const
Get the time in nanoseconds.
uint32_t numberOfBunches() const
Get the number of bunch crossings.
const std::vector< uint32_t > header() const
Get the header words.
void setNumberOfAdditionalWords(const uint32_t nExtraWords)
Set the number of additional data words.
void setErrorStatus(const uint32_t word)
Set the error status word.
void setL1AcceptBunchPosition(const uint32_t pos)
Set the L1Accept bunch position.
void setTimeNanoSec(const uint32_t nano)
Set the time in nanoseconds.
uint32_t sourceID() const
Retrieve the sub-detector source ID.
void setTIPWords(const std::vector< std::vector< uint32_t > > &words)
Set the TIP words for all bunch crossings.
uint32_t l1AcceptBunchPosition() const
Get the L1 accept bunch position.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setEventNumber setTimeStamp bcid
This is the trigger result for each item before prescale, after prescale and after veto for a single ...
std::vector< uint32_t > tapWords
std::vector< uint32_t > tbpWords
std::vector< uint32_t > tavWords
std::vector< uint32_t > tipWords