ATLAS Offline Software
Classes | Namespaces | Enumerations | Functions | Variables
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

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

Enumerations

enum  LVL1::MuCTPIBits::WordType : uint8_t {
  LVL1::MuCTPIBits::WordType::Undefined =0, LVL1::MuCTPIBits::WordType::Timeslice, LVL1::MuCTPIBits::WordType::Multiplicity, LVL1::MuCTPIBits::WordType::Candidate,
  LVL1::MuCTPIBits::WordType::Topo, LVL1::MuCTPIBits::WordType::Status, LVL1::MuCTPIBits::WordType::MAX
}
 
enum  LVL1::MuCTPIBits::SubsysID : uint8_t {
  LVL1::MuCTPIBits::SubsysID::Undefined =0, LVL1::MuCTPIBits::SubsysID::Barrel, LVL1::MuCTPIBits::SubsysID::Forward, LVL1::MuCTPIBits::SubsysID::Endcap,
  LVL1::MuCTPIBits::SubsysID::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. More...
 
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. More...
 
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. More...
 
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. More...
 
constexpr WordType LVL1::MuCTPIBits::getWordType (uint32_t word)
 Determine the type of a MUCTPI ROD word. More...
 
constexpr auto LVL1::MuCTPIBits::timesliceHeader (uint32_t word)
 Decode timeslice word. More...
 
constexpr uint32_t LVL1::MuCTPIBits::timesliceHeader (uint32_t bcid, uint32_t tobCount, uint32_t candCount)
 Encode timeslice word. More...
 
constexpr auto LVL1::MuCTPIBits::topoHeader (uint32_t word)
 Decode topo word : More...
 
constexpr uint32_t LVL1::MuCTPIBits::multiplicityWordNumber (uint32_t word)
 Decode the index of the multitpicity word, which is 1, 2, or 3. More...
 
constexpr std::array< uint32_t, 3 > LVL1::MuCTPIBits::multiplicityWords (uint64_t multiplicity, uint32_t triggerBits, bool overflow)
 Encode the multiplicity words. More...
 
constexpr SubsysID LVL1::MuCTPIBits::getSubsysID (uint32_t word)
 Decode the subsys ID from RoI candidate word. More...
 
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) More...
 
constexpr uint32_t LVL1::MuCTPIBits::dataStatusWord (uint16_t status)
 Encode the data status word. More...
 

Variables

const uint32_t LVL1::MuCTPIBits::RPCtoTGC_pt_map [7] = {0, 2, 4, 6, 8, 10, 12}