![]() |
ATLAS Offline Software
|
#include <CaloSuperCellIDTool.h>
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< Identifier > | superCellToOfflineID (const Identifier &id) const |
| Given a supercell identifier, return the list of corresponding offline cell identifiers. | |
| virtual std::vector< Identifier > | offlineToSuperCellRegion (const Identifier ®_id) const |
| Given an offline region identifier, return the corresponding supercell region identifier(s). | |
| virtual std::vector< Identifier > | superCellToOfflineRegion (const Identifier ®_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< IDMapElt > | m_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< Identifier > | m_fcal_fromCell |
| hashTable for FCAL | |
| std::vector< std::vector< Identifier > > | m_fcal_fromSuperCell |
| const CaloCell_ID * | m_cell_helper |
| Entry point for calorimeter ID helpers. | |
| const CaloCell_SuperCell_ID * | m_sc_helper |
Definition at line 29 of file CaloSuperCellIDTool.h.
| CaloSuperCellIDTool::CaloSuperCellIDTool | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Standard Gaudi tool constructor.
| type | The name of the tool type. |
| name | The tool name. |
| parent | The tool's Gaudi parent. |
Definition at line 52 of file CaloSuperCellIDTool.cxx.
|
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.
|
private |
FCAL is a special case.
Definition at line 249 of file CaloSuperCellIDTool.cxx.
|
virtual |
Standard Gaudi initialize method.
Definition at line 65 of file CaloSuperCellIDTool.cxx.
|
private |
Initialize the mapping table.
Definition at line 80 of file CaloSuperCellIDTool.cxx.
|
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.
|
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.
|
virtual |
Given a supercell identifier, return the list of corresponding offline cell identifiers.
Definition at line 406 of file CaloSuperCellIDTool.cxx.
|
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.
|
private |
Entry point for calorimeter ID helpers.
Definition at line 158 of file CaloSuperCellIDTool.h.
|
private |
hashTable for FCAL
Definition at line 154 of file CaloSuperCellIDTool.h.
|
private |
Definition at line 155 of file CaloSuperCellIDTool.h.
|
private |
List of mapping table entries.
Definition at line 138 of file CaloSuperCellIDTool.h.
|
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.
|
private |
Definition at line 159 of file CaloSuperCellIDTool.h.
|
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.
|
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.