|
ATLAS Offline Software
|
Go to the documentation of this file.
18 #ifndef TILEIDENTIFIER_TILEHWID_H
19 #define TILEIDENTIFIER_TILEHWID_H
285 std::vector<HWIdentifier>::const_iterator
ros_end (
void)
const {
return(
m_ros_vec.end()); }
312 std::vector<HWIdentifier>::const_iterator
adc_end (
void)
const {
return(
m_adc_vec.end()); }
338 unsigned int hash_max, std::vector<HWIdentifier> &
vec);
378 #endif // TILEIDENTIFIER_TILEHWID_H
HWIdentifier ros_id(int ros) const
ROS HWIdentifer.
int frag(int ros, int drawer) const
make frag from ROS and drawer
virtual int get_id(const IdentifierHash &hash_id, HWIdentifier &id, const IdContext *context=0) const
create compact HW ID from hash id (return == 0 for OK)
std::vector< HWIdentifier >::const_iterator ros_begin(void) const
begin iterator for ROS Identifiers
std::vector< HWIdentifier >::const_iterator ros_end(void) const
end iterator for ROS Identifiers
int fill_vec(std::set< HWIdentifier > &ids, unsigned int hash_max, std::vector< HWIdentifier > &vec)
bool is_low_gain(const HWIdentifier &id) const
Test ID for low gain.
IdDictFieldImplementation m_section_impl
std::vector< HWIdentifier > m_ros_vec
IdContext channel_context(void) const
idContext for channels
bool is_tilehw(const HWIdentifier &id) const
Test ID for Tile online ID.
TileHWID(void)
Default constructor.
value_type get_compact() const
Get the compact id.
SECTION
Identifier numbering.
std::vector< HWIdentifier >::const_iterator adc_begin(void) const
begin iterator for ADC Identifiers
IdDictFieldImplementation m_channel_impl
int frag(const HWIdentifier &id) const
extract frag field from HW identifier
size_type drawer_hash_max(void) const
drawer hash table max size
HWIdentifier tilehw_id(void) const
online identifer for whole Tile
std::vector< size_t > vec
size_type m_SECTION_INDEX
IdContext drawer_context(void) const
idContext for drawers
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr)
initialization from the identifier dictionary
int unpack(Identifier id) const
Identifier manipulation methods.
int channel(const HWIdentifier &id) const
extract channel field from HW identifier
IdDictFieldImplementation m_ros_impl
int ros(const HWIdentifier &id) const
extract ros field from HW identifier
std::vector< HWIdentifier >::const_iterator channel_end(void) const
end iterator for channel Identifiers
std::vector< HWIdentifier > m_adc_vec
Identifier::size_type size_type
Helper class for TileCal online (hardware) identifiers.
IdDictFieldImplementation m_adc_impl
int adc(const HWIdentifier &id) const
extract adc field from HW identifier
std::vector< HWIdentifier >::const_iterator channel_begin(void) const
begin iterator for channel Identifiers
int system(const HWIdentifier &id) const
extract system field from HW identifier
size_type ros_hash_max(void) const
ROS hash table max size.
virtual int get_hash(const Identifier &id, IdentifierHash &hash_id, const IdContext *context=0) const
create hash id from compact id (return == 0 for OK)
int section(const HWIdentifier &id) const
extract section field from HW identifier
size_type m_channel_hash_max
virtual IdentifierHash get_hash(const HWIdentifier &id) const
create hash id from compact ADC id without error checking
Identifier::size_type size_type
std::vector< HWIdentifier >::const_iterator drawer_begin(void) const
begin iterator for drawer Identifiers
HWIdentifier channel_id(IdentifierHash hash_id) const
create channel ID from channel hash ID
virtual int get_id(const IdentifierHash &hash_id, Identifier &id, const IdContext *context=0) const
create compact ID from hash id (return == 0 for OK)
virtual IdentifierHash get_channel_hash(const HWIdentifier &id) const
create hash id from compact Channel id
size_type adc_hash_max(void) const
ADC hash table max size.
size_type m_CHANNEL_INDEX
size_type m_tile_region_index
HWIdentifier m_base_tile_ros
virtual ~TileHWID()
Default destructor.
HWIdentifier adc_id(IdentifierHash hash_id, int adc) const
create adc ID from channel hash ID
MultiRange m_full_channel_range
A MultiRange combines several Ranges.
HWIdentifier drawer_id(int frag) const
ROS HWIdentifer.
int get_field(const HWIdentifier &id, size_type index) const
unpack one field from Identifier
int drawerIdx(const HWIdentifier &id) const
construct drawer index from HW identifier
HWIdentifier channel_id(int ros, int drawer, int channel) const
channel HWIdentifer
MultiRange m_full_ros_range
MultiRange m_full_drawer_range
IdContext ros_context(void) const
access to IdContext's which define which levels of fields are contained in the id
IdContext adc_context(void) const
idContext for ADCs
HWIdentifier adc_id(int ros, int drawer, int channel, int adc) const
adc HWIdentifer
size_type channel_hash_max(void) const
channel hash table max size
int drawer(const HWIdentifier &id) const
extract drawer field from HW identifier
int initLevelsFromDict(void)
IdDictFieldImplementation m_system_impl
const IdDictDictionary * m_dict
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
std::vector< HWIdentifier > m_channel_vec
int get_expanded_id(const HWIdentifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
create expanded Identifier from Identifier (return == 0 for OK)
bool is_high_gain(const HWIdentifier &id) const
Test ID for high gain.
std::vector< HWIdentifier >::const_iterator drawer_end(void) const
end iterator for drawer Identifiers
MultiRange m_full_adc_range
std::string to_string(const HWIdentifier &id, int level=0) const
extract all fields from HW identifier HWIdentifier get_all_fields ( const HWIdentifier & id,...
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 > m_drawer_vec
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
size_type m_drawer_hash_max
IdDictFieldImplementation m_drawer_impl
std::vector< HWIdentifier >::const_iterator adc_end(void) const
end iterator for ADC Identifiers
This class provides an interface to generate or decode an identifier for the upper levels of the dete...