ATLAS Offline Software
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
Tile_SuperCell_ID Class Reference

Helper class for Tile offline identifiers for supercells. More...

#include <Tile_SuperCell_ID.h>

Inheritance diagram for Tile_SuperCell_ID:
Collaboration diagram for Tile_SuperCell_ID:

Public Types

enum  SECTION {
  ONLINE = 0, BARREL = 1, EXTBAR = 2, GAPDET = 3,
  AUXDET = 4, SBARREL = 5, SEXTBAR = 6, SECTION_MASK = 3,
  SUPERCELL_MASK = 4
}
 
enum  SAMPLE {
  SAMP_A = 0, SAMP_B = 1, SAMP_BC = 1, SAMP_C = 1,
  SAMP_D = 2, SAMP_E = 3, SAMP_X = 4
}
 
enum  SIDE { NEGATIVE = -1, POSITIVE = 1, TWOSIDES = 0 }
 
enum  GAIN { LOWGAIN = 0, HIGHGAIN = 1 }
 
enum  SIZE { NSIDES = 2, NSECTIONS = 3, NREGIONS = NSIDES * NSECTIONS }
 
enum  { NOT_VALID_HASH = 64000 }
 
using id_iterator = std::vector< Identifier >::const_iterator
 Type for iterators over identifiers. More...
 
using id_range = std::ranges::subrange< id_iterator >
 Type for range over identifiers. More...
 
enum  { NOT_VALID =999999 }
 
typedef Identifier::size_type size_type
 
enum  HelperType {
  HelperType::Unimplemented = -1, HelperType::Silicon = 0, HelperType::Pixel, HelperType::PLR,
  HelperType::SCT, HelperType::TRT, HelperType::LArEM, HelperType::LArFCal,
  HelperType::LArFCalSuperCell, HelperType::LArHEC, HelperType::LArHEC_SuperCell, HelperType::LARMiniFCal,
  HelperType::Tile, HelperType::TileSuperCell, HelperType::LArOnline, HelperType::LArOnlineSuperCell,
  HelperType::LArElectrode, HelperType::LArHVLine, HelperType::TileHardware, HelperType::TileTestbeam,
  HelperType::CaloCell, HelperType::CaloSuperCell, HelperType::CaloDM, HelperType::CaloLvl1,
  HelperType::GTower, HelperType::JTower, HelperType::Muon, HelperType::LUCID,
  HelperType::LUCID_Hardware, HelperType::Zdc, HelperType::ZdcHardware, HelperType::TT
}
 enum class for eventual final derived types of this class More...
 

Public Member Functions

 Tile_SuperCell_ID ()
 
virtual int initialize_from_dictionary (const IdDictMgr &dict_mgr)
 initialization from the identifier dictionary More...
 
Identifier tile_system () const
 build identifier for whole TileCal More...
 
Identifier tile_barrel () const
 build identifier for Tile Barrel More...
 
Identifier tile_extbarrel () const
 build identifier for Tile Extended Barrel More...
 
Identifier tile_gap () const
 build identifier for Tile Gap detector (ITC + gap/crack scintillators) More...
 
Identifier tile_det (int section) const
 build identifier for any Tilecal section More...
 
Identifier tile_det (int section, bool checks) const
 
Identifier region_id (int index) const
 build single region, module, tower, cell, pmt, adc identifiers More...
 
Identifier region_id (int section, int side) const
 
Identifier region_id (int section, int side, bool checks) const
 
Identifier region_id (const Identifier &any_id) const
 
Identifier region_id (const ExpandedIdentifier &exp_id) const
 Construct identifiers from ExpandedIdentifier's. More...
 
Identifier region_id (IdentifierHash hashId) const
 Return the region Identifier for a given hash code (no checking). More...
 
Identifier module_id (int section, int side, int module) const
 
Identifier module_id (int section, int side, int module, bool checks) const
 
Identifier module_id (const Identifier &any_id) const
 
bool module_id (const Identifier &region_id, int module, Identifier &module_id) const
 Construct identifiers with checking. More...
 
Identifier module_id (const ExpandedIdentifier &exp_id) const
 
Identifier tower_id (int section, int side, int module, int tower) const
 
Identifier tower_id (int section, int side, int module, int tower, bool checks) const
 
Identifier tower_id (const Identifier &any_id) const
 
bool tower_id (const Identifier &region_id, int module, int tower, Identifier &tower_id) const
 
Identifier tower_id (const ExpandedIdentifier &exp_id) const
 
Identifier cell_id (const Identifier &any_id) const
 
Identifier cell_id (int section, int side, int module, int tower, int sample) const
 
Identifier cell_id (int section, int side, int module, int tower, int sample, bool checks) const
 
Identifier cell_id (const IdentifierHash &hash_id) const
 fast conversion from hash to ID for cells More...
 
bool cell_id (const Identifier &region_id, int module, int tower, int sample, Identifier &cell_id) const
 
Identifier cell_id (const ExpandedIdentifier &exp_id) const
 
Identifier pmt_id (const Identifier &any_id) const
 
Identifier pmt_id (const Identifier &cell_id, int pmt) const
 
Identifier pmt_id (const Identifier &cell_id, int pmt, bool checks) const
 
Identifier pmt_id (int section, int side, int module, int tower, int sample, int pmt) const
 
Identifier pmt_id (int section, int side, int module, int tower, int sample, int pmt, bool checks) const
 
bool pmt_id (const Identifier &cell_id, int pmt, Identifier &pmt_id) const
 
Identifier pmt_id (const ExpandedIdentifier &exp_id) const
 
Identifier adc_id (const Identifier &cell_id, int pmt, int adc) const
 
Identifier adc_id (const Identifier &cell_id, int pmt, int adc, bool checks) const
 
Identifier adc_id (const Identifier &pmt_id, int adc) const
 
Identifier adc_id (const Identifier &pmt_id, int adc, bool checks) const
 
Identifier adc_id (int section, int side, int module, int tower, int sample, int pmt, int adc) const
 
Identifier adc_id (int section, int side, int module, int tower, int sample, int pmt, int adc, bool checks) const
 
bool adc_id (const Identifier &pmt_id, int adc, Identifier &adc_id) const
 
bool adc_id (const Identifier &cell_id, int pmt, int adc, Identifier &adc_id) const
 
Identifier adc_id (const ExpandedIdentifier &exp_id) const
 
IdentifierHash cell_hash (const Identifier &cell_id) const
 fast conversion from ID to hash for cells More...
 
bool is_tile_barrel (const Identifier &id) const
 Test of an Identifier to see if it belongs to a particular part of the calorimeter. More...
 
bool is_tile_extbarrel (const Identifier &id) const
 
bool is_tile_gap (const Identifier &id) const
 
bool is_tile_gapscin (const Identifier &id) const
 
bool is_tile_aux (const Identifier &id) const
 
bool is_negative (const Identifier &id) const
 
bool is_positive (const Identifier &id) const
 
bool is_twosides (const Identifier &id) const
 
bool is_low_gain (const Identifier &id) const
 
bool is_high_gain (const Identifier &id) const
 
bool is_supercell (const Identifier &id) const
 
int region (int section, int side) const
 
int region (const Identifier &id) const
 
int system (const Identifier &id) const
 
int section (const Identifier &id) const
 
int side (const Identifier &id) const
 
int module (const Identifier &id) const
 
int tower (const Identifier &id) const
 
int sample (const Identifier &id) const
 
int pmt (const Identifier &id) const
 
int adc (const Identifier &id) const
 
int sampling (const Identifier &id) const
 
std::string to_string (const Identifier &id, int level=0) const
 
std::string to_string (const IdentifierHash &hash_id, int level=0) const
 
IdContext region_context () const
 access to IdContext's which define which levels of fields are contained in the id More...
 
IdContext module_context () const
 id for modules More...
 
IdContext tower_context () const
 id for towers More...
 
IdContext cell_context () const
 id for cells More...
 
IdContext pmt_context () const
 id for PMTs More...
 
IdContext adc_context () const
 id for ADCs More...
 
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) More...
 
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) More...
 
int initialize_base_from_dictionary (const IdDictMgr &dict_mgr, const std::string &group_name)
 initialization from the identifier dictionary More...
 
size_type region_hash_max () const
 hash tables max size More...
 
size_type module_hash_max () const
 
size_type tower_hash_max () const
 
size_type cell_hash_max () const
 
size_type pmt_hash_max () const
 
size_type adc_hash_max () const
 
id_iterator reg_begin () const
 iterator over set of region Identifiers More...
 
id_iterator reg_end () const
 
id_range reg_range () const
 
id_iterator region_begin () const
 iterator over set of region Identifiers (synonyms for naming consistency) More...
 
id_iterator region_end () const
 
id_range region_range () const
 
id_iterator module_begin () const
 iterator over set of module Identifiers More...
 
id_iterator module_end () const
 
id_range module_range () const
 
id_iterator tower_begin () const
 iterator over set of tower Identifiers More...
 
id_iterator tower_end () const
 
id_range tower_range () const
 
id_iterator cell_begin () const
 iterator over set of cell Identifiers More...
 
id_iterator cell_end () const
 
id_range cell_range () const
 
id_iterator pmt_begin () const
 iterator over set of pmt Identifiers More...
 
id_iterator pmt_end () const
 
id_range pmt_range () const
 
id_iterator adc_begin () const
 iterator over set of adc Identifiers More...
 
id_iterator adc_end () const
 
id_range adc_range () const
 
const std::vector< Identifier > & region_ids () const
 provide access to id vectors, accessed via hash More...
 
const std::vector< Identifier > & module_ids () const
 
const std::vector< Identifier > & tower_ids () const
 
const std::vector< Identifier > & cell_ids () const
 
const std::vector< Identifier > & pmt_ids () const
 
const std::vector< Identifier > & adc_ids () const
 
int eta_min (const Identifier &id) const
 max values (-999 == failure) More...
 
int eta_max (const Identifier &id) const
 
int region_eta_min (const Identifier &id) const
 
int region_eta_max (const Identifier &id) const
 
int phi_max (const Identifier &id) const
 
int get_neighbours (const IdentifierHash &id, const LArNeighbours::neighbourOption &option, std::vector< IdentifierHash > &neighbourList) const
 access to hashes for neighbours return == 0 for neighbours found option = prevInPhi, nextInPhi, prevInEta, nextInEta, ..., ..., all2D, prevInSamp, nextInSamp, ..., all3D More...
 
const HashGroupchannels () const
 Return the HashGroup for channels (cells). More...
 
const HashGroupregions () const
 Return the HashGroup for regions. More...
 
Identifier channel_id (IdentifierHash hashId) const
 Return the channel (cell) Identifier for a given hash code (no checking). More...
 
IdentifierHash channel_hash (Identifier channelId) const
 Convert a connected channel (cell) Identifier to a hash code. More...
 
IdentifierHash region_hash (Identifier regionId) const
 Convert a connected region Identifier to a hash code. More...
 
size_type channel_hash_max () const
 One more than the largest channel (cell) hash code. More...
 
IdContext channel_context () const
 Return the context for channels (cells). More...
 
const std::vector< const IdDictRegion * > & dictRegions () const
 Return the vector of IdDictRegion, accessed via region hash. More...
 
float etaGranularity (const IdentifierHash regHash) const
 Return the eta granularity of a region, or NOT_VALID. More...
 
float phiGranularity (const IdentifierHash regHash) const
 Return the phi granularity of a region, or NOT_VALID. More...
 
float eta0 (const IdentifierHash regHash) const
 Return the minimum eta of region, or NOT_VALID. More...
 
float phi0 (const IdentifierHash regHash) const
 Return the minimum phi of region, or NOT_VALID. More...
 
const std::string & name () const
 Return the name for this helper. More...
 
IMessageSvc * msgSvc ()
 Return the message service for this helper (may be null). More...
 
bool msgLvl (const MSG::Level lvl) const
 Test the output level. More...
 
MsgStream & msg () const
 The standard message stream. More...
 
MsgStream & msg (const MSG::Level lvl) const
 The standard message stream. More...
 
void setLevel (MSG::Level lvl)
 Change the current logging level. More...
 

Protected Member Functions

HashGroupchannels ()
 Return the HashGroup for channels (cells). non-const. More...
 
HashGroupregions ()
 Return the HashGroup for regions. non-const. More...
 
const IdDictDictionarydict () const
 Return the dictionary for this subdetector. More...
 
int fill_vec_of_dict_regions (const std::string &group_name="")
 Initialize the list of detector regions. More...
 

Private Member Functions

int eta_min (const Identifier &id, const IdContext &context) const
 
int eta_max (const Identifier &id, const IdContext &context) const
 
int decode_section (int section) const
 
int encode_section (int section) const
 
virtual int get_expanded_id (const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
 create expanded Identifier from Identifier (return == 0 for OK) More...
 
int get_field (const Identifier &id, size_type index) const
 unpack one field from Identifier More...
 
int initLevelsFromDict (const std::string &group_name)
 
int init_hashes ()
 
void initMessaging () const
 Initialize our message level and MessageSvc. More...
 

Private Attributes

unsigned m_supercell
 
size_type m_tile_region_index
 
size_type m_SYSTEM_INDEX
 
size_type m_SECTION_INDEX
 
size_type m_SIDE_INDEX
 
size_type m_MODULE_INDEX
 
size_type m_TOWER_INDEX
 
size_type m_SAMPLE_INDEX
 
size_type m_PMT_INDEX
 
size_type m_ADC_INDEX
 
IdDictFieldImplementation m_system_impl
 
IdDictFieldImplementation m_section_impl
 
IdDictFieldImplementation m_side_impl
 
IdDictFieldImplementation m_module_impl
 
IdDictFieldImplementation m_tower_impl
 
IdDictFieldImplementation m_sample_impl
 
IdDictFieldImplementation m_pmt_impl
 
IdDictFieldImplementation m_adc_impl
 
IdDictFieldImplementation m_slar_impl
 
MultiRange m_full_region_range
 
MultiRange m_full_module_range
 
MultiRange m_full_tower_range
 
MultiRange m_full_cell_range
 
MultiRange m_full_pmt_range
 
MultiRange m_full_adc_range
 
CaloIDHelper::HashGroup m_modules
 
CaloIDHelper::HashGroup m_towers
 
CaloIDHelper::HashGroup m_pmts
 
CaloIDHelper::HashGroup m_adcs
 
TileNeighbour m_neighbour
 
std::string m_name
 Name of this helper. More...
 
HashGroup m_channels
 Group of channel (cell) Identifiers. More...
 
HashGroup m_regions
 Group of region Identifiers. More...
 
const IdDictDictionarym_dict
 The dictionary for this helper. More...
 
std::vector< const IdDictRegion * > m_vecOfDictRegions
 List of IdDictRegion objects. More...
 
std::string m_nm
 Message source name. More...
 
boost::thread_specific_ptr< MsgStream > m_msg_tls
 MsgStream instance (a std::cout like with print-out levels) More...
 
std::atomic< IMessageSvc * > m_imsg { nullptr }
 MessageSvc pointer. More...
 
std::atomic< MSG::Level > m_lvl { MSG::NIL }
 Current logging level. More...
 
std::atomic_flag m_initialized ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
 Messaging initialized (initMessaging) More...
 

setting pointer to the MessageService

virtual void setMessageSvc (IMessageSvc *msgSvc) override
 
void set_quiet (bool quiet)
 Set flag for suppressing informational output. More...
 
std::string m_dict_version
 
bool m_is_initialized_from_dict {}
 
size_type m_DET_INDEX {999}
 
size_type m_SUBDET_INDEX {999}
 
size_type m_MUON_SUBDET_INDEX {999}
 
int m_INDET_ID {2}
 
int m_LAR_ID {4}
 
int m_TILE_ID {5}
 
int m_MUON_ID {7}
 
int m_CALO_ID {10}
 
int m_PIXEL_ID {1}
 
int m_SCT_ID {2}
 
int m_TRT_ID {3}
 
int m_HGTD_ID {4}
 
int m_LUMI_ID {3}
 
int m_LUMI_PLR_ID {1}
 
int m_LAR_EM_ID {1}
 
int m_LAR_HEC_ID {2}
 
int m_LAR_FCAL_ID {3}
 
int m_LAR_FCAL_MODULE_INDEX {999}
 
int m_MDT_ID {0}
 
int m_CSC_ID {1}
 
int m_RPC_ID {2}
 
int m_TGC_ID {3}
 
int m_STGC_ID {4}
 
int m_MM_ID {5}
 
int m_FWD_ID {13}
 
int m_ALFA_ID {1}
 
int m_BCM_ID {3}
 
int m_LUCID_ID {5}
 
int m_ZDC_ID {7}
 
bool m_isHighLuminosityLHC {}
 
Range::field m_lvl1_field
 
Range::field m_lvl1_onl_field
 
Range::field m_lar_dm_field
 
Range::field m_tile_dm_field
 
const IdDictDictionarym_atlas_dict {}
 
const IdDictDictionarym_indet_dict {}
 
const IdDictDictionarym_lar_dict {}
 
const IdDictDictionarym_tile_dict {}
 
const IdDictDictionarym_muon_dict {}
 
const IdDictDictionarym_calo_dict {}
 
const IdDictDictionarym_fwd_dict {}
 
AtlasDetectorIDHelperm_helper {}
 
IdDictFieldImplementation m_det_impl
 
IdDictFieldImplementation m_indet_part_impl
 
IdDictFieldImplementation m_calo_side_impl
 
IdDictFieldImplementation m_lar_part_impl
 
IdDictFieldImplementation m_lar_fcal_module_impl
 
IdDictFieldImplementation m_muon_station_name_impl
 
IdDictFieldImplementation m_muon_mdt_impl
 
IdDictFieldImplementation m_muon_rpc_impl
 
IdDictFieldImplementation m_fwd_part_impl
 
std::vector< unsigned int > m_muon_tech_bits
 
virtual void setDictVersion (const IdDictMgr &dict_mgr, const std::string &name) override
 
std::string to_range (const ExpandedIdentifier &id) const
 
std::string fix_barrel_ec (const std::string &barrel_ec) const
 
ExpandedIdentifier indet_exp (void) const
 Detector systems: More...
 
ExpandedIdentifier lar_exp (void) const
 
ExpandedIdentifier tile_exp (void) const
 
ExpandedIdentifier muon_exp (void) const
 
ExpandedIdentifier calo_exp (void) const
 
ExpandedIdentifier fwd_exp (void) const
 
ExpandedIdentifier pixel_exp (void) const
 Inner Detector: More...
 
ExpandedIdentifier sct_exp (void) const
 
ExpandedIdentifier trt_exp (void) const
 
ExpandedIdentifier hgtd_exp (void) const
 
ExpandedIdentifier lumi_exp (void) const
 
ExpandedIdentifier lar_em_exp (void) const
 LAr. More...
 
ExpandedIdentifier lar_hec_exp (void) const
 
ExpandedIdentifier lar_fcal_exp (void) const
 
ExpandedIdentifier alfa_exp (void) const
 Forward. More...
 
ExpandedIdentifier bcm_exp (void) const
 
ExpandedIdentifier lucid_exp (void) const
 
ExpandedIdentifier zdc_exp (void) const
 
int indet_field_value () const
 Provide efficient access to individual field values, for subclass idhelpers. More...
 
int lar_field_value () const
 
int tile_field_value () const
 
int muon_field_value () const
 
int calo_field_value () const
 
int pixel_field_value () const
 
int sct_field_value () const
 
int trt_field_value () const
 
int hgtd_field_value () const
 
int lumi_field_value () const
 
int plr_field_value () const
 
int lar_em_field_value () const
 
int lar_hec_field_value () const
 
int lar_fcal_field_value () const
 
int mdt_field_value () const
 
int csc_field_value () const
 
int rpc_field_value () const
 
int tgc_field_value () const
 
int stgc_field_value () const
 
int mm_field_value () const
 
int forward_field_value () const
 
int alfa_field_value () const
 
int bcm_field_value () const
 
int lucid_field_value () const
 
int zdc_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. More...
 
bool reinitialize (const IdDictMgr &dict_mgr)
 Test whether an idhelper should be reinitialized based on the change of tags. More...
 
enum  ID { ATLAS_ID = static_cast<Identifier::value_type>(0), MAX_BIT = Identifier::MAX_BIT, PIXEL_MASK = static_cast<Identifier::value_type>(0xFF), ALL_BITS = Identifier::ALL_BITS }
 
std::string m_group
 Group name. More...
 
bool m_do_checks {}
 Flag for subclasses to know whether or not to perform checks. More...
 
bool m_do_neighbours {true}
 Flag for subclasses to know whether or not to perform neighbour initialization. More...
 
IMessageSvc * m_msgSvc {}
 pointer to the message service More...
 
bool m_quiet {}
 If true, suppress DEBUG/INFO messages. More...
 
std::vector< std::string > m_dict_names
 List of dictionary names used by this helper. More...
 
std::vector< std::string > m_file_names
 List of dictionary file names used by this helper. More...
 
std::vector< std::string > m_dict_tags
 List of dictionary versions used by this helper. More...
 

Detailed Description

Helper class for Tile offline identifiers for supercells.

This class provides an interface to generate an identifier or a range for the Tile Calorimeter detector subsystem.

Definition and the range of values for the elements of the identifier:

 element     range       meaning
 -------     -----       -------
 section     1 to 2      section number  ( 1 = Barrel
                                           2 = Extended Barrel )
                          internally, these are stored as 5 and 6,
                          to distinguish the supercell case.
 side       -1 to 1      -1 = negative eta, 1 = positive eta, 0 = undefined (both sides) 
 module      0 to 63     module number by phi
 tower(eta)  0 to 15     0-15 = tower number by pseudorapidity with 0.1 increment in eta
                         Attention! in PhysTDR data last tower is 16
 sample      0 or 2      0 = sum over samplings, 2 = D only
Total is 2752, of which 2048 are the tower sums and 704 are the 
D layer cells.  Note that the D layer cells both contribute to the
tower sums and are also represented separately.
 

Definition at line 59 of file Tile_SuperCell_ID.h.

Member Typedef Documentation

◆ id_iterator

using Tile_Base_ID::id_iterator = std::vector<Identifier>::const_iterator
inherited

Type for iterators over identifiers.

Definition at line 208 of file Tile_Base_ID.h.

◆ id_range

using Tile_Base_ID::id_range = std::ranges::subrange<id_iterator>
inherited

Type for range over identifiers.

Definition at line 210 of file Tile_Base_ID.h.

◆ size_type

Definition at line 39 of file CaloIDHelper.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
inherited
Enumerator
NOT_VALID_HASH 

Definition at line 263 of file Tile_Base_ID.h.

263 {NOT_VALID_HASH = 64000};

◆ anonymous enum

anonymous enum
inherited
Enumerator
NOT_VALID 

Definition at line 36 of file CaloIDHelper.h.

36 { NOT_VALID=999999 };

◆ GAIN

enum Tile_Base_ID::GAIN
inherited
Enumerator
LOWGAIN 
HIGHGAIN 

Definition at line 56 of file Tile_Base_ID.h.

56 { LOWGAIN = 0, HIGHGAIN = 1 };

◆ HelperType

enum AtlasDetectorID::HelperType
stronginherited

enum class for eventual final derived types of this class

Enumerator
Unimplemented 
Silicon 
Pixel 
PLR 
SCT 
TRT 
LArEM 
LArFCal 
LArFCalSuperCell 
LArHEC 
LArHEC_SuperCell 
LARMiniFCal 
Tile 
TileSuperCell 
LArOnline 
LArOnlineSuperCell 
LArElectrode 
LArHVLine 
TileHardware 
TileTestbeam 
CaloCell 
CaloSuperCell 
CaloDM 
CaloLvl1 
GTower 
JTower 
Muon 
LUCID 
LUCID_Hardware 
Zdc 
ZdcHardware 
TT 

Definition at line 55 of file AtlasDetectorID.h.

55  {
56  Unimplemented = -1,
57  Silicon = 0,
58  Pixel, PLR, SCT, TRT,
59  //inherits from CaloIDHelper
60  LArEM, LArFCal, LArFCalSuperCell,
61  LArHEC, LArHEC_SuperCell, LARMiniFCal,
62  Tile, TileSuperCell,
63  //
64  //inherit from LArOnlineId
65  LArOnline, LArOnlineSuperCell,
66  //
67  LArElectrode, LArHVLine,
68  TileHardware, TileTestbeam,
69  CaloCell, CaloSuperCell,
70  CaloDM, CaloLvl1,
71  //inherit from JGTowerBase
72  GTower, JTower,
73  //
74  Muon,
75  LUCID, LUCID_Hardware,
76  Zdc,ZdcHardware,
77  TT
78  };

◆ ID

enum AtlasDetectorID::ID
privateinherited
Enumerator
ATLAS_ID 
MAX_BIT 
PIXEL_MASK 
ALL_BITS 

Definition at line 389 of file AtlasDetectorID.h.

389  { ATLAS_ID = static_cast<Identifier::value_type>(0),
391  // mask to distinguish a pixel id from lvl1 id (bit 1 set)
392  PIXEL_MASK = static_cast<Identifier::value_type>(0xFF),

◆ SAMPLE

enum Tile_Base_ID::SAMPLE
inherited
Enumerator
SAMP_A 
SAMP_B 
SAMP_BC 
SAMP_C 
SAMP_D 
SAMP_E 
SAMP_X 

Definition at line 52 of file Tile_Base_ID.h.

52  { SAMP_A = 0,
53  SAMP_B = 1, SAMP_BC = 1, SAMP_C = 1, // synonyms
54  SAMP_D = 2, SAMP_E = 3, SAMP_X = 4 };

◆ SECTION

enum Tile_Base_ID::SECTION
inherited
Enumerator
ONLINE 
BARREL 
EXTBAR 
GAPDET 
AUXDET 
SBARREL 
SEXTBAR 
SECTION_MASK 
SUPERCELL_MASK 

Definition at line 47 of file Tile_Base_ID.h.

47  { ONLINE = 0, BARREL = 1, EXTBAR = 2, GAPDET = 3, AUXDET = 4 ,
48  SBARREL = 5, SEXTBAR = 6,
49  SECTION_MASK = 3,
50  SUPERCELL_MASK = 4
51  };

◆ SIDE

enum Tile_Base_ID::SIDE
inherited
Enumerator
NEGATIVE 
POSITIVE 
TWOSIDES 

Definition at line 55 of file Tile_Base_ID.h.

55 { NEGATIVE = -1, POSITIVE = 1, TWOSIDES = 0 };

◆ SIZE

enum Tile_Base_ID::SIZE
inherited
Enumerator
NSIDES 
NSECTIONS 
NREGIONS 

Definition at line 57 of file Tile_Base_ID.h.

57 { NSIDES = 2, NSECTIONS = 3, NREGIONS = NSIDES * NSECTIONS };

Constructor & Destructor Documentation

◆ Tile_SuperCell_ID()

Tile_SuperCell_ID::Tile_SuperCell_ID ( )

Definition at line 25 of file Tile_SuperCell_ID.cxx.

26  : Tile_Base_ID ("Tile_SuperCell_ID", "tile_supercell", true)
27 {
28 }

Member Function Documentation

◆ adc()

int Tile_Base_ID::adc ( const Identifier id) const
inherited

Definition at line 190 of file Tile_Base_ID.cxx.

191 {
192  return get_field(id,m_ADC_INDEX);
193 }

◆ adc_begin()

Tile_Base_ID::id_iterator Tile_Base_ID::adc_begin ( ) const
inherited

iterator over set of adc Identifiers

Definition at line 1407 of file Tile_Base_ID.cxx.

1408 {
1409  return m_adcs.begin();
1410 }

◆ adc_context()

IdContext Tile_Base_ID::adc_context ( ) const
inherited

id for ADCs

Definition at line 1075 of file Tile_Base_ID.cxx.

1076 {
1077  return {0, m_ADC_INDEX};
1078 }

◆ adc_end()

Tile_Base_ID::id_iterator Tile_Base_ID::adc_end ( ) const
inherited

Definition at line 1412 of file Tile_Base_ID.cxx.

1413 {
1414  return m_adcs.end();
1415 }

◆ adc_hash_max()

Tile_Base_ID::size_type Tile_Base_ID::adc_hash_max ( ) const
inherited

Definition at line 1327 of file Tile_Base_ID.cxx.

1328 {
1329  return m_adcs.hash_max();
1330 }

◆ adc_id() [1/9]

Identifier Tile_Base_ID::adc_id ( const ExpandedIdentifier exp_id) const
inherited

Definition at line 1493 of file Tile_Base_ID.cxx.

1494 {
1495  return this->adc_id (exp_id[m_SECTION_INDEX],
1496  exp_id[m_SIDE_INDEX],
1497  exp_id[m_MODULE_INDEX],
1498  exp_id[m_TOWER_INDEX],
1499  exp_id[m_SAMPLE_INDEX],
1500  exp_id[m_PMT_INDEX],
1501  exp_id[m_ADC_INDEX]);
1502 }

◆ adc_id() [2/9]

Identifier Tile_Base_ID::adc_id ( const Identifier cell_id,
int  pmt,
int  adc 
) const
inherited

Definition at line 806 of file Tile_Base_ID.cxx.

808 {
809  return adc_id (cell_id, pmt, adc, do_checks());
810 }

◆ adc_id() [3/9]

Identifier Tile_Base_ID::adc_id ( const Identifier cell_id,
int  pmt,
int  adc,
bool  checks 
) const
inherited

Definition at line 758 of file Tile_Base_ID.cxx.

760 {
762 
763  int id[8];
764  id[0] = pmt;
765  id[1] = adc;
766 
767  Identifier compactId(cell_id);
768  if (!dict()->pack32(id, m_PMT_INDEX, m_ADC_INDEX, m_tile_region_index, compactId)) {
769  result = compactId;
770  }
771  else {
772  std::string errorMessage = "Tile_Base_ID::adc_id(cell_id,pmt,adc) could not pack ID: "
773  + cell_id.getString() ;
774  throw TileID_Exception(errorMessage , 1);
775  }
776 
777  if(checks) {
778 
779  // Check that id is within allowed range
780 
781  // Fill expanded id
782  ExpandedIdentifier expId;
783 
784  IdContext context = cell_context();
785  if (get_expanded_id(result, expId, &context)) {
786  std::string errorMessage = "Tile_Base_ID::adc_id(cell_id,pmt,adc) result is not OK: ID = "
787  + result.getString() ;
788  throw TileID_Exception(errorMessage , 1);
789 
790  // region_id.show();
791  }
792 
793  expId << pmt << adc;
794 
795  if (!m_full_adc_range.match(expId)) {
796  std::string errorMessage = "Tile_Base_ID::adc_id() result is not OK: ID, range = "
797  + std::string(expId) + " , " + (std::string)m_full_region_range;
798  throw TileID_Exception(errorMessage , 1);
799  }
800  }
801 
802  return result;
803 }

◆ adc_id() [4/9]

bool Tile_Base_ID::adc_id ( const Identifier cell_id,
int  pmt,
int  adc,
Identifier adc_id 
) const
inherited

Definition at line 1006 of file Tile_Base_ID.cxx.

1008 {
1010  IdContext context = cell_context();
1011  get_expanded_id(cell_id, id, &context);
1012  id << pmt << adc;
1013  if (!m_full_adc_range.match(id)) {
1014  return false;
1015  }
1016 
1017  Identifier compactId(0);
1018  if (!dict()->pack32(id,0, id.fields() - 1,compactId)) {
1019  adc_id = compactId;
1020  }
1021  return true;
1022 }

◆ adc_id() [5/9]

Identifier Tile_Base_ID::adc_id ( const Identifier pmt_id,
int  adc 
) const
inherited

Definition at line 860 of file Tile_Base_ID.cxx.

862 {
863  return adc_id (pmt_id, adc, do_checks());
864 }

◆ adc_id() [6/9]

Identifier Tile_Base_ID::adc_id ( const Identifier pmt_id,
int  adc,
bool  checks 
) const
inherited

Definition at line 813 of file Tile_Base_ID.cxx.

815 {
817 
818  int id[8];
819  id[0] = adc;
820 
821  Identifier compactId(pmt_id);
822  if (!dict()->pack32(id, m_ADC_INDEX, m_ADC_INDEX, m_tile_region_index, compactId)) {
823  result = compactId;
824  }
825  else {
826  std::string errorMessage = "Tile_Base_ID::adc_id(pmt_id,adc) could not pack ID: "
827  + pmt_id.getString() ;
828  throw TileID_Exception(errorMessage , 1);
829  }
830 
831  if(checks) {
832 
833  // Check that id is within allowed range
834 
835  // Fill expanded id
836  ExpandedIdentifier expId;
837 
838  IdContext context = pmt_context();
839  if (get_expanded_id(result, expId, &context)) {
840  std::string errorMessage = "Tile_Base_ID::adc_id(pmt_id,adc) result is not OK: ID = "
841  + result.getString() ;
842  throw TileID_Exception(errorMessage , 1);
843 
844  // region_id.show();
845  }
846 
847  expId << adc;
848 
849  if (!m_full_adc_range.match(expId)) {
850  std::string errorMessage = "Tile_Base_ID::adc_id() result is not OK: ID, range = "
851  + std::string(expId) + " , " + (std::string)m_full_region_range;
852  throw TileID_Exception(errorMessage , 1);
853  }
854  }
855 
856  return result;
857 }

◆ adc_id() [7/9]

bool Tile_Base_ID::adc_id ( const Identifier pmt_id,
int  adc,
Identifier adc_id 
) const
inherited

Definition at line 988 of file Tile_Base_ID.cxx.

990 {
992  IdContext context = pmt_context();
993  get_expanded_id(pmt_id, id, &context);
994  id << adc;
995  if (!m_full_adc_range.match(id)) {
996  return false;
997  }
998 
999  Identifier compactId(0);
1000  if (!dict()->pack32(id,0, id.fields() - 1,compactId)) {
1001  adc_id = compactId;
1002  }
1003  return true;
1004 }

◆ adc_id() [8/9]

Identifier Tile_Base_ID::adc_id ( int  section,
int  side,
int  module,
int  tower,
int  sample,
int  pmt,
int  adc 
) const
inherited

Definition at line 908 of file Tile_Base_ID.cxx.

911 {
912  return adc_id (section, side, module, tower, sample, pmt, adc, do_checks());
913 }

◆ adc_id() [9/9]

Identifier Tile_Base_ID::adc_id ( int  section,
int  side,
int  module,
int  tower,
int  sample,
int  pmt,
int  adc,
bool  checks 
) const
inherited

Definition at line 867 of file Tile_Base_ID.cxx.

871 {
872  if(checks) {
873 
874  // Check that id is within allowed range
875 
876  // Fill expanded id
877  ExpandedIdentifier expId(tile_exp());
878  expId << encode_section (section) << side << module << tower << sample << pmt << adc;
879 
880  if (!m_full_adc_range.match(expId)) {
881  std::string errorMessage = "Tile_Base_ID::adc_id() result is not OK: ID, range = "
882  + std::string(expId) + " , " + (std::string)m_full_region_range;
883  throw TileID_Exception(errorMessage , 1);
884  }
885  }
886 
888 
889  int id[8];
892  id[m_SIDE_INDEX] = side;
893  id[m_MODULE_INDEX] = module;
894  id[m_TOWER_INDEX] = tower;
895  id[m_SAMPLE_INDEX] = sample;
896  id[m_PMT_INDEX] = pmt;
897  id[m_ADC_INDEX] = adc;
898 
899  Identifier compactId(0);
900  if (!dict()->pack32(id, 0, m_ADC_INDEX, m_tile_region_index, compactId)) {
901  result = compactId;
902  }
903 
904  return result;
905 }

◆ adc_ids()

const std::vector< Identifier > & Tile_Base_ID::adc_ids ( ) const
inherited

Definition at line 1447 of file Tile_Base_ID.cxx.

1448 {
1449  return m_adcs.ids();
1450 }

◆ adc_range()

Tile_Base_ID::id_range Tile_Base_ID::adc_range ( ) const
inherited

Definition at line 1417 of file Tile_Base_ID.cxx.

1418 {
1419  return m_adcs.range();
1420 }

◆ alfa_exp()

ExpandedIdentifier AtlasDetectorID::alfa_exp ( void  ) const
protectedinherited

Forward.

Definition at line 1148 of file AtlasDetectorID.cxx.

1149 {
1151  return (result << m_ALFA_ID);
1152 }

◆ alfa_field_value()

int AtlasDetectorID::alfa_field_value ( ) const
inlineprotectedinherited

Definition at line 542 of file AtlasDetectorID.h.

542 {return (m_ALFA_ID);}

◆ bcm_exp()

ExpandedIdentifier AtlasDetectorID::bcm_exp ( void  ) const
protectedinherited

Definition at line 1155 of file AtlasDetectorID.cxx.

1156 {
1158  return (result << m_BCM_ID);
1159 }

◆ bcm_field_value()

int AtlasDetectorID::bcm_field_value ( ) const
inlineprotectedinherited

Definition at line 544 of file AtlasDetectorID.h.

544 {return (m_BCM_ID);}

◆ calo()

Identifier AtlasDetectorID::calo ( void  ) const
inherited

Definition at line 85 of file AtlasDetectorID.cxx.

85  {
86  Identifier result{0};
87  // Pack field
89  return result;
90 }

◆ calo_exp()

ExpandedIdentifier AtlasDetectorID::calo_exp ( void  ) const
protectedinherited

Definition at line 1078 of file AtlasDetectorID.cxx.

1079 {
1081  return (result << m_CALO_ID);
1082 }

◆ calo_field_value()

int AtlasDetectorID::calo_field_value ( ) const
inlineprotectedinherited

Definition at line 492 of file AtlasDetectorID.h.

492 {return (m_CALO_ID);}

◆ cell_begin()

Tile_Base_ID::id_iterator Tile_Base_ID::cell_begin ( ) const
inherited

iterator over set of cell Identifiers

Definition at line 1377 of file Tile_Base_ID.cxx.

1378 {
1379  return channels().begin();
1380 }

◆ cell_context()

IdContext Tile_Base_ID::cell_context ( ) const
inherited

id for cells

Definition at line 1063 of file Tile_Base_ID.cxx.

1064 {
1065  return {0, m_SAMPLE_INDEX};
1066 }

◆ cell_end()

Tile_Base_ID::id_iterator Tile_Base_ID::cell_end ( ) const
inherited

Definition at line 1382 of file Tile_Base_ID.cxx.

1383 {
1384  return channels().end();
1385 }

◆ cell_hash()

IdentifierHash Tile_Base_ID::cell_hash ( const Identifier cell_id) const
inherited

fast conversion from ID to hash for cells

Definition at line 1034 of file Tile_Base_ID.cxx.

1035 {
1036  IdentifierHash ret = 0;
1037  if (channels().get_hash (id, ret) == 0)
1038  return ret;
1039 
1040  std::string errorMessage = "Tile_Base_ID::cell_hash(cell_id) - cell_id out of range ";
1041  throw TileID_Exception(errorMessage , 1);
1042 }

◆ cell_hash_max()

Tile_Base_ID::size_type Tile_Base_ID::cell_hash_max ( ) const
inherited

Definition at line 1317 of file Tile_Base_ID.cxx.

1318 {
1319  return channels().hash_max();
1320 }

◆ cell_id() [1/6]

Identifier Tile_Base_ID::cell_id ( const ExpandedIdentifier exp_id) const
inherited

Definition at line 1474 of file Tile_Base_ID.cxx.

1475 {
1476  return this->cell_id (exp_id[m_SECTION_INDEX],
1477  exp_id[m_SIDE_INDEX],
1478  exp_id[m_MODULE_INDEX],
1479  exp_id[m_TOWER_INDEX],
1480  exp_id[m_SAMPLE_INDEX]);
1481 }

◆ cell_id() [2/6]

Identifier Tile_Base_ID::cell_id ( const Identifier any_id) const
inherited

Definition at line 585 of file Tile_Base_ID.cxx.

586 {
588  // extract with the dictionary
589  Identifier id;
590  if(!dict()->copy(any_id, 0, 0, m_SAMPLE_INDEX, m_tile_region_index, id)) {
591  result = id;
592  }
593  return (result);
594 }

◆ cell_id() [3/6]

bool Tile_Base_ID::cell_id ( const Identifier region_id,
int  module,
int  tower,
int  sample,
Identifier cell_id 
) const
inherited

Definition at line 951 of file Tile_Base_ID.cxx.

954 {
956  IdContext context = region_context();
957  get_expanded_id(region_id, id, &context);
958  id << module << tower << sample;
959  if (!m_full_cell_range.match(id)) {
960  return false;
961  }
962 
963  Identifier compactId(0);
964  if (!dict()->pack32(id,0, id.fields() - 1,compactId)) {
965  cell_id = compactId;
966  }
967  return true;
968 }

◆ cell_id() [4/6]

Identifier Tile_Base_ID::cell_id ( const IdentifierHash hash_id) const
inherited

fast conversion from hash to ID for cells

Definition at line 1024 of file Tile_Base_ID.cxx.

1025 {
1026  if (hash_id < channels().hash_max()) {
1027  return channel_id (hash_id);
1028  } else {
1029  std::string errorMessage = "Tile_Base_ID::cell_id(hash_id) - hash_id out of range ";
1030  throw TileID_Exception(errorMessage , 1);
1031  }
1032 }

◆ cell_id() [5/6]

Identifier Tile_Base_ID::cell_id ( int  section,
int  side,
int  module,
int  tower,
int  sample 
) const
inherited

Definition at line 636 of file Tile_Base_ID.cxx.

639 {
640  return cell_id (section, side, module, tower, sample, do_checks());
641 }

◆ cell_id() [6/6]

Identifier Tile_Base_ID::cell_id ( int  section,
int  side,
int  module,
int  tower,
int  sample,
bool  checks 
) const
inherited

Definition at line 597 of file Tile_Base_ID.cxx.

601 {
602  if(checks) {
603 
604  // Check that id is within allowed range
605 
606  // Fill expanded id
607  ExpandedIdentifier expId(tile_exp());
608  expId << encode_section (section) << side << module << tower << sample;
609 
610  if (!m_full_cell_range.match(expId)) {
611  std::string errorMessage = "Tile_Base_ID::cell_id() result is not OK: ID, range = "
612  + std::string(expId) + " , " + (std::string)m_full_cell_range;
613  throw TileID_Exception(errorMessage , 1);
614  }
615  }
616 
618 
619  int id[8];
622  id[m_SIDE_INDEX] = side;
623  id[m_MODULE_INDEX] = module;
624  id[m_TOWER_INDEX] = tower;
625  id[m_SAMPLE_INDEX] = sample;
626 
627  Identifier compactId(0);
628  if (!dict()->pack32(id, 0, m_SAMPLE_INDEX, m_tile_region_index, compactId)) {
629  result = compactId;
630  }
631 
632  return result;
633 }

◆ cell_ids()

const std::vector< Identifier > & Tile_Base_ID::cell_ids ( ) const
inherited

Definition at line 1437 of file Tile_Base_ID.cxx.

1438 {
1439  return channels().ids();
1440 }

◆ cell_range()

Tile_Base_ID::id_range Tile_Base_ID::cell_range ( ) const
inherited

Definition at line 1387 of file Tile_Base_ID.cxx.

1388 {
1389  return channels().range();
1390 }

◆ channel_context()

IdContext CaloIDHelper::channel_context ( ) const
inherited

Return the context for channels (cells).

◆ channel_hash()

IdentifierHash CaloIDHelper::channel_hash ( Identifier  channelId) const
inherited

Convert a connected channel (cell) Identifier to a hash code.

Some subdetector helpers may override this with a faster version.

◆ channel_hash_max()

size_type CaloIDHelper::channel_hash_max ( ) const
inherited

One more than the largest channel (cell) hash code.

◆ channel_id()

Identifier CaloIDHelper::channel_id ( IdentifierHash  hashId) const
inherited

Return the channel (cell) Identifier for a given hash code (no checking).

◆ channels() [1/2]

HashGroup& CaloIDHelper::channels ( )
protectedinherited

Return the HashGroup for channels (cells). non-const.

◆ channels() [2/2]

const HashGroup& CaloIDHelper::channels ( ) const
inherited

Return the HashGroup for channels (cells).

◆ csc()

Identifier AtlasDetectorID::csc ( void  ) const
inherited

Definition at line 42 of file AtlasDetectorID.cxx.

42  {
43  return Identifier{};
44 }

◆ csc_field_value()

int AtlasDetectorID::csc_field_value ( ) const
inlineprotectedinherited

Definition at line 525 of file AtlasDetectorID.h.

525 {return (m_CSC_ID);}

◆ decode_section()

int Tile_Base_ID::decode_section ( int  section) const
inlineprivateinherited

Definition at line 313 of file Tile_Base_ID.h.

314  {
315  return section >= SBARREL ? (section & SECTION_MASK) : section;
316  }

◆ detsystem_context()

IdContext AtlasDetectorID::detsystem_context ( void  ) const
inherited

IdContext (indicates id length) for detector systems.

Definition at line 180 of file AtlasDetectorID.cxx.

180  {
181  ExpandedIdentifier id{};
182  return IdContext{id, 0, m_DET_INDEX};
183 }

◆ dict()

const IdDictDictionary* CaloIDHelper::dict ( ) const
protectedinherited

Return the dictionary for this subdetector.

◆ dict_names()

const std::vector< std::string > & AtlasDetectorID::dict_names ( void  ) const
inherited

Dictionary names.

Definition at line 469 of file AtlasDetectorID.cxx.

469  {
470  return m_dict_names;
471 }

◆ dict_tags()

const std::vector< std::string > & AtlasDetectorID::dict_tags ( void  ) const
inherited

Version tags for subdet dictionaries.

Definition at line 475 of file AtlasDetectorID.cxx.

475  {
476  return m_dict_tags;
477 }

◆ dictionaryVersion()

std::string AtlasDetectorID::dictionaryVersion ( void  ) const
overridevirtualinherited

Implements IdHelper.

Definition at line 283 of file AtlasDetectorID.cxx.

283  {
284  return m_dict_version;
285 }

◆ dictRegions()

const std::vector<const IdDictRegion*>& CaloIDHelper::dictRegions ( ) const
inherited

Return the vector of IdDictRegion, accessed via region hash.

◆ do_checks()

bool AtlasDetectorID::do_checks ( void  ) const
overridevirtualinherited

Checks are performed by default in debug compilation and NOT in optimized compilation.

One can switch or query this mode for any idHelper with the following methods:

Implements IdHelper.

Definition at line 478 of file AtlasDetectorID.cxx.

478  {
479  return m_do_checks;
480 }

◆ do_neighbours()

bool AtlasDetectorID::do_neighbours ( void  ) const
overridevirtualinherited

Neighbour initialization is performed by default One can switch or query this mode for any idHelper with the following method:

Implements IdHelper.

Definition at line 485 of file AtlasDetectorID.cxx.

485  {
486  return m_do_neighbours;
487 }

◆ encode_section()

int Tile_Base_ID::encode_section ( int  section) const
inlineprivateinherited

Definition at line 318 of file Tile_Base_ID.h.

319  {
320  return m_supercell ? (section | SUPERCELL_MASK) : section;
321  }

◆ eta0()

float CaloIDHelper::eta0 ( const IdentifierHash  regHash) const
inherited

Return the minimum eta of region, or NOT_VALID.

Parameters
regHashREGION hash code.

Definition at line 209 of file CaloIDHelper.cxx.

210 {
211  if (regHash >= m_vecOfDictRegions.size()) return NOT_VALID;
212  return (m_vecOfDictRegions.at(regHash)->eta0());
213 }

◆ eta_max() [1/2]

int Tile_Base_ID::eta_max ( const Identifier id) const
inherited

Definition at line 1555 of file Tile_Base_ID.cxx.

1556 {
1557  IdContext context = cell_context();
1558  return eta_max (id, context);
1559 }

◆ eta_max() [2/2]

int Tile_Base_ID::eta_max ( const Identifier id,
const IdContext context 
) const
privateinherited

Definition at line 1529 of file Tile_Base_ID.cxx.

1530 {
1531  ExpandedIdentifier expId;
1532  if(!get_expanded_id(id, expId, &context)) {
1533  int result = -999;
1534  for (unsigned int i = 0; i < m_full_cell_range.size(); ++i) {
1535  const Range& range = m_full_cell_range[i];
1536  if (range.match(expId)) {
1537  const Range::field& eta_field = range[m_TOWER_INDEX];
1538  if (not eta_field.empty()) {
1539  int etamax = eta_field.get_maximum();
1540  if (result < etamax) result = etamax;
1541  }
1542  }
1543  }
1544  return (result);
1545  }
1546  return (-999); // default
1547 }

◆ eta_min() [1/2]

int Tile_Base_ID::eta_min ( const Identifier id) const
inherited

max values (-999 == failure)

Definition at line 1549 of file Tile_Base_ID.cxx.

1550 {
1551  IdContext context = tower_context();
1552  return eta_min (id, context);
1553 }

◆ eta_min() [2/2]

int Tile_Base_ID::eta_min ( const Identifier id,
const IdContext context 
) const
privateinherited

Definition at line 1504 of file Tile_Base_ID.cxx.

1505 {
1506  ExpandedIdentifier expId;
1507  if(!get_expanded_id(id, expId, &context)) {
1508  int result = -999;
1509  for (unsigned int i = 0; i < m_full_tower_range.size(); ++i) {
1510  const Range& range = m_full_tower_range[i];
1511  if (range.match(expId)) {
1512  const Range::field& eta_field = range[m_TOWER_INDEX];
1513  if (not eta_field.empty()) {
1514  int etamin = eta_field.get_minimum();
1515  if (-999 == result) {
1516  result = etamin;
1517  }
1518  else {
1519  if (etamin < result) result = etamin;
1520  }
1521  }
1522  }
1523  }
1524  return (result);
1525  }
1526  return (-999);
1527 }

◆ etaGranularity()

float CaloIDHelper::etaGranularity ( const IdentifierHash  regHash) const
inherited

Return the eta granularity of a region, or NOT_VALID.

Parameters
regHashREGION hash code.

Definition at line 187 of file CaloIDHelper.cxx.

188 {
189  if (regHash >= m_vecOfDictRegions.size()) return NOT_VALID;
190  return m_vecOfDictRegions.at(regHash)->deta();
191 }

◆ file_names()

const std::vector< std::string > & AtlasDetectorID::file_names ( void  ) const
inherited

File names for subdet dictionaries.

Definition at line 472 of file AtlasDetectorID.cxx.

472  {
473  return m_file_names;
474 }

◆ fill_vec_of_dict_regions()

int CaloIDHelper::fill_vec_of_dict_regions ( const std::string &  group_name = "")
protectedinherited

Initialize the list of detector regions.

init_regions should have been called first.

Parameters
group_nameThe group for this helper.
Returns
0 on success; non-zero on failure.

Definition at line 261 of file CaloIDHelper.cxx.

262 {
263  m_vecOfDictRegions.clear();
264  m_vecOfDictRegions.reserve (regions().hash_max());
265  IdContext region_cntxt = region_context();
266  ExpandedIdentifier expRegId;
267  for (Identifier id : regions().range()) {
268  if(!get_expanded_id(id, expRegId, &region_cntxt)) {
269  m_vecOfDictRegions.push_back (m_dict->find_region(expRegId,group_name));
270  }
271  }
272  // cppcheck-suppress assertWithSideEffect
273  assert (m_vecOfDictRegions.size() == regions().hash_max());
274  return 0;
275 }

◆ fix_barrel_ec()

std::string AtlasDetectorID::fix_barrel_ec ( const std::string &  barrel_ec) const
protectedinherited

◆ forward_field_value()

int AtlasDetectorID::forward_field_value ( ) const
inlineprotectedinherited

Definition at line 540 of file AtlasDetectorID.h.

540 {return (m_FWD_ID);}

◆ fwd_exp()

ExpandedIdentifier AtlasDetectorID::fwd_exp ( void  ) const
protectedinherited

Definition at line 1085 of file AtlasDetectorID.cxx.

1086 {
1088  return (result << m_FWD_ID);
1089 }

◆ get_expanded_id()

int Tile_Base_ID::get_expanded_id ( const Identifier id,
ExpandedIdentifier exp_id,
const IdContext context 
) const
privatevirtualinherited

create expanded Identifier from Identifier (return == 0 for OK)

Implements CaloIDHelper.

Definition at line 1594 of file Tile_Base_ID.cxx.

1597 {
1598  int result = 1;
1599 
1600  size_t begin = (context) ? context->begin_index() : 0;
1601  size_t end = (context) ? context->end_index() : m_ADC_INDEX;
1602  assert (end <= m_ADC_INDEX);
1603 
1604  if (0 == end) {
1605  result = 0;
1606  }
1607  else if ( 0 == begin) {
1609  result = dict()->unpack(group(), id, empty, end, exp_id);
1610  }
1611  else {
1612  result = dict()->unpack(group(), id, context->prefix_id(), end, exp_id);
1613  }
1614  return result;
1615 }

◆ get_field()

int Tile_Base_ID::get_field ( const Identifier id,
size_type  index 
) const
privateinherited

unpack one field from Identifier

Definition at line 112 of file Tile_Base_ID.cxx.

113 {
114  int field = 0;
115  if(!dict()->unpack(id, 0, index, m_tile_region_index, field)) {
116  return field;
117  } else {
118  return 0;
119  }
120 }

◆ get_hash()

int Tile_Base_ID::get_hash ( const Identifier id,
IdentifierHash hash_id,
const IdContext context = 0 
) const
virtualinherited

create hash id from compact id (return == 0 for OK)

Reimplemented from CaloIDHelper.

Definition at line 1155 of file Tile_Base_ID.cxx.

1158 {
1159  hash_id = 0;
1160  int result = 1;
1161 
1162  size_t begin = (context) ? context->begin_index(): 0;
1163  size_t end = (context) ? context->end_index() : 0;
1164 
1165  if (0 == begin) {
1166  if ( m_ADC_INDEX == end ) {
1167  result = m_adcs.get_hash (id, hash_id);
1168  } else if ( m_PMT_INDEX == end ) {
1169  result = m_pmts.get_hash (pmt_id(id), hash_id);
1170  } else if ( m_SAMPLE_INDEX == end ) {
1171  result = channels().get_hash (cell_id(id), hash_id);
1172  } else if ( m_TOWER_INDEX == end ) {
1173  result = m_towers.get_hash (tower_id(id), hash_id);
1174  } else if ( m_MODULE_INDEX == end ) {
1175  result = m_modules.get_hash (module_id(id), hash_id);
1176  } else if ( m_SIDE_INDEX == end ) {
1177  result = regions().get_hash (region_id(id), hash_id);
1178  }
1179  }
1180 
1181  return (result);
1182 }

◆ get_id()

int Tile_Base_ID::get_id ( const IdentifierHash hash_id,
Identifier id,
const IdContext context = 0 
) const
virtualinherited

create compact id from hash id (return == 0 for OK)

Reimplemented from CaloIDHelper.

Definition at line 1081 of file Tile_Base_ID.cxx.

1084 {
1085  int result = 1;
1086  id.clear();
1087 
1088  size_t begin = (context) ? context->begin_index(): 0;
1089  // cannot get hash if end is 0:
1090  size_t end = (context) ? context->end_index() : 0;
1091 
1092  if (0 == begin) {
1093 
1094  if ( m_ADC_INDEX == end ) {
1095  if (hash_id < m_adcs.hash_max()) {
1096  id = m_adcs.id (hash_id);
1097  result = 0;
1098  } else {
1099  MsgStream log(m_msgSvc, "Tile_Base_ID" );
1100  log << MSG::ERROR << "get_id: adc hash_id is out of range " << hash_id
1101  << " > " << m_adcs.hash_max() << endmsg;
1102  }
1103  } else if ( m_PMT_INDEX == end ) {
1104  if (hash_id < m_pmts.hash_max()) {
1105  id = m_pmts.id (hash_id);
1106  result = 0;
1107  } else {
1108  MsgStream log(m_msgSvc, "Tile_Base_ID" );
1109  log << MSG::ERROR << "get_id: pmt hash_id is out of range " << hash_id
1110  << " >= " << m_pmts.hash_max() << endmsg;
1111  }
1112  } else if ( m_SAMPLE_INDEX == end ) {
1113  if (hash_id < channels().hash_max()) {
1114  id = channels().id (hash_id);
1115  result = 0;
1116  } else {
1117  MsgStream log(m_msgSvc, "Tile_Base_ID" );
1118  log << MSG::ERROR << "get_id: cell hash_id is out of range " << hash_id
1119  << " >= " << channels().hash_max() << endmsg;
1120  }
1121  } else if ( m_TOWER_INDEX == end ) {
1122  if (hash_id < m_towers.hash_max()) {
1123  id = m_towers.id (hash_id);
1124  result = 0;
1125  } else {
1126  MsgStream log(m_msgSvc, "Tile_Base_ID" );
1127  log << MSG::ERROR << "get_id: tower hash_id is out of range " << hash_id
1128  << " >= " << m_towers.hash_max() << endmsg;
1129  }
1130  } else if ( m_MODULE_INDEX == end ) {
1131  if (hash_id < m_modules.hash_max()) {
1132  id = m_modules.id (hash_id);
1133  result = 0;
1134  } else {
1135  MsgStream log(m_msgSvc, "Tile_Base_ID" );
1136  log << MSG::ERROR << "get_id: module hash_id is out of range " << hash_id
1137  << " >= " << m_modules.hash_max() << endmsg;
1138  }
1139  } else if ( m_SIDE_INDEX == end ) {
1140  if (hash_id < regions().hash_max()) {
1141  id = regions().id (hash_id);
1142  result = 0;
1143  } else {
1144  MsgStream log(m_msgSvc, "Tile_Base_ID" );
1145  log << MSG::ERROR << "get_id: region hash_id is out of range " << hash_id
1146  << " >= " << regions().hash_max() << endmsg;
1147  }
1148  }
1149  }
1150  return(result);
1151 }

◆ get_neighbours()

int Tile_Base_ID::get_neighbours ( const IdentifierHash id,
const LArNeighbours::neighbourOption option,
std::vector< IdentifierHash > &  neighbourList 
) const
inherited

access to hashes for neighbours return == 0 for neighbours found option = prevInPhi, nextInPhi, prevInEta, nextInEta, ..., ..., all2D, prevInSamp, nextInSamp, ..., all3D

     in 'nextInEta' next always means higher eta (i.e. smaller abs(eta) for negative eta)
     in 'prevInEta' prev always means smaller eta
     in 'nextInPhi' next always means higher phi (i.e. smaller abs(phi) for negative phi)
     in 'prevInPhi' prev always means smaller phi
     in 'nextInSamp', next means 'away from the centre of Atlas'
     in 'prevInSamp', prev means 'towards   the centre of Atlas'
 all2D means PrevInEta and nextInEta for all cells obtained in prevInPhi and nextInPhi
 all3D means prevInSamp and nextInSamp for all cells obtained in all2D 

NOTA neighbour is also returned across Barrel-ITC-Gap.Sin-Ext.Barrel boundaries

Definition at line 1790 of file Tile_Base_ID.cxx.

1792 {
1793  int result = 1;
1794 
1795  if(!m_do_neighbours) {
1796 
1797  MsgStream log(m_msgSvc, "TileID" );
1798  log << MSG::WARNING << "get_neighbours: neighbours not initialized !!! returning empty list" << endmsg;
1799 
1800  neighbourList.resize(0);
1801  return result;
1802  }
1803 
1804  neighbourList.clear();
1805 
1806  bool prevSmp = (option & prevInSamp);
1807  bool nextSmp = (option & nextInSamp);
1808 
1809  bool corners2DOnly = ( (option & all2D) == corners2D );
1810 
1811  bool prevPhi = corners2DOnly || (option & prevInPhi);
1812  bool nextPhi = corners2DOnly || (option & nextInPhi);
1813  bool prevEta = corners2DOnly || (option & prevInEta);
1814  bool nextEta = corners2DOnly || (option & nextInEta);
1815 
1816  std::vector<IdentifierHash> inpList;
1819 
1820  inpList.push_back(id_orig);
1821 
1822  // all phi neighbours (just 2)
1823  if (prevPhi) m_neighbour.prev_phi(id_orig,neighbourList);
1824  if (nextPhi) m_neighbour.next_phi(id_orig,neighbourList);
1825 
1826  if ( (option & all2D) == faces2D) {
1827  // do nothing
1828 
1829  } else if (corners2DOnly) {
1830  // neighbours of phi-neigbours are 2D corners
1831  inpList = std::move(neighbourList); // copy 2 phi neighbours to input list
1832  neighbourList.clear(); // and clear neighbour list
1833 
1834  } else if ( (option & all2D) == all2D) {
1835  // copy all neighbours to input list
1836  inpList.insert (inpList.end(), neighbourList.begin(), neighbourList.end());
1837 
1838  }
1839 
1840  // all eta neighbours
1841  inpItr = inpList.begin();
1842  inpLast = inpList.end();
1843  for ( ; inpItr != inpLast; ++inpItr) {
1844  IdentifierHash id = (*inpItr);
1845  if (prevEta) m_neighbour.prev_eta(id,neighbourList);
1846  if (nextEta) m_neighbour.next_eta(id,neighbourList);
1847  }
1848 
1849  // all sampling neighbours
1850  if( (option & all3DwithCorners) == all3DwithCorners ) {
1851 
1852  inpItr = inpList.begin();
1853  inpLast = inpList.end();
1854  for ( ; inpItr != inpLast; ++inpItr) {
1855  IdentifierHash id = (*inpItr);
1856  m_neighbour.prev_samp_wide(id,neighbourList);
1857  m_neighbour.next_samp_wide(id,neighbourList);
1858  }
1859 
1860  } else {
1861 
1862  if (prevSmp) m_neighbour.prev_samp(id_orig,neighbourList);
1863  if (nextSmp) m_neighbour.next_samp(id_orig,neighbourList);
1864 
1865  }
1866 
1867  if (!neighbourList.empty()) result = 0;
1868 
1869  return result;
1870 }

◆ group()

const std::string & AtlasDetectorID::group ( ) const
inherited

Group name for this helper.

Definition at line 34 of file AtlasDetectorID.cxx.

35 {
36  return m_group;
37 }

◆ helper()

virtual HelperType AtlasDetectorID::helper ( ) const
inlinevirtualinherited

Type of helper, defaulted to 'Unimplemented'.

Reimplemented in SCT_ID, PLR_ID, and PixelID.

Definition at line 90 of file AtlasDetectorID.h.

90  {
92  }

◆ hgtd()

Identifier AtlasDetectorID::hgtd ( void  ) const
inherited

Definition at line 116 of file AtlasDetectorID.cxx.

116  {
117  Identifier result{0};
118  // Pack field
121  return result;
122 }

◆ hgtd_exp()

ExpandedIdentifier AtlasDetectorID::hgtd_exp ( void  ) const
protectedinherited

Definition at line 1113 of file AtlasDetectorID.cxx.

1114 {
1116  return (result << m_HGTD_ID);
1117 }

◆ hgtd_field_value()

int AtlasDetectorID::hgtd_field_value ( ) const
inlineprotectedinherited

Definition at line 504 of file AtlasDetectorID.h.

504 {return (m_HGTD_ID);}

◆ indet()

Identifier AtlasDetectorID::indet ( void  ) const
inherited

Detector systems:

Definition at line 57 of file AtlasDetectorID.cxx.

57  {
58  Identifier result{0};
59  // Pack field
61  return result;
62 }

◆ indet_exp()

ExpandedIdentifier AtlasDetectorID::indet_exp ( void  ) const
protectedinherited

Detector systems:

Definition at line 1050 of file AtlasDetectorID.cxx.

1051 {
1053  return (result << m_INDET_ID);
1054 }

◆ indet_field_value()

int AtlasDetectorID::indet_field_value ( ) const
inlineprotectedinherited

Provide efficient access to individual field values, for subclass idhelpers.

Definition at line 480 of file AtlasDetectorID.h.

480 {return (m_INDET_ID);}

◆ init_hashes()

int Tile_Base_ID::init_hashes ( )
privateinherited

Definition at line 1754 of file Tile_Base_ID.cxx.

1755 {
1756  if (regions().init (*this, "regions", m_full_region_range,
1758  m_SIDE_INDEX))
1759  return 1;
1760 
1761  if (m_modules.init (*this, "modules", m_full_module_range,
1763  m_MODULE_INDEX))
1764  return 1;
1765 
1766  if (m_towers.init (*this, "towers", m_full_tower_range,
1768  m_TOWER_INDEX))
1769  return 1;
1770 
1771  if (channels().init (*this, "channels", m_full_cell_range,
1773  m_SAMPLE_INDEX))
1774  return 1;
1775 
1776  if (m_pmts.init (*this, "pmts", m_full_pmt_range,
1778  m_PMT_INDEX))
1779  return 1;
1780 
1781  if (m_adcs.init (*this, "adcs", m_full_adc_range,
1783  m_ADC_INDEX))
1784  return 1;
1785 
1786  return (0);
1787 }

◆ initialize_base_from_dictionary()

int Tile_Base_ID::initialize_base_from_dictionary ( const IdDictMgr dict_mgr,
const std::string &  group_name 
)
inherited

initialization from the identifier dictionary

Definition at line 1185 of file Tile_Base_ID.cxx.

1187 {
1188  MsgStream log(m_msgSvc, "Tile_Base_ID" );
1189  log << MSG::DEBUG << "initialize_base_from_dictionary " << endmsg;
1190 
1191  // Check whether this helper should be reinitialized
1192  if (!reinitialize(dict_mgr)) {
1193  if(m_msgSvc)log << MSG::DEBUG << "Request to reinitialize not satisfied - tags have not changed" << endmsg;
1194  return (0);
1195  }
1196  else {
1197  if(m_msgSvc)log << MSG::DEBUG << "(Re)initialize" << endmsg;
1198  }
1199 
1200  log << MSG::DEBUG << "calling base initialize_base_from_dictionary" << endmsg;
1201 
1202  // init base object
1204  "TileCalorimeter"))
1205  return (1);
1206 
1207  // Initialize the field indices
1208  if(initLevelsFromDict (group_name)) return (1);
1209 
1210 
1211  // Find value for the field Tile Calorimeter
1212  const IdDictDictionary* atlasDict = dict_mgr.find_dictionary ("ATLAS");
1213  int tileField = -1;
1214  if (atlasDict->get_label_value("subdet", "TileCalorimeter", tileField)) {
1215  log << MSG::ERROR << "Could not get value for label 'TileCalorimeter' of field 'subdet' in dictionary "
1216  << atlasDict->name()
1217  << endmsg;
1218  return (1);
1219  }
1220 
1221  // Set up id for region and range prefix
1222  ExpandedIdentifier tile_id;
1223  tile_id.add(tileField);
1224  ExpandedIdentifier reg_id = tile_id;
1225  Range prefix;
1226 
1227  m_full_adc_range = dict()->build_multirange(reg_id, group_name, prefix, "adc");
1228  m_full_pmt_range = dict()->build_multirange(reg_id, group_name, prefix, "pmt");
1229  m_full_cell_range = dict()->build_multirange(reg_id, group_name, prefix, "sampling");
1230  m_full_tower_range = dict()->build_multirange(reg_id, group_name, prefix, "tower");
1231  m_full_module_range = dict()->build_multirange(reg_id, group_name, prefix, "module");
1233 
1234  // Find value for the field Tile Online
1235  int tilehwField = -1;
1236  if (dict()->get_label_value("section", "Online", tilehwField)) {
1237  log << MSG::ERROR << "Could not get value for label 'Online' of field 'section' in dictionary "
1238  << dict()->name()
1239  << endmsg;
1240  } else {
1241  // remove online ID from all ranges
1242  reg_id = tile_id;
1243  reg_id.add(tilehwField);
1250  }
1251 
1252  // Find value for the field Tile Testbeam
1253  int tiletbField = -1;
1254  if (dict()->get_label_value("section", "Testbeam", tiletbField)) {
1255  log << MSG::ERROR << "Could not get value for label 'Testbeam' of field 'section' in dictionary "
1256  << dict()->name()
1257  << endmsg;
1258  } else {
1259  // remove testbeam ID from all ranges
1260  reg_id = std::move(tile_id);
1261  reg_id.add(tiletbField);
1268  }
1269 
1270  if (!m_quiet) {
1271  log << MSG::DEBUG << "initialize_from_dict : " << endmsg;
1272  log << MSG::DEBUG << " region range -> " << (std::string)m_full_region_range << endmsg;
1273  log << MSG::DEBUG << " module range -> " << (std::string)m_full_module_range << endmsg;
1274  log << MSG::DEBUG << " tower range -> " << (std::string)m_full_tower_range << endmsg;
1275  log << MSG::DEBUG << " cell range -> " << (std::string)m_full_cell_range << endmsg;
1276  log << MSG::DEBUG << " pmt range -> " << (std::string)m_full_pmt_range << endmsg;
1277  log << MSG::DEBUG << " adc range -> " << (std::string)m_full_adc_range << endmsg;
1278  }
1279 
1280  // Setup the hash tables
1281  if(init_hashes()) return (1);
1282 
1283  // Setup hash tables for finding neighbors
1284  if(m_do_neighbours) {
1285  // temporary workaround to get the super_cell neighbor file directly
1286  // instead of from the db. In the long term the file name should
1287  // come from the db as well
1288  std::string neighbourFile;
1289  if ( m_supercell ) {
1290  neighbourFile = "TileSuperCellNeighbour.txt";
1291  }
1292  else {
1293  neighbourFile = dict_mgr.find_metadata("TILENEIGHBORS");
1294  }
1295  if (neighbourFile.empty()) throw std::runtime_error("TileID: Cannot find the Tile Neighbour file name");
1296  if(m_neighbour.initialize(this, neighbourFile)) return (1);
1297  }
1298 
1299  return 0;
1300 }

◆ initialize_from_dictionary()

int Tile_SuperCell_ID::initialize_from_dictionary ( const IdDictMgr dict_mgr)
virtual

initialization from the identifier dictionary

Reimplemented from AtlasDetectorID.

Definition at line 30 of file Tile_SuperCell_ID.cxx.

31 {
32  MsgStream log(m_msgSvc, "Tile_SuperCell_ID" );
33 
34  std::string strg = "initialize_from_dictionary";
35  log << MSG::DEBUG << strg << endmsg;
36 
37  // Check whether this helper should be reinitialized
38  if (!reinitialize(dict_mgr)) {
39  log << MSG::DEBUG << "Request to reinitialize not satisfied - tags have not changed" << endmsg;
40  return (0);
41  }
42  else {
43  log << MSG::DEBUG << "(Re)initialize" << endmsg;
44  }
45 
46  // init base object
48  return (1);
49 
50  return 0;
51 }

◆ initLevelsFromDict()

int Tile_Base_ID::initLevelsFromDict ( const std::string &  group_name)
privateinherited

Definition at line 1617 of file Tile_Base_ID.cxx.

1618 {
1619  MsgStream log(m_msgSvc, "Tile_Base_ID" );
1620 
1621  if(!dict()) {
1622  log << MSG::ERROR << "initLevelsFromDict - dictionary NOT initialized "
1623  << endmsg;
1624  return (1);
1625  }
1626 
1627  // Find out which identifier field corresponds to each level.
1628 
1629  m_SYSTEM_INDEX = 999;
1630  m_SECTION_INDEX = 999;
1631  m_SIDE_INDEX = 999;
1632  m_MODULE_INDEX = 999;
1633  m_TOWER_INDEX = 999;
1634  m_SAMPLE_INDEX = 999;
1635  m_PMT_INDEX = 999;
1636  m_ADC_INDEX = 999;
1637 
1639  if ( !group ){
1640  log << MSG::ERROR << "initLevelsFromDict - cannot find " << group_name
1641  << " group' field " << endmsg;
1642  }
1643  else {
1644  m_tile_region_index = group->region(0).index();
1645  }
1646 
1647  // Fing a Tile region
1648  const IdDictField* field = dict()->find_field("subdet") ;
1649  if (field) {
1650  m_SYSTEM_INDEX = field->index();
1651  }
1652  else {
1653  log << MSG::ERROR << "initLevelsFromDict - unable to find 'subdet' field "
1654  << endmsg ;
1655  return (1);
1656  }
1657 
1658  field = dict()->find_field("section") ;
1659  if (field) {
1660  m_SECTION_INDEX = field->index();
1661  }
1662  else {
1663  log << MSG::ERROR << "initLevelsFromDict - unable to find 'section' field "
1664  << endmsg ;
1665  return (1);
1666  }
1667 
1668  field = dict()->find_field("side") ;
1669  if (field) {
1670  m_SIDE_INDEX = field->index();
1671  }
1672  else {
1673  log << MSG::ERROR << "initLevelsFromDict - unable to find 'side' field "
1674  << endmsg ;
1675  return (1);
1676  }
1677 
1678  field = dict()->find_field("module") ;
1679  if (field) {
1680  m_MODULE_INDEX = field->index();
1681  }
1682  else {
1683  log << MSG::ERROR << "initLevelsFromDict - unable to find 'module' field "
1684  << endmsg ;
1685  return (1);
1686  }
1687 
1688  field = dict()->find_field("tower") ;
1689  if (field) {
1690  m_TOWER_INDEX = field->index();
1691  }
1692  else {
1693  log << MSG::ERROR << "initLevelsFromDict - unable to find 'tower' field "
1694  << endmsg ;
1695  return (1);
1696  }
1697 
1698  field = dict()->find_field("sampling") ;
1699  if (field) {
1700  m_SAMPLE_INDEX = field->index();
1701  }
1702  else {
1703  log << MSG::ERROR << "initLevelsFromDict - unable to find 'sampling' field "
1704  << endmsg ;
1705  return (1);
1706  }
1707 
1708  field = dict()->find_field("pmt") ;
1709  if (field) {
1710  m_PMT_INDEX = field->index();
1711  }
1712  else {
1713  log << MSG::ERROR << "initLevelsFromDict - unable to find 'pmt' field "
1714  << endmsg ;
1715  return (1);
1716  }
1717 
1718  field = dict()->find_field("adc") ;
1719  if (field) {
1720  m_ADC_INDEX = field->index();
1721  }
1722  else {
1723  log << MSG::ERROR << "initLevelsFromDict - unable to find 'adc' field "
1724  << endmsg ;
1725  return (1);
1726  }
1727 
1729 
1730  m_system_impl = region.implementation(m_SYSTEM_INDEX);
1731  m_section_impl = region.implementation(m_SECTION_INDEX);
1732  m_side_impl = region.implementation(m_SIDE_INDEX);
1733  m_module_impl = region.implementation(m_MODULE_INDEX);
1734  m_tower_impl = region.implementation(m_TOWER_INDEX);
1735  m_sample_impl = region.implementation(m_SAMPLE_INDEX);
1736  m_pmt_impl = region.implementation(m_PMT_INDEX);
1737  m_adc_impl = region.implementation(m_ADC_INDEX);
1738 
1739  if (!m_quiet) {
1740  log << MSG::DEBUG << "initLevelsFromDict decode index and bit fields for each level: " << endmsg ;
1741  log << MSG::DEBUG << " system [" << m_SYSTEM_INDEX << "] " << m_system_impl.show_to_string() << endmsg ;
1742  log << MSG::DEBUG << " section [" << m_SECTION_INDEX << "] " << m_section_impl.show_to_string() << endmsg ;
1743  log << MSG::DEBUG << " side [" << m_SIDE_INDEX << "] " << m_side_impl.show_to_string() << endmsg ;
1744  log << MSG::DEBUG << " module [" << m_MODULE_INDEX << "] " << m_module_impl.show_to_string() << endmsg ;
1745  log << MSG::DEBUG << " tower [" << m_TOWER_INDEX << "] " << m_tower_impl.show_to_string() << endmsg ;
1746  log << MSG::DEBUG << " sampling [" << m_SAMPLE_INDEX << "] " << m_sample_impl.show_to_string() << endmsg ;
1747  log << MSG::DEBUG << " pmt [" << m_PMT_INDEX << "] " << m_pmt_impl.show_to_string() << endmsg ;
1748  log << MSG::DEBUG << " adc [" << m_ADC_INDEX << "] " << m_adc_impl.show_to_string() << endmsg ;
1749  }
1750 
1751  return(0) ;
1752 }

◆ initMessaging()

void AthMessaging::initMessaging ( ) const
privateinherited

Initialize our message level and MessageSvc.

This method should only be called once.

Definition at line 39 of file AthMessaging.cxx.

40 {
42  m_lvl = m_imsg ?
43  static_cast<MSG::Level>( m_imsg.load()->outputLevel(m_nm) ) :
44  MSG::INFO;
45 }

◆ is_alfa()

bool AtlasDetectorID::is_alfa ( Identifier  id) const
inlineinherited

Definition at line 810 of file AtlasDetectorID.h.

811 {
812  bool result = false;
813  if(is_forward(id)) {
814  result = (abs(m_lar_part_impl.unpack(id)) == m_ALFA_ID);
815  }
816  return result;
817 }

◆ is_bcm()

bool AtlasDetectorID::is_bcm ( Identifier  id) const
inlineinherited

Definition at line 820 of file AtlasDetectorID.h.

821 {
822  bool result = false;
823  if(is_forward(id)) {
824  result = (abs(m_lar_part_impl.unpack(id)) == m_BCM_ID);
825  }
826  return result;
827 }

◆ is_calo() [1/2]

bool AtlasDetectorID::is_calo ( const ExpandedIdentifier id) const
inherited

Definition at line 298 of file AtlasDetectorID.cxx.

298  {
299  return id.fields() > 0 && id[0] == m_CALO_ID;
300 }

◆ is_calo() [2/2]

bool AtlasDetectorID::is_calo ( Identifier  id) const
inlineinherited

Definition at line 576 of file AtlasDetectorID.h.

577 {
578  return (m_det_impl.unpack(id) == m_CALO_ID);
579 }

◆ is_csc() [1/2]

bool AtlasDetectorID::is_csc ( const ExpandedIdentifier id) const
inherited

Definition at line 340 of file AtlasDetectorID.cxx.

340  {
341  return id.fields() > 4 && id[0] == m_MUON_ID && id[4] == m_CSC_ID;
342 }

◆ is_csc() [2/2]

bool AtlasDetectorID::is_csc ( Identifier  id) const
inlineinherited

Definition at line 760 of file AtlasDetectorID.h.

761 {
762  bool result = false;
763  if (!is_muon(id)) return false;
764  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
765  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
766  result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasCSC));
767  return result;
768 }

◆ is_forward()

bool AtlasDetectorID::is_forward ( Identifier  id) const
inlineinherited

Definition at line 804 of file AtlasDetectorID.h.

805 {
806  return (m_det_impl.unpack(id) == m_FWD_ID);
807 }

◆ is_hgtd() [1/2]

bool AtlasDetectorID::is_hgtd ( const ExpandedIdentifier id) const
inherited

Definition at line 311 of file AtlasDetectorID.cxx.

311  {
312  return is_indet(id) && id.fields() > 1 && id[1] == m_HGTD_ID;
313 }

◆ is_hgtd() [2/2]

bool AtlasDetectorID::is_hgtd ( Identifier  id) const
inlineinherited

Definition at line 663 of file AtlasDetectorID.h.

664 {
665  bool result = false;
666  // Must check is_pixel to allow for special bits
667  // (don't need this check for 64-bit identifier, but leave it in for now)
668  if(is_indet(id) && !is_pixel(id)) {
670  }
671  return result;
672 }

◆ is_high_gain()

bool Tile_Base_ID::is_high_gain ( const Identifier id) const
inherited

Definition at line 290 of file Tile_Base_ID.cxx.

291 {
292  bool result = is_tile(id)
293  && ( adc(id) == Tile_Base_ID::HIGHGAIN );
294 
295  return result;
296 }

◆ is_indet() [1/2]

bool AtlasDetectorID::is_indet ( const ExpandedIdentifier id) const
inherited

Definition at line 286 of file AtlasDetectorID.cxx.

286  {
287  return id.fields() > 0 && id[0] == m_INDET_ID;
288 }

◆ is_indet() [2/2]

bool AtlasDetectorID::is_indet ( Identifier  id) const
inlineinherited

Definition at line 552 of file AtlasDetectorID.h.

553 {
554  return (m_det_impl.unpack(id) == m_INDET_ID);
555 }

◆ is_lar() [1/2]

bool AtlasDetectorID::is_lar ( const ExpandedIdentifier id) const
inherited

Definition at line 289 of file AtlasDetectorID.cxx.

289  {
290  return id.fields() > 0 && id[0] == m_LAR_ID;
291 }

◆ is_lar() [2/2]

bool AtlasDetectorID::is_lar ( Identifier  id) const
inlineinherited

Definition at line 558 of file AtlasDetectorID.h.

559 {
560  return (m_det_impl.unpack(id) == m_LAR_ID);
561 }

◆ is_lar_dm()

bool AtlasDetectorID::is_lar_dm ( Identifier  id) const
inlineinherited

LAr/Tile dead material:

Definition at line 605 of file AtlasDetectorID.h.

606 {
607  bool result = false;
608  if (is_calo(id)) {
609  int temp = m_calo_side_impl.unpack(id);
610  result = (m_lar_dm_field.match(temp));
611  }
612  return result;
613 }

◆ is_lar_em() [1/2]

bool AtlasDetectorID::is_lar_em ( const ExpandedIdentifier id) const
inherited

Definition at line 321 of file AtlasDetectorID.cxx.

321  {
322  return is_lar(id) && id.fields() > 1 && std::abs(id[1]) == m_LAR_EM_ID;
323 }

◆ is_lar_em() [2/2]

bool AtlasDetectorID::is_lar_em ( Identifier  id) const
inlineinherited

Definition at line 687 of file AtlasDetectorID.h.

688 {
689  bool result = false;
690  if(is_lar(id)) {
691  result = (abs(m_lar_part_impl.unpack(id)) == m_LAR_EM_ID);
692  }
693  return result;
694 }

◆ is_lar_fcal() [1/2]

bool AtlasDetectorID::is_lar_fcal ( const ExpandedIdentifier id) const
inherited

Definition at line 328 of file AtlasDetectorID.cxx.

328  {
329  return is_lar(id) && id.fields() > 1 && std::abs(id[1]) == m_LAR_FCAL_ID;
330 }

◆ is_lar_fcal() [2/2]

bool AtlasDetectorID::is_lar_fcal ( Identifier  id) const
inlineinherited

Definition at line 708 of file AtlasDetectorID.h.

709 {
710  bool result = false;
711  if(is_lar(id)) {
712  result = (abs(m_lar_part_impl.unpack(id)) == m_LAR_FCAL_ID);
713  }
714  return result;
715 }

◆ is_lar_hec() [1/2]

bool AtlasDetectorID::is_lar_hec ( const ExpandedIdentifier id) const
inherited

Definition at line 324 of file AtlasDetectorID.cxx.

324  {
325  return is_lar(id) && id.fields() > 1 && std::abs(id[1]) == m_LAR_HEC_ID;
326 }

◆ is_lar_hec() [2/2]

bool AtlasDetectorID::is_lar_hec ( Identifier  id) const
inlineinherited

Definition at line 698 of file AtlasDetectorID.h.

699 {
700  bool result = false;
701  if(is_lar(id)) {
702  result = (abs(m_lar_part_impl.unpack(id)) == m_LAR_HEC_ID);
703  }
704  return result;
705 }

◆ is_lar_minifcal() [1/2]

bool AtlasDetectorID::is_lar_minifcal ( const ExpandedIdentifier id) const
inherited

Definition at line 332 of file AtlasDetectorID.cxx.

332  {
333  return is_lar_fcal(id) && id.fields() > 3 &&std::abs(id[3]) == 0;
334 }

◆ is_lar_minifcal() [2/2]

bool AtlasDetectorID::is_lar_minifcal ( Identifier  id) const
inlineinherited

Definition at line 718 of file AtlasDetectorID.h.

719 {
720  bool result = false;
721  if(is_lar_fcal(id)) {
722  result = (m_lar_fcal_module_impl.unpack(id) == 0);
723  }
724  return result;
725 }

◆ is_low_gain()

bool Tile_Base_ID::is_low_gain ( const Identifier id) const
inherited

Definition at line 281 of file Tile_Base_ID.cxx.

282 {
283  bool result = is_tile(id)
284  && ( adc(id) == Tile_Base_ID::LOWGAIN );
285 
286  return result;
287 }

◆ is_lucid()

bool AtlasDetectorID::is_lucid ( Identifier  id) const
inlineinherited

Definition at line 830 of file AtlasDetectorID.h.

831 {
832  bool result = false;
833  if(is_forward(id)) {
834  result = (abs(m_lar_part_impl.unpack(id)) == m_LUCID_ID);
835  }
836  return result;
837 }

◆ is_lumi() [1/2]

bool AtlasDetectorID::is_lumi ( const ExpandedIdentifier id) const
inherited

Definition at line 314 of file AtlasDetectorID.cxx.

314  {
315  return is_indet(id) && id.fields() > 1 && id[1] == m_LUMI_ID;
316 }

◆ is_lumi() [2/2]

bool AtlasDetectorID::is_lumi ( Identifier  id) const
inlineinherited

Definition at line 675 of file AtlasDetectorID.h.

676 {
677  bool result = false;
678  // Must check is_pixel to allow for special bits
679  // (don't need this check for 64-bit identifier, but leave it in for now)
680  if(is_indet(id) && !is_pixel(id)) {
682  }
683  return result;
684 }

◆ is_lvl1_online()

bool AtlasDetectorID::is_lvl1_online ( Identifier  id) const
inlineinherited

Definition at line 593 of file AtlasDetectorID.h.

594 {
595  bool result = false;
596  if (is_calo(id)) {
597  int temp = m_calo_side_impl.unpack(id);
598  result = (m_lvl1_onl_field.match(temp));
599  }
600  return result;
601 }

◆ is_lvl1_trig_towers()

bool AtlasDetectorID::is_lvl1_trig_towers ( Identifier  id) const
inlineinherited

Definition at line 582 of file AtlasDetectorID.h.

583 {
584  bool result = false;
585  if (is_calo(id)) {
586  int temp = m_calo_side_impl.unpack(id);
587  result = (m_lvl1_field.match(temp));
588  }
589  return result;
590 }

◆ is_mdt() [1/2]

bool AtlasDetectorID::is_mdt ( const ExpandedIdentifier id) const
inherited

Definition at line 336 of file AtlasDetectorID.cxx.

336  {
337  return id.fields() > 4 && id[0] == m_MUON_ID && id[4] == m_MDT_ID;
338 }

◆ is_mdt() [2/2]

bool AtlasDetectorID::is_mdt ( Identifier  id) const
inlineinherited

Definition at line 728 of file AtlasDetectorID.h.

729 {
730  bool result = false;
731  if (!is_muon(id)) return false;
732  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
733  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
734  // MDT and RPC can only be destinguished by the additional bit in the ID
735  // since the station names are ambiguous
736  if (is_muon(id) && ((techBit == AtlasDetDescr::fAtlasMDT)
737  || (techBit == AtlasDetDescr::fAtlasRPC))) {
739  }
740  return result;
741 }

◆ is_mm() [1/2]

bool AtlasDetectorID::is_mm ( const ExpandedIdentifier id) const
inherited

Definition at line 356 of file AtlasDetectorID.cxx.

356  {
357  return id.fields() > 4 && id[0] == m_MUON_ID && id[4] == m_MM_ID;
358 }

◆ is_mm() [2/2]

bool AtlasDetectorID::is_mm ( Identifier  id) const
inlineinherited

Definition at line 782 of file AtlasDetectorID.h.

783 {
784  bool result = false;
785  if (!is_muon(id)) return false;
786  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
787  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
788  result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasMM));
789  return result;
790 }

◆ is_muon() [1/2]

bool AtlasDetectorID::is_muon ( const ExpandedIdentifier id) const
inherited

Definition at line 295 of file AtlasDetectorID.cxx.

295  {
296  return id.fields() > 0 && id[0] == m_MUON_ID;
297 }

◆ is_muon() [2/2]

bool AtlasDetectorID::is_muon ( Identifier  id) const
inlineinherited

Definition at line 570 of file AtlasDetectorID.h.

571 {
572  return (m_det_impl.unpack(id) == m_MUON_ID);
573 }

◆ is_negative()

bool Tile_Base_ID::is_negative ( const Identifier id) const
inherited

Definition at line 245 of file Tile_Base_ID.cxx.

246 {
247  bool result = is_tile(id)
248  && ( side(id) == Tile_Base_ID::NEGATIVE );
249 
250  return result;
251 }

◆ is_pixel() [1/2]

bool AtlasDetectorID::is_pixel ( const ExpandedIdentifier id) const
inherited

Definition at line 301 of file AtlasDetectorID.cxx.

301  {
302  return is_indet(id) && id.fields() > 1 && id[1] == m_PIXEL_ID;
303 }

◆ is_pixel() [2/2]

bool AtlasDetectorID::is_pixel ( Identifier  id) const
inlineinherited

Definition at line 629 of file AtlasDetectorID.h.

630 {
631  bool result = false;
632  if(is_indet(id)) {
634  }
635  return result;
636 }

◆ is_plr() [1/2]

bool AtlasDetectorID::is_plr ( const ExpandedIdentifier id) const
inherited

Definition at line 317 of file AtlasDetectorID.cxx.

317  {
318  return is_lumi(id) && id.fields() > 2 && id[2] == m_LUMI_PLR_ID;
319 }

◆ is_plr() [2/2]

bool AtlasDetectorID::is_plr ( Identifier  id) const
inherited

◆ is_positive()

bool Tile_Base_ID::is_positive ( const Identifier id) const
inherited

Definition at line 254 of file Tile_Base_ID.cxx.

255 {
256  bool result = is_tile(id)
257  && ( side(id) == Tile_Base_ID::POSITIVE );
258 
259  return result;
260 }

◆ is_rpc() [1/2]

bool AtlasDetectorID::is_rpc ( const ExpandedIdentifier id) const
inherited

Definition at line 344 of file AtlasDetectorID.cxx.

344  {
345  return id.fields() > 4 && id[0] == m_MUON_ID && id[4] == m_RPC_ID;
346 }

◆ is_rpc() [2/2]

bool AtlasDetectorID::is_rpc ( Identifier  id) const
inlineinherited

Definition at line 744 of file AtlasDetectorID.h.

745 {
746  bool result = false;
747  if (!is_muon(id)) return false;
748  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
749  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
750  // MDT and RPC can only be destinguished by the additional bit in the ID
751  // since the station names are ambiguous
752  if (is_muon(id) && ((techBit == AtlasDetDescr::fAtlasMDT)
753  || (techBit == AtlasDetDescr::fAtlasRPC))) {
755  }
756  return result;
757 }

◆ is_sct() [1/2]

bool AtlasDetectorID::is_sct ( const ExpandedIdentifier id) const
inherited

Definition at line 305 of file AtlasDetectorID.cxx.

305  {
306  return is_indet(id) && id.fields() > 1 && id[1] == m_SCT_ID;
307 }

◆ is_sct() [2/2]

bool AtlasDetectorID::is_sct ( Identifier  id) const
inlineinherited

Definition at line 639 of file AtlasDetectorID.h.

640 {
641  bool result = false;
642  // Must check is_pixel to allow for special bits
643  // (don't need this check for 64-bit identifier, but leave it in for now)
644  if(is_indet(id) && !is_pixel(id)) {
646  }
647  return result;
648 }

◆ is_stgc() [1/2]

bool AtlasDetectorID::is_stgc ( const ExpandedIdentifier id) const
inherited

Definition at line 352 of file AtlasDetectorID.cxx.

352  {
353  return id.fields() > 4 && id[0] == m_MUON_ID && id[4] == m_STGC_ID;
354 }

◆ is_stgc() [2/2]

bool AtlasDetectorID::is_stgc ( Identifier  id) const
inlineinherited

Definition at line 793 of file AtlasDetectorID.h.

794 {
795  bool result = false;
796  if (!is_muon(id)) return false;
797  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
798  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
799  result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasSTGC));
800  return result;
801 }

◆ is_supercell()

bool Tile_Base_ID::is_supercell ( const Identifier id) const
inherited

Definition at line 298 of file Tile_Base_ID.cxx.

299 {
300  return is_tile(id) && (get_field(id,m_SECTION_INDEX) & SUPERCELL_MASK);
301 }

◆ is_tgc() [1/2]

bool AtlasDetectorID::is_tgc ( const ExpandedIdentifier id) const
inherited

Definition at line 348 of file AtlasDetectorID.cxx.

348  {
349  return id.fields() > 4 && id[0] == m_MUON_ID && id[4] == m_TGC_ID;
350 }

◆ is_tgc() [2/2]

bool AtlasDetectorID::is_tgc ( Identifier  id) const
inlineinherited

Definition at line 771 of file AtlasDetectorID.h.

772 {
773  bool result = false;
774  if (!is_muon(id)) return false;
775  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
776  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
777  result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasTGC));
778  return result;
779 }

◆ is_tile() [1/2]

bool AtlasDetectorID::is_tile ( const ExpandedIdentifier id) const
inherited

Definition at line 292 of file AtlasDetectorID.cxx.

292  {
293  return id.fields() > 0 && id[0] == m_TILE_ID;
294 }

◆ is_tile() [2/2]

bool AtlasDetectorID::is_tile ( Identifier  id) const
inlineinherited

Definition at line 564 of file AtlasDetectorID.h.

565 {
566  return (m_det_impl.unpack(id) == m_TILE_ID);
567 }

◆ is_tile_aux()

bool Tile_Base_ID::is_tile_aux ( const Identifier id) const
inherited

Definition at line 236 of file Tile_Base_ID.cxx.

237 {
238  bool result = is_tile(id)
239  && ( section(id) == Tile_Base_ID::AUXDET );
240 
241  return result;
242 }

◆ is_tile_barrel()

bool Tile_Base_ID::is_tile_barrel ( const Identifier id) const
inherited

Test of an Identifier to see if it belongs to a particular part of the calorimeter.

Definition at line 209 of file Tile_Base_ID.cxx.

210 {
211  bool result = is_tile(id)
212  && ( section(id) == Tile_Base_ID::BARREL );
213 
214  return result;
215 }

◆ is_tile_dm()

bool AtlasDetectorID::is_tile_dm ( Identifier  id) const
inlineinherited

Definition at line 617 of file AtlasDetectorID.h.

618 {
619  bool result = false;
620  if (is_calo(id)) {
621  int temp = m_calo_side_impl.unpack(id);
622  result = (m_tile_dm_field.match(temp));
623  }
624  return result;
625 }

◆ is_tile_extbarrel()

bool Tile_Base_ID::is_tile_extbarrel ( const Identifier id) const
inherited

Definition at line 218 of file Tile_Base_ID.cxx.

219 {
220  bool result = is_tile(id)
221  && ( section(id) == Tile_Base_ID::EXTBAR );
222 
223  return result;
224 }

◆ is_tile_gap()

bool Tile_Base_ID::is_tile_gap ( const Identifier id) const
inherited

Definition at line 227 of file Tile_Base_ID.cxx.

228 {
229  bool result = is_tile(id)
230  && ( section(id) == Tile_Base_ID::GAPDET );
231 
232  return result;
233 }

◆ is_tile_gapscin()

bool Tile_Base_ID::is_tile_gapscin ( const Identifier id) const
inherited

Definition at line 272 of file Tile_Base_ID.cxx.

273 {
274  bool result = is_tile(id)
275  && ( sample(id) == Tile_Base_ID::SAMP_E );
276 
277  return result;
278 }

◆ is_trt() [1/2]

bool AtlasDetectorID::is_trt ( const ExpandedIdentifier id) const
inherited

Definition at line 308 of file AtlasDetectorID.cxx.

308  {
309  return is_indet(id) && id.fields() > 1;
310 }

◆ is_trt() [2/2]

bool AtlasDetectorID::is_trt ( Identifier  id) const
inlineinherited

Definition at line 651 of file AtlasDetectorID.h.

652 {
653  bool result = false;
654  // Must check is_pixel to allow for special bits
655  // (don't need this check for 64-bit identifier, but leave it in for now)
656  if(is_indet(id) && !is_pixel(id)) {
658  }
659  return result;
660 }

◆ is_twosides()

bool Tile_Base_ID::is_twosides ( const Identifier id) const
inherited

Definition at line 263 of file Tile_Base_ID.cxx.

264 {
265  bool result = is_tile(id)
266  && ( side(id) == 0 );
267 
268  return result;
269 }

◆ is_zdc()

bool AtlasDetectorID::is_zdc ( Identifier  id) const
inlineinherited

Definition at line 840 of file AtlasDetectorID.h.

841 {
842  bool result = false;
843  if(is_forward(id)) {
844  result = (abs(m_lar_part_impl.unpack(id)) == m_ZDC_ID);
845  }
846  return result;
847 }

◆ lar()

Identifier AtlasDetectorID::lar ( void  ) const
inherited

Definition at line 64 of file AtlasDetectorID.cxx.

64  {
65  Identifier result{0};
66  // Pack field
68  return result;
69 }

◆ lar_dm()

Identifier AtlasDetectorID::lar_dm ( void  ) const
inherited

Definition at line 148 of file AtlasDetectorID.cxx.

148  {
149  Identifier result{0};
150  // Pack field
153  return result;
154 }

◆ lar_em()

Identifier AtlasDetectorID::lar_em ( void  ) const
inherited

Definition at line 132 of file AtlasDetectorID.cxx.

132  {
133  Identifier result{0};
134  // Pack field
137  return result;
138 }

◆ lar_em_exp()

ExpandedIdentifier AtlasDetectorID::lar_em_exp ( void  ) const
protectedinherited

LAr.

Definition at line 1127 of file AtlasDetectorID.cxx.

1128 {
1130  return (result << m_LAR_EM_ID);
1131 }

◆ lar_em_field_value()

int AtlasDetectorID::lar_em_field_value ( ) const
inlineprotectedinherited

Definition at line 513 of file AtlasDetectorID.h.

513 {return (m_LAR_EM_ID);}

◆ lar_exp()

ExpandedIdentifier AtlasDetectorID::lar_exp ( void  ) const
protectedinherited

Definition at line 1057 of file AtlasDetectorID.cxx.

1058 {
1060  return (result << m_LAR_ID);
1061 }

◆ lar_fcal()

Identifier AtlasDetectorID::lar_fcal ( void  ) const
inherited

Definition at line 172 of file AtlasDetectorID.cxx.

172  {
173  Identifier result{0};
174  // Pack field
177  return result;
178 }

◆ lar_fcal_exp()

ExpandedIdentifier AtlasDetectorID::lar_fcal_exp ( void  ) const
protectedinherited

Definition at line 1141 of file AtlasDetectorID.cxx.

1142 {
1144  return (result << m_LAR_FCAL_ID);
1145 }

◆ lar_fcal_field_value()

int AtlasDetectorID::lar_fcal_field_value ( ) const
inlineprotectedinherited

Definition at line 519 of file AtlasDetectorID.h.

519 {return (m_LAR_FCAL_ID);}

◆ lar_field_value()

int AtlasDetectorID::lar_field_value ( ) const
inlineprotectedinherited

Definition at line 483 of file AtlasDetectorID.h.

483 {return (m_LAR_ID);}

◆ lar_hec()

Identifier AtlasDetectorID::lar_hec ( void  ) const
inherited

Definition at line 164 of file AtlasDetectorID.cxx.

164  {
165  Identifier result{0};
166  // Pack field
169  return result;
170 }

◆ lar_hec_exp()

ExpandedIdentifier AtlasDetectorID::lar_hec_exp ( void  ) const
protectedinherited

Definition at line 1134 of file AtlasDetectorID.cxx.

1135 {
1137  return (result << m_LAR_HEC_ID);
1138 }

◆ lar_hec_field_value()

int AtlasDetectorID::lar_hec_field_value ( ) const
inlineprotectedinherited

Definition at line 516 of file AtlasDetectorID.h.

516 {return (m_LAR_HEC_ID);}

◆ lar_lvl1()

Identifier AtlasDetectorID::lar_lvl1 ( void  ) const
inherited

Definition at line 140 of file AtlasDetectorID.cxx.

140  {
141  Identifier result{0};
142  // Pack field
145  return result;
146 }

◆ lucid_exp()

ExpandedIdentifier AtlasDetectorID::lucid_exp ( void  ) const
protectedinherited

Definition at line 1162 of file AtlasDetectorID.cxx.

1163 {
1165  return (result << m_LUCID_ID);
1166 }

◆ lucid_field_value()

int AtlasDetectorID::lucid_field_value ( ) const
inlineprotectedinherited

Definition at line 546 of file AtlasDetectorID.h.

546 {return (m_LUCID_ID);}

◆ lumi()

Identifier AtlasDetectorID::lumi ( void  ) const
inherited

Definition at line 124 of file AtlasDetectorID.cxx.

124  {
125  Identifier result{0};
126  // Pack field
129  return result;
130 }

◆ lumi_exp()

ExpandedIdentifier AtlasDetectorID::lumi_exp ( void  ) const
protectedinherited

Definition at line 1120 of file AtlasDetectorID.cxx.

1121 {
1123  return (result << m_LUMI_ID);
1124 }

◆ lumi_field_value()

int AtlasDetectorID::lumi_field_value ( ) const
inlineprotectedinherited

Definition at line 507 of file AtlasDetectorID.h.

507 {return (m_LUMI_ID);}

◆ mdt()

Identifier AtlasDetectorID::mdt ( void  ) const
inherited

Definition at line 39 of file AtlasDetectorID.cxx.

39  {
40  return Identifier{};
41 }

◆ mdt_field_value()

int AtlasDetectorID::mdt_field_value ( ) const
inlineprotectedinherited

Definition at line 522 of file AtlasDetectorID.h.

522 {return (m_MDT_ID);}

◆ mm()

Identifier AtlasDetectorID::mm ( void  ) const
inherited

Definition at line 54 of file AtlasDetectorID.cxx.

54  {
55  return Identifier{};
56 }

◆ mm_field_value()

int AtlasDetectorID::mm_field_value ( ) const
inlineprotectedinherited

Definition at line 537 of file AtlasDetectorID.h.

537 {return (m_MM_ID);}

◆ module()

int Tile_Base_ID::module ( const Identifier id) const
inherited

Definition at line 163 of file Tile_Base_ID.cxx.

164 {
165  return get_field(id,m_MODULE_INDEX);
166 }

◆ module_begin()

Tile_Base_ID::id_iterator Tile_Base_ID::module_begin ( ) const
inherited

iterator over set of module Identifiers

Definition at line 1347 of file Tile_Base_ID.cxx.

1348 {
1349  return m_modules.begin();
1350 }

◆ module_context()

IdContext Tile_Base_ID::module_context ( ) const
inherited

id for modules

Definition at line 1051 of file Tile_Base_ID.cxx.

1052 {
1053  return {0, m_MODULE_INDEX};
1054 }

◆ module_end()

Tile_Base_ID::id_iterator Tile_Base_ID::module_end ( ) const
inherited

Definition at line 1352 of file Tile_Base_ID.cxx.

1353 {
1354  return m_modules.end();
1355 }

◆ module_hash_max()

Tile_Base_ID::size_type Tile_Base_ID::module_hash_max ( ) const
inherited

Definition at line 1307 of file Tile_Base_ID.cxx.

1308 {
1309  return m_modules.hash_max();
1310 }

◆ module_id() [1/5]

Identifier Tile_Base_ID::module_id ( const ExpandedIdentifier exp_id) const
inherited

Definition at line 1459 of file Tile_Base_ID.cxx.

1460 {
1461  return this->module_id (exp_id[m_SECTION_INDEX],
1462  exp_id[m_SIDE_INDEX],
1463  exp_id[m_MODULE_INDEX]);
1464 }

◆ module_id() [2/5]

Identifier Tile_Base_ID::module_id ( const Identifier any_id) const
inherited

Definition at line 517 of file Tile_Base_ID.cxx.

518 {
520  // extract with the dictionary
521  Identifier id;
522  if(!dict()->copy(any_id, 0, 0, m_MODULE_INDEX, m_tile_region_index, id)) {
523  result = id;
524  }
525  return (result);
526 }

◆ module_id() [3/5]

bool Tile_Base_ID::module_id ( const Identifier region_id,
int  module,
Identifier module_id 
) const
inherited

Construct identifiers with checking.

Definition at line 915 of file Tile_Base_ID.cxx.

917 {
919  IdContext context = region_context();
920  get_expanded_id(region_id, id, &context);
921  id << module;
922  if (!m_full_module_range.match(id)) {
923  return false;
924  }
925 
926  Identifier compactId(0);
927  if (!dict()->pack32(id,0, id.fields() - 1,compactId)) {
928  module_id = compactId;
929  }
930  return true;
931 }

◆ module_id() [4/5]

Identifier Tile_Base_ID::module_id ( int  section,
int  side,
int  module 
) const
inherited

Definition at line 509 of file Tile_Base_ID.cxx.

511 {
512  return module_id (section, side, module, do_checks());
513 }

◆ module_id() [5/5]

Identifier Tile_Base_ID::module_id ( int  section,
int  side,
int  module,
bool  checks 
) const
inherited

Definition at line 473 of file Tile_Base_ID.cxx.

476 {
477  if(checks) {
478 
479  // Check that id is within allowed range
480 
481  // Fill expanded id
482  ExpandedIdentifier expId(tile_exp());
483  expId << encode_section (section) << side << module;
484 
485  if (!m_full_module_range.match(expId)) {
486  std::string errorMessage = "Tile_Base_ID::module_id() result is not OK: ID, range = "
487  + std::string(expId) + " , " + (std::string)m_full_region_range;
488  throw TileID_Exception(errorMessage , 1);
489  }
490  }
491 
493 
494  int id[8];
497  id[m_SIDE_INDEX] = side;
498  id[m_MODULE_INDEX] = module;
499 
500  Identifier compactId(0);
501  if (!dict()->pack32(id, 0, m_MODULE_INDEX, m_tile_region_index, compactId)) {
502  result = compactId;
503  }
504 
505  return result;
506 }

◆ module_ids()

const std::vector< Identifier > & Tile_Base_ID::module_ids ( ) const
inherited

Definition at line 1427 of file Tile_Base_ID.cxx.

1428 {
1429  return m_modules.ids();
1430 }

◆ module_range()

Tile_Base_ID::id_range Tile_Base_ID::module_range ( ) const
inherited

Definition at line 1357 of file Tile_Base_ID.cxx.

1358 {
1359  return m_modules.range();
1360 }

◆ msg() [1/2]

MsgStream & AthMessaging::msg ( ) const
inlineinherited

The standard message stream.

Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 164 of file AthMessaging.h.

165 {
166  MsgStream* ms = m_msg_tls.get();
167  if (!ms) {
168  if (!m_initialized.test_and_set()) initMessaging();
169  ms = new MsgStream(m_imsg,m_nm);
170  m_msg_tls.reset( ms );
171  }
172 
173  ms->setLevel (m_lvl);
174  return *ms;
175 }

◆ msg() [2/2]

MsgStream & AthMessaging::msg ( const MSG::Level  lvl) const
inlineinherited

The standard message stream.

Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 179 of file AthMessaging.h.

180 { return msg() << lvl; }

◆ msgLvl()

bool AthMessaging::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Test the output level.

Parameters
lvlThe message level to test against
Returns
boolean Indicating if messages at given level will be printed
Return values
trueMessages at level "lvl" will be printed

Definition at line 151 of file AthMessaging.h.

152 {
153  if (!m_initialized.test_and_set()) initMessaging();
154  if (m_lvl <= lvl) {
155  msg() << lvl;
156  return true;
157  } else {
158  return false;
159  }
160 }

◆ msgSvc()

IMessageSvc* CaloIDHelper::msgSvc ( )
inherited

Return the message service for this helper (may be null).

◆ muon()

Identifier AtlasDetectorID::muon ( void  ) const
inherited

Definition at line 78 of file AtlasDetectorID.cxx.

78  {
79  Identifier result{0};
80  // Pack field
82  return result;
83 }

◆ muon_exp()

ExpandedIdentifier AtlasDetectorID::muon_exp ( void  ) const
protectedinherited

Definition at line 1071 of file AtlasDetectorID.cxx.

1072 {
1074  return (result << m_MUON_ID);
1075 }

◆ muon_field_value()

int AtlasDetectorID::muon_field_value ( ) const
inlineprotectedinherited

Definition at line 489 of file AtlasDetectorID.h.

489 {return (m_MUON_ID);}

◆ name()

const std::string& CaloIDHelper::name ( ) const
inherited

Return the name for this helper.

◆ phi0()

float CaloIDHelper::phi0 ( const IdentifierHash  regHash) const
inherited

Return the minimum phi of region, or NOT_VALID.

Parameters
regHashREGION hash code.

Definition at line 220 of file CaloIDHelper.cxx.

221 {
222  if (regHash >= m_vecOfDictRegions.size()) return NOT_VALID;
223  return (m_vecOfDictRegions.at(regHash)->phi0());
224 }

◆ phi_max()

int Tile_Base_ID::phi_max ( const Identifier id) const
inherited

Definition at line 1573 of file Tile_Base_ID.cxx.

1574 {
1575  ExpandedIdentifier expId;
1576  IdContext context = cell_context();
1577  if(!get_expanded_id(id, expId, &context)) {
1578  int result = -999;
1579  for (unsigned int i = 0; i < m_full_cell_range.size(); ++i) {
1580  const Range& range = m_full_cell_range[i];
1581  if (range.match(expId)) {
1582  const Range::field& phi_field = range[m_MODULE_INDEX];
1583  if (not phi_field.empty()) {
1584  int phimax = phi_field.get_maximum();
1585  if (result < phimax) result = phimax;
1586  }
1587  }
1588  }
1589  return (result);
1590  }
1591  return (-999); // default
1592 }

◆ phiGranularity()

float CaloIDHelper::phiGranularity ( const IdentifierHash  regHash) const
inherited

Return the phi granularity of a region, or NOT_VALID.

Parameters
regHashREGION hash code.

Definition at line 198 of file CaloIDHelper.cxx.

199 {
200  if (regHash >= m_vecOfDictRegions.size()) return NOT_VALID;
201  return 2. * M_PI / m_vecOfDictRegions.at(regHash)->dphi();
202 }

◆ pixel()

Identifier AtlasDetectorID::pixel ( void  ) const
inherited

Definition at line 92 of file AtlasDetectorID.cxx.

92  {
93  Identifier result{0};
94  // Pack field
97  return result;
98 }

◆ pixel_exp()

ExpandedIdentifier AtlasDetectorID::pixel_exp ( void  ) const
protectedinherited

Inner Detector:

Definition at line 1092 of file AtlasDetectorID.cxx.

1093 {
1095  return (result << m_PIXEL_ID);
1096 }

◆ pixel_field_value()

int AtlasDetectorID::pixel_field_value ( ) const
inlineprotectedinherited

Definition at line 495 of file AtlasDetectorID.h.

495 {return (m_PIXEL_ID);}

◆ plr_field_value()

int AtlasDetectorID::plr_field_value ( ) const
inlineprotectedinherited

Definition at line 510 of file AtlasDetectorID.h.

510 {return (m_LUMI_PLR_ID);}

◆ pmt()

int Tile_Base_ID::pmt ( const Identifier id) const
inherited

Definition at line 184 of file Tile_Base_ID.cxx.

185 {
186  return get_field(id,m_PMT_INDEX);
187 }

◆ pmt_begin()

Tile_Base_ID::id_iterator Tile_Base_ID::pmt_begin ( ) const
inherited

iterator over set of pmt Identifiers

Definition at line 1392 of file Tile_Base_ID.cxx.

1393 {
1394  return m_pmts.begin();
1395 }

◆ pmt_context()

IdContext Tile_Base_ID::pmt_context ( ) const
inherited

id for PMTs

Definition at line 1069 of file Tile_Base_ID.cxx.

1070 {
1071  return {0, m_PMT_INDEX};
1072 }

◆ pmt_end()

Tile_Base_ID::id_iterator Tile_Base_ID::pmt_end ( ) const
inherited

Definition at line 1397 of file Tile_Base_ID.cxx.

1398 {
1399  return m_pmts.end();
1400 }

◆ pmt_hash_max()

Tile_Base_ID::size_type Tile_Base_ID::pmt_hash_max ( ) const
inherited

Definition at line 1322 of file Tile_Base_ID.cxx.

1323 {
1324  return m_pmts.hash_max();
1325 }

◆ pmt_id() [1/7]

Identifier Tile_Base_ID::pmt_id ( const ExpandedIdentifier exp_id) const
inherited

Definition at line 1483 of file Tile_Base_ID.cxx.

1484 {
1485  return this->pmt_id (exp_id[m_SECTION_INDEX],
1486  exp_id[m_SIDE_INDEX],
1487  exp_id[m_MODULE_INDEX],
1488  exp_id[m_TOWER_INDEX],
1489  exp_id[m_SAMPLE_INDEX],
1490  exp_id[m_PMT_INDEX]);
1491 }

◆ pmt_id() [2/7]

Identifier Tile_Base_ID::pmt_id ( const Identifier any_id) const
inherited

Definition at line 644 of file Tile_Base_ID.cxx.

645 {
647  // extract with the dictionary
648  Identifier id;
649  if(!dict()->copy(any_id, 0, 0, m_PMT_INDEX, m_tile_region_index, id)) {
650  result = id;
651  }
652  return (result);
653 }

◆ pmt_id() [3/7]

Identifier Tile_Base_ID::pmt_id ( const Identifier cell_id,
int  pmt 
) const
inherited

Definition at line 703 of file Tile_Base_ID.cxx.

705 {
706  return pmt_id (cell_id, pmt, do_checks());
707 }

◆ pmt_id() [4/7]

Identifier Tile_Base_ID::pmt_id ( const Identifier cell_id,
int  pmt,
bool  checks 
) const
inherited

Definition at line 656 of file Tile_Base_ID.cxx.

658 {
660 
661  int id[8];
662  id[0] = pmt;
663 
664  Identifier compactId(cell_id);
665  if (!dict()->pack32(id, m_PMT_INDEX, m_PMT_INDEX, m_tile_region_index, compactId)) {
666  result = compactId;
667  }
668  else {
669  std::string errorMessage = "Tile_Base_ID::pmt_id(cell_id,pmt) could not pack ID: "
670  + cell_id.getString() ;
671  throw TileID_Exception(errorMessage , 1);
672  }
673 
674  if(checks) {
675 
676  // Check that id is within allowed range
677 
678  // Fill expanded id
679  ExpandedIdentifier expId;
680 
681  IdContext context = cell_context();
682  if (get_expanded_id(result, expId, &context)) {
683  std::string errorMessage = "Tile_Base_ID::pmt_id(cell_id,pmt) result is not OK: ID = "
684  + result.getString() ;
685  throw TileID_Exception(errorMessage , 1);
686 
687  // region_id.show();
688  }
689 
690  expId << pmt;
691 
692  if (!m_full_pmt_range.match(expId)) {
693  std::string errorMessage = "Tile_Base_ID::pmt_id() result is not OK: ID, range = "
694  + std::string(expId) + " , " + (std::string)m_full_region_range;
695  throw TileID_Exception(errorMessage , 1);
696  }
697  }
698 
699  return result;
700 }

◆ pmt_id() [5/7]

bool Tile_Base_ID::pmt_id ( const Identifier cell_id,
int  pmt,
Identifier pmt_id 
) const
inherited

Definition at line 970 of file Tile_Base_ID.cxx.

972 {
974  IdContext context = cell_context();
975  get_expanded_id(cell_id, id, &context);
976  id << pmt;
977  if (!m_full_pmt_range.match(id)) {
978  return false;
979  }
980 
981  Identifier compactId(0);
982  if (!dict()->pack32(id,0, id.fields() - 1,compactId)) {
983  pmt_id = compactId;
984  }
985  return true;
986 }

◆ pmt_id() [6/7]

Identifier Tile_Base_ID::pmt_id ( int  section,
int  side,
int  module,
int  tower,
int  sample,
int  pmt 
) const
inherited

Definition at line 750 of file Tile_Base_ID.cxx.

753 {
754  return pmt_id (section, side, module, tower, sample, pmt, do_checks());
755 }

◆ pmt_id() [7/7]

Identifier Tile_Base_ID::pmt_id ( int  section,
int  side,
int  module,
int  tower,
int  sample,
int  pmt,
bool  checks 
) const
inherited

Definition at line 710 of file Tile_Base_ID.cxx.

714 {
715  if(checks) {
716 
717  // Check that id is within allowed range
718 
719  // Fill expanded id
720  ExpandedIdentifier expId(tile_exp());
721  expId << encode_section (section) << side << module << tower << sample << pmt;
722 
723  if (!m_full_pmt_range.match(expId)) {
724  std::string errorMessage = "Tile_Base_ID::pmt_id() result is not OK: ID, range = "
725  + std::string(expId) + " , " + (std::string)m_full_region_range;
726  throw TileID_Exception(errorMessage , 1);
727  }
728  }
729 
731 
732  int id[8];
735  id[m_SIDE_INDEX] = side;
736  id[m_MODULE_INDEX] = module;
737  id[m_TOWER_INDEX] = tower;
738  id[m_SAMPLE_INDEX] = sample;
739  id[m_PMT_INDEX] = pmt;
740 
741  Identifier compactId(0);
742  if (!dict()->pack32(id, 0, m_PMT_INDEX, m_tile_region_index, compactId)) {
743  result = compactId;
744  }
745 
746  return result;
747 }

◆ pmt_ids()

const std::vector< Identifier > & Tile_Base_ID::pmt_ids ( ) const
inherited

Definition at line 1442 of file Tile_Base_ID.cxx.

1443 {
1444  return m_pmts.ids();
1445 }

◆ pmt_range()

Tile_Base_ID::id_range Tile_Base_ID::pmt_range ( ) const
inherited

Definition at line 1402 of file Tile_Base_ID.cxx.

1403 {
1404  return m_pmts.range();
1405 }

◆ print()

void AtlasDetectorID::print ( Identifier  id,
const IdContext context = 0 
) const
inherited

Expanded print out of any identifier.

Definition at line 425 of file AtlasDetectorID.cxx.

425  {
426  ATH_MSG_INFO(print_to_string(id, context));
427 }

◆ print_to_string()

std::string AtlasDetectorID::print_to_string ( Identifier  id,
const IdContext context = 0 
) const
inherited

or provide the printout in string form

Definition at line 429 of file AtlasDetectorID.cxx.

430  {
431  // Print out for any Atlas identifier
432  std::string result;
434 
435  // Do a generic printout of identifier from dictionary
436  unsigned int max_index = (context) ? context->end_index() : 999;
437 
438  // Find the dictionary to use:
439  const IdDictDictionary *dict{nullptr};
440  ExpandedIdentifier expId;
441  ExpandedIdentifier prefix; // default is null prefix
442  Identifier compact = id;
443 
444  if (is_indet(id)) {
445  dict = m_indet_dict;
446  } else if (is_lar(id)) {
447  dict = m_lar_dict;
448  } else if (is_tile(id)) {
449  dict = m_tile_dict;
450  } else if (is_muon(id)) {
451  dict = m_muon_dict;
452  } else if (is_lvl1_trig_towers(id) || is_lvl1_online(id) ||
453  is_lar_dm(id) || is_tile_dm(id)) {
454  dict = m_calo_dict;
455  } else if (is_forward(id)) {
456  dict = m_fwd_dict;
457  }
458 
459  if (!dict) {
460  ATH_MSG_WARNING(__func__<<":"<<__LINE__<<" No dictionary could be associated to "<<id);
461  return result;
462  }
463  if (dict->unpack(m_group, compact, prefix, max_index," ", result)) {
464  return result;
465  }
466  }
467  return result;
468 }

◆ reg_begin()

Tile_Base_ID::id_iterator Tile_Base_ID::reg_begin ( ) const
inherited

iterator over set of region Identifiers

Definition at line 1332 of file Tile_Base_ID.cxx.

1333 {
1334  return regions().begin();
1335 }

◆ reg_end()

Tile_Base_ID::id_iterator Tile_Base_ID::reg_end ( ) const
inherited

Definition at line 1337 of file Tile_Base_ID.cxx.

1338 {
1339  return regions().end();
1340 }

◆ reg_range()

Tile_Base_ID::id_range Tile_Base_ID::reg_range ( ) const
inherited

Definition at line 1342 of file Tile_Base_ID.cxx.

1343 {
1344  return regions().range();
1345 }

◆ region() [1/2]

int Tile_Base_ID::region ( const Identifier id) const
inherited

Definition at line 134 of file Tile_Base_ID.cxx.

135 {
136  IdentifierHash hash_id;
137  IdContext context = region_context();
138 
139  get_hash(region_id(id),hash_id,&context);
140 
141  return (int)hash_id;
142 }

◆ region() [2/2]

int Tile_Base_ID::region ( int  section,
int  side 
) const
inherited

Definition at line 123 of file Tile_Base_ID.cxx.

124 {
125  IdentifierHash hash_id;
126  IdContext context = region_context();
127 
128  get_hash(region_id(section,side),hash_id,&context);
129 
130  return (int)hash_id;
131 }

◆ region_begin()

id_iterator Tile_Base_ID::region_begin ( ) const
inlineinherited

iterator over set of region Identifiers (synonyms for naming consistency)

Definition at line 218 of file Tile_Base_ID.h.

218 { return reg_begin(); }

◆ region_context()

IdContext Tile_Base_ID::region_context ( ) const
inherited

access to IdContext's which define which levels of fields are contained in the id

id for regions

Definition at line 1045 of file Tile_Base_ID.cxx.

1046 {
1047  return {0, m_SIDE_INDEX};
1048 }

◆ region_end()

id_iterator Tile_Base_ID::region_end ( ) const
inlineinherited

Definition at line 219 of file Tile_Base_ID.h.

219 { return reg_end(); }

◆ region_eta_max()

int Tile_Base_ID::region_eta_max ( const Identifier id) const
inherited

Definition at line 1567 of file Tile_Base_ID.cxx.

1568 {
1569  IdContext context = region_context();
1570  return eta_max (id, context);
1571 }

◆ region_eta_min()

int Tile_Base_ID::region_eta_min ( const Identifier id) const
inherited

Definition at line 1561 of file Tile_Base_ID.cxx.

1562 {
1563  IdContext context = region_context();
1564  return eta_min (id, context);
1565 }

◆ region_hash()

IdentifierHash CaloIDHelper::region_hash ( Identifier  regionId) const
inherited

Convert a connected region Identifier to a hash code.

Some subdetector helpers may override this with a faster version.

◆ region_hash_max()

Tile_Base_ID::size_type Tile_Base_ID::region_hash_max ( ) const
inherited

hash tables max size

Definition at line 1302 of file Tile_Base_ID.cxx.

1303 {
1304  return regions().hash_max();
1305 }

◆ region_id() [1/6]

Identifier Tile_Base_ID::region_id ( const ExpandedIdentifier exp_id) const
inherited

Construct identifiers from ExpandedIdentifier's.

Definition at line 1453 of file Tile_Base_ID.cxx.

1454 {
1455  return this->region_id (exp_id[m_SECTION_INDEX],
1456  exp_id[m_SIDE_INDEX]);
1457 }

◆ region_id() [2/6]

Identifier Tile_Base_ID::region_id ( const Identifier any_id) const
inherited

Definition at line 461 of file Tile_Base_ID.cxx.

462 {
464  // extract with the dictionary
465  Identifier id;
466  if(!dict()->copy(any_id, 0, 0, m_SIDE_INDEX, m_tile_region_index, id)) {
467  result = id;
468  }
469  return (result);
470 }

◆ region_id() [3/6]

Identifier CaloIDHelper::region_id ( IdentifierHash  hashId) const
inherited

Return the region Identifier for a given hash code (no checking).

◆ region_id() [4/6]

Identifier Tile_Base_ID::region_id ( int  index) const
inherited

build single region, module, tower, cell, pmt, adc identifiers

Definition at line 409 of file Tile_Base_ID.cxx.

410 {
412  IdentifierHash hash_id = index;
413  IdContext context = region_context();
414 
415  get_id(hash_id,result,&context);
416 
417  return result;
418 }

◆ region_id() [5/6]

Identifier Tile_Base_ID::region_id ( int  section,
int  side 
) const
inherited

Definition at line 454 of file Tile_Base_ID.cxx.

455 {
456  return region_id (section, side, do_checks());
457 }

◆ region_id() [6/6]

Identifier Tile_Base_ID::region_id ( int  section,
int  side,
bool  checks 
) const
inherited

Definition at line 421 of file Tile_Base_ID.cxx.

422 {
423  if(checks) {
424 
425  // Check that id is within allowed range
426 
427  // Fill expanded id
428  ExpandedIdentifier expId(tile_exp());
429  expId << encode_section (section) << side;
430 
431  if (!m_full_region_range.match(expId)) {
432  std::string errorMessage = "Tile_Base_ID::region_id() result is not OK: ID, range = "
433  + std::string(expId) + " , " + (std::string)m_full_region_range;
434  throw TileID_Exception(errorMessage , 1);
435  }
436  }
437 
439 
440  int id[8];
443  id[m_SIDE_INDEX] = side;
444 
445  Identifier compactId(0);
446  if (!dict()->pack32(id, 0, m_SIDE_INDEX, m_tile_region_index, compactId)) {
447  result = compactId;
448  }
449 
450  return result;
451 }

◆ region_ids()

const std::vector< Identifier > & Tile_Base_ID::region_ids ( ) const
inherited

provide access to id vectors, accessed via hash

Definition at line 1422 of file Tile_Base_ID.cxx.

1423 {
1424  return regions().ids();
1425 }

◆ region_range()

id_range Tile_Base_ID::region_range ( ) const
inlineinherited

Definition at line 220 of file Tile_Base_ID.h.

220 { return reg_range(); }

◆ regions() [1/2]

HashGroup& CaloIDHelper::regions ( )
protectedinherited

Return the HashGroup for regions. non-const.

◆ regions() [2/2]

const HashGroup& CaloIDHelper::regions ( ) const
inherited

Return the HashGroup for regions.

◆ register_dict_tag()

int AtlasDetectorID::register_dict_tag ( const IdDictMgr dict_mgr,
const std::string &  dict_name 
)
protectedinherited

Register the file and tag names for a particular IdDict dictionary.

Definition at line 203 of file AtlasDetectorID.cxx.

204  {
205  // Register version of dictionary dict_name
206 
207  // Access dictionary by name
208  const IdDictDictionary *dict = dict_mgr.find_dictionary(dict_name);
209  if (!dict) {
210  ATH_MSG_ERROR(__func__<<":"<<__LINE__<<" No dictionary found");
211  return 1;
212 
213  }
214  // Add in dict name, file name and version
215  m_dict_names.push_back(dict_name);
216  m_file_names.push_back(dict->file_name());
217  m_dict_tags.push_back(dict->dict_tag());
218  return 0;
219 }

◆ reinitialize()

bool AtlasDetectorID::reinitialize ( const IdDictMgr dict_mgr)
protectedinherited

Test whether an idhelper should be reinitialized based on the change of tags.

Definition at line 223 of file AtlasDetectorID.cxx.

223  {
224  // If no tag has been registered, then reinitialize
225  if (m_dict_tags.size() == 0){
226  return true;
227  }
228  // If no dict names have been registered, then reinitialize
229  if (m_dict_names.size() == 0){
230  return true;
231  }
232  // Loop over dict names and check version tags
233  if (m_dict_names.size() != m_dict_tags.size()) {
234  ATH_MSG_ERROR("reinitialize: dict names and tags vectors not the same length ");
235  ATH_MSG_ERROR("names: " << m_dict_names.size() << " tags: " << m_dict_tags.size());
236  }
237  for (unsigned int i = 0; i < m_dict_names.size(); ++i) {
238  // Access dictionary by name
239  const IdDictDictionary *dict = dict_mgr.find_dictionary(m_dict_names[i]);
240  if (!dict) {
241  ATH_MSG_ERROR("reinitialize: could not find dict - " << m_dict_names[i]);
242  return false;
243  }
244  if (m_dict_tags[i] != dict->dict_tag()) {
245  // Remove all memory of versions
246  m_dict_names.clear();
247  m_dict_tags.clear();
248  m_file_names.clear();
249  return true;
250  }
251  }
252 
253  // Tags match - don't reinitialize
254  return false;
255 }

◆ rpc()

Identifier AtlasDetectorID::rpc ( void  ) const
inherited

Definition at line 45 of file AtlasDetectorID.cxx.

45  {
46  return Identifier{};
47 }

◆ rpc_field_value()

int AtlasDetectorID::rpc_field_value ( ) const
inlineprotectedinherited

Definition at line 528 of file AtlasDetectorID.h.

528 {return (m_RPC_ID);}

◆ sample()

int Tile_Base_ID::sample ( const Identifier id) const
inherited

Definition at line 175 of file Tile_Base_ID.cxx.

176 {
177  if ( section(id) == Tile_Base_ID::AUXDET )
178  return Tile_Base_ID::SAMP_X;
179  else
180  return get_field(id,m_SAMPLE_INDEX);
181 }

◆ sampling()

int Tile_Base_ID::sampling ( const Identifier id) const
inlineinherited

Definition at line 163 of file Tile_Base_ID.h.

163 { return m_sample_impl.unpack(id); }

◆ sct()

Identifier AtlasDetectorID::sct ( void  ) const
inherited

Definition at line 100 of file AtlasDetectorID.cxx.

100  {
101  Identifier result{0};
102  // Pack field
105  return result;
106 }

◆ sct_exp()

ExpandedIdentifier AtlasDetectorID::sct_exp ( void  ) const
protectedinherited

Definition at line 1099 of file AtlasDetectorID.cxx.

1100 {
1102  return (result << m_SCT_ID);
1103 }

◆ sct_field_value()

int AtlasDetectorID::sct_field_value ( ) const
inlineprotectedinherited

Definition at line 498 of file AtlasDetectorID.h.

498 {return (m_SCT_ID);}

◆ section()

int Tile_Base_ID::section ( const Identifier id) const
inherited

Definition at line 151 of file Tile_Base_ID.cxx.

152 {
154 }

◆ set_do_checks()

void AtlasDetectorID::set_do_checks ( bool  do_checks)
overridevirtualinherited

Implements IdHelper.

Definition at line 481 of file AtlasDetectorID.cxx.

481  {
483 }

◆ set_do_neighbours()

void AtlasDetectorID::set_do_neighbours ( bool  do_neighbours)
overridevirtualinherited

Implements IdHelper.

Definition at line 489 of file AtlasDetectorID.cxx.

489  {
491 }

◆ set_quiet()

void AtlasDetectorID::set_quiet ( bool  quiet)
inherited

Set flag for suppressing informational output.

Definition at line 497 of file AtlasDetectorID.cxx.

497  {
498  m_quiet = quiet;
499 }

◆ setDictVersion()

void AtlasDetectorID::setDictVersion ( const IdDictMgr dict_mgr,
const std::string &  name 
)
overrideprotectedvirtualinherited

Implements IdHelper.

Definition at line 501 of file AtlasDetectorID.cxx.

501  {
502  const IdDictDictionary *dict = dict_mgr.find_dictionary(name);
503  m_dict_version = dict->version();
504 }

◆ setLevel()

void AthMessaging::setLevel ( MSG::Level  lvl)
inherited

Change the current logging level.

Use this rather than msg().setLevel() for proper operation with MT.

Definition at line 28 of file AthMessaging.cxx.

29 {
30  m_lvl = lvl;
31 }

◆ setMessageSvc()

void AtlasDetectorID::setMessageSvc ( IMessageSvc *  msgSvc)
overridevirtualinherited

Implements IdHelper.

Definition at line 493 of file AtlasDetectorID.cxx.

493  {
494  m_msgSvc = msgSvc;
495 }

◆ show()

void AtlasDetectorID::show ( Identifier  id,
const IdContext context = 0,
char  sep = '.' 
) const
inherited

Short print out of any identifier (optionally provide separation character - default is '.

'):

Definition at line 361 of file AtlasDetectorID.cxx.

361  {
362  ATH_MSG_INFO(show_to_string(id, context, sep));
363 }

◆ show_to_string()

std::string AtlasDetectorID::show_to_string ( Identifier  id,
const IdContext context = 0,
char  sep = '.' 
) const
inherited

or provide the printout in string form

Definition at line 367 of file AtlasDetectorID.cxx.

367  {
368  // Do a generic printout of identifier
369 
370  std::string result("Unable to decode id");
371  unsigned int max_index = (context) ? context->end_index() : 999;
372 
373  if (!id.is_valid()) {
374  return "[INVALID]";
375  }
376 
378  return result;
379 
380  // Find the dictionary to use:
381  const IdDictDictionary *dict{nullptr};
382  ExpandedIdentifier expId{};
383  ExpandedIdentifier prefix{}; // default is null prefix
384  Identifier compact = id;
385 
386  if (is_indet(id)) {
387  dict = m_indet_dict;
388  } else if (is_lar(id)) {
389  dict = m_lar_dict;
390  } else if (is_tile(id)) {
391  dict = m_tile_dict;
392  } else if (is_muon(id)) {
393  dict = m_muon_dict;
394  } else if (is_lvl1_trig_towers(id) || is_lvl1_online(id) ||
395  is_lar_dm(id) || is_tile_dm(id)) {
396  dict = m_calo_dict;
397  } else if (is_forward(id)) {
398  dict = m_fwd_dict;
399  }
400 
401  if (!dict) {
402  ATH_MSG_WARNING(__func__<<" No detector type associated to id "<<id);
403  return result;
404  }
405  if (dict->unpack(m_group, compact, prefix, max_index, expId)) {
406  return result;
407  }
408 
409  bool first = true;
410  result = "";
411  if ('.' == sep)
412  result = "[";
413  for (unsigned int i = 0; i < expId.fields(); ++i) {
414  if (first)
415  first = false;
416  else
417  result += sep;
418  result += std::format("{}", expId[i]);
419  }
420  if ('.' == sep)
421  result += "]";
422  return result;
423 }

◆ side()

int Tile_Base_ID::side ( const Identifier id) const
inherited

Definition at line 157 of file Tile_Base_ID.cxx.

158 {
159  return get_field(id,m_SIDE_INDEX);
160 }

◆ stgc()

Identifier AtlasDetectorID::stgc ( void  ) const
inherited

Definition at line 51 of file AtlasDetectorID.cxx.

51  {
52  return Identifier{};
53 }

◆ stgc_field_value()

int AtlasDetectorID::stgc_field_value ( ) const
inlineprotectedinherited

Definition at line 534 of file AtlasDetectorID.h.

534 {return (m_STGC_ID);}

◆ subdet_context()

IdContext AtlasDetectorID::subdet_context ( void  ) const
inherited

IdContext (indicates id length) for sub-detector.

Definition at line 186 of file AtlasDetectorID.cxx.

186  {
187  ExpandedIdentifier id{};
188  return IdContext{id, 0, m_SUBDET_INDEX};
189 }

◆ system()

int Tile_Base_ID::system ( const Identifier id) const
inherited

Definition at line 145 of file Tile_Base_ID.cxx.

146 {
147  return get_field(id,m_SYSTEM_INDEX);
148 }

◆ tgc()

Identifier AtlasDetectorID::tgc ( void  ) const
inherited

Definition at line 48 of file AtlasDetectorID.cxx.

48  {
49  return Identifier{};
50 }

◆ tgc_field_value()

int AtlasDetectorID::tgc_field_value ( ) const
inlineprotectedinherited

Definition at line 531 of file AtlasDetectorID.h.

531 {return (m_TGC_ID);}

◆ tile()

Identifier AtlasDetectorID::tile ( void  ) const
inherited

Definition at line 71 of file AtlasDetectorID.cxx.

71  {
72  Identifier result{0};
73  // Pack field
75  return result;
76 }

◆ tile_barrel()

Identifier Tile_Base_ID::tile_barrel ( ) const
inherited

build identifier for Tile Barrel

Definition at line 322 of file Tile_Base_ID.cxx.

323 {
325 
326  int id[8];
329 
330  Identifier compactId(0);
331  if (!dict()->pack32(id, 0, m_SECTION_INDEX, m_tile_region_index, compactId)) {
332  result = compactId;
333  }
334 
335  return result;
336 }

◆ tile_det() [1/2]

Identifier Tile_Base_ID::tile_det ( int  section) const
inherited

build identifier for any Tilecal section

Definition at line 402 of file Tile_Base_ID.cxx.

403 {
404  return tile_det (section, do_checks());
405 }

◆ tile_det() [2/2]

Identifier Tile_Base_ID::tile_det ( int  section,
bool  checks 
) const
inherited

Definition at line 378 of file Tile_Base_ID.cxx.

379 {
380  if(checks) {
381  // Check that id is within allowed range
382  // Fill expanded id
383  ExpandedIdentifier expId(tile_exp());
384  expId << encode_section (section) ;
385  }
386 
388 
389  int id[8];
392 
393  Identifier compactId(0);
394  if (!dict()->pack32(id, 0, m_SECTION_INDEX, m_tile_region_index, compactId)) {
395  result = compactId;
396  }
397 
398  return result;
399 }

◆ tile_dm()

Identifier AtlasDetectorID::tile_dm ( void  ) const
inherited

Definition at line 156 of file AtlasDetectorID.cxx.

156  {
157  Identifier result{0};
158  // Pack field
161  return result;
162 }

◆ tile_exp()

ExpandedIdentifier AtlasDetectorID::tile_exp ( void  ) const
protectedinherited

Definition at line 1064 of file AtlasDetectorID.cxx.

1065 {
1067  return (result << m_TILE_ID);
1068 }

◆ tile_extbarrel()

Identifier Tile_Base_ID::tile_extbarrel ( ) const
inherited

build identifier for Tile Extended Barrel

Definition at line 340 of file Tile_Base_ID.cxx.

341 {
343 
344  int id[8];
347 
348  Identifier compactId(0);
349  if (!dict()->pack32(id, 0, m_SECTION_INDEX, m_tile_region_index, compactId)) {
350  result = compactId;
351  }
352 
353  return result;
354 }

◆ tile_field_value()

int AtlasDetectorID::tile_field_value ( ) const
inlineprotectedinherited

Definition at line 486 of file AtlasDetectorID.h.

486 {return (m_TILE_ID);}

◆ tile_gap()

Identifier Tile_Base_ID::tile_gap ( ) const
inherited

build identifier for Tile Gap detector (ITC + gap/crack scintillators)

Definition at line 359 of file Tile_Base_ID.cxx.

360 {
362 
363  assert (!m_supercell);
364  int id[8];
367 
368  Identifier compactId(0);
369  if (!dict()->pack32(id, 0, m_SECTION_INDEX, m_tile_region_index, compactId)) {
370  result = compactId;
371  }
372 
373  return result;
374 }

◆ tile_system()

Identifier Tile_Base_ID::tile_system ( ) const
inherited

build identifier for whole TileCal

Definition at line 305 of file Tile_Base_ID.cxx.

306 {
308 
309  int id[8];
311 
312  Identifier compactId(0);
313  if (!dict()->pack32(id, 0, m_SYSTEM_INDEX, m_tile_region_index, compactId)) {
314  result = compactId;
315  }
316 
317  return result;
318 }

◆ to_range()

std::string AtlasDetectorID::to_range ( const ExpandedIdentifier id) const
protectedinherited

Definition at line 506 of file AtlasDetectorID.cxx.

506  {
507 
508  // Build a string from the contents of an identifier
509  int fields = id.fields();
510  std::string result("");
511  for (int i = 0; i < fields; ++i) {
512  if (i > 0) {
513  result += '/'; // add '/' only if NOT last one
514  }
515  result += std::format("{}", id[i]);
516  }
517  return result;
518 }

◆ to_string() [1/2]

std::string Tile_Base_ID::to_string ( const Identifier id,
int  level = 0 
) const
inherited

Definition at line 56 of file Tile_Base_ID.cxx.

57 {
58  IdContext context;
59  switch (level) {
60  case 1: case -6:
61  case 2: case -5: context = region_context(); break;
62  case 3: case -4: context = module_context(); break;
63  case 4: case -3: context = tower_context(); break;
64  case 5: case -2: context = cell_context(); break;
65  case 6: case -1: context = pmt_context(); break;
66  case 7: case 0: context = adc_context(); break;
67  default:
68  return "Tile_Base_ID::to_string - unknown context";
69  }
70 
71  ExpandedIdentifier exp_id;
72  if ( get_expanded_id(id,exp_id,&context) ) {
73  return "Tile_Base_ID::to_string - can not expand ID";
74  } else {
75  return (std::string)(exp_id);
76  }
77 }

◆ to_string() [2/2]

std::string Tile_Base_ID::to_string ( const IdentifierHash hash_id,
int  level = 0 
) const
inherited

Definition at line 80 of file Tile_Base_ID.cxx.

81 {
82  IdContext context;
83  switch (level) {
84  case 1: case -6:
85  case 2: case -5: context = region_context(); break;
86  case 3: case -4: context = module_context(); break;
87  case 4: case -3: context = tower_context(); break;
88  case 5: case -2: context = cell_context(); break;
89  case 6: case -1: context = pmt_context(); break;
90  case 7: case 0: context = adc_context(); break;
91  default:
92  return "Tile_Base_ID::to_string - unknown context";
93  }
94 
95  Identifier id;
96  if ( get_id ( hash_id, id, &context ) == 0 ) {
97  ExpandedIdentifier exp_id;
98  if ( get_expanded_id(id,exp_id,&context) ) {
99  return "Tile_Base_ID::to_string - can not expand ID";
100  } else {
101  return (std::string)(exp_id);
102  }
103  } else {
104  return "Tile_Base_ID::to_string - can not get ID from hash_id";
105  }
106 }

◆ tower()

int Tile_Base_ID::tower ( const Identifier id) const
inherited

Definition at line 169 of file Tile_Base_ID.cxx.

170 {
171  return get_field(id,m_TOWER_INDEX);
172 }

◆ tower_begin()

Tile_Base_ID::id_iterator Tile_Base_ID::tower_begin ( ) const
inherited

iterator over set of tower Identifiers

Definition at line 1362 of file Tile_Base_ID.cxx.

1363 {
1364  return m_towers.begin();
1365 }

◆ tower_context()

IdContext Tile_Base_ID::tower_context ( ) const
inherited

id for towers

Definition at line 1057 of file Tile_Base_ID.cxx.

1058 {
1059  return {0, m_TOWER_INDEX};
1060 }

◆ tower_end()

Tile_Base_ID::id_iterator Tile_Base_ID::tower_end ( ) const
inherited

Definition at line 1367 of file Tile_Base_ID.cxx.

1368 {
1369  return m_towers.end();
1370 }

◆ tower_hash_max()

Tile_Base_ID::size_type Tile_Base_ID::tower_hash_max ( ) const
inherited

Definition at line 1312 of file Tile_Base_ID.cxx.

1313 {
1314  return m_towers.hash_max();
1315 }

◆ tower_id() [1/5]

Identifier Tile_Base_ID::tower_id ( const ExpandedIdentifier exp_id) const
inherited

Definition at line 1466 of file Tile_Base_ID.cxx.

1467 {
1468  return this->tower_id (exp_id[m_SECTION_INDEX],
1469  exp_id[m_SIDE_INDEX],
1470  exp_id[m_MODULE_INDEX],
1471  exp_id[m_TOWER_INDEX]);
1472 }

◆ tower_id() [2/5]

Identifier Tile_Base_ID::tower_id ( const Identifier any_id) const
inherited

Definition at line 573 of file Tile_Base_ID.cxx.

574 {
576  // extract with the dictionary
577  Identifier id;
578  if(!dict()->copy(any_id, 0, 0, m_TOWER_INDEX, m_tile_region_index, id)) {
579  result = id;
580  }
581  return (result);
582 }

◆ tower_id() [3/5]

bool Tile_Base_ID::tower_id ( const Identifier region_id,
int  module,
int  tower,
Identifier tower_id 
) const
inherited

Definition at line 933 of file Tile_Base_ID.cxx.

935 {
937  IdContext context = region_context();
938  get_expanded_id(region_id, id, &context);
939  id << module << tower;
940  if (!m_full_tower_range.match(id)) {
941  return false;
942  }
943 
944  Identifier compactId(0);
945  if (!dict()->pack32(id,0, id.fields() - 1,compactId)) {
946  tower_id = compactId;
947  }
948  return true;
949 }

◆ tower_id() [4/5]

Identifier Tile_Base_ID::tower_id ( int  section,
int  side,
int  module,
int  tower 
) const
inherited

Definition at line 566 of file Tile_Base_ID.cxx.

568 {
569  return tower_id (section, side, module, tower, do_checks());
570 }

◆ tower_id() [5/5]

Identifier Tile_Base_ID::tower_id ( int  section,
int  side,
int  module,
int  tower,
bool  checks 
) const
inherited

Definition at line 529 of file Tile_Base_ID.cxx.

532 {
533  if(checks) {
534 
535  // Check that id is within allowed range
536 
537  // Fill expanded id
538  ExpandedIdentifier expId(tile_exp());
539  expId << encode_section (section) << side << module << tower;
540 
541  if (!m_full_tower_range.match(expId)) {
542  std::string errorMessage = "Tile_Base_ID::tower_id() result is not OK: ID, range = "
543  + std::string(expId) + " , " + (std::string)m_full_region_range;
544  throw TileID_Exception(errorMessage , 1);
545  }
546  }
547 
549 
550  int id[8];
553  id[m_SIDE_INDEX] = side;
554  id[m_MODULE_INDEX] = module;
555  id[m_TOWER_INDEX] = tower;
556 
557  Identifier compactId(0);
558  if (!dict()->pack32(id, 0, m_TOWER_INDEX, m_tile_region_index, compactId)) {
559  result = compactId;
560  }
561 
562  return result;
563 }

◆ tower_ids()

const std::vector< Identifier > & Tile_Base_ID::tower_ids ( ) const
inherited

Definition at line 1432 of file Tile_Base_ID.cxx.

1433 {
1434  return m_towers.ids();
1435 }

◆ tower_range()

Tile_Base_ID::id_range Tile_Base_ID::tower_range ( ) const
inherited

Definition at line 1372 of file Tile_Base_ID.cxx.

1373 {
1374  return m_towers.range();
1375 }

◆ trt()

Identifier AtlasDetectorID::trt ( void  ) const
inherited

Definition at line 108 of file AtlasDetectorID.cxx.

108  {
109  Identifier result{0};
110  // Pack field
113  return result;
114 }

◆ trt_exp()

ExpandedIdentifier AtlasDetectorID::trt_exp ( void  ) const
protectedinherited

Definition at line 1106 of file AtlasDetectorID.cxx.

1107 {
1109  return (result << m_TRT_ID);
1110 }

◆ trt_field_value()

int AtlasDetectorID::trt_field_value ( ) const
inlineprotectedinherited

Definition at line 501 of file AtlasDetectorID.h.

501 {return (m_TRT_ID);}

◆ zdc_exp()

ExpandedIdentifier AtlasDetectorID::zdc_exp ( void  ) const
protectedinherited

Definition at line 1169 of file AtlasDetectorID.cxx.

1170 {
1172  return (result << m_ZDC_ID);
1173 }

◆ zdc_field_value()

int AtlasDetectorID::zdc_field_value ( ) const
inlineprotectedinherited

Definition at line 548 of file AtlasDetectorID.h.

548 {return (m_ZDC_ID);}

Member Data Documentation

◆ ATLAS_THREAD_SAFE

std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
mutableprivateinherited

Messaging initialized (initMessaging)

Definition at line 141 of file AthMessaging.h.

◆ m_adc_impl

IdDictFieldImplementation Tile_Base_ID::m_adc_impl
privateinherited

Definition at line 356 of file Tile_Base_ID.h.

◆ m_ADC_INDEX

size_type Tile_Base_ID::m_ADC_INDEX
privateinherited

Definition at line 347 of file Tile_Base_ID.h.

◆ m_adcs

CaloIDHelper::HashGroup Tile_Base_ID::m_adcs
privateinherited

Definition at line 369 of file Tile_Base_ID.h.

◆ m_ALFA_ID

int AtlasDetectorID::m_ALFA_ID {1}
privateinherited

Definition at line 425 of file AtlasDetectorID.h.

◆ m_atlas_dict

const IdDictDictionary* AtlasDetectorID::m_atlas_dict {}
privateinherited

Definition at line 436 of file AtlasDetectorID.h.

◆ m_BCM_ID

int AtlasDetectorID::m_BCM_ID {3}
privateinherited

Definition at line 426 of file AtlasDetectorID.h.

◆ m_calo_dict

const IdDictDictionary* AtlasDetectorID::m_calo_dict {}
privateinherited

Definition at line 441 of file AtlasDetectorID.h.

◆ m_CALO_ID

int AtlasDetectorID::m_CALO_ID {10}
privateinherited

Definition at line 407 of file AtlasDetectorID.h.

◆ m_calo_side_impl

IdDictFieldImplementation AtlasDetectorID::m_calo_side_impl
privateinherited

Definition at line 446 of file AtlasDetectorID.h.

◆ m_channels

HashGroup CaloIDHelper::m_channels
privateinherited

Group of channel (cell) Identifiers.

Definition at line 333 of file CaloIDHelper.h.

◆ m_CSC_ID

int AtlasDetectorID::m_CSC_ID {1}
privateinherited

Definition at line 419 of file AtlasDetectorID.h.

◆ m_det_impl

IdDictFieldImplementation AtlasDetectorID::m_det_impl
privateinherited

Definition at line 444 of file AtlasDetectorID.h.

◆ m_DET_INDEX

size_type AtlasDetectorID::m_DET_INDEX {999}
privateinherited

Definition at line 400 of file AtlasDetectorID.h.

◆ m_dict

const IdDictDictionary* CaloIDHelper::m_dict
privateinherited

The dictionary for this helper.

Definition at line 339 of file CaloIDHelper.h.

◆ m_dict_names

std::vector<std::string> AtlasDetectorID::m_dict_names
protectedinherited

List of dictionary names used by this helper.

Definition at line 376 of file AtlasDetectorID.h.

◆ m_dict_tags

std::vector<std::string> AtlasDetectorID::m_dict_tags
protectedinherited

List of dictionary versions used by this helper.

Definition at line 382 of file AtlasDetectorID.h.

◆ m_dict_version

std::string AtlasDetectorID::m_dict_version
privateinherited

Definition at line 398 of file AtlasDetectorID.h.

◆ m_do_checks

bool AtlasDetectorID::m_do_checks {}
protectedinherited

Flag for subclasses to know whether or not to perform checks.

In general, this is set to false in optimized mode.

Definition at line 363 of file AtlasDetectorID.h.

◆ m_do_neighbours

bool AtlasDetectorID::m_do_neighbours {true}
protectedinherited

Flag for subclasses to know whether or not to perform neighbour initialization.

Definition at line 366 of file AtlasDetectorID.h.

◆ m_file_names

std::vector<std::string> AtlasDetectorID::m_file_names
protectedinherited

List of dictionary file names used by this helper.

Definition at line 379 of file AtlasDetectorID.h.

◆ m_full_adc_range

MultiRange Tile_Base_ID::m_full_adc_range
privateinherited

Definition at line 364 of file Tile_Base_ID.h.

◆ m_full_cell_range

MultiRange Tile_Base_ID::m_full_cell_range
privateinherited

Definition at line 362 of file Tile_Base_ID.h.

◆ m_full_module_range

MultiRange Tile_Base_ID::m_full_module_range
privateinherited

Definition at line 360 of file Tile_Base_ID.h.

◆ m_full_pmt_range

MultiRange Tile_Base_ID::m_full_pmt_range
privateinherited

Definition at line 363 of file Tile_Base_ID.h.

◆ m_full_region_range

MultiRange Tile_Base_ID::m_full_region_range
privateinherited

Definition at line 359 of file Tile_Base_ID.h.

◆ m_full_tower_range

MultiRange Tile_Base_ID::m_full_tower_range
privateinherited

Definition at line 361 of file Tile_Base_ID.h.

◆ m_fwd_dict

const IdDictDictionary* AtlasDetectorID::m_fwd_dict {}
privateinherited

Definition at line 442 of file AtlasDetectorID.h.

◆ m_FWD_ID

int AtlasDetectorID::m_FWD_ID {13}
privateinherited

Definition at line 424 of file AtlasDetectorID.h.

◆ m_fwd_part_impl

IdDictFieldImplementation AtlasDetectorID::m_fwd_part_impl
privateinherited

Definition at line 452 of file AtlasDetectorID.h.

◆ m_group

std::string AtlasDetectorID::m_group
protectedinherited

Group name.

Definition at line 359 of file AtlasDetectorID.h.

◆ m_helper

AtlasDetectorIDHelper* AtlasDetectorID::m_helper {}
privateinherited

Definition at line 443 of file AtlasDetectorID.h.

◆ m_HGTD_ID

int AtlasDetectorID::m_HGTD_ID {4}
privateinherited

Definition at line 411 of file AtlasDetectorID.h.

◆ m_imsg

std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr }
mutableprivateinherited

MessageSvc pointer.

Definition at line 135 of file AthMessaging.h.

◆ m_indet_dict

const IdDictDictionary* AtlasDetectorID::m_indet_dict {}
privateinherited

Definition at line 437 of file AtlasDetectorID.h.

◆ m_INDET_ID

int AtlasDetectorID::m_INDET_ID {2}
privateinherited

Definition at line 403 of file AtlasDetectorID.h.

◆ m_indet_part_impl

IdDictFieldImplementation AtlasDetectorID::m_indet_part_impl
privateinherited

Definition at line 445 of file AtlasDetectorID.h.

◆ m_is_initialized_from_dict

bool AtlasDetectorID::m_is_initialized_from_dict {}
privateinherited

Definition at line 399 of file AtlasDetectorID.h.

◆ m_isHighLuminosityLHC

bool AtlasDetectorID::m_isHighLuminosityLHC {}
privateinherited

Definition at line 430 of file AtlasDetectorID.h.

◆ m_lar_dict

const IdDictDictionary* AtlasDetectorID::m_lar_dict {}
privateinherited

Definition at line 438 of file AtlasDetectorID.h.

◆ m_lar_dm_field

Range::field AtlasDetectorID::m_lar_dm_field
privateinherited

Definition at line 434 of file AtlasDetectorID.h.

◆ m_LAR_EM_ID

int AtlasDetectorID::m_LAR_EM_ID {1}
privateinherited

Definition at line 414 of file AtlasDetectorID.h.

◆ m_LAR_FCAL_ID

int AtlasDetectorID::m_LAR_FCAL_ID {3}
privateinherited

Definition at line 416 of file AtlasDetectorID.h.

◆ m_lar_fcal_module_impl

IdDictFieldImplementation AtlasDetectorID::m_lar_fcal_module_impl
privateinherited

Definition at line 448 of file AtlasDetectorID.h.

◆ m_LAR_FCAL_MODULE_INDEX

int AtlasDetectorID::m_LAR_FCAL_MODULE_INDEX {999}
privateinherited

Definition at line 417 of file AtlasDetectorID.h.

◆ m_LAR_HEC_ID

int AtlasDetectorID::m_LAR_HEC_ID {2}
privateinherited

Definition at line 415 of file AtlasDetectorID.h.

◆ m_LAR_ID

int AtlasDetectorID::m_LAR_ID {4}
privateinherited

Definition at line 404 of file AtlasDetectorID.h.

◆ m_lar_part_impl

IdDictFieldImplementation AtlasDetectorID::m_lar_part_impl
privateinherited

Definition at line 447 of file AtlasDetectorID.h.

◆ m_LUCID_ID

int AtlasDetectorID::m_LUCID_ID {5}
privateinherited

Definition at line 427 of file AtlasDetectorID.h.

◆ m_LUMI_ID

int AtlasDetectorID::m_LUMI_ID {3}
privateinherited

Definition at line 412 of file AtlasDetectorID.h.

◆ m_LUMI_PLR_ID

int AtlasDetectorID::m_LUMI_PLR_ID {1}
privateinherited

Definition at line 413 of file AtlasDetectorID.h.

◆ m_lvl

std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL }
mutableprivateinherited

Current logging level.

Definition at line 138 of file AthMessaging.h.

◆ m_lvl1_field

Range::field AtlasDetectorID::m_lvl1_field
privateinherited

Definition at line 432 of file AtlasDetectorID.h.

◆ m_lvl1_onl_field

Range::field AtlasDetectorID::m_lvl1_onl_field
privateinherited

Definition at line 433 of file AtlasDetectorID.h.

◆ m_MDT_ID

int AtlasDetectorID::m_MDT_ID {0}
privateinherited

Definition at line 418 of file AtlasDetectorID.h.

◆ m_MM_ID

int AtlasDetectorID::m_MM_ID {5}
privateinherited

Definition at line 423 of file AtlasDetectorID.h.

◆ m_module_impl

IdDictFieldImplementation Tile_Base_ID::m_module_impl
privateinherited

Definition at line 352 of file Tile_Base_ID.h.

◆ m_MODULE_INDEX

size_type Tile_Base_ID::m_MODULE_INDEX
privateinherited

Definition at line 343 of file Tile_Base_ID.h.

◆ m_modules

CaloIDHelper::HashGroup Tile_Base_ID::m_modules
privateinherited

Definition at line 366 of file Tile_Base_ID.h.

◆ m_msg_tls

boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls
mutableprivateinherited

MsgStream instance (a std::cout like with print-out levels)

Definition at line 132 of file AthMessaging.h.

◆ m_msgSvc

IMessageSvc* AtlasDetectorID::m_msgSvc {}
protectedinherited

pointer to the message service

Definition at line 369 of file AtlasDetectorID.h.

◆ m_muon_dict

const IdDictDictionary* AtlasDetectorID::m_muon_dict {}
privateinherited

Definition at line 440 of file AtlasDetectorID.h.

◆ m_MUON_ID

int AtlasDetectorID::m_MUON_ID {7}
privateinherited

Definition at line 406 of file AtlasDetectorID.h.

◆ m_muon_mdt_impl

IdDictFieldImplementation AtlasDetectorID::m_muon_mdt_impl
privateinherited

Definition at line 450 of file AtlasDetectorID.h.

◆ m_muon_rpc_impl

IdDictFieldImplementation AtlasDetectorID::m_muon_rpc_impl
privateinherited

Definition at line 451 of file AtlasDetectorID.h.

◆ m_muon_station_name_impl

IdDictFieldImplementation AtlasDetectorID::m_muon_station_name_impl
privateinherited

Definition at line 449 of file AtlasDetectorID.h.

◆ m_MUON_SUBDET_INDEX

size_type AtlasDetectorID::m_MUON_SUBDET_INDEX {999}
privateinherited

Definition at line 402 of file AtlasDetectorID.h.

◆ m_muon_tech_bits

std::vector<unsigned int> AtlasDetectorID::m_muon_tech_bits
privateinherited

Definition at line 455 of file AtlasDetectorID.h.

◆ m_name

std::string CaloIDHelper::m_name
privateinherited

Name of this helper.

Definition at line 330 of file CaloIDHelper.h.

◆ m_neighbour

TileNeighbour Tile_Base_ID::m_neighbour
privateinherited

Definition at line 371 of file Tile_Base_ID.h.

◆ m_nm

std::string AthMessaging::m_nm
privateinherited

Message source name.

Definition at line 129 of file AthMessaging.h.

◆ m_PIXEL_ID

int AtlasDetectorID::m_PIXEL_ID {1}
privateinherited

Definition at line 408 of file AtlasDetectorID.h.

◆ m_pmt_impl

IdDictFieldImplementation Tile_Base_ID::m_pmt_impl
privateinherited

Definition at line 355 of file Tile_Base_ID.h.

◆ m_PMT_INDEX

size_type Tile_Base_ID::m_PMT_INDEX
privateinherited

Definition at line 346 of file Tile_Base_ID.h.

◆ m_pmts

CaloIDHelper::HashGroup Tile_Base_ID::m_pmts
privateinherited

Definition at line 368 of file Tile_Base_ID.h.

◆ m_quiet

bool AtlasDetectorID::m_quiet {}
protectedinherited

If true, suppress DEBUG/INFO messages.

Definition at line 372 of file AtlasDetectorID.h.

◆ m_regions

HashGroup CaloIDHelper::m_regions
privateinherited

Group of region Identifiers.

Definition at line 336 of file CaloIDHelper.h.

◆ m_RPC_ID

int AtlasDetectorID::m_RPC_ID {2}
privateinherited

Definition at line 420 of file AtlasDetectorID.h.

◆ m_sample_impl

IdDictFieldImplementation Tile_Base_ID::m_sample_impl
privateinherited

Definition at line 354 of file Tile_Base_ID.h.

◆ m_SAMPLE_INDEX

size_type Tile_Base_ID::m_SAMPLE_INDEX
privateinherited

Definition at line 345 of file Tile_Base_ID.h.

◆ m_SCT_ID

int AtlasDetectorID::m_SCT_ID {2}
privateinherited

Definition at line 409 of file AtlasDetectorID.h.

◆ m_section_impl

IdDictFieldImplementation Tile_Base_ID::m_section_impl
privateinherited

Definition at line 350 of file Tile_Base_ID.h.

◆ m_SECTION_INDEX

size_type Tile_Base_ID::m_SECTION_INDEX
privateinherited

Definition at line 341 of file Tile_Base_ID.h.

◆ m_side_impl

IdDictFieldImplementation Tile_Base_ID::m_side_impl
privateinherited

Definition at line 351 of file Tile_Base_ID.h.

◆ m_SIDE_INDEX

size_type Tile_Base_ID::m_SIDE_INDEX
privateinherited

Definition at line 342 of file Tile_Base_ID.h.

◆ m_slar_impl

IdDictFieldImplementation Tile_Base_ID::m_slar_impl
privateinherited

Definition at line 357 of file Tile_Base_ID.h.

◆ m_STGC_ID

int AtlasDetectorID::m_STGC_ID {4}
privateinherited

Definition at line 422 of file AtlasDetectorID.h.

◆ m_SUBDET_INDEX

size_type AtlasDetectorID::m_SUBDET_INDEX {999}
privateinherited

Definition at line 401 of file AtlasDetectorID.h.

◆ m_supercell

unsigned Tile_Base_ID::m_supercell
privateinherited

Definition at line 337 of file Tile_Base_ID.h.

◆ m_system_impl

IdDictFieldImplementation Tile_Base_ID::m_system_impl
privateinherited

Definition at line 349 of file Tile_Base_ID.h.

◆ m_SYSTEM_INDEX

size_type Tile_Base_ID::m_SYSTEM_INDEX
privateinherited

Definition at line 340 of file Tile_Base_ID.h.

◆ m_TGC_ID

int AtlasDetectorID::m_TGC_ID {3}
privateinherited

Definition at line 421 of file AtlasDetectorID.h.

◆ m_tile_dict

const IdDictDictionary* AtlasDetectorID::m_tile_dict {}
privateinherited

Definition at line 439 of file AtlasDetectorID.h.

◆ m_tile_dm_field

Range::field AtlasDetectorID::m_tile_dm_field
privateinherited

Definition at line 435 of file AtlasDetectorID.h.

◆ m_TILE_ID

int AtlasDetectorID::m_TILE_ID {5}
privateinherited

Definition at line 405 of file AtlasDetectorID.h.

◆ m_tile_region_index

size_type Tile_Base_ID::m_tile_region_index
privateinherited

Definition at line 339 of file Tile_Base_ID.h.

◆ m_tower_impl

IdDictFieldImplementation Tile_Base_ID::m_tower_impl
privateinherited

Definition at line 353 of file Tile_Base_ID.h.

◆ m_TOWER_INDEX

size_type Tile_Base_ID::m_TOWER_INDEX
privateinherited

Definition at line 344 of file Tile_Base_ID.h.

◆ m_towers

CaloIDHelper::HashGroup Tile_Base_ID::m_towers
privateinherited

Definition at line 367 of file Tile_Base_ID.h.

◆ m_TRT_ID

int AtlasDetectorID::m_TRT_ID {3}
privateinherited

Definition at line 410 of file AtlasDetectorID.h.

◆ m_vecOfDictRegions

std::vector<const IdDictRegion*> CaloIDHelper::m_vecOfDictRegions
privateinherited

List of IdDictRegion objects.

Definition at line 342 of file CaloIDHelper.h.

◆ m_ZDC_ID

int AtlasDetectorID::m_ZDC_ID {7}
privateinherited

Definition at line 428 of file AtlasDetectorID.h.


The documentation for this class was generated from the following files:
Tile_Base_ID::module_id
Identifier module_id(int section, int side, int module) const
Definition: Tile_Base_ID.cxx:509
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
AtlasDetectorID::is_pixel
bool is_pixel(Identifier id) const
Definition: AtlasDetectorID.h:629
AthMessaging::m_lvl
std::atomic< MSG::Level > m_lvl
Current logging level.
Definition: AthMessaging.h:138
Tile_Base_ID::m_tower_impl
IdDictFieldImplementation m_tower_impl
Definition: Tile_Base_ID.h:353
Tile_Base_ID::eta_min
int eta_min(const Identifier &id) const
max values (-999 == failure)
Definition: Tile_Base_ID.cxx:1549
AtlasDetectorID::indet_field_value
int indet_field_value() const
Provide efficient access to individual field values, for subclass idhelpers.
Definition: AtlasDetectorID.h:480
AtlasDetectorID::m_tile_dict
const IdDictDictionary * m_tile_dict
Definition: AtlasDetectorID.h:439
Tile_Base_ID::decode_section
int decode_section(int section) const
Definition: Tile_Base_ID.h:313
TileNeighbour::next_eta
int next_eta(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
Definition: TileNeighbour.cxx:492
AtlasDetectorID::is_forward
bool is_forward(Identifier id) const
Definition: AtlasDetectorID.h:804
IdDictDictionary::build_multirange
MultiRange build_multirange() const
Get MultiRange for full dictionary.
Definition: IdDictDictionary.cxx:321
Tile_Base_ID::m_full_adc_range
MultiRange m_full_adc_range
Definition: Tile_Base_ID.h:364
AtlasDetectorID::m_muon_tech_bits
std::vector< unsigned int > m_muon_tech_bits
Definition: AtlasDetectorID.h:455
AtlasDetectorID::MAX_BIT
@ MAX_BIT
Definition: AtlasDetectorID.h:390
CaloIDHelper::NOT_VALID
@ NOT_VALID
Definition: CaloIDHelper.h:36
AtlasDetectorID::m_LUMI_ID
int m_LUMI_ID
Definition: AtlasDetectorID.h:412
Tile_Base_ID::SAMP_B
@ SAMP_B
Definition: Tile_Base_ID.h:53
Tile_Base_ID::adc_context
IdContext adc_context() const
id for ADCs
Definition: Tile_Base_ID.cxx:1075
Tile_Base_ID::reg_range
id_range reg_range() const
Definition: Tile_Base_ID.cxx:1342
get_generator_info.result
result
Definition: get_generator_info.py:21
AtlasDetectorID::m_indet_part_impl
IdDictFieldImplementation m_indet_part_impl
Definition: AtlasDetectorID.h:445
IdDictGroup
Definition: IdDictGroup.h:25
InDetDD::PLR
@ PLR
Definition: DetectorDesign.h:46
checkHVCorrections.unpack
unpack
Definition: checkHVCorrections.py:97
Tile_Base_ID::ONLINE
@ ONLINE
Definition: Tile_Base_ID.h:47
vtune_athena.format
format
Definition: vtune_athena.py:14
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
IdDictDictionary::version
const std::string & version() const
Dictionary version.
Definition: IdDictDictionary.h:344
AtlasDetectorID::is_lar_fcal
bool is_lar_fcal(Identifier id) const
Definition: AtlasDetectorID.h:708
TileNeighbour::next_samp
int next_samp(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
Definition: TileNeighbour.cxx:520
CaloIDHelper::HashGroup::end
id_iterator end() const
Return an end iterator over the group's Identifiers.
CaloIDHelper::HashGroup::range
id_range range() const
Return an iterator range over the group's Identifiers.
Tile_Base_ID::m_section_impl
IdDictFieldImplementation m_section_impl
Definition: Tile_Base_ID.h:350
Tile_Base_ID::module_context
IdContext module_context() const
id for modules
Definition: Tile_Base_ID.cxx:1051
IdDictFieldImplementation::show_to_string
std::string show_to_string(void) const
Definition: IdDictFieldImplementation.cxx:32
AtlasDetectorID::is_lar
bool is_lar(Identifier id) const
Definition: AtlasDetectorID.h:558
Pixel
Definition: PixelFEUtils.h:16
AtlasDetectorID::muon_field_value
int muon_field_value() const
Definition: AtlasDetectorID.h:489
Tile_Base_ID::m_MODULE_INDEX
size_type m_MODULE_INDEX
Definition: Tile_Base_ID.h:343
LArNeighbours::corners2D
@ corners2D
Definition: LArNeighbours.h:17
AtlasDetectorID::m_TRT_ID
int m_TRT_ID
Definition: AtlasDetectorID.h:410
quiet
bool quiet
Definition: TrigGlobEffCorrValidation.cxx:190
index
Definition: index.py:1
IdDictDictionary::region
const IdDictRegion & region(size_t i) const
Region at index i.
Definition: IdDictDictionary.h:353
Tile_Base_ID::m_system_impl
IdDictFieldImplementation m_system_impl
Definition: Tile_Base_ID.h:349
Tile_Base_ID::pmt
int pmt(const Identifier &id) const
Definition: Tile_Base_ID.cxx:184
Tile_Base_ID::SEXTBAR
@ SEXTBAR
Definition: Tile_Base_ID.h:48
IdentifierField::get_minimum
element_type get_minimum() const
Query the values.
Definition: IdentifierField.h:121
Tile_Base_ID::SAMP_A
@ SAMP_A
Definition: Tile_Base_ID.h:52
CaloIDHelper::HashGroup::init
int init(T &parent, const std::string &type, const MultiRange &full_range, Identifier(T::*idfunc)(const ExpandedIdentifier &) const, size_type end_index)
Initialize.
AtlasDetectorID::m_HGTD_ID
int m_HGTD_ID
Definition: AtlasDetectorID.h:411
IdContext::end_index
size_type end_index() const
Definition: IdContext.h:46
AtlasDetectorID::calo_field_value
int calo_field_value() const
Definition: AtlasDetectorID.h:492
Tile_Base_ID::NREGIONS
@ NREGIONS
Definition: Tile_Base_ID.h:57
LArNeighbours::faces2D
@ faces2D
Definition: LArNeighbours.h:16
CaloIDHelper::region_context
IdContext region_context() const
Return the context for regions.
Tile_Base_ID::SAMP_BC
@ SAMP_BC
Definition: Tile_Base_ID.h:53
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
Tile_Base_ID::side
int side(const Identifier &id) const
Definition: Tile_Base_ID.cxx:157
ExpandedIdentifier::add
void add(element_type value)
Append a value into a new field.
Tile_Base_ID::AUXDET
@ AUXDET
Definition: Tile_Base_ID.h:47
CaloIDHelper::HashGroup::id
Identifier id(IdentifierHash hashId) const
Return the identifier for a given hash code (no checking).
Tile_Base_ID::sample
int sample(const Identifier &id) const
Definition: Tile_Base_ID.cxx:175
Tile_Base_ID::encode_section
int encode_section(int section) const
Definition: Tile_Base_ID.h:318
IdDictDictionary::find_field
const IdDictField * find_field(const std::string &name) const
Definition: IdDictDictionary.cxx:47
M_PI
#define M_PI
Definition: ActiveFraction.h:11
ExpandedIdentifier
Definition: DetectorDescription/Identifier/Identifier/ExpandedIdentifier.h:102
CaloIDHelper::HashGroup::begin
id_iterator begin() const
Return a begin iterator over the group's Identifiers.
IdDictFieldImplementation::pack
void pack(int value, Identifier &id) const
Definition: IdDictFieldImplementation.h:173
Tile_Base_ID::m_PMT_INDEX
size_type m_PMT_INDEX
Definition: Tile_Base_ID.h:346
Tile_Base_ID::initLevelsFromDict
int initLevelsFromDict(const std::string &group_name)
Definition: Tile_Base_ID.cxx:1617
AtlasDetectorID::m_msgSvc
IMessageSvc * m_msgSvc
pointer to the message service
Definition: AtlasDetectorID.h:369
Tile_Base_ID::HIGHGAIN
@ HIGHGAIN
Definition: Tile_Base_ID.h:56
AtlasDetectorID::m_dict_version
std::string m_dict_version
Definition: AtlasDetectorID.h:398
IdDictMgr::find_metadata
const std::string & find_metadata(const std::string &name) const
Access to meta data, name/value pairs.
Definition: IdDictMgr.cxx:91
IdentifierField::get_maximum
element_type get_maximum() const
Definition: IdentifierField.h:130
Tile_Base_ID::GAPDET
@ GAPDET
Definition: Tile_Base_ID.h:47
Tile_Base_ID::m_neighbour
TileNeighbour m_neighbour
Definition: Tile_Base_ID.h:371
AtlasDetectorID::m_do_checks
bool m_do_checks
Flag for subclasses to know whether or not to perform checks.
Definition: AtlasDetectorID.h:363
Tile_Base_ID::NSIDES
@ NSIDES
Definition: Tile_Base_ID.h:57
Tile_Base_ID::tower
int tower(const Identifier &id) const
Definition: Tile_Base_ID.cxx:169
Identifier::MAX_BIT
static constexpr value_type MAX_BIT
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
ReadOfcFromCool.field
field
Definition: ReadOfcFromCool.py:48
Tile_Base_ID::SAMP_E
@ SAMP_E
Definition: Tile_Base_ID.h:54
IdDictDictionary::name
const std::string & name() const
Dictionary name.
Definition: IdDictDictionary.h:335
AtlasDetectorID::m_ZDC_ID
int m_ZDC_ID
Definition: AtlasDetectorID.h:428
AtlasDetectorID::m_STGC_ID
int m_STGC_ID
Definition: AtlasDetectorID.h:422
AtlasDetectorID::lar_field_value
int lar_field_value() const
Definition: AtlasDetectorID.h:483
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
Tile_Base_ID::BARREL
@ BARREL
Definition: Tile_Base_ID.h:47
AthMessaging::m_imsg
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
Definition: AthMessaging.h:135
IdDictFieldImplementation::unpack
int unpack(Identifier id) const
Identifier manipulation methods.
Definition: IdDictFieldImplementation.h:147
CaloIDHelper::HashGroup::get_hash
int get_hash(Identifier id, IdentifierHash &hash_id) const
Look up the hash code corresponding to an Identifier.
Definition: CaloIDHelper.cxx:68
IdDictDictionary::file_name
const std::string & file_name() const
Access to file name.
Definition: IdDictDictionary.h:370
LArNeighbours::prevInPhi
@ prevInPhi
Definition: LArNeighbours.h:12
Tile_Base_ID::get_expanded_id
virtual int get_expanded_id(const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
create expanded Identifier from Identifier (return == 0 for OK)
Definition: Tile_Base_ID.cxx:1594
AtlasDetectorID::ALL_BITS
@ ALL_BITS
Definition: AtlasDetectorID.h:393
AtlasDetectorID::do_neighbours
virtual bool do_neighbours(void) const override
Neighbour initialization is performed by default One can switch or query this mode for any idHelper w...
Definition: AtlasDetectorID.cxx:485
TileNeighbour::prev_samp
int prev_samp(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
Definition: TileNeighbour.cxx:506
Tile_Base_ID::m_module_impl
IdDictFieldImplementation m_module_impl
Definition: Tile_Base_ID.h:352
AtlasDetectorID::tile_exp
ExpandedIdentifier tile_exp(void) const
Definition: AtlasDetectorID.cxx:1064
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
Tile_Base_ID::TWOSIDES
@ TWOSIDES
Definition: Tile_Base_ID.h:55
AtlasDetectorID::is_lvl1_trig_towers
bool is_lvl1_trig_towers(Identifier id) const
Definition: AtlasDetectorID.h:582
IdDictRegion
Definition: IdDictRegion.h:20
Tile_Base_ID::NOT_VALID_HASH
@ NOT_VALID_HASH
Definition: Tile_Base_ID.h:263
CaloIDHelper::regions
const HashGroup & regions() const
Return the HashGroup for regions.
Tile_Base_ID::region
int region(int section, int side) const
Definition: Tile_Base_ID.cxx:123
Tile_Base_ID::initialize_base_from_dictionary
int initialize_base_from_dictionary(const IdDictMgr &dict_mgr, const std::string &group_name)
initialization from the identifier dictionary
Definition: Tile_Base_ID.cxx:1185
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:92
AtlasDetectorID::m_LAR_ID
int m_LAR_ID
Definition: AtlasDetectorID.h:404
TileNeighbour::prev_eta
int prev_eta(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
Definition: TileNeighbour.cxx:478
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
TileNeighbour::prev_phi
int prev_phi(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
Definition: TileNeighbour.cxx:452
Tile_Base_ID::get_field
int get_field(const Identifier &id, size_type index) const
unpack one field from Identifier
Definition: Tile_Base_ID.cxx:112
Tile_Base_ID::SAMP_C
@ SAMP_C
Definition: Tile_Base_ID.h:53
AtlasDetectorID::m_do_neighbours
bool m_do_neighbours
Flag for subclasses to know whether or not to perform neighbour initialization.
Definition: AtlasDetectorID.h:366
TileNeighbour::initialize
int initialize(const Tile_Base_ID *tileID, const std::string &filename="TileNeighbour.txt")
Definition: TileNeighbour.cxx:57
Tile_Base_ID::m_SECTION_INDEX
size_type m_SECTION_INDEX
Definition: Tile_Base_ID.h:341
Tile_Base_ID::m_pmts
CaloIDHelper::HashGroup m_pmts
Definition: Tile_Base_ID.h:368
Tile_Base_ID::tile_det
Identifier tile_det(int section) const
build identifier for any Tilecal section
Definition: Tile_Base_ID.cxx:402
AtlasDetectorID::m_INDET_ID
int m_INDET_ID
Definition: AtlasDetectorID.h:403
CaloIDHelper::m_vecOfDictRegions
std::vector< const IdDictRegion * > m_vecOfDictRegions
List of IdDictRegion objects.
Definition: CaloIDHelper.h:342
Trk::DetectorElemType::Silicon
@ Silicon
AtlasDetectorID::m_calo_dict
const IdDictDictionary * m_calo_dict
Definition: AtlasDetectorID.h:441
LArNeighbours::nextInSamp
@ nextInSamp
Definition: LArNeighbours.h:20
Tile_Base_ID::m_tile_region_index
size_type m_tile_region_index
Definition: Tile_Base_ID.h:339
AtlasDetectorID::m_LUMI_PLR_ID
int m_LUMI_PLR_ID
Definition: AtlasDetectorID.h:413
IdDictDictionary::find_region
const IdDictRegion * find_region(const std::string &region_name) const
Definition: IdDictDictionary.cxx:119
Tile_Base_ID::EXTBAR
@ EXTBAR
Definition: Tile_Base_ID.h:47
Tile_Base_ID::region_id
Identifier region_id(int index) const
build single region, module, tower, cell, pmt, adc identifiers
Definition: Tile_Base_ID.cxx:409
LArNeighbours::nextInPhi
@ nextInPhi
Definition: LArNeighbours.h:13
IdentifierField::match
bool match(element_type value) const
The basic match operation Given a value, test to see if it satisfies the constraints for this field.
Definition: IdentifierField.cxx:71
AtlasDetectorID::PIXEL_MASK
@ PIXEL_MASK
Definition: AtlasDetectorID.h:392
AtlasDetectorID::m_tile_dm_field
Range::field m_tile_dm_field
Definition: AtlasDetectorID.h:435
IdContext::begin_index
size_type begin_index() const
Definition: IdContext.h:45
Tile_Base_ID::get_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)
Definition: Tile_Base_ID.cxx:1081
Tile
Definition: TileVolumeBuilder.h:42
Tile_Base_ID::adc
int adc(const Identifier &id) const
Definition: Tile_Base_ID.cxx:190
Identifier::ALL_BITS
static constexpr value_type ALL_BITS
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:33
AtlasDetectorID::ATLAS_ID
@ ATLAS_ID
Definition: AtlasDetectorID.h:389
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AtlasDetectorID::m_TILE_ID
int m_TILE_ID
Definition: AtlasDetectorID.h:405
TRT
Definition: HitInfo.h:33
Tile_Base_ID::module
int module(const Identifier &id) const
Definition: Tile_Base_ID.cxx:163
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
IdentifierField::empty
bool empty() const
If true, this field does not have any constraints, and may hold any value representable by element_ty...
Definition: IdentifierField.h:182
AtlasDetectorID::m_group
std::string m_group
Group name.
Definition: AtlasDetectorID.h:359
Tile_Base_ID::tower_id
Identifier tower_id(int section, int side, int module, int tower) const
Definition: Tile_Base_ID.cxx:566
AtlasDetectorID::m_lar_dict
const IdDictDictionary * m_lar_dict
Definition: AtlasDetectorID.h:438
lumiFormat.i
int i
Definition: lumiFormat.py:85
MultiRange::remove_range
void remove_range(const ExpandedIdentifier &id)
Remove a Range made from a single ExpandedIdentifier.
Definition: MultiRange.cxx:43
Tile_Base_ID::SECTION_MASK
@ SECTION_MASK
Definition: Tile_Base_ID.h:49
AtlasDetectorID::m_is_initialized_from_dict
bool m_is_initialized_from_dict
Definition: AtlasDetectorID.h:399
CaloIDHelper::HashGroup::ids
const std::vector< Identifier > & ids() const
Return a vector of all Identifiers for this group.
AtlasDetectorID::m_lar_part_impl
IdDictFieldImplementation m_lar_part_impl
Definition: AtlasDetectorID.h:447
AtlasDetectorID::indet_exp
ExpandedIdentifier indet_exp(void) const
Detector systems:
Definition: AtlasDetectorID.cxx:1050
LArNeighbours::all3DwithCorners
@ all3DwithCorners
Definition: LArNeighbours.h:26
CaloIDHelper::dict
const IdDictDictionary * dict() const
Return the dictionary for this subdetector.
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
AtlasDetectorID::m_muon_mdt_impl
IdDictFieldImplementation m_muon_mdt_impl
Definition: AtlasDetectorID.h:450
AtlasDetectorID::m_lar_fcal_module_impl
IdDictFieldImplementation m_lar_fcal_module_impl
Definition: AtlasDetectorID.h:448
Tile_Base_ID::SUPERCELL_MASK
@ SUPERCELL_MASK
Definition: Tile_Base_ID.h:50
Tile_Base_ID::m_ADC_INDEX
size_type m_ADC_INDEX
Definition: Tile_Base_ID.h:347
AtlasDetectorID::is_tile_dm
bool is_tile_dm(Identifier id) const
Definition: AtlasDetectorID.h:617
AtlasDetectorID::m_LAR_EM_ID
int m_LAR_EM_ID
Definition: AtlasDetectorID.h:414
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:194
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
Tile_Base_ID::POSITIVE
@ POSITIVE
Definition: Tile_Base_ID.h:55
mc.group_name
group_name
Definition: mc.PhPy8EG_A14NNPDF23_NNLOPS_example.py:33
TileID_Exception
Exception class for Tile Identifiers.
Definition: TileID_Exception.h:16
AtlasDetectorID::is_tile
bool is_tile(Identifier id) const
Definition: AtlasDetectorID.h:564
Tile_Base_ID::LOWGAIN
@ LOWGAIN
Definition: Tile_Base_ID.h:56
AtlasDetectorID::group
const std::string & group() const
Group name for this helper.
Definition: AtlasDetectorID.cxx:34
AtlasDetectorID::m_TGC_ID
int m_TGC_ID
Definition: AtlasDetectorID.h:421
Tile_Base_ID::SBARREL
@ SBARREL
Definition: Tile_Base_ID.h:48
AtlasDetectorID::m_CSC_ID
int m_CSC_ID
Definition: AtlasDetectorID.h:419
AtlasDetectorID::m_lvl1_onl_field
Range::field m_lvl1_onl_field
Definition: AtlasDetectorID.h:433
IdDictDictionary::find_group
IdDictGroup * find_group(const std::string &group_name)
Definition: IdDictDictionary.cxx:146
LArNeighbours::prevInSamp
@ prevInSamp
Definition: LArNeighbours.h:19
AtlasDetectorID::m_quiet
bool m_quiet
If true, suppress DEBUG/INFO messages.
Definition: AtlasDetectorID.h:372
AtlasDetectorID::m_LAR_HEC_ID
int m_LAR_HEC_ID
Definition: AtlasDetectorID.h:415
Tile_Base_ID::m_TOWER_INDEX
size_type m_TOWER_INDEX
Definition: Tile_Base_ID.h:344
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
AtlasDetectorID::HelperType::Unimplemented
@ Unimplemented
Tile_Base_ID::reg_end
id_iterator reg_end() const
Definition: Tile_Base_ID.cxx:1337
CaloIDHelper::initialize_base_from_dictionary
int initialize_base_from_dictionary(const IdDictMgr &dict_mgr, const std::string &dict_name)
Do basic initialization of the helper.
Definition: CaloIDHelper.cxx:234
Tile_Base_ID::get_hash
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)
Definition: Tile_Base_ID.cxx:1155
SCT
Definition: SCT_ChipUtils.h:14
AtlasDetectorID::m_muon_rpc_impl
IdDictFieldImplementation m_muon_rpc_impl
Definition: AtlasDetectorID.h:451
AtlasDetDescr::fAtlasMM
@ fAtlasMM
Definition: AtlasDetTechnology.h:54
AtlasDetectorID::m_SCT_ID
int m_SCT_ID
Definition: AtlasDetectorID.h:409
AtlasDetDescr::fAtlasSTGC
@ fAtlasSTGC
Definition: AtlasDetTechnology.h:53
AtlasDetectorID::m_LAR_FCAL_ID
int m_LAR_FCAL_ID
Definition: AtlasDetectorID.h:416
AtlasDetectorID::is_calo
bool is_calo(Identifier id) const
Definition: AtlasDetectorID.h:576
AtlasDetectorID::m_MM_ID
int m_MM_ID
Definition: AtlasDetectorID.h:423
AtlasDetectorID::m_DET_INDEX
size_type m_DET_INDEX
Definition: AtlasDetectorID.h:400
Tile_Base_ID::adc_id
Identifier adc_id(const Identifier &cell_id, int pmt, int adc) const
Definition: Tile_Base_ID.cxx:806
AtlasDetectorID::tile_field_value
int tile_field_value() const
Definition: AtlasDetectorID.h:486
IdDictDictionary::get_label_value
int get_label_value(const std::string &field, const std::string &label, int &value) const
Definition: IdDictDictionary.cxx:92
grepfile.sep
sep
Definition: grepfile.py:38
AtlasDetectorID::print_to_string
std::string print_to_string(Identifier id, const IdContext *context=0) const
or provide the printout in string form
Definition: AtlasDetectorID.cxx:429
IdDictDictionary::unpack
int unpack(const std::string &group, const Identifier &id, const ExpandedIdentifier &prefix, size_t index2, ExpandedIdentifier &unpackedId) const
Unpack the value_type id to an expanded Identifier for a given group, considering the provided prefix...
Definition: IdDictDictionary.cxx:695
Tile_Base_ID::NSECTIONS
@ NSECTIONS
Definition: Tile_Base_ID.h:57
IdContext::prefix_id
const ExpandedIdentifier & prefix_id() const
Accessors.
Definition: IdContext.h:44
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:239
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
Tile_Base_ID::init_hashes
int init_hashes()
Definition: Tile_Base_ID.cxx:1754
Tile_Base_ID::NEGATIVE
@ NEGATIVE
Definition: Tile_Base_ID.h:55
Tile_Base_ID::m_full_module_range
MultiRange m_full_module_range
Definition: Tile_Base_ID.h:360
AtlasDetectorID::m_calo_side_impl
IdDictFieldImplementation m_calo_side_impl
Definition: AtlasDetectorID.h:446
AtlasDetectorID::is_indet
bool is_indet(Identifier id) const
Definition: AtlasDetectorID.h:552
AtlasDetectorID::m_dict_names
std::vector< std::string > m_dict_names
List of dictionary names used by this helper.
Definition: AtlasDetectorID.h:376
AtlasDetectorID::m_lar_dm_field
Range::field m_lar_dm_field
Definition: AtlasDetectorID.h:434
Tile_Base_ID::m_towers
CaloIDHelper::HashGroup m_towers
Definition: Tile_Base_ID.h:367
Tile_Base_ID::m_pmt_impl
IdDictFieldImplementation m_pmt_impl
Definition: Tile_Base_ID.h:355
Range
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
Definition: DetectorDescription/Identifier/Identifier/Range.h:29
AtlasDetectorID::fwd_exp
ExpandedIdentifier fwd_exp(void) const
Definition: AtlasDetectorID.cxx:1085
Tile_Base_ID::m_adc_impl
IdDictFieldImplementation m_adc_impl
Definition: Tile_Base_ID.h:356
python.PyKernel.init
def init(v_theApp, v_rootStream=None)
Definition: PyKernel.py:45
AtlasDetectorID::m_muon_station_name_impl
IdDictFieldImplementation m_muon_station_name_impl
Definition: AtlasDetectorID.h:449
AtlasDetectorID::m_MDT_ID
int m_MDT_ID
Definition: AtlasDetectorID.h:418
CaloIDHelper::m_dict
const IdDictDictionary * m_dict
The dictionary for this helper.
Definition: CaloIDHelper.h:339
IdDictDictionary
Definition: IdDictDictionary.h:30
AtlasDetectorID::m_RPC_ID
int m_RPC_ID
Definition: AtlasDetectorID.h:420
CaloIDHelper::channels
const HashGroup & channels() const
Return the HashGroup for channels (cells).
Tile_Base_ID::m_supercell
unsigned m_supercell
Definition: Tile_Base_ID.h:337
TileNeighbour::prev_samp_wide
int prev_samp_wide(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
Definition: TileNeighbour.cxx:534
Tile_Base_ID::m_sample_impl
IdDictFieldImplementation m_sample_impl
Definition: Tile_Base_ID.h:354
Tile_Base_ID::m_side_impl
IdDictFieldImplementation m_side_impl
Definition: Tile_Base_ID.h:351
Tile_Base_ID::SAMP_D
@ SAMP_D
Definition: Tile_Base_ID.h:54
MultiRange::match
int match(const ExpandedIdentifier &id) const
Match an identifier.
Definition: MultiRange.cxx:57
Tile_Base_ID::m_full_cell_range
MultiRange m_full_cell_range
Definition: Tile_Base_ID.h:362
Tile_Base_ID::cell_context
IdContext cell_context() const
id for cells
Definition: Tile_Base_ID.cxx:1063
AtlasDetDescr::fAtlasRPC
@ fAtlasRPC
Definition: AtlasDetTechnology.h:51
AtlasDetectorID::m_muon_dict
const IdDictDictionary * m_muon_dict
Definition: AtlasDetectorID.h:440
DeMoScan.index
string index
Definition: DeMoScan.py:362
AtlasDetectorID::is_lumi
bool is_lumi(Identifier id) const
Definition: AtlasDetectorID.h:675
Tile_Base_ID::m_SIDE_INDEX
size_type m_SIDE_INDEX
Definition: Tile_Base_ID.h:342
AtlasDetectorID::reinitialize
bool reinitialize(const IdDictMgr &dict_mgr)
Test whether an idhelper should be reinitialized based on the change of tags.
Definition: AtlasDetectorID.cxx:223
Tile_Base_ID::m_adcs
CaloIDHelper::HashGroup m_adcs
Definition: Tile_Base_ID.h:369
AtlasDetectorID::is_lar_dm
bool is_lar_dm(Identifier id) const
LAr/Tile dead material:
Definition: AtlasDetectorID.h:605
columnar::empty
bool empty() const noexcept
Definition: ObjectRange.h:167
IdDictMgr::find_dictionary
const IdDictDictionary * find_dictionary(const std::string &name) const
Access dictionary by name.
Definition: IdDictMgr.cxx:120
AtlasDetectorID::is_muon
bool is_muon(Identifier id) const
Definition: AtlasDetectorID.h:570
AtlasDetectorID::m_det_impl
IdDictFieldImplementation m_det_impl
Definition: AtlasDetectorID.h:444
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
Tile_Base_ID::m_modules
CaloIDHelper::HashGroup m_modules
Definition: Tile_Base_ID.h:366
AtlasDetectorID::show_to_string
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
Definition: AtlasDetectorID.cxx:367
IdDictDictionary::dict_tag
const std::string & dict_tag() const
Access to the dictionary tag.
Definition: IdDictDictionary.h:377
AtlasDetectorID::lar_exp
ExpandedIdentifier lar_exp(void) const
Definition: AtlasDetectorID.cxx:1057
AtlasDetectorID::m_file_names
std::vector< std::string > m_file_names
List of dictionary file names used by this helper.
Definition: AtlasDetectorID.h:379
Tile_Base_ID::m_full_pmt_range
MultiRange m_full_pmt_range
Definition: Tile_Base_ID.h:363
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
python.Constants.INFO
int INFO
Definition: Control/AthenaCommon/python/Constants.py:15
Tile_Base_ID::eta_max
int eta_max(const Identifier &id) const
Definition: Tile_Base_ID.cxx:1555
Tile_Base_ID::pmt_id
Identifier pmt_id(const Identifier &any_id) const
Definition: Tile_Base_ID.cxx:644
AtlasDetDescr::fAtlasCSC
@ fAtlasCSC
Definition: AtlasDetTechnology.h:50
Tile_Base_ID::region_context
IdContext region_context() const
access to IdContext's which define which levels of fields are contained in the id
Definition: Tile_Base_ID.cxx:1045
LArNeighbours::nextInEta
@ nextInEta
Definition: LArNeighbours.h:15
AthMessaging::m_nm
std::string m_nm
Message source name.
Definition: AthMessaging.h:129
MultiRange::size
size_type size() const
Definition: MultiRange.cxx:70
DeMoScan.first
bool first
Definition: DeMoScan.py:534
AtlasDetDescr::fAtlasMDT
@ fAtlasMDT
Definition: AtlasDetTechnology.h:49
DEBUG
#define DEBUG
Definition: page_access.h:11
Tile_Base_ID::m_SYSTEM_INDEX
size_type m_SYSTEM_INDEX
Definition: Tile_Base_ID.h:340
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
IdentifierField
This is the individual specification for the range of one ExpandedIdentifier IdentifierField.
Definition: IdentifierField.h:83
AtlasDetectorID::m_CALO_ID
int m_CALO_ID
Definition: AtlasDetectorID.h:407
AtlasDetectorID::m_ALFA_ID
int m_ALFA_ID
Definition: AtlasDetectorID.h:425
AtlasDetectorID::m_MUON_ID
int m_MUON_ID
Definition: AtlasDetectorID.h:406
Tile_Base_ID::tower_context
IdContext tower_context() const
id for towers
Definition: Tile_Base_ID.cxx:1057
Identifier::value_type
unsigned long long value_type
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:27
AtlasDetectorID::m_PIXEL_ID
int m_PIXEL_ID
Definition: AtlasDetectorID.h:408
AtlasDetectorID::is_lvl1_online
bool is_lvl1_online(Identifier id) const
Definition: AtlasDetectorID.h:593
Tile_Base_ID::m_full_tower_range
MultiRange m_full_tower_range
Definition: Tile_Base_ID.h:361
LArNeighbours::prevInEta
@ prevInEta
Definition: LArNeighbours.h:14
TileNeighbour::next_phi
int next_phi(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
Definition: TileNeighbour.cxx:465
calibdata.copy
bool copy
Definition: calibdata.py:26
TileNeighbour::next_samp_wide
int next_samp_wide(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
Definition: TileNeighbour.cxx:548
AtlasDetDescr::fAtlasTGC
@ fAtlasTGC
Definition: AtlasDetTechnology.h:52
CaloCondBlobAlgs_fillNoiseFromASCII.fields
fields
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:105
Tile_Base_ID::m_full_region_range
MultiRange m_full_region_range
Definition: Tile_Base_ID.h:359
Tile_Base_ID::section
int section(const Identifier &id) const
Definition: Tile_Base_ID.cxx:151
CaloIDHelper::get_expanded_id
virtual int get_expanded_id(const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const =0
Create an expanded Identifier from an Identifier.
AthMessaging::initMessaging
void initMessaging() const
Initialize our message level and MessageSvc.
Definition: AthMessaging.cxx:39
IdDictField
Definition: IdDictField.h:15
AtlasDetectorID::m_BCM_ID
int m_BCM_ID
Definition: AtlasDetectorID.h:426
Analysis::TT
@ TT
Definition: JpsiFinder.h:34
AthMessaging::m_msg_tls
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
Definition: AthMessaging.h:132
Tile_Base_ID::cell_id
Identifier cell_id(const Identifier &any_id) const
Definition: Tile_Base_ID.cxx:585
LArCellBinning.etamin
etamin
Definition: LArCellBinning.py:137
AtlasDetectorID::do_checks
virtual bool do_checks(void) const override
Checks are performed by default in debug compilation and NOT in optimized compilation.
Definition: AtlasDetectorID.cxx:478
IdContext
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
Definition: IdContext.h:26
AtlasDetectorID::m_dict_tags
std::vector< std::string > m_dict_tags
List of dictionary versions used by this helper.
Definition: AtlasDetectorID.h:382
Tile_Base_ID::Tile_Base_ID
Tile_Base_ID(const std::string &name, const std::string &group, bool supercell)
Constructor.
Definition: Tile_Base_ID.cxx:35
Tile_Base_ID::m_SAMPLE_INDEX
size_type m_SAMPLE_INDEX
Definition: Tile_Base_ID.h:345
AtlasDetectorID::m_SUBDET_INDEX
size_type m_SUBDET_INDEX
Definition: AtlasDetectorID.h:401
AtlasDetectorID::m_FWD_ID
int m_FWD_ID
Definition: AtlasDetectorID.h:424
Tile_Base_ID::pmt_context
IdContext pmt_context() const
id for PMTs
Definition: Tile_Base_ID.cxx:1069
LArNeighbours::all2D
@ all2D
Definition: LArNeighbours.h:18
Tile_Base_ID::reg_begin
id_iterator reg_begin() const
iterator over set of region Identifiers
Definition: Tile_Base_ID.cxx:1332
AtlasDetectorID::m_lvl1_field
Range::field m_lvl1_field
Definition: AtlasDetectorID.h:432
CaloIDHelper::HashGroup::hash_max
size_type hash_max() const
Return one more than the largest hash code.
AtlasDetectorID::m_LUCID_ID
int m_LUCID_ID
Definition: AtlasDetectorID.h:427
AtlasDetectorID::m_indet_dict
const IdDictDictionary * m_indet_dict
Definition: AtlasDetectorID.h:437
Tile_Base_ID::SAMP_X
@ SAMP_X
Definition: Tile_Base_ID.h:54
CaloIDHelper::channel_id
Identifier channel_id(IdentifierHash hashId) const
Return the channel (cell) Identifier for a given hash code (no checking).
AtlasDetectorID::m_fwd_dict
const IdDictDictionary * m_fwd_dict
Definition: AtlasDetectorID.h:442
python.SystemOfUnits.ms
float ms
Definition: SystemOfUnits.py:148
Identifier
Definition: IdentifierFieldParser.cxx:14