 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ATLASDETDESCR_ATLASDETECTORID_H
6 #define ATLASDETDESCR_ATLASDETECTORID_H
24 #include "Identifier/Identifier.h"
157 const IdContext* context = 0)
const override;
162 const IdContext* context = 0)
const override;
181 char sep =
'.' )
const;
185 char sep =
'.' )
const;
258 const std::vector<std::string>&
dict_names(
void)
const;
261 const std::vector<std::string>&
file_names(
void)
const;
263 const std::vector<std::string>&
dict_tags (
void)
const;
268 virtual bool do_checks (
void)
const override;
354 const std::string& dict_name);
488 return (
result << m_INDET_ID);
862 if (!
is_muon(
id))
return false;
878 if (!
is_muon(
id))
return false;
894 if (!
is_muon(
id))
return false;
905 if (!
is_muon(
id))
return false;
916 if (!
is_muon(
id))
return false;
927 if (!
is_muon(
id))
return false;
981 #endif // ATLASDETDESCR_ATLASDETECTORID_H
int lar_em_field_value() const
bool is_pixel(Identifier id) const
IdDictDictionary * m_muon_dict
int indet_field_value() const
Provide efficient access to individual field values, for subclass idhelpers.
bool is_forward(Identifier id) const
bool is_rpc(Identifier id) const
int mm_field_value() const
AtlasDetectorID & operator=(const AtlasDetectorID &other)=delete
std::vector< unsigned int > m_muon_tech_bits
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
Identifier lumi(void) const
Identifier tile_dm(void) const
IdDictFieldImplementation m_indet_part_impl
AtlasDetectorIDHelper * m_helper
virtual void setMessageSvc(IMessageSvc *msgSvc) override
bool is_csc(Identifier id) const
bool is_lar_fcal(Identifier id) const
Identifier mm(void) const
bool is_lar(Identifier id) const
int muon_field_value() const
bool is_sct(Identifier id) const
Identifier lar_fcal(void) const
virtual int get_id(const IdentifierHash &hash_id, Identifier &id, const IdContext *context=0) const override
Create compact id from hash id (return == 0 for OK)
ExpandedIdentifier hgtd_exp(void) const
ExpandedIdentifier lucid_exp(void) const
int calo_field_value() const
Identifier stgc(void) const
Identifier lar_dm(void) const
int rpc_field_value() const
bool is_mm(Identifier id) const
Identifier mdt(void) const
int forward_field_value() const
virtual void set_do_checks(bool do_checks) override
int bcm_field_value() const
int pixel_field_value() const
IdDictDictionary * m_tile_dict
int plr_field_value() const
IMessageSvc * m_msgSvc
pointer to the message service
std::string m_dict_version
Identifier lar_em(void) const
bool m_do_checks
Flag for subclasses to know whether or not to perform checks.
int stgc_field_value() const
bool is_trt(Identifier id) const
size_type m_MUON_SUBDET_INDEX
Identifier tgc(void) const
int m_LAR_FCAL_MODULE_INDEX
Identifier indet(void) const
Detector systems:
int trt_field_value() const
int lar_field_value() const
bool is_zdc(Identifier id) const
int unpack(Identifier id) const
Identifier manipulation methods.
int lar_hec_field_value() const
virtual bool do_neighbours(void) const override
Neighbour initialization is performed by default One can switch or query this mode for any idHelper w...
IdContext detsystem_context(void) const
IdContext (indicates id length) for detector systems.
ExpandedIdentifier tile_exp(void) const
Identifier lar_hec(void) const
bool is_lvl1_trig_towers(Identifier id) const
virtual int get_hash(const Identifier &id, IdentifierHash &hash_id, const IdContext *context=0) const override
Create hash id from compact id (return == 0 for OK)
HelperType
enum class for eventual final derived types of this class
virtual std::string dictionaryVersion(void) const override
bool is_lucid(Identifier id) const
bool m_do_neighbours
Flag for subclasses to know whether or not to perform neighbour initialization.
void set_quiet(bool quiet)
Set flag for suppressing informational output.
Identifier::size_type size_type
bool is_alfa(Identifier id) const
bool match(element_type value) const
The basic match operation.
Range::field m_tile_dm_field
Identifier hgtd(void) const
Identifier lar(void) const
std::string fix_barrel_ec(const std::string &barrel_ec) const
const std::vector< std::string > & dict_tags(void) const
Version tags for subdet dictionaries.
AtlasDetectorID(const AtlasDetectorID &other)=delete
int mdt_field_value() const
virtual void set_do_neighbours(bool do_neighbours) override
msgSvc
Provide convenience handles for various services.
This is an abstract base class for helper classes that know how to convert Identifier <-> IdentifierH...
int hgtd_field_value() const
IdDictDictionary * m_calo_dict
const std::vector< std::string > & file_names(void) const
File names for subdet dictionaries.
bool is_plr(Identifier id) const
bool m_is_initialized_from_dict
IdDictFieldImplementation m_lar_part_impl
ExpandedIdentifier indet_exp(void) const
Detector systems:
Identifier csc(void) const
bool is_tgc(Identifier id) const
IdDictFieldImplementation m_muon_mdt_impl
IdDictFieldImplementation m_lar_fcal_module_impl
bool is_tile_dm(Identifier id) const
bool m_isHighLuminosityLHC
Class to provide easy MsgStream access and capabilities.
Identifier calo(void) const
ExpandedIdentifier zdc_exp(void) const
IdDictDictionary * m_fwd_dict
int tgc_field_value() const
ExpandedIdentifier alfa_exp(void) const
Forward.
bool is_tile(Identifier id) const
bool is_lar_hec(Identifier id) const
Identifier tile(void) const
ExpandedIdentifier sct_exp(void) const
ExpandedIdentifier lar_hec_exp(void) const
Range::field m_lvl1_onl_field
ExpandedIdentifier lumi_exp(void) const
bool m_quiet
If true, suppress DEBUG/INFO messages.
IdDictFieldImplementation m_muon_rpc_impl
int lumi_field_value() const
int sct_field_value() const
int register_dict_tag(const IdDictMgr &dict_mgr, const std::string &dict_name)
Register the file and tag names for a particular IdDict dictionary.
bool is_calo(Identifier id) const
int tile_field_value() const
virtual HelperType helper() const
Type of helper, defaulted to 'Unimplemented'.
int lucid_field_value() const
std::string print_to_string(Identifier id, const IdContext *context=0) const
or provide the printout in string form
IdDictFieldImplementation m_fwd_part_impl
bool is_lar_minifcal(Identifier id) const
IdDictDictionary * m_indet_dict
void show(Identifier id, const IdContext *context=0, char sep='.') const
Short print out of any identifier (optionally provide separation character - default is '.
IdDictFieldImplementation m_calo_side_impl
bool is_indet(Identifier id) const
const std::vector< std::string > & dict_names(void) const
Dictionary names.
std::vector< std::string > m_dict_names
List of dictionary names used by this helper.
Range::field m_lar_dm_field
ExpandedIdentifier muon_exp(void) const
virtual void setDictVersion(const IdDictMgr &dict_mgr, const std::string &name) override
ExpandedIdentifier calo_exp(void) const
ExpandedIdentifier fwd_exp(void) const
IdDictFieldImplementation m_muon_station_name_impl
void print(Identifier id, const IdContext *context=0) const
Expanded print out of any identifier.
Identifier lar_lvl1(void) const
Identifier trt(void) const
AtlasDetectorID(const std::string &name="AtlasDetectorID")
Identifier pixel(void) const
virtual ~AtlasDetectorID()
bool is_lumi(Identifier id) const
bool reinitialize(const IdDictMgr &dict_mgr)
Test whether an idhelper should be reinitialized based on the change of tags.
bool is_lar_dm(Identifier id) const
LAr/Tile dead material:
bool is_muon(Identifier id) const
IdDictFieldImplementation m_det_impl
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
ExpandedIdentifier lar_exp(void) const
std::vector< std::string > m_file_names
List of dictionary file names used by this helper.
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Identifier muon(void) const
This is the individual specification for the range of one ExpandedIdentifier IdentifierField.
ExpandedIdentifier trt_exp(void) const
IdDictDictionary * m_lar_dict
unsigned long long value_type
bool is_lvl1_online(Identifier id) const
bool is_stgc(Identifier id) const
ExpandedIdentifier bcm_exp(void) const
ExpandedIdentifier lar_fcal_exp(void) const
int zdc_field_value() const
unsigned long long size_type
Identifier sct(void) const
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...
int initLevelsFromDict(const IdDictMgr &dict_mgr)
IdContext subdet_context(void) const
IdContext (indicates id length) for sub-detector.
ExpandedIdentifier pixel_exp(void) const
Inner Detector:
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...
std::vector< std::string > m_dict_tags
List of dictionary versions used by this helper.
bool is_bcm(Identifier id) const
bool is_lar_em(Identifier id) const
macros to associate a CLID to a type
int lar_fcal_field_value() const
ExpandedIdentifier lar_em_exp(void) const
LAr.
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
int csc_field_value() const
IdDictDictionary * m_atlas_dict
bool is_hgtd(Identifier id) const
int alfa_field_value() const
bool is_mdt(Identifier id) const
Range::field m_lvl1_field
Identifier rpc(void) const
std::string to_range(const ExpandedIdentifier &id) const