ATLAS Offline Software
Loading...
Searching...
No Matches
CaloSuperCellIDTool Class Reference

#include <CaloSuperCellIDTool.h>

Inheritance diagram for CaloSuperCellIDTool:
Collaboration diagram for CaloSuperCellIDTool:

Classes

struct  IDMapElt
 Mapping table entry. More...

Public Member Functions

 CaloSuperCellIDTool (const std::string &type, const std::string &name, const IInterface *parent)
 Standard Gaudi tool constructor.
virtual StatusCode initialize ()
 Standard Gaudi initialize method.
virtual Identifier offlineToSuperCellID (const Identifier &id) const
 Given an offline cell identifier, return the corresponding supercell identifier.
virtual std::vector< IdentifiersuperCellToOfflineID (const Identifier &id) const
 Given a supercell identifier, return the list of corresponding offline cell identifiers.
virtual std::vector< IdentifierofflineToSuperCellRegion (const Identifier &reg_id) const
 Given an offline region identifier, return the corresponding supercell region identifier(s).
virtual std::vector< IdentifiersuperCellToOfflineRegion (const Identifier &reg_id) const
 Given a supercell region identifier, return the corresponding offline region identifier(s).

Private Member Functions

void initFCALIDMap ()
 FCAL is a special case.
void initIDMap ()
 Initialize the mapping table.
void addMapEntry (const IDMapElt &elt)
 Add an entry to the region mapping table.

Private Attributes

std::vector< IDMapEltm_idmap
 List of mapping table entries.
std::vector< int > m_offlineIndex
 Entry I contains the index in the mapping table of the first entry for the offline region with hash I, or -1 if there is no mapping entry.
std::vector< int > m_superCellIndex
 Entry I contains the index in the mapping table of the first entry for the supercell region with hash I, or -1 if there is no mapping entry.
std::vector< int > m_superCellIndexEnd
 Entry I contains one past the index in the mapping table of the last entry for the supercell region with hash I, or -1 if there is no mapping entry.
std::vector< Identifierm_fcal_fromCell
 hashTable for FCAL
std::vector< std::vector< Identifier > > m_fcal_fromSuperCell
const CaloCell_IDm_cell_helper
 Entry point for calorimeter ID helpers.
const CaloCell_SuperCell_IDm_sc_helper

Detailed Description

Definition at line 29 of file CaloSuperCellIDTool.h.

Constructor & Destructor Documentation

◆ CaloSuperCellIDTool()

CaloSuperCellIDTool::CaloSuperCellIDTool ( const std::string & type,
const std::string & name,
const IInterface * parent )

Standard Gaudi tool constructor.

Parameters
typeThe name of the tool type.
nameThe tool name.
parentThe tool's Gaudi parent.

Definition at line 52 of file CaloSuperCellIDTool.cxx.

Member Function Documentation

◆ addMapEntry()

void CaloSuperCellIDTool::addMapEntry ( const IDMapElt & elt)
private

Add an entry to the region mapping table.

Helper to add an entry to the region mapping table.

Definition at line 230 of file CaloSuperCellIDTool.cxx.

◆ initFCALIDMap()

void CaloSuperCellIDTool::initFCALIDMap ( )
private

FCAL is a special case.

Definition at line 249 of file CaloSuperCellIDTool.cxx.

◆ initialize()

StatusCode CaloSuperCellIDTool::initialize ( )
virtual

Standard Gaudi initialize method.

Definition at line 65 of file CaloSuperCellIDTool.cxx.

◆ initIDMap()

void CaloSuperCellIDTool::initIDMap ( )
private

Initialize the mapping table.

Definition at line 80 of file CaloSuperCellIDTool.cxx.

◆ offlineToSuperCellID()

Identifier CaloSuperCellIDTool::offlineToSuperCellID ( const Identifier & id) const
virtual

Given an offline cell identifier, return the corresponding supercell identifier.

If none exists, an invalid identifier is returned.

Definition at line 312 of file CaloSuperCellIDTool.cxx.

◆ offlineToSuperCellRegion()

std::vector< Identifier > CaloSuperCellIDTool::offlineToSuperCellRegion ( const Identifier & reg_id) const
virtual

Given an offline region identifier, return the corresponding supercell region identifier(s).

There will normally be only one, but it's possible for there to be multiple matches. If none exists, an invalid identifier is returned.

Definition at line 511 of file CaloSuperCellIDTool.cxx.

◆ superCellToOfflineID()

std::vector< Identifier > CaloSuperCellIDTool::superCellToOfflineID ( const Identifier & id) const
virtual

Given a supercell identifier, return the list of corresponding offline cell identifiers.

Definition at line 406 of file CaloSuperCellIDTool.cxx.

◆ superCellToOfflineRegion()

std::vector< Identifier > CaloSuperCellIDTool::superCellToOfflineRegion ( const Identifier & reg_id) const
virtual

Given a supercell region identifier, return the corresponding offline region identifier(s).

There will normally be only one, but it's possible for there to be multiple matches. If none exists, an invalid identifier is returned.

Definition at line 539 of file CaloSuperCellIDTool.cxx.

Member Data Documentation

◆ m_cell_helper

const CaloCell_ID* CaloSuperCellIDTool::m_cell_helper
private

Entry point for calorimeter ID helpers.

Definition at line 158 of file CaloSuperCellIDTool.h.

◆ m_fcal_fromCell

std::vector<Identifier> CaloSuperCellIDTool::m_fcal_fromCell
private

hashTable for FCAL

Definition at line 154 of file CaloSuperCellIDTool.h.

◆ m_fcal_fromSuperCell

std::vector< std::vector<Identifier> > CaloSuperCellIDTool::m_fcal_fromSuperCell
private

Definition at line 155 of file CaloSuperCellIDTool.h.

◆ m_idmap

std::vector<IDMapElt> CaloSuperCellIDTool::m_idmap
private

List of mapping table entries.

Definition at line 138 of file CaloSuperCellIDTool.h.

◆ m_offlineIndex

std::vector<int> CaloSuperCellIDTool::m_offlineIndex
private

Entry I contains the index in the mapping table of the first entry for the offline region with hash I, or -1 if there is no mapping entry.

Definition at line 142 of file CaloSuperCellIDTool.h.

◆ m_sc_helper

const CaloCell_SuperCell_ID* CaloSuperCellIDTool::m_sc_helper
private

Definition at line 159 of file CaloSuperCellIDTool.h.

◆ m_superCellIndex

std::vector<int> CaloSuperCellIDTool::m_superCellIndex
private

Entry I contains the index in the mapping table of the first entry for the supercell region with hash I, or -1 if there is no mapping entry.

Definition at line 146 of file CaloSuperCellIDTool.h.

◆ m_superCellIndexEnd

std::vector<int> CaloSuperCellIDTool::m_superCellIndexEnd
private

Entry I contains one past the index in the mapping table of the last entry for the supercell region with hash I, or -1 if there is no mapping entry.

Definition at line 151 of file CaloSuperCellIDTool.h.


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