ATLAS Offline Software
Loading...
Searching...
No Matches
HelpersPhase1.h File Reference
#include "MuCTPI_Bits.h"
#include <array>
#include <vector>
#include <string_view>
#include <iostream>
Include dependency graph for HelpersPhase1.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LVL1::MuCTPIBits::TimesliceHeader
struct  LVL1::MuCTPIBits::Multiplicity
struct  LVL1::MuCTPIBits::Candidate
struct  LVL1::MuCTPIBits::TopoTOB
struct  LVL1::MuCTPIBits::Slice

Namespaces

namespace  LVL1
 eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) inputs.
namespace  LVL1::MuCTPIBits

Enumerations

enum class  LVL1::MuCTPIBits::WordType : uint8_t {
  LVL1::MuCTPIBits::Undefined =0 , LVL1::MuCTPIBits::Timeslice , LVL1::MuCTPIBits::Multiplicity , LVL1::MuCTPIBits::Candidate ,
  LVL1::MuCTPIBits::Topo , LVL1::MuCTPIBits::Status , LVL1::MuCTPIBits::MAX
}
enum class  LVL1::MuCTPIBits::SubsysID : uint8_t {
  LVL1::MuCTPIBits::Undefined =0 , LVL1::MuCTPIBits::Barrel , LVL1::MuCTPIBits::Forward , LVL1::MuCTPIBits::Endcap ,
  LVL1::MuCTPIBits::MAX
}

Functions

constexpr uint32_t LVL1::MuCTPIBits::maskedWord (uint32_t word, uint32_t shift, uint32_t mask)
 Extract sub-word from 32-bit word by applying a shift and a mask.
constexpr uint32_t LVL1::MuCTPIBits::maskedWord (uint64_t word, uint32_t shift, uint32_t mask)
 Extract sub-word from 64-bit word by applying a shift and a mask.
constexpr uint32_t LVL1::MuCTPIBits::buildWord (uint32_t value, uint32_t shift, uint32_t mask)
 Extract sub-word from 32-bit word by applying a shift and a mask.
constexpr bool LVL1::MuCTPIBits::wordEquals (uint32_t word, uint32_t shift, uint32_t mask, uint32_t value)
 Compare a sub-word of a 32-bit word to an expected value.
constexpr WordType LVL1::MuCTPIBits::getWordType (uint32_t word)
 Determine the type of a MUCTPI ROD word.
constexpr auto LVL1::MuCTPIBits::timesliceHeader (uint32_t word)
 Decode timeslice word.
constexpr uint32_t LVL1::MuCTPIBits::timesliceHeader (uint32_t bcid, uint32_t tobCount, uint32_t candCount)
 Encode timeslice word.
constexpr auto LVL1::MuCTPIBits::topoHeader (uint32_t word)
 Decode topo word :
constexpr uint32_t LVL1::MuCTPIBits::multiplicityWordNumber (uint32_t word)
 Decode the index of the multitpicity word, which is 1, 2, or 3.
constexpr std::array< uint32_t, 3 > LVL1::MuCTPIBits::multiplicityWords (uint64_t multiplicity, uint32_t triggerBits, bool overflow)
 Encode the multiplicity words.
constexpr SubsysID LVL1::MuCTPIBits::getSubsysID (uint32_t word)
 Decode the subsys ID from RoI candidate word.
std::vector< size_t > LVL1::MuCTPIBits::getDataStatusWordErrors (uint32_t word)
 Decode the data status word (returns a vector of bit indices for the errors set - empty if no errors)
constexpr uint32_t LVL1::MuCTPIBits::dataStatusWord (uint16_t status)
 Encode the data status word.

Variables

const uint32_t LVL1::MuCTPIBits::RPCtoTGC_pt_map [7] = {0, 2, 4, 6, 8, 10, 12}
static constexpr std::array< std::string_view, 16 > LVL1::MuCTPIBits::DataStatusWordErrors