ATLAS Offline Software
|
Helper class to handle z-phi symmetry of calibration constants in MC. More...
#include <LArMCSym.h>
Public Member Functions | |
LArMCSym ()=delete | |
LArMCSym (const LArOnlineID *onlId, const CaloCell_ID *caloId, std::vector< HWIdentifier > &&oflHashtoSymOnl, std::vector< HWIdentifier > &&onlHashtoSymOnl, std::vector< HWIdentifier > &&symIds) | |
Constructor. More... | |
HWIdentifier | ZPhiSymOfl (const Identifier notSymOffId) const |
Find the symmetric HWID for an offline cell identifier. More... | |
HWIdentifier | ZPhiSymOfl (const IdentifierHash notSymOffHash) const |
Find the symmetric HWID for an offline cell hash. More... | |
size_t | ZPhiSymOflIndex (const Identifier notSymOffId) const |
Find the index in symIds() of the symmetric HWID for an offline cell identifier. More... | |
size_t | ZPhiSymOflIndex (const IdentifierHash notSymOffHash) const |
Find the index in symIds() of the symmetric HWID for an offline cell hash. More... | |
HWIdentifier | ZPhiSymOnl (const HWIdentifier notSymOnlId) const |
Find the symmetric HWID for an online channel identifier. More... | |
HWIdentifier | ZPhiSymOnl (const IdentifierHash notSymOnlHash) const |
Find the symmetric HWID for an online channel hash. More... | |
size_t | ZPhiSymOnlIndex (const HWIdentifier notSymOnlId) const |
Find the index in symIds() of the symmetric HWID for an online channel identifier. More... | |
size_t | ZPhiSymOnlIndex (const IdentifierHash notSymOnlHash) const |
Find the index in symIds() of the symmetric HWID for an online channel hash. More... | |
const std::vector< HWIdentifier > & | symIds () const |
Return the list of symmetric hashes. More... | |
std::pair< size_t, size_t > | hashMax () const |
Return the hash-max as pair<onlHashMax,oflHashMax> More... | |
Static Public Attributes | |
static constexpr size_t | NO_INDEX = static_cast<size_t> (-1) |
Return for an index if there's no valid symmetric identifier. More... | |
Private Types | |
typedef std::pair< Identifier32::value_type, uint32_t > | IdPair_t |
Private Member Functions | |
std::vector< IdPair_t > | initIndices (const std::vector< HWIdentifier > &ids, const std::vector< HWIdentifier > &symIds) const |
Private Attributes | |
const LArOnlineID * | m_onlineID |
const CaloCell_ID * | m_caloCellID |
const std::vector< IdPair_t > | m_oflHashtoSymOnl |
const std::vector< IdPair_t > | m_onlHashtoSymOnl |
const std::vector< HWIdentifier > | m_symIds |
Helper class to handle z-phi symmetry of calibration constants in MC.
Definition at line 18 of file LArMCSym.h.
|
private |
Definition at line 146 of file LArMCSym.h.
|
delete |
LArMCSym::LArMCSym | ( | const LArOnlineID * | onlId, |
const CaloCell_ID * | caloId, | ||
std::vector< HWIdentifier > && | oflHashtoSymOnl, | ||
std::vector< HWIdentifier > && | onlHashtoSymOnl, | ||
std::vector< HWIdentifier > && | symIds | ||
) |
Constructor.
onlId Online ID helper.
caloId Offline ID helper.
oflHashtoSymOnl Symmetric HWID corresponding to each offline hash.
onlHashtoSymOnl Symmetric HWID corresponding to each online hash.
symIds List of all symmetric HWIDs. MUST BE SORTED.
Definition at line 18 of file LArMCSym.cxx.
|
inline |
Return the hash-max as pair<onlHashMax,oflHashMax>
Definition at line 139 of file LArMCSym.h.
|
private |
Definition at line 33 of file LArMCSym.cxx.
|
inline |
Return the list of symmetric hashes.
Definition at line 132 of file LArMCSym.h.
|
inline |
Find the symmetric HWID for an offline cell identifier.
May return an invalid identifier.
Definition at line 48 of file LArMCSym.h.
|
inline |
Find the symmetric HWID for an offline cell hash.
May return an invalid identifier.
Definition at line 59 of file LArMCSym.h.
|
inline |
Find the index in symIds() of the symmetric HWID for an offline cell identifier.
Returns NO_INDEX if no symmetric identifier is defined.
Definition at line 70 of file LArMCSym.h.
|
inline |
Find the index in symIds() of the symmetric HWID for an offline cell hash.
Returns NO_INDEX if no symmetric identifier is defined.
Definition at line 81 of file LArMCSym.h.
|
inline |
Find the symmetric HWID for an online channel identifier.
May return an invalid identifier.
Definition at line 91 of file LArMCSym.h.
|
inline |
Find the symmetric HWID for an online channel hash.
May return an invalid identifier.
Definition at line 101 of file LArMCSym.h.
|
inline |
Find the index in symIds() of the symmetric HWID for an online channel identifier.
Returns NO_INDEX if no symmetric identifier is defined.
Definition at line 112 of file LArMCSym.h.
|
inline |
Find the index in symIds() of the symmetric HWID for an online channel hash.
Returns NO_INDEX if no symmetric identifier is defined.
Definition at line 123 of file LArMCSym.h.
|
private |
Definition at line 153 of file LArMCSym.h.
Definition at line 154 of file LArMCSym.h.
Definition at line 155 of file LArMCSym.h.
|
private |
Definition at line 152 of file LArMCSym.h.
|
private |
Definition at line 156 of file LArMCSym.h.
|
staticconstexpr |
Return for an index if there's no valid symmetric identifier.
Definition at line 41 of file LArMCSym.h.