ATLAS Offline Software
MuCTPI_MultiplicityWord_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_MULTIPLICITYWORD_DECODER_H
8 #define TRIGT1RESULT_MUCTPI_MULTIPLICITYWORD_DECODER_H
9 
10 // Gaudi include(s):
11 #include "GaudiKernel/MsgStream.h"
12 
13 // System include(s):
14 #include <cstdint>
15 
33 
34 public:
38  };
39 
43  MuCTPI_MultiplicityWord_Decoder( const uint32_t multword, const bool inclusiveTriggerMode);
46 
48  uint16_t getNCandidates() const;
50  uint16_t getMultiplicity( const uint16_t candidateNumber ) const;
52  uint16_t getBCID() const;
53 
55  void setWord( const uint32_t word ) { m_multiplicityWord = word; }
57  uint32_t getWord() const { return m_multiplicityWord; }
58 
60  void dumpData() const;
62  void dumpData( MsgStream& log ) const;
63 
64 private:
69 
70 }; // class MuCTPI_MultiplicityWord_Decoder
71 
72 #endif // TRIGT1RESULT_MUCTPI_MULTIPLICITYWORD_DECODER_H
MuCTPI_MultiplicityWord_Decoder::setWord
void setWord(const uint32_t word)
Function setting the MuCTPI multiplicity word.
Definition: MuCTPI_MultiplicityWord_Decoder.h:55
MuCTPI_MultiplicityWord_Decoder::TriggerMode_t
TriggerMode_t
Possible trigger threshold modes.
Definition: MuCTPI_MultiplicityWord_Decoder.h:36
MuCTPI_MultiplicityWord_Decoder::getMultiplicity
uint16_t getMultiplicity(const uint16_t candidateNumber) const
Function returning the 3-bit candidate multiplicity for the specified threshold.
Definition: MuCTPI_MultiplicityWord_Decoder.cxx:61
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
MuCTPI_MultiplicityWord_Decoder::inclusive
@ inclusive
Definition: MuCTPI_MultiplicityWord_Decoder.h:37
MuCTPI_MultiplicityWord_Decoder::getWord
uint32_t getWord() const
Function returning the MuCTPI multiplicity word.
Definition: MuCTPI_MultiplicityWord_Decoder.h:57
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
MuCTPI_MultiplicityWord_Decoder
Class helping to decode the MuCTPI multiplicity words.
Definition: MuCTPI_MultiplicityWord_Decoder.h:32
Preparation.mode
mode
Definition: Preparation.py:94
MuCTPI_MultiplicityWord_Decoder::getNCandidates
uint16_t getNCandidates() const
Function returning the total number of muon candidates.
Definition: MuCTPI_MultiplicityWord_Decoder.cxx:42
MuCTPI_MultiplicityWord_Decoder::dumpData
void dumpData() const
Function dumping the stored information to the message stream.
Definition: MuCTPI_MultiplicityWord_Decoder.cxx:88
MuCTPI_MultiplicityWord_Decoder::exclusive
@ exclusive
Definition: MuCTPI_MultiplicityWord_Decoder.h:37
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
MuCTPI_MultiplicityWord_Decoder::getBCID
uint16_t getBCID() const
Function returning the 3-bit BCID fragment in the multiplicity word.
Definition: MuCTPI_MultiplicityWord_Decoder.cxx:78
MuCTPI_MultiplicityWord_Decoder::m_multiplicityWord
uint32_t m_multiplicityWord
The 32-bit multiplicity word to decode.
Definition: MuCTPI_MultiplicityWord_Decoder.h:66
MuCTPI_MultiplicityWord_Decoder::~MuCTPI_MultiplicityWord_Decoder
~MuCTPI_MultiplicityWord_Decoder()=default
Destructor.
MuCTPI_MultiplicityWord_Decoder::MuCTPI_MultiplicityWord_Decoder
MuCTPI_MultiplicityWord_Decoder(const uint32_t multword=0, const TriggerMode_t mode=exclusive)
Constructor.
Definition: MuCTPI_MultiplicityWord_Decoder.cxx:23
MuCTPI_MultiplicityWord_Decoder::m_triggerMode
TriggerMode_t m_triggerMode
Trigger threshold mode (inclusive/exclusive)
Definition: MuCTPI_MultiplicityWord_Decoder.h:68