|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGT1_CTP_DECODER_H
6 #define TRIGT1_CTP_DECODER_H
81 const std::bitset<512> &
getTIP()
const {
93 const std::bitset<512> &
getTBP()
const {
106 const std::bitset<512> &
getTAP()
const {
115 const std::bitset<512> &
getTAV()
const {
196 bool checkTrigger(
unsigned int itemNo,
unsigned int bcPos);
void dumpData(MsgStream &) const
Helper class to decode the CTP data for one bunch-crossing.
void setTAPWord(uint32_t word, uint32_t pos=0)
Set TAP word number 'pos'.
bool checkTriggerAfterPrescale(unsigned int itemNo, unsigned int bcPos)
Test the LVL1 trigger result after pre-scale factors are applied, before the final trigger decision,...
const CTP_RDO * getRDO() const
Accessor function to retrieve pointer to RDO object.
void setTAVWord(uint32_t word, uint32_t pos=0)
Set TAV word number 'pos'.
const std::bitset< 32 > & getPITWordAux() const
Get PIT word 5 bitset.
std::bitset< 32 > getRandomTrigBitSet() const
Accessor to obtain random-trigger input bits.
void setTBP(const std::vector< uint32_t > &words)
Set TBP (Trigger Before Prescales) words.
const std::bitset< 512 > & getTAV() const
get bitset of TAV words
void setCTPVersion(unsigned int ctpVersionNumber)
Set the CTP data format version (needed before extracting any information)
void setTBPWord(uint32_t word, uint32_t pos=0)
Set TBP word number 'pos'.
void dumpData() const
Helper to dump data for debugging.
CTP_Decoder()
Helper class to decode the CTP data fragment.
std::string printTBP() const
Obtain TBP bitpattern string (binary format)
void setTIPWord(uint32_t word, uint32_t pos=0)
Set TIP word number 'pos'.
std::string printBCID() const
Return string with BCID in binary format.
std::string printTIP() const
Obtain TIP bitpattern string (binary format)
const std::bitset< 512 > & getTIP() const
get bitset of TIP words
std::string printPrescaledClock() const
Return string with prescaled clock in binary format.
std::vector< unsigned int > getAllTriggers(unsigned int bcPos)
Function to obtain a vector with the numbers of the trigger items that fired for the current event.
bool checkTrigger(unsigned int itemNo, unsigned int bcPos)
Test the LVL1 trigger result for a certain trigger item.
std::string printRandomTrig() const
Return string with random trigger in binary format.
std::bitset< 512 > m_tip
Bitsets containing bit-patterns of trigger inputs and trigger.
void setRDO(const CTP_RDO *rdo)
Set RDO and fill internal variables from the data object.
void setTAP(const std::vector< uint32_t > &words)
Set TAP (Trigger After Prescales) words.
Class to provide easy MsgStream access and capabilities.
void setPITWordAux(uint32_t word)
Set auxiliary PIT word, which is the one containing the 12-bit BCID (bit.
void setTIP(const std::vector< uint32_t > &words)
Set TIP words.
const std::bitset< 512 > & getTAP() const
get bitset of TAP words
std::vector< CTP_BC > m_BCs
Vector of BCs for the current event.
const std::bitset< 512 > & getTBP() const
get bitset of TBP words
uint32_t getBCID() const
Get BCID as unsigned integer.
const CTP_RDO * m_rdo
The RDO member.
std::bitset< 32 > getPrescaledClockBitSet() const
Accessor to obtain prescaled-clock input bits.
void setTAV(const std::vector< uint32_t > &words)
Set TAV (Trigger After Veto) words.
uint32_t getPrescaledClock() const
Prescaled-clock inputs as uint32_t.
std::bitset< 32 > getBCIDBitSet() const
Accessor to obtain std::bitset containing the bunch-crossing.
std::string printPITWordAux() const
Get auxiliary PIT word as string in binary format.
std::bitset< 32 > m_pitAux
Contains BCID, random trigger and prescaled clock.
std::string printTAP() const
Obtain TAP bitpattern string (binary format)
const CTP_BC & getBunchCrossing(unsigned int pos)
Get data of a single bunch-crossing.
std::string printTAV() const
Obtain TAV bitpattern string (binary format)
CTPdataformatVersion m_ctpVersion
uint32_t getRandomTrig() const
Random-trigger inputs as uint32_t.
const std::vector< CTP_BC > & getBunchCrossings()
Get vector reference of bunch-crossing data of the current event.