|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef CALOIDENTIFIER_TTONLINEID_H
6 #define CALOIDENTIFIER_TTONLINEID_H
9 #include "GaudiKernel/MsgStream.h"
56 std::vector<HWIdentifier>::const_iterator
crate_begin(
void)
const;
57 std::vector<HWIdentifier>::const_iterator
crate_end(
void)
const;
69 std::vector<HWIdentifier>::const_iterator
module_begin(
void)
const;
70 std::vector<HWIdentifier>::const_iterator
module_end(
void)
const;
83 std::vector<HWIdentifier>::const_iterator
submodule_end(
void)
const;
95 std::vector<HWIdentifier>::const_iterator
channel_begin(
void)
const;
96 std::vector<HWIdentifier>::const_iterator
channel_end(
void)
const;
224 m_calo_impl.pack (10 ,
result);
225 m_calo_detzside_impl.pack (0 ,
result);
226 m_crate_impl.pack (crate ,
result);
230 crate_Id_checks( crate );
243 return(m_crate_vec[cratehash_id]);
275 m_calo_impl.pack (10 ,
result);
276 m_calo_detzside_impl.pack (0 ,
result);
277 m_crate_impl.pack (crate ,
result);
282 module_Id_checks( crate,
module );
296 return(m_module_vec[modulehash_id]);
329 m_calo_impl.pack (10 ,
result);
330 m_calo_detzside_impl.pack (0 ,
result);
331 m_crate_impl.pack (crate ,
result);
333 m_submodule_impl.pack (submodule ,
result);
337 submodule_Id_checks( crate,
module, submodule );
351 return(m_submodule_vec[submodulehash_id]);
384 m_calo_impl.pack (10 ,
result);
385 m_calo_detzside_impl.pack (0 ,
result);
386 m_crate_impl.pack (crate ,
result);
388 m_submodule_impl.pack (submodule ,
result);
407 return(m_channel_vec[channelhash_id]);
438 return m_crateHashMax;
444 return m_moduleHashMax;
450 return m_submoduleHashMax;
456 return m_channelHashMax;
462 return (m_crate_impl.unpack(
id));
468 return (m_module_impl.unpack(
id));
474 return (m_submodule_impl.unpack(
id));
480 return (m_channel_impl.unpack(
id));
488 #endif // TTOnlineID_H
IdDictFieldImplementation m_channel_impl
int channel(const HWIdentifier id) const
IdDictFieldImplementation m_calo_detzside_impl
std::vector< HWIdentifier >::const_iterator crate_begin(void) const
(4) iterator over towerId
std::vector< HWIdentifier > m_submodule_vec
void crate_Id_checks(int crate) const
size_type moduleHashMax(void) const
Helper class for Calo TT online identifiers.
size_type m_submodule_index
IdentifierHash crateHash(HWIdentifier crate_id) const
(3) create towerId from hash
size_type m_l1online_regions_index
MultiRange m_full_channel_range
size_type crateHashMax(void) const
IdContext submoduleContext(void) const
std::vector< HWIdentifier >::const_iterator submodule_end(void) const
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr)
Initialization from the identifier dictionary.
bool const RAWDATA *ch2 const
IdDictFieldImplementation m_module_impl
IdentifierHash moduleHash(HWIdentifier crate_id) const
(3) create towerId from hash
int m_iDetZSideFieldValue
HWIdentifier moduleId(int crate, int module) const
(1) create towerId from fields
IdentifierHash channelHash(HWIdentifier crate_id) const
(3) create towerId from hash
IdentifierHash submoduleHash(HWIdentifier crate_id) const
(3) create towerId from hash
Identifier::size_type size_type
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
std::vector< HWIdentifier >::const_iterator module_begin(void) const
(4) iterator over towerId
std::vector< HWIdentifier > m_module_vec
int module(const HWIdentifier id) const
HWIdentifier submoduleId(int crate, int module, int submodule) const
(1) create towerId from fields
std::vector< HWIdentifier >::const_iterator channel_begin(void) const
(4) iterator over towerId
size_type m_detzside_index
size_type m_submoduleHashMax
int detzside_field_value() const
return the value of the detzside field (initialized in initialize_from_dictionary())
std::vector< HWIdentifier >::const_iterator submodule_begin(void) const
(4) iterator over towerId
size_type submoduleHashMax(void) const
IdContext channelContext(void) const
std::vector< HashCalc > m_hash_calcs
std::vector< HWIdentifier >::const_iterator channel_end(void) const
void channel_Id_checks(int crate, int module, int submodule, int channel) const
size_type m_moduleHashMax
IdentifierHash channel_hash_binary_search(HWIdentifier channelId) const
IdDictFieldImplementation m_crate_impl
MultiRange m_full_module_range
size_type m_calo_index
Member Data index.
A MultiRange combines several Ranges.
std::vector< HWIdentifier >::const_iterator module_end(void) const
IdDictFieldImplementation m_submodule_impl
IdDictFieldImplementation m_calo_impl
Field Implementation.
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
small class holding the starting hash value, the min eta and the number of phi bins of each region ...
int get_expanded_id(const HWIdentifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
create expanded HWIdentifier from HWIdentifier (return == 0 for OK)
IdContext moduleContext(void) const
void submodule_Id_checks(int crate, int module, int submodule) const
MultiRange m_full_crate_range
int submodule(const HWIdentifier id) const
size_type m_channel_index
int initLevelsFromDict(void)
init() hashes
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
HWIdentifier crateId(int crate) const
(1) create towerId from fields
HWIdentifier channelId(int crate, int module, int submodule, int channel) const
(1) create towerId from fields
size_type channelHashMax(void) const
IdContext crateContext(void) const
context for feedthroughs, feb & channels
const IdDictDictionary * m_dict
unsigned long long size_type
IdDictFieldImplementation is used to capture the specification of a single field of an Identifier.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
std::vector< HWIdentifier >::const_iterator crate_end(void) const
std::vector< HWIdentifier > m_crate_vec
size_type m_channelHashMax
int crate(const HWIdentifier id) const
void module_Id_checks(int crate, int module) const
virtual bool do_checks(void) const override
Checks are performed by default in debug compilation and NOT in optimized compilation.
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
macros to associate a CLID to a type
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
MultiRange m_full_submodule_range
std::vector< HWIdentifier > m_channel_vec