18#ifndef TILEIDENTIFIER_TILETBID_H
19#define TILEIDENTIFIER_TILETBID_H
276 int fill_vec (std::set<Identifier> & ids,
277 unsigned int hash_max, std::vector<Identifier> &
vec);
std::vector< size_t > vec
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
AtlasDetectorID(const std::string &name, const std::string &group)
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
IdDictFieldImplementation is used to capture the specification of a single field of an Identifier.
int unpack(Identifier id) const
Identifier manipulation methods.
This is a "hash" representation of an Identifier.
A MultiRange combines several Ranges.
Helper class for TileCal offline identifiers of ancillary testbeam detectors and MBTS.
virtual ~TileTBID()
Default destructor.
std::vector< Identifier >::const_iterator type_end() const
end iterator for TYPE Identifiers
std::vector< Identifier > m_channel_vec
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr)
initialization from the identifier dictionary
Identifier type_id(int type) const
identifer for Tile testbeam detectors of a give type
int fill_vec(std::set< Identifier > &ids, unsigned int hash_max, std::vector< Identifier > &vec)
size_type m_type_hash_max
int side(const Identifier &id) const
define synonyms for minimum bias scintillators
std::vector< Identifier >::const_iterator channel_begin() const
begin iterator for channel Identifiers
size_type m_module_hash_max
std::vector< Identifier > m_module_vec
Identifier::size_type size_type
int system(const Identifier &id) const
extract system field from TileTB identifier
IdContext channel_context() const
idContext for channels
const IdDictDictionary * m_dict
int phi(const Identifier &id) const
extract phi field from MBTS identifier
std::vector< Identifier >::const_iterator channel_end() const
begin iterator for channel Identifiers
IdDictFieldImplementation m_system_impl
bool is_tiletb(const Identifier &id) const
Test ID if it is TileTBID.
IdDictFieldImplementation m_channel_impl
std::vector< Identifier >::const_iterator module_end() const
end iterator for moulde Identifiers
std::vector< Identifier >::const_iterator type_begin() const
begin iterator for TYPE Identifiers
size_type m_tile_region_index
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)
int get_expanded_id(const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
create expanded Identifier from Identifier (return == 0 for OK)
MultiRange m_full_type_range
size_type type_hash_max() const
TYPE hash table max size.
Identifier m_base_tile_type
Identifier module_id(int type, int module) const
identifer for one module of a Tile testbeam detector
MultiRange m_full_module_range
TileTBID()
Default constructor.
int section(const Identifier &id) const
extract section field from TileTB identifier
size_type m_CHANNEL_INDEX
std::string to_string(const Identifier &id, int level=0) const
extract all fields from TileTB identifier Identifier get_all_fields ( const Identifier & id,...
size_type channel_hash_max() const
channel hash table max size
size_type m_channel_hash_max
std::vector< Identifier >::const_iterator module_begin() const
begin iterator for moulde Identifiers
size_type m_SECTION_INDEX
MultiRange m_full_channel_range
IdDictFieldImplementation m_section_impl
SECTION
Identifier numbering.
int type(const Identifier &id) const
extract type field from TileTB identifier
IdDictFieldImplementation m_module_impl
Identifier channel_id(int type, int module, int channel) const
identifer for one channel of a Tile testbeam detector
IdContext type_context() const
access to IdContext's which define which levels of fields are contained in the id
int get_field(const Identifier &id, size_type index) const
unpack one field from Identifier
int channel(const Identifier &id) const
extract channel field from TileTB identifier
IdDictFieldImplementation m_type_impl
size_type module_hash_max() const
module hash table max size
int eta(const Identifier &id) const
extract eta field from MBTS identifier
IdContext module_context() const
idContext for modules
std::vector< Identifier > m_type_vec
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)
Identifier tiletb_id() const
identifer for all Tile testbeam detectors