ATLAS Offline Software
Loading...
Searching...
No Matches
MuCTPI_DataWord_Decoder.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef TRIGT1RESULT_MUCTPI_DATAWORD_DECODER_H
8#define TRIGT1RESULT_MUCTPI_DATAWORD_DECODER_H
9
10
11// Local include(s):
13
14// Gaudi include(s):
15#include "GaudiKernel/MsgStream.h"
16
17// System include(s):
18#include <cstdint>
19
38
39public:
41 MuCTPI_DataWord_Decoder( uint32_t dataword = 0 );
44
46 uint16_t getSectorOverflow() const;
48 uint16_t getRoiOverflow() const;
50 uint16_t getRoiNumber() const;
52 uint16_t getOverlapBits() const;
56 uint16_t getSectorAddress() const;
58 uint16_t getSectorID(bool newScheme=0) const;
60 uint16_t getHemisphere() const;
62 uint16_t getPt() const;
64 uint16_t getBCID() const;
66 uint16_t getCandidateIsHighestPt() const;
68 uint16_t getSentRoi() const;
70 uint16_t getSign() const;
72 uint16_t getVetoed() const;
73
75 void setWord( uint32_t word ) { m_dataWord = word; }
77 uint32_t getWord() const { return m_dataWord; }
78
80 void dumpData() const;
82 void dumpData( MsgStream& log ) const;
83
84private:
86 uint32_t m_dataWord;
87 // Add bitset here?
88
89}; // class MuCTPI_DataWord_Decoder
90
91#endif // TRIGT1RESULT_MUCTPI_DATAWORD_DECODER_H
uint16_t getSectorOverflow() const
Flag showing whether there were more than 2 candidates in this candidate's sector.
uint16_t getVetoed() const
Flag showing if the candidate was vetoed in the multiplicity sum.
uint16_t getSign() const
Get the candidate's sign (0=negative, 1=positive, 100=undefined)
void dumpData() const
Function dumping the stored information to the message stream.
uint16_t getRoiOverflow() const
Flag showing whether there was more than 1 candidate in this candidate's RoI.
MuCTPI_DataWord_Decoder(uint32_t dataword=0)
Constructor.
uint16_t getSectorID(bool newScheme=0) const
Number of the sector that detected the candidate.
void setWord(uint32_t word)
Function setting the MuCTPI data word.
MuCTPI_RDO::SectorLocation getSectorLocation() const
The system that detected the muon candidate.
uint16_t getHemisphere() const
The hemisphere in which the candidate was detected.
uint16_t getRoiNumber() const
RoI number (sub-sector in which the candidate was detected)
uint16_t getCandidateIsHighestPt() const
Flag showing whether the candidate had the highest pT in its sector.
uint16_t getOverlapBits() const
2-bit overlap bits given to the candidate by the SL
uint16_t getSectorAddress() const
8-bit address of the sector that detected the candidate
uint16_t getSentRoi() const
Flag showing whether the candidate was sent to the RoIB.
uint32_t m_dataWord
The 32-bit data word to decode.
uint32_t getWord() const
Function returning the MuCTPI data word.
uint16_t getBCID() const
3-bit BCID fragment saved with the candidate
uint16_t getPt() const
3-bit pT threshold of the candidate
~MuCTPI_DataWord_Decoder()=default
Destructor.
SectorLocation
Enumeration defining the different sources for the muon candidates.
Definition MuCTPI_RDO.h:45