Project
Loading...
Searching...
No Matches
o2::emcal::TriggerMappingV2 Class Reference

Trigger mapping starting from Run2. More...

#include <TriggerMappingV2.h>

Classes

struct  FastORInformation
 Basic FastOR information. More...
 

Public Types

enum class  DetType_t { DET_EMCAL , DET_DCAL }
 Calorimeter type. More...
 
using IndexTRU = unsigned int
 
using IndexSTU = unsigned int
 
using IndexSupermodule = unsigned int
 
using IndexFastOR = unsigned int
 
using IndexCell = unsigned int
 
using IndexColumnEta = unsigned int
 
using IndexRowPhi = unsigned int
 
using IndexOnline = unsigned int
 

Public Member Functions

 TriggerMappingV2 ()
 Default constructor.
 
 TriggerMappingV2 (Geometry *geo)
 Default constructor.
 
 ~TriggerMappingV2 ()=default
 Destructor.
 
IndexFastOR getAbsFastORIndexFromIndexInTRU (IndexTRU truIndex, IndexFastOR fastorIndexTRU) const
 Get the absolute index of the FastOr from the index in the TRU.
 
IndexFastOR getAbsFastORIndexFromPositionInTRU (IndexTRU truIndex, IndexColumnEta etaColumn, IndexRowPhi phiRow) const
 Get the absolute index of the FastOr from geometric position in TRU.
 
IndexFastOR getAbsFastORIndexFromPositionInSupermodule (IndexSupermodule supermoduleID, IndexColumnEta etaColumn, IndexRowPhi phiRow) const
 Get the absolute index of the FastOr from the geometric position in the supermodule.
 
IndexFastOR getAbsFastORIndexFromPositionInEMCAL (IndexColumnEta etaColumn, IndexRowPhi phiRow) const
 Get the absolute index of the FastOR from the geometric position in EMCAL.
 
IndexFastOR getAbsFastORIndexFromPHOSSubregion (unsigned int phosRegionID) const
 
std::tuple< IndexTRU, IndexFastORgetTRUFromAbsFastORIndex (IndexFastOR fastOrAbsID) const
 Get the TRU index and FastOR index in TRU from the absolute FastOR ID.
 
std::tuple< IndexTRU, IndexColumnEta, IndexRowPhigetPositionInTRUFromAbsFastORIndex (IndexFastOR fastORAbsID) const
 Get the position of a FastOR inside the TRU from the absolute FastOR ID.
 
std::tuple< IndexSupermodule, IndexColumnEta, IndexRowPhigetPositionInSupermoduleFromAbsFastORIndex (IndexFastOR fastORAbsID) const
 Get the position inside the supermodule from the absolute FastOR ID.
 
std::tuple< IndexColumnEta, IndexRowPhigetPositionInEMCALFromAbsFastORIndex (IndexFastOR fastORAbsID) const
 Get the position in the Detector from the absolute FastOR ID.
 
std::tuple< IndexTRU, IndexFastORconvertFastORIndexSTUtoTRU (IndexTRU truIndexSTU, IndexFastOR fastOrIndexSTU, DetType_t detector) const
 Convert TRU and FastOR index in TRU from STU number scheme to TRU number scheme.
 
std::tuple< IndexTRU, IndexFastORconvertFastORIndexTRUtoSTU (IndexTRU truIndexTRU, IndexFastOR fastorIndexTRU) const
 Convert TRU and FastOR index in TRU from TRU number scheme to STU number scheme.
 
std::tuple< IndexTRU, IndexColumnEta, IndexRowPhiconvertFastORPositionSTUtoTRU (IndexTRU truIndexSTU, IndexColumnEta truEtaSTU, IndexRowPhi truPhiSTU, DetType_t detector) const
 Convert TRU and FastOR position in TRU from STU number scheme to TRU number scheme.
 
std::tuple< IndexTRU, IndexColumnEta, IndexRowPhiconvertFastORPositionTRUtoSTU (IndexTRU truIndexTRU, IndexColumnEta etaTRU, IndexRowPhi phiTRU) const
 Convert TRU and FastOR position in TRU from TRU number scheme to STU number scheme.
 
IndexFastOR getAbsFastORIndexFromCellIndex (IndexCell cellIndex) const
 Get the absolute FastOR index of the module containing a given cell.
 
std::array< IndexCell, 4 > getCellIndexFromAbsFastORIndex (IndexFastOR fastORAbsID) const
 Get the indices of the cells in the module of a given FastOR.
 
IndexTRU convertTRUIndexSTUtoTRU (IndexTRU truIndexSTU, DetType_t detector) const
 Convert the TRU index from the STU numbering scheme into the TRU numbering scheme.
 
IndexTRU convertTRUIndexTRUtoSTU (IndexTRU truIndexTRU) const
 
IndexTRU getTRUIndexFromOnlineIndex (IndexOnline onlineIndex) const noexcept
 Get the TRU index from the online index.
 
IndexOnline getOnlineIndexFromTRUIndex (IndexTRU truIndex) const
 Get the online index from the TRU index.
 
IndexTRU getTRUIndexFromOnlineHardareAddree (int hardwareAddress, unsigned int ddlID, unsigned int supermoduleID) const
 Get the TRU Index from the hardware address of the ALTRO channel (TRU rawdata)
 
std::array< unsigned int, 4 > getFastORIndexFromL0Index (IndexTRU iTRU, IndexFastOR l0index, int size) const
 
FastORInformation getInfoFromAbsFastORIndex (IndexFastOR absFastORID) const
 
const std::array< unsigned int, ALLTRUS > & getArrayTRUFastOROffsetX () const
 
const std::array< unsigned int, ALLTRUS > & getTRUFastOROffsetY () const
 
const std::array< unsigned int, ALLTRUS > & getNFastORInTRUPhi () const
 
const std::array< unsigned int, ALLTRUS > & getNFastORInTRUEta () const
 
const std::array< unsigned int, SUPERMODULES > & getArraySMFastOROffsetX () const
 
const std::array< unsigned int, SUPERMODULES > & getArraySMFastOROffsetY () const
 
const std::array< unsigned int, SUPERMODULES > & getArrayNFastORInSMPhi () const
 
const std::array< unsigned int, SUPERMODULES > & getArrayNFastORInSMEta () const
 
const std::array< unsigned int, 5 > & getArrayNModuleInEMCALPhi () const
 

Static Public Attributes

static constexpr unsigned int SUPERMODULES = 20
 Total number of supermodules in EMCAL.
 
static constexpr unsigned int ALLTRUS = 52
 Total number of TRUs in EMCAL.
 
static constexpr unsigned int FASTORSETATRU = 8
 Number of FastOR/TRU in Eta.
 
static constexpr unsigned int FASTORSPHITRU = 12
 Number of FastOR/TRU in Phi.
 
static constexpr unsigned int FASTORSTRU = FASTORSETATRU * FASTORSPHITRU
 Number of FastOR/TRU.
 
static constexpr unsigned int TRUSETASM = 3
 Number of TRUs/SM in Eta.
 
static constexpr unsigned int TRUSPHISM = 1
 Number of TRUs/SM in Phi.
 
static constexpr unsigned int TRUSSUPERMODULE = TRUSETASM * TRUSPHISM
 Number of TRUs/SM.
 
static constexpr unsigned int FASTORSETASM = FASTORSETATRU * TRUSETASM
 Number of FastOR/SM in Eta.
 
static constexpr unsigned int FASTORSPHISM = FASTORSPHITRU * TRUSPHISM
 Number of FastOR/SM in Phi.
 
static constexpr unsigned int FASTORSETA = 2 * FASTORSETASM
 EMCAL+DCAL region eta size.
 
static constexpr unsigned int FASTORSPHI
 Number of FastOR/EMCALs in Phi.
 
static constexpr unsigned int ALLFASTORS = FASTORSETA * FASTORSPHI
 Number of FastOR/EMCALs.
 
static constexpr unsigned int PATCHESINTRU = 77
 

Detailed Description

Trigger mapping starting from Run2.

Author
H. YOKOYAMA Tsukuba University
R. GUERNANE LPSC Grenoble CNRS/IN2P3
Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch, Oak Ridge National Laboratory

Definition at line 32 of file TriggerMappingV2.h.

Member Typedef Documentation

◆ IndexCell

Definition at line 61 of file TriggerMappingV2.h.

◆ IndexColumnEta

Definition at line 62 of file TriggerMappingV2.h.

◆ IndexFastOR

Definition at line 60 of file TriggerMappingV2.h.

◆ IndexOnline

Definition at line 64 of file TriggerMappingV2.h.

◆ IndexRowPhi

Definition at line 63 of file TriggerMappingV2.h.

◆ IndexSTU

Definition at line 58 of file TriggerMappingV2.h.

◆ IndexSupermodule

Definition at line 59 of file TriggerMappingV2.h.

◆ IndexTRU

Definition at line 57 of file TriggerMappingV2.h.

Member Enumeration Documentation

◆ DetType_t

Calorimeter type.

Enumerator
DET_EMCAL 
DET_DCAL 

Definition at line 68 of file TriggerMappingV2.h.

Constructor & Destructor Documentation

◆ TriggerMappingV2() [1/2]

TriggerMappingV2::TriggerMappingV2 ( )

Default constructor.

Definition at line 20 of file TriggerMappingV2.cxx.

◆ TriggerMappingV2() [2/2]

TriggerMappingV2::TriggerMappingV2 ( Geometry geo)

Default constructor.

Definition at line 27 of file TriggerMappingV2.cxx.

◆ ~TriggerMappingV2()

o2::emcal::TriggerMappingV2::~TriggerMappingV2 ( )
default

Destructor.

Member Function Documentation

◆ convertFastORIndexSTUtoTRU()

std::tuple< TriggerMappingV2::IndexTRU, TriggerMappingV2::IndexFastOR > TriggerMappingV2::convertFastORIndexSTUtoTRU ( IndexTRU  truIndexSTU,
IndexFastOR  fastOrIndexSTU,
DetType_t  detector 
) const

Convert TRU and FastOR index in TRU from STU number scheme to TRU number scheme.

Parameters
truIndexSTUTRU index in the STU number scheme
fastOrIndexSTUFastOR index in STU number scheme
detectorSubdetector (EMCAL or DCAL)
Returns
Tuple with 0 - TRU index in TRU number scheme, 1 - FastOR index in TRU number scheme
Exceptions
TRUIndexExceptionin case the TRU index exceeds the max.number of TRUs in the EMCAL / DCAL STU region
FastORIndexExceptionin case the FastOR index exceeds the number of FastORs in a TRU

TRU and STU use different index schemes both for TRU indexing and FastOR indexing: For TRUs the TRU numbering combines the TRUs in EMCAL and DCAL, including virtual TRU indices in the PHOS retion, while the STU numbering scheme splits the TRU indicies in regions for EMCAL and DCAL excluding the PHOS regions. For what concerns the FastOR numbering scheme the STU numbering scheme uses a simple linerar indexing in eta and then in phi, while the TRU numbering scheme uses a complicated indexing starting in phi direction. Consequently a FastOR can have two different indices with the TRU depending on numbering scheme. The function converts TRU and FastOR indices from the STU scheme to the TRU scheme.

Definition at line 542 of file TriggerMappingV2.cxx.

◆ convertFastORIndexTRUtoSTU()

std::tuple< TriggerMappingV2::IndexTRU, TriggerMappingV2::IndexFastOR > TriggerMappingV2::convertFastORIndexTRUtoSTU ( IndexTRU  truIndexTRU,
IndexFastOR  fastorIndexTRU 
) const

Convert TRU and FastOR index in TRU from TRU number scheme to STU number scheme.

Parameters
truIndexTRUTRU index in the TRU number scheme
fastorIndexTRUFastOR index in TRU number scheme
Returns
Tuple with 0 - TRU index in STU number scheme, 1 - FastOR index in STU number scheme
Exceptions
TRUIndexExceptionin case the TRU index exceeds the max.number of TRUs
FastORIndexExceptionin case the FastOR index exceeds the number of FastORs in a TRU

TRU and STU use different index schemes both for TRU indexing and FastOR indexing: For TRUs the TRU numbering combines the TRUs in EMCAL and DCAL, including virtual TRU indices in the PHOS retion, while the STU numbering scheme splits the TRU indicies in regions for EMCAL and DCAL excluding the PHOS regions. For what concerns the FastOR numbering scheme the STU numbering scheme uses a simple linerar indexing in eta and then in phi, while the TRU numbering scheme uses a complicated indexing starting in phi direction. Consequently a FastOR can have two different indices with the TRU depending on numbering scheme. The function converts TRU and FastOR indices from the TRU scheme to the STU scheme.

Definition at line 572 of file TriggerMappingV2.cxx.

◆ convertFastORPositionSTUtoTRU()

std::tuple< TriggerMappingV2::IndexTRU, TriggerMappingV2::IndexColumnEta, TriggerMappingV2::IndexRowPhi > TriggerMappingV2::convertFastORPositionSTUtoTRU ( IndexTRU  truIndexSTU,
IndexColumnEta  truEtaSTU,
IndexRowPhi  truPhiSTU,
DetType_t  detector 
) const

Convert TRU and FastOR position in TRU from STU number scheme to TRU number scheme.

Parameters
truIndexSTUTRU index in the STU number scheme
truEtaSTUColumn of the FastOR in STU number scheme
truPhiSTURow of the FastOR in STU number scheme
detectorSubdetector (EMCAL or DCAL)
Returns
Tuple with 0 - TRU index in TRU number scheme, 1 - Column of the FastOR in TRU number scheme, 2 - Row of the FastOR in TRU number scheme
Exceptions
TRUIndexExceptionin case the TRU index exceeds the max.number of TRUs in the EMCAL / DCAL STU region
FastORPositionExceptionTRUin case the position in column and row exceeds the number of columns or rows of a TRU

TRU and STU use different index schemes both for TRU indexing and FastOR indexing: For TRUs the TRU numbering combines the TRUs in EMCAL and DCAL, including virtual TRU indices in the PHOS retion, while the STU numbering scheme splits the TRU indicies in regions for EMCAL and DCAL excluding the PHOS regions. For what concerns the FastOR numbering scheme the STU numbering scheme uses a simple linerar indexing in eta and then in phi, while the TRU numbering scheme uses a complicated indexing starting in phi direction. Consequently a FastOR can have two different indices with the TRU depending on numbering scheme. The function converts TRU and FastOR position from the STU scheme to the TRU scheme.

Definition at line 559 of file TriggerMappingV2.cxx.

◆ convertFastORPositionTRUtoSTU()

std::tuple< TriggerMappingV2::IndexTRU, TriggerMappingV2::IndexColumnEta, TriggerMappingV2::IndexRowPhi > TriggerMappingV2::convertFastORPositionTRUtoSTU ( IndexTRU  truIndexTRU,
IndexColumnEta  etaTRU,
IndexRowPhi  phiTRU 
) const

Convert TRU and FastOR position in TRU from TRU number scheme to STU number scheme.

Parameters
truIndexSTUTRU index in the TRU number scheme
truEtaSTUColumn of the FastOR in TRU number scheme
truPhiSTURow of the FastOR in TRU number scheme
Returns
Tuple with 0 - TRU index in STU number scheme, 1 - Column of the FastOR in STU number scheme, 2 - Row of the FastOR in STU number scheme
Exceptions
TRUIndexExceptionin case the TRU index exceeds the max.number of TRUs
FastORPositionExceptionTRUin case the position in column and row exceeds the number of columns or rows of a TRU

TRU and STU use different index schemes both for TRU indexing and FastOR indexing: For TRUs the TRU numbering combines the TRUs in EMCAL and DCAL, including virtual TRU indices in the PHOS retion, while the STU numbering scheme splits the TRU indicies in regions for EMCAL and DCAL excluding the PHOS regions. For what concerns the FastOR numbering scheme the STU numbering scheme uses a simple linerar indexing in eta and then in phi, while the TRU numbering scheme uses a complicated indexing starting in phi direction. Consequently a FastOR can have two different indices with the TRU depending on numbering scheme. The function converts TRU and FastOR position from the TRU scheme to the STU scheme.

Definition at line 589 of file TriggerMappingV2.cxx.

◆ convertTRUIndexSTUtoTRU()

TriggerMappingV2::IndexTRU TriggerMappingV2::convertTRUIndexSTUtoTRU ( IndexTRU  truIndexSTU,
DetType_t  detector 
) const

Convert the TRU index from the STU numbering scheme into the TRU numbering scheme.

Parameters
truIndexSTUTRU index im STU numbering scheme
detectorSubdetector type
Returns
TRU index in TRU numbering scheme
Exceptions
TRUIndexExceptionin case the TRU index exceeds the max. number of TRUs in the EMCAL/DCAL STU region

The index scheme in the STU definition uses separate ranges for EMCAL and DCAL, where the EMCAL contains 32 TRUs and the DCAL 14 TRUs. The index is converted into the TRU index scheme adding the TRU index in DCAL + the amount of virtual TRUs in the PHOS region (2 per sector) to the TRU index in EMCAL.

Definition at line 338 of file TriggerMappingV2.cxx.

◆ convertTRUIndexTRUtoSTU()

TriggerMappingV2::IndexTRU TriggerMappingV2::convertTRUIndexTRUtoSTU ( IndexTRU  truIndexTRU) const

Convert the TRU index from the TRU numbering scheme into the STU numbering scheme

Parameters
truIndexTRUTRU index im TRU numbering scheme
Returns
TRU index in TRU numbering scheme

The index scheme in TRU definintion consists of a linear list of TRU indices combining EMCAL and DCAL TRUs, togtehter with virtual TRUs in the PHOS region (2 per sector). The TRU index is spearated for TRUs in EMCAL and DCAL, in each side starting with 0. On the EMCAL side the TRU index is the same in both index schemes. On the DCAL side the virtual TRU index of the the PHOS region is dropped, therefore calling the function for TRU indices in the PHOS region leads to the TRU indices of the corresponding C-side TRUs in the same sector.

Definition at line 351 of file TriggerMappingV2.cxx.

◆ getAbsFastORIndexFromCellIndex()

TriggerMappingV2::IndexFastOR TriggerMappingV2::getAbsFastORIndexFromCellIndex ( IndexCell  cellIndex) const

Get the absolute FastOR index of the module containing a given cell.

Parameters
cellIndexIndex of the cell
Returns
Absolute index of the FastOR
Exceptions
GeometryNotSetExceptionin case the Geometry is not initialized
InvalidCellIDExceptionin case the cell ID is outside range

Definition at line 291 of file TriggerMappingV2.cxx.

◆ getAbsFastORIndexFromIndexInTRU()

TriggerMappingV2::IndexFastOR TriggerMappingV2::getAbsFastORIndexFromIndexInTRU ( IndexTRU  truIndex,
IndexFastOR  fastorIndexTRU 
) const

Get the absolute index of the FastOr from the index in the TRU.

Parameters
truIndexIndex of the TRU in the TRU numbering scheme
positionInTRUChannel index within the TRU
Returns
Absolute ID of the FastOR
Exceptions
TRUIndexExcepitonin case of invalid TRU index
FastORIndexExceptionin case of invalid position in TRU

Calculating the absolute ID of the FastOR which is a unique index of a FastOR. It is calcuated as phi + eta * NPhi, added to sum of FastORs in the TRUs with smaller TRU index.

Definition at line 163 of file TriggerMappingV2.cxx.

◆ getAbsFastORIndexFromPHOSSubregion()

TriggerMappingV2::IndexFastOR TriggerMappingV2::getAbsFastORIndexFromPHOSSubregion ( unsigned int  phosRegionID) const

Trigger mapping method, from position in PHOS Index sub region get FastOR index

Parameters
phosRegionIDIndes of the PHOS subregion
Returns
Virtual FastOR index for PHOS subregions
Exceptions
PHOSRegionException

Calculating the absolute ID of the PHOS subregions, which are treated in the indexing as if they were regular DCAL TRUs and FastORs.

Definition at line 242 of file TriggerMappingV2.cxx.

◆ getAbsFastORIndexFromPositionInEMCAL()

TriggerMappingV2::IndexFastOR TriggerMappingV2::getAbsFastORIndexFromPositionInEMCAL ( IndexColumnEta  etaColumn,
IndexRowPhi  phiRow 
) const

Get the absolute index of the FastOR from the geometric position in EMCAL.

Parameters
etaColumnPosition of the channel in eta direction
phiRowPosition of the channel in phi direction
Returns
Absoulte ID of the FastOR
Exceptions
FastORPositionExceptionEMCALin case the position is not a valid index within the EMCAL

Calculating the absolute ID of the FastOR which is a linear number scheme in eta and phi of the full EMCAL + DCAL surface defined as column + 48 * row. TRU index and FastOR index are based on the TRU numbering scheme.

Definition at line 229 of file TriggerMappingV2.cxx.

◆ getAbsFastORIndexFromPositionInSupermodule()

TriggerMappingV2::IndexFastOR TriggerMappingV2::getAbsFastORIndexFromPositionInSupermodule ( IndexSupermodule  supermoduleID,
IndexColumnEta  etaColumn,
IndexRowPhi  phiRow 
) const

Get the absolute index of the FastOr from the geometric position in the supermodule.

Parameters
supermoduleIDSupermodule index
etaColumnPosition of the channel in eta direction
phiRowPosition of the channel in phi direction
Returns
Absoulte ID of the FastOR
Exceptions
SupermoduleIndexExceptionin case the supermodule ID exceeds the number of supermodules
FastORPositionExceptionSupermodulein case the position is within the supermodule

Calculating the absolute ID of the FastOR which is a unique index of a FastOR. It is calcuated as phi + eta * NPhi, added to sum of FastORs in the TRUs with smaller TRU index.

Definition at line 207 of file TriggerMappingV2.cxx.

◆ getAbsFastORIndexFromPositionInTRU()

TriggerMappingV2::IndexFastOR TriggerMappingV2::getAbsFastORIndexFromPositionInTRU ( IndexTRU  truIndex,
IndexColumnEta  etaColumn,
IndexRowPhi  phiRow 
) const

Get the absolute index of the FastOr from geometric position in TRU.

Parameters
truIndexIndex of the TRU in the TRU numbering scheme
etaColumnPosition of the channel in eta direction
phiRowPosition of the channel in phi direction
Returns
Absolute ID of the FastOR
Exceptions
TRUIndexExceptionin case of invalid TRU indices

Calculating the absolute ID of the FastOR which is a unique index of a FastOR. It is calcuated as phi + eta * NPhi, added to sum of FastORs in the TRUs with smaller TRU index.

Definition at line 183 of file TriggerMappingV2.cxx.

◆ getArrayNFastORInSMEta()

const std::array< unsigned int, SUPERMODULES > & o2::emcal::TriggerMappingV2::getArrayNFastORInSMEta ( ) const
inline

Definition at line 357 of file TriggerMappingV2.h.

◆ getArrayNFastORInSMPhi()

const std::array< unsigned int, SUPERMODULES > & o2::emcal::TriggerMappingV2::getArrayNFastORInSMPhi ( ) const
inline

Definition at line 356 of file TriggerMappingV2.h.

◆ getArrayNModuleInEMCALPhi()

const std::array< unsigned int, 5 > & o2::emcal::TriggerMappingV2::getArrayNModuleInEMCALPhi ( ) const
inline

Definition at line 358 of file TriggerMappingV2.h.

◆ getArraySMFastOROffsetX()

const std::array< unsigned int, SUPERMODULES > & o2::emcal::TriggerMappingV2::getArraySMFastOROffsetX ( ) const
inline

Definition at line 354 of file TriggerMappingV2.h.

◆ getArraySMFastOROffsetY()

const std::array< unsigned int, SUPERMODULES > & o2::emcal::TriggerMappingV2::getArraySMFastOROffsetY ( ) const
inline

Definition at line 355 of file TriggerMappingV2.h.

◆ getArrayTRUFastOROffsetX()

const std::array< unsigned int, ALLTRUS > & o2::emcal::TriggerMappingV2::getArrayTRUFastOROffsetX ( ) const
inline

Definition at line 350 of file TriggerMappingV2.h.

◆ getCellIndexFromAbsFastORIndex()

std::array< TriggerMappingV2::IndexCell, 4 > TriggerMappingV2::getCellIndexFromAbsFastORIndex ( IndexFastOR  fastORAbsID) const

Get the indices of the cells in the module of a given FastOR.

Parameters
fastORAbsIDAbsolute index of the FastOR
Returns
Cell indices of the module (order: eta, phi)
Exceptions
GeometryNotSetExceptionin case the geometry is not initialized
FastORIndexExceptionin case the FastOR ID is invalid

Definition at line 314 of file TriggerMappingV2.cxx.

◆ getFastORIndexFromL0Index()

std::array< unsigned int, 4 > TriggerMappingV2::getFastORIndexFromL0Index ( IndexTRU  iTRU,
IndexFastOR  l0index,
int  size 
) const

Trigger mapping method, from L0 index get FastOR index

Parameters
iTRUTRU index
l0indexL0? index
idxindeces associated to FASTOR?
size?
Returns
true if found

Definition at line 410 of file TriggerMappingV2.cxx.

◆ getInfoFromAbsFastORIndex()

TriggerMappingV2::FastORInformation TriggerMappingV2::getInfoFromAbsFastORIndex ( IndexFastOR  absFastORID) const

Definition at line 440 of file TriggerMappingV2.cxx.

◆ getNFastORInTRUEta()

const std::array< unsigned int, ALLTRUS > & o2::emcal::TriggerMappingV2::getNFastORInTRUEta ( ) const
inline

Definition at line 353 of file TriggerMappingV2.h.

◆ getNFastORInTRUPhi()

const std::array< unsigned int, ALLTRUS > & o2::emcal::TriggerMappingV2::getNFastORInTRUPhi ( ) const
inline

Definition at line 352 of file TriggerMappingV2.h.

◆ getOnlineIndexFromTRUIndex()

IndexOnline o2::emcal::TriggerMappingV2::getOnlineIndexFromTRUIndex ( IndexTRU  truIndex) const
inline

Get the online index from the TRU index.

Returns
Online index (= TRU index)

Definition at line 311 of file TriggerMappingV2.h.

◆ getPositionInEMCALFromAbsFastORIndex()

std::tuple< TriggerMappingV2::IndexColumnEta, TriggerMappingV2::IndexRowPhi > TriggerMappingV2::getPositionInEMCALFromAbsFastORIndex ( IndexFastOR  fastORAbsID) const

Get the position in the Detector from the absolute FastOR ID.

Parameters
fastORAbsIDAbsolute ID of the FastOR
Returns
tuple with 0 - position in eta, 1 - position in phi
Exceptions
FastORIndexExceptionin case the FastOR index is not valid

Inverse mapping frunction calculating the position of a FastOR within the EMCAL+DCAL surface from the absolute FastOR ID.

Definition at line 279 of file TriggerMappingV2.cxx.

◆ getPositionInSupermoduleFromAbsFastORIndex()

std::tuple< TriggerMappingV2::IndexSupermodule, TriggerMappingV2::IndexColumnEta, TriggerMappingV2::IndexRowPhi > TriggerMappingV2::getPositionInSupermoduleFromAbsFastORIndex ( IndexFastOR  fastORAbsID) const

Get the position inside the supermodule from the absolute FastOR ID.

Parameters
fastORAbsIDAbsolute ID of the FastOR
Returns
tuple with 0 - Supermodule ID, 1 - position in eta, 2 - position in phi
Exceptions
FastORIndexExceptionin case the FastOR index is not valid

Inverse mapping function calculating the postion within a supermodule of a FastOR and its corresponding supermodule ID from the absolute FastOR ID

Definition at line 271 of file TriggerMappingV2.cxx.

◆ getPositionInTRUFromAbsFastORIndex()

std::tuple< TriggerMappingV2::IndexTRU, TriggerMappingV2::IndexColumnEta, TriggerMappingV2::IndexRowPhi > TriggerMappingV2::getPositionInTRUFromAbsFastORIndex ( IndexFastOR  fastORAbsID) const

Get the position of a FastOR inside the TRU from the absolute FastOR ID.

Parameters
fastORAbsIDAbsolute ID of the FastOR
Returns
tuple with 0 - TRU index in the TRU index scheme, 1 - Position in eta within TRU, 2 - position in phi within TRU
Exceptions
FastORIndexExceptionin case the FastOR index is not valid

Inverse mapping function calculating the position within a TRU of a FastOR and its corresponding TRU from the absolute FastOR ID.

Definition at line 262 of file TriggerMappingV2.cxx.

◆ getTRUFastOROffsetY()

const std::array< unsigned int, ALLTRUS > & o2::emcal::TriggerMappingV2::getTRUFastOROffsetY ( ) const
inline

Definition at line 351 of file TriggerMappingV2.h.

◆ getTRUFromAbsFastORIndex()

std::tuple< TriggerMappingV2::IndexTRU, TriggerMappingV2::IndexFastOR > TriggerMappingV2::getTRUFromAbsFastORIndex ( IndexFastOR  fastOrAbsID) const

Get the TRU index and FastOR index in TRU from the absolute FastOR ID.

Parameters
fastOrAbsIDAbsoulte ID of the FastOR
Returns
tuple with 0 - TRU index in the TRU numbering scheme, 1 - FastOR index in TRU
Exceptions
FastORIndexExceptionin case the FastOR index is not valid

Inverse mapping function calculating back the index of the FastOR inside a TRU and its corresponding TRU from the absolute FastOR ID

Definition at line 254 of file TriggerMappingV2.cxx.

◆ getTRUIndexFromOnlineHardareAddree()

TriggerMappingV2::IndexTRU TriggerMappingV2::getTRUIndexFromOnlineHardareAddree ( int  hardwareAddress,
unsigned int  ddlID,
unsigned int  supermoduleID 
) const

Get the TRU Index from the hardware address of the ALTRO channel (TRU rawdata)

Parameters
hardwareAddresshardware address
ddlIDID of the DDL of the ALTRO channel
supermoduleIDuper-module number
Returns
TRU global offline number from:
Exceptions
TRUIndexExceptionin case the TRU index is out-of-range

Definition at line 372 of file TriggerMappingV2.cxx.

◆ getTRUIndexFromOnlineIndex()

IndexTRU o2::emcal::TriggerMappingV2::getTRUIndexFromOnlineIndex ( IndexOnline  onlineIndex) const
inlinenoexcept

Get the TRU index from the online index.

Returns
TRU index (= online index)

Definition at line 307 of file TriggerMappingV2.h.

Member Data Documentation

◆ ALLFASTORS

constexpr unsigned int o2::emcal::TriggerMappingV2::ALLFASTORS = FASTORSETA * FASTORSPHI
staticconstexpr

Number of FastOR/EMCALs.

Definition at line 51 of file TriggerMappingV2.h.

◆ ALLTRUS

constexpr unsigned int o2::emcal::TriggerMappingV2::ALLTRUS = 52
staticconstexpr

Total number of TRUs in EMCAL.

Definition at line 39 of file TriggerMappingV2.h.

◆ FASTORSETA

constexpr unsigned int o2::emcal::TriggerMappingV2::FASTORSETA = 2 * FASTORSETASM
staticconstexpr

EMCAL+DCAL region eta size.

Definition at line 48 of file TriggerMappingV2.h.

◆ FASTORSETASM

constexpr unsigned int o2::emcal::TriggerMappingV2::FASTORSETASM = FASTORSETATRU * TRUSETASM
staticconstexpr

Number of FastOR/SM in Eta.

Definition at line 46 of file TriggerMappingV2.h.

◆ FASTORSETATRU

constexpr unsigned int o2::emcal::TriggerMappingV2::FASTORSETATRU = 8
staticconstexpr

Number of FastOR/TRU in Eta.

Definition at line 40 of file TriggerMappingV2.h.

◆ FASTORSPHI

constexpr unsigned int o2::emcal::TriggerMappingV2::FASTORSPHI
staticconstexpr
Initial value:
= (5 * FASTORSPHISM) + (1 * FASTORSPHISM / 3)
+ (3 * FASTORSPHISM) + (1 * FASTORSPHISM / 3)
static constexpr unsigned int FASTORSPHISM
Number of FastOR/SM in Phi.

Number of FastOR/EMCALs in Phi.

Definition at line 49 of file TriggerMappingV2.h.

◆ FASTORSPHISM

constexpr unsigned int o2::emcal::TriggerMappingV2::FASTORSPHISM = FASTORSPHITRU * TRUSPHISM
staticconstexpr

Number of FastOR/SM in Phi.

Definition at line 47 of file TriggerMappingV2.h.

◆ FASTORSPHITRU

constexpr unsigned int o2::emcal::TriggerMappingV2::FASTORSPHITRU = 12
staticconstexpr

Number of FastOR/TRU in Phi.

Definition at line 41 of file TriggerMappingV2.h.

◆ FASTORSTRU

constexpr unsigned int o2::emcal::TriggerMappingV2::FASTORSTRU = FASTORSETATRU * FASTORSPHITRU
staticconstexpr

Number of FastOR/TRU.

Definition at line 42 of file TriggerMappingV2.h.

◆ PATCHESINTRU

constexpr unsigned int o2::emcal::TriggerMappingV2::PATCHESINTRU = 77
staticconstexpr

Definition at line 52 of file TriggerMappingV2.h.

◆ SUPERMODULES

constexpr unsigned int o2::emcal::TriggerMappingV2::SUPERMODULES = 20
staticconstexpr

Total number of supermodules in EMCAL.

Definition at line 38 of file TriggerMappingV2.h.

◆ TRUSETASM

constexpr unsigned int o2::emcal::TriggerMappingV2::TRUSETASM = 3
staticconstexpr

Number of TRUs/SM in Eta.

Definition at line 43 of file TriggerMappingV2.h.

◆ TRUSPHISM

constexpr unsigned int o2::emcal::TriggerMappingV2::TRUSPHISM = 1
staticconstexpr

Number of TRUs/SM in Phi.

Definition at line 44 of file TriggerMappingV2.h.

◆ TRUSSUPERMODULE

constexpr unsigned int o2::emcal::TriggerMappingV2::TRUSSUPERMODULE = TRUSETASM * TRUSPHISM
staticconstexpr

Number of TRUs/SM.

Definition at line 45 of file TriggerMappingV2.h.


The documentation for this class was generated from the following files: