ATLAS Offline Software
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 
39 public:
41  MuCTPI_DataWord_Decoder( uint32_t dataword = 0 );
44 
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;
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 
84 private:
87  // Add bitset here?
88 
89 }; // class MuCTPI_DataWord_Decoder
90 
91 #endif // TRIGT1RESULT_MUCTPI_DATAWORD_DECODER_H
MuCTPI_DataWord_Decoder::getOverlapBits
uint16_t getOverlapBits() const
2-bit overlap bits given to the candidate by the SL
Definition: MuCTPI_DataWord_Decoder.cxx:69
MuCTPI_RDO::SectorLocation
SectorLocation
Enumeration defining the different sources for the muon candidates.
Definition: MuCTPI_RDO.h:45
MuCTPI_DataWord_Decoder::getWord
uint32_t getWord() const
Function returning the MuCTPI data word.
Definition: MuCTPI_DataWord_Decoder.h:77
MuCTPI_DataWord_Decoder::getVetoed
uint16_t getVetoed() const
Flag showing if the candidate was vetoed in the multiplicity sum.
Definition: MuCTPI_DataWord_Decoder.cxx:194
MuCTPI_DataWord_Decoder::getRoiNumber
uint16_t getRoiNumber() const
RoI number (sub-sector in which the candidate was detected)
Definition: MuCTPI_DataWord_Decoder.cxx:45
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
MuCTPI_DataWord_Decoder::getSectorOverflow
uint16_t getSectorOverflow() const
Flag showing whether there were more than 2 candidates in this candidate's sector.
Definition: MuCTPI_DataWord_Decoder.cxx:29
MuCTPI_DataWord_Decoder::getSectorAddress
uint16_t getSectorAddress() const
8-bit address of the sector that detected the candidate
Definition: MuCTPI_DataWord_Decoder.cxx:107
MuCTPI_DataWord_Decoder::MuCTPI_DataWord_Decoder
MuCTPI_DataWord_Decoder(uint32_t dataword=0)
Constructor.
Definition: MuCTPI_DataWord_Decoder.cxx:21
MuCTPI_DataWord_Decoder::getSectorLocation
MuCTPI_RDO::SectorLocation getSectorLocation() const
The system that detected the muon candidate.
Definition: MuCTPI_DataWord_Decoder.cxx:93
MuCTPI_DataWord_Decoder::getHemisphere
uint16_t getHemisphere() const
The hemisphere in which the candidate was detected.
Definition: MuCTPI_DataWord_Decoder.cxx:138
MuCTPI_DataWord_Decoder::setWord
void setWord(uint32_t word)
Function setting the MuCTPI data word.
Definition: MuCTPI_DataWord_Decoder.h:75
MuCTPI_DataWord_Decoder::getSectorID
uint16_t getSectorID(bool newScheme=0) const
Number of the sector that detected the candidate.
Definition: MuCTPI_DataWord_Decoder.cxx:115
MuCTPI_DataWord_Decoder::dumpData
void dumpData() const
Function dumping the stored information to the message stream.
Definition: MuCTPI_DataWord_Decoder.cxx:204
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
MuCTPI_DataWord_Decoder::getRoiOverflow
uint16_t getRoiOverflow() const
Flag showing whether there was more than 1 candidate in this candidate's RoI.
Definition: MuCTPI_DataWord_Decoder.cxx:37
MuCTPI_DataWord_Decoder::getBCID
uint16_t getBCID() const
3-bit BCID fragment saved with the candidate
Definition: MuCTPI_DataWord_Decoder.cxx:154
MuCTPI_DataWord_Decoder::getCandidateIsHighestPt
uint16_t getCandidateIsHighestPt() const
Flag showing whether the candidate had the highest pT in its sector.
Definition: MuCTPI_DataWord_Decoder.cxx:163
MuCTPI_DataWord_Decoder::getPt
uint16_t getPt() const
3-bit pT threshold of the candidate
Definition: MuCTPI_DataWord_Decoder.cxx:145
MuCTPI_DataWord_Decoder::m_dataWord
uint32_t m_dataWord
The 32-bit data word to decode.
Definition: MuCTPI_DataWord_Decoder.h:86
MuCTPI_DataWord_Decoder::getSentRoi
uint16_t getSentRoi() const
Flag showing whether the candidate was sent to the RoIB.
Definition: MuCTPI_DataWord_Decoder.cxx:172
MuCTPI_DataWord_Decoder
Class helping to decode the MuCTPI data words.
Definition: MuCTPI_DataWord_Decoder.h:37
MuCTPI_RDO.h
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
MuCTPI_DataWord_Decoder::getSign
uint16_t getSign() const
Get the candidate's sign (0=negative, 1=positive, 100=undefined)
Definition: MuCTPI_DataWord_Decoder.cxx:180
MuCTPI_DataWord_Decoder::~MuCTPI_DataWord_Decoder
~MuCTPI_DataWord_Decoder()=default
Destructor.