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

Handler providing the correct mapping for the given DDL. More...

#include <Mapper.h>

Classes

class  DDLInvalid
 Error handling for invalid DDL IDs (not in range for EMCAL) More...
 

Public Member Functions

 MappingHandler ()
 Constructor.
 
 ~MappingHandler ()=default
 Destructor.
 
MappergetMappingForDDL (unsigned int ddl)
 Get Mapping for given DDL.
 
int getFEEForChannelInDDL (unsigned int dll, unsigned int channelFEC, unsigned int branch)
 Get FEC index for channel based on DDL and information in the channel header.
 

Detailed Description

Handler providing the correct mapping for the given DDL.

EMCAL channel mapping consists of 4 mappings, organized in

  • A- and C-side
  • First or second DDL within the supermodule The mapping handler provides user-friendly access to the correct mapping for a given DDL automatically determining the proper mapping data based on side and DDL in supermodule calculated from the DDL ID

Definition at line 312 of file Mapper.h.

Constructor & Destructor Documentation

◆ MappingHandler()

MappingHandler::MappingHandler ( )

Constructor.

Definition at line 101 of file Mapper.cxx.

◆ ~MappingHandler()

o2::emcal::MappingHandler::~MappingHandler ( )
default

Destructor.

Member Function Documentation

◆ getFEEForChannelInDDL()

int MappingHandler::getFEEForChannelInDDL ( unsigned int  dll,
unsigned int  channelFEC,
unsigned int  branch 
)

Get FEC index for channel based on DDL and information in the channel header.

Parameters
ddlAbsolute DDL index
channelFECFEC index in channel header
branchBranch index (0 or 1) in DDL

Definition at line 128 of file Mapper.cxx.

◆ getMappingForDDL()

Mapper & MappingHandler::getMappingForDDL ( unsigned int  ddl)

Get Mapping for given DDL.

Parameters
ddlID of the DDL for which to get the mapping
Returns
Mapping for the DDL (if valid)
Exceptions
DDLInvalidif DDL is invalid for EMCAL

Definition at line 112 of file Mapper.cxx.


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