ATLAS Offline Software
Loading...
Searching...
No Matches
LArOnOffIdMapping.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
5
7
8 m_onlineId(onlineId),
9 m_caloId(caloId)
10
11{
12 unsigned nChan=m_onlineId->channelHashMax();
13 m_onlHashToOffline.assign(nChan,m_idEmpty);
14 m_oflHashToOnline.assign(nChan,m_hwidEmpty);
15 m_onlHashToOflHash.assign(nChan,1+caloId->calo_cell_hash_max());
16}
17
18
Helper base class for offline cell identifiers.
size_type calo_cell_hash_max() const
cell 'global' hash table max size
const LArOnlineID_Base * m_onlineId
std::vector< Identifier > m_onlHashToOffline
const CaloCell_Base_ID * m_caloId
const Identifier m_idEmpty
Invalid default instance of Identifier.
std::vector< HWIdentifier > m_oflHashToOnline
const HWIdentifier m_hwidEmpty
Invalid default instance of HWIdentifier.
LArOnOffIdMapping()=delete
std::vector< IdentifierHash > m_onlHashToOflHash
Helper for the Liquid Argon Calorimeter cell identifiers.