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

Helper class for TileCal offline identifiers. More...

#include <TileID.h>

Inheritance diagram for TileID:
Collaboration diagram for TileID:

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 }
 
typedef std::vector< Identifier >::const_iterator id_iterator
 Type for iterators over identifiers. More...
 
typedef boost::iterator_range< id_iteratorid_range
 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

 TileID ()
 
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 (void) const
 access to IdContext's which define which levels of fields are contained in the id More...
 
IdContext module_context (void) const
 id for modules More...
 
IdContext tower_context (void) const
 id for towers More...
 
IdContext cell_context (void) const
 id for cells More...
 
IdContext pmt_context (void) const
 id for PMTs More...
 
IdContext adc_context (void) 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 (void) const
 hash tables max size More...
 
size_type module_hash_max (void) const
 
size_type tower_hash_max (void) const
 
size_type cell_hash_max (void) const
 
size_type pmt_hash_max (void) const
 
size_type adc_hash_max (void) 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)
 
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...
 

Friends

class TileNeighbour
 

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
 
IdDictDictionarym_atlas_dict {}
 
IdDictDictionarym_indet_dict {}
 
IdDictDictionarym_lar_dict {}
 
IdDictDictionarym_tile_dict {}
 
IdDictDictionarym_muon_dict {}
 
IdDictDictionarym_calo_dict {}
 
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 }
 
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 TileCal offline identifiers.

Author
Alexander Solodkov

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 15     section number  ( 1 = Barrel
                                           2 = Extended Barrel
                                           3 = Gap Detector
                                               i.e. gap scin E1-E4 and ITC cells D4, C10
                                           4 = Ancillary detectors )
                          section codes 5 and 6 are used internally
                          for supercell barrel and extbarrel, respectively.
 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 to 15     0 = A, 1 = B = BC = C, 2 = D, 3 = special gap scin cells E1-E4
                         4-15 = individual tiles, used in Cesium calibration data
 pmt         0 to 1      PMT number in the cell (0 = side close to module with smaller number)
 adc         0 to 1      ADC number for the PMT (0 = low gain, 1 = high gain)
 

Definition at line 68 of file TileID.h.

Member Typedef Documentation

◆ id_iterator

typedef std::vector<Identifier>::const_iterator Tile_Base_ID::id_iterator
inherited

Type for iterators over identifiers.

Definition at line 209 of file Tile_Base_ID.h.

◆ id_range

typedef boost::iterator_range<id_iterator> Tile_Base_ID::id_range
inherited

Type for range over identifiers.

Definition at line 211 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 264 of file Tile_Base_ID.h.

264 {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 57 of file Tile_Base_ID.h.

57 { 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 60 of file AtlasDetectorID.h.

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

◆ ID

enum AtlasDetectorID::ID
privateinherited
Enumerator
ATLAS_ID 
MAX_BIT 
PIXEL_MASK 
ALL_BITS 

Definition at line 388 of file AtlasDetectorID.h.

388  { ATLAS_ID = static_cast<Identifier::value_type>(0),
390  // mask to distinguish a pixel id from lvl1 id (bit 1 set)
391  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 53 of file Tile_Base_ID.h.

53  { SAMP_A = 0,
54  SAMP_B = 1, SAMP_BC = 1, SAMP_C = 1, // synonyms
55  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 48 of file Tile_Base_ID.h.

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

◆ SIDE

enum Tile_Base_ID::SIDE
inherited
Enumerator
NEGATIVE 
POSITIVE 
TWOSIDES 

Definition at line 56 of file Tile_Base_ID.h.

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

◆ SIZE

enum Tile_Base_ID::SIZE
inherited
Enumerator
NSIDES 
NSECTIONS 
NREGIONS 

Definition at line 58 of file Tile_Base_ID.h.

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

Constructor & Destructor Documentation

◆ TileID()

TileID::TileID ( )

Definition at line 28 of file TileID.cxx.

29  : Tile_Base_ID ("TileID", false)
30 {
31 }

Member Function Documentation

◆ adc()

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

Definition at line 186 of file Tile_Base_ID.cxx.

187 {
188  return get_field(id,m_ADC_INDEX);
189 }

◆ adc_begin()

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

iterator over set of adc Identifiers

Definition at line 1403 of file Tile_Base_ID.cxx.

1404 {
1405  return m_adcs.begin();
1406 }

◆ adc_context()

IdContext Tile_Base_ID::adc_context ( void  ) const
inherited

id for ADCs

Definition at line 1071 of file Tile_Base_ID.cxx.

1072 {
1073  return {0, m_ADC_INDEX};
1074 }

◆ adc_end()

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

Definition at line 1408 of file Tile_Base_ID.cxx.

1409 {
1410  return m_adcs.end();
1411 }

◆ adc_hash_max()

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

Definition at line 1323 of file Tile_Base_ID.cxx.

1324 {
1325  return m_adcs.hash_max();
1326 }

◆ adc_id() [1/9]

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

Definition at line 1489 of file Tile_Base_ID.cxx.

1490 {
1491  return this->adc_id (exp_id[m_SECTION_INDEX],
1492  exp_id[m_SIDE_INDEX],
1493  exp_id[m_MODULE_INDEX],
1494  exp_id[m_TOWER_INDEX],
1495  exp_id[m_SAMPLE_INDEX],
1496  exp_id[m_PMT_INDEX],
1497  exp_id[m_ADC_INDEX]);
1498 }

◆ adc_id() [2/9]

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

Definition at line 802 of file Tile_Base_ID.cxx.

804 {
805  return adc_id (cell_id, pmt, adc, do_checks());
806 }

◆ 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 754 of file Tile_Base_ID.cxx.

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

◆ 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 1002 of file Tile_Base_ID.cxx.

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

◆ adc_id() [5/9]

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

Definition at line 856 of file Tile_Base_ID.cxx.

858 {
859  return adc_id (pmt_id, adc, do_checks());
860 }

◆ adc_id() [6/9]

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

Definition at line 809 of file Tile_Base_ID.cxx.

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

◆ adc_id() [7/9]

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

Definition at line 984 of file Tile_Base_ID.cxx.

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

◆ 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 904 of file Tile_Base_ID.cxx.

907 {
908  return adc_id (section, side, module, tower, sample, pmt, adc, do_checks());
909 }

◆ 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 863 of file Tile_Base_ID.cxx.

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

◆ adc_ids()

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

Definition at line 1443 of file Tile_Base_ID.cxx.

1444 {
1445  return m_adcs.ids();
1446 }

◆ adc_range()

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

Definition at line 1413 of file Tile_Base_ID.cxx.

1414 {
1415  return m_adcs.range();
1416 }

◆ alfa_exp()

ExpandedIdentifier AtlasDetectorID::alfa_exp ( void  ) const
inlineprotectedinherited

Forward.

Definition at line 583 of file AtlasDetectorID.h.

584 {
586  return (result << m_ALFA_ID);
587 }

◆ alfa_field_value()

int AtlasDetectorID::alfa_field_value ( ) const
inlineprotectedinherited

Definition at line 673 of file AtlasDetectorID.h.

673 {return (m_ALFA_ID);}

◆ bcm_exp()

ExpandedIdentifier AtlasDetectorID::bcm_exp ( void  ) const
inlineprotectedinherited

Definition at line 590 of file AtlasDetectorID.h.

591 {
593  return (result << m_BCM_ID);
594 }

◆ bcm_field_value()

int AtlasDetectorID::bcm_field_value ( ) const
inlineprotectedinherited

Definition at line 675 of file AtlasDetectorID.h.

675 {return (m_BCM_ID);}

◆ calo()

Identifier AtlasDetectorID::calo ( void  ) const
inherited

Definition at line 63 of file AtlasDetectorID.cxx.

64 {
66  // Pack field
68  return (result);
69 }

◆ calo_exp()

ExpandedIdentifier AtlasDetectorID::calo_exp ( void  ) const
inlineprotectedinherited

Definition at line 513 of file AtlasDetectorID.h.

514 {
516  return (result << m_CALO_ID);
517 }

◆ calo_field_value()

int AtlasDetectorID::calo_field_value ( ) const
inlineprotectedinherited

Definition at line 623 of file AtlasDetectorID.h.

623 {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 1373 of file Tile_Base_ID.cxx.

1374 {
1375  return channels().begin();
1376 }

◆ cell_context()

IdContext Tile_Base_ID::cell_context ( void  ) const
inherited

id for cells

Definition at line 1059 of file Tile_Base_ID.cxx.

1060 {
1061  return {0, m_SAMPLE_INDEX};
1062 }

◆ cell_end()

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

Definition at line 1378 of file Tile_Base_ID.cxx.

1379 {
1380  return channels().end();
1381 }

◆ 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 1030 of file Tile_Base_ID.cxx.

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

◆ cell_hash_max()

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

Definition at line 1313 of file Tile_Base_ID.cxx.

1314 {
1315  return channels().hash_max();
1316 }

◆ cell_id() [1/6]

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

Definition at line 1470 of file Tile_Base_ID.cxx.

1471 {
1472  return this->cell_id (exp_id[m_SECTION_INDEX],
1473  exp_id[m_SIDE_INDEX],
1474  exp_id[m_MODULE_INDEX],
1475  exp_id[m_TOWER_INDEX],
1476  exp_id[m_SAMPLE_INDEX]);
1477 }

◆ cell_id() [2/6]

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

Definition at line 581 of file Tile_Base_ID.cxx.

582 {
584  // extract with the dictionary
585  Identifier id;
586  if(!dict()->copy(any_id, 0, 0, m_SAMPLE_INDEX, m_tile_region_index, id)) {
587  result = id;
588  }
589  return (result);
590 }

◆ 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 947 of file Tile_Base_ID.cxx.

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

◆ 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 1020 of file Tile_Base_ID.cxx.

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

◆ 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 632 of file Tile_Base_ID.cxx.

635 {
636  return cell_id (section, side, module, tower, sample, do_checks());
637 }

◆ 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 593 of file Tile_Base_ID.cxx.

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

◆ cell_ids()

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

Definition at line 1433 of file Tile_Base_ID.cxx.

1434 {
1435  return channels().ids();
1436 }

◆ cell_range()

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

Definition at line 1383 of file Tile_Base_ID.cxx.

1384 {
1385  return channels().range();
1386 }

◆ 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 193 of file AtlasDetectorID.cxx.

194 {
196  // THIS METHOD SHOULD BE REMOVED !!! DOESN'T MAKE SENSE TO HAVE AN CSC ID
197  return (result);
198 }

◆ csc_field_value()

int AtlasDetectorID::csc_field_value ( ) const
inlineprotectedinherited

Definition at line 656 of file AtlasDetectorID.h.

656 {return (m_CSC_ID);}

◆ decode_section()

int Tile_Base_ID::decode_section ( int  section) const
inlineprivateinherited

Definition at line 314 of file Tile_Base_ID.h.

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

◆ detsystem_context()

IdContext AtlasDetectorID::detsystem_context ( void  ) const
inherited

IdContext (indicates id length) for detector systems.

Definition at line 234 of file AtlasDetectorID.cxx.

235 {
237  return (IdContext(id, 0, m_DET_INDEX));
238 }

◆ 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.

Dictionary name.

Definition at line 709 of file AtlasDetectorID.cxx.

710 {
711  return (m_dict_names);
712 }

◆ dict_tags()

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

Version tags for subdet dictionaries.

Version tag for subdet dictionary.

Definition at line 723 of file AtlasDetectorID.cxx.

724 {
725  return (m_dict_tags);
726 }

◆ dictionaryVersion()

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

Implements IdHelper.

Definition at line 347 of file AtlasDetectorID.cxx.

348 {
349  return (m_dict_version);
350 }

◆ 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 728 of file AtlasDetectorID.cxx.

729 {
730  return (m_do_checks);
731 }

◆ 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 738 of file AtlasDetectorID.cxx.

739 {
740  return (m_do_neighbours);
741 }

◆ encode_section()

int Tile_Base_ID::encode_section ( int  section) const
inlineprivateinherited

Definition at line 319 of file Tile_Base_ID.h.

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

◆ 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 207 of file CaloIDHelper.cxx.

208 {
209  if (regHash >= m_vecOfDictRegions.size()) return NOT_VALID;
210  return (m_vecOfDictRegions[regHash]->m_eta0);
211 }

◆ eta_max() [1/2]

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

Definition at line 1551 of file Tile_Base_ID.cxx.

1552 {
1553  IdContext context = cell_context();
1554  return eta_max (id, context);
1555 }

◆ eta_max() [2/2]

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

Definition at line 1525 of file Tile_Base_ID.cxx.

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

◆ eta_min() [1/2]

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

max values (-999 == failure)

Definition at line 1545 of file Tile_Base_ID.cxx.

1546 {
1547  IdContext context = tower_context();
1548  return eta_min (id, context);
1549 }

◆ eta_min() [2/2]

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

Definition at line 1500 of file Tile_Base_ID.cxx.

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

◆ 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 185 of file CaloIDHelper.cxx.

186 {
187  if (regHash >= m_vecOfDictRegions.size()) return NOT_VALID;
188  return m_vecOfDictRegions[regHash]->m_deta;
189 }

◆ file_names()

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

File names for subdet dictionaries.

File name.

Definition at line 716 of file AtlasDetectorID.cxx.

717 {
718  return (m_file_names);
719 }

◆ 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 259 of file CaloIDHelper.cxx.

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

◆ 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 671 of file AtlasDetectorID.h.

671 {return (m_FWD_ID);}

◆ fwd_exp()

ExpandedIdentifier AtlasDetectorID::fwd_exp ( void  ) const
inlineprotectedinherited

Definition at line 520 of file AtlasDetectorID.h.

521 {
523  return (result << m_FWD_ID);
524 }

◆ 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 1590 of file Tile_Base_ID.cxx.

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

◆ get_field()

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

unpack one field from Identifier

Definition at line 108 of file Tile_Base_ID.cxx.

109 {
110  int field = 0;
111  if(!dict()->unpack(id, 0, index, m_tile_region_index, field)) {
112  return field;
113  } else {
114  return 0;
115  }
116 }

◆ 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 1151 of file Tile_Base_ID.cxx.

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

◆ 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 1077 of file Tile_Base_ID.cxx.

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

◆ 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 1786 of file Tile_Base_ID.cxx.

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

◆ helper()

virtual HelperType AtlasDetectorID::helper ( ) const
inlinevirtualinherited

Type of helper, defaulted to 'Unimplemented'.

Reimplemented in SCT_ID, PLR_ID, and PixelID.

Definition at line 95 of file AtlasDetectorID.h.

95  {
97  }

◆ hgtd()

Identifier AtlasDetectorID::hgtd ( void  ) const
inherited

Definition at line 103 of file AtlasDetectorID.cxx.

104 {
106  // Pack field
109  return (result);
110 }

◆ hgtd_exp()

ExpandedIdentifier AtlasDetectorID::hgtd_exp ( void  ) const
inlineprotectedinherited

Definition at line 548 of file AtlasDetectorID.h.

549 {
551  return (result << m_HGTD_ID);
552 }

◆ hgtd_field_value()

int AtlasDetectorID::hgtd_field_value ( ) const
inlineprotectedinherited

Definition at line 635 of file AtlasDetectorID.h.

635 {return (m_HGTD_ID);}

◆ indet()

Identifier AtlasDetectorID::indet ( void  ) const
inherited

Detector systems:

Definition at line 26 of file AtlasDetectorID.cxx.

27 {
28 
30  // Pack field
32  return (result);
33 }

◆ indet_exp()

ExpandedIdentifier AtlasDetectorID::indet_exp ( void  ) const
inlineprotectedinherited

Detector systems:

Definition at line 485 of file AtlasDetectorID.h.

486 {
488  return (result << m_INDET_ID);
489 }

◆ indet_field_value()

int AtlasDetectorID::indet_field_value ( ) const
inlineprotectedinherited

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

Definition at line 611 of file AtlasDetectorID.h.

611 {return (m_INDET_ID);}

◆ init_hashes()

int Tile_Base_ID::init_hashes ( void  )
privateinherited

Definition at line 1750 of file Tile_Base_ID.cxx.

1751 {
1752  if (regions().init (*this, "regions", m_full_region_range,
1754  m_SIDE_INDEX))
1755  return 1;
1756 
1757  if (m_modules.init (*this, "modules", m_full_module_range,
1759  m_MODULE_INDEX))
1760  return 1;
1761 
1762  if (m_towers.init (*this, "towers", m_full_tower_range,
1764  m_TOWER_INDEX))
1765  return 1;
1766 
1767  if (channels().init (*this, "channels", m_full_cell_range,
1769  m_SAMPLE_INDEX))
1770  return 1;
1771 
1772  if (m_pmts.init (*this, "pmts", m_full_pmt_range,
1774  m_PMT_INDEX))
1775  return 1;
1776 
1777  if (m_adcs.init (*this, "adcs", m_full_adc_range,
1779  m_ADC_INDEX))
1780  return 1;
1781 
1782  return (0);
1783 }

◆ 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 1181 of file Tile_Base_ID.cxx.

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

◆ initialize_from_dictionary()

int TileID::initialize_from_dictionary ( const IdDictMgr dict_mgr)
virtual

initialization from the identifier dictionary

Reimplemented from AtlasDetectorID.

Definition at line 33 of file TileID.cxx.

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

◆ initLevelsFromDict()

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

Definition at line 1613 of file Tile_Base_ID.cxx.

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

◆ 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 941 of file AtlasDetectorID.h.

942 {
943  bool result = false;
944  if(is_forward(id)) {
945  result = (abs(m_lar_part_impl.unpack(id)) == m_ALFA_ID);
946  }
947  return result;
948 }

◆ is_bcm()

bool AtlasDetectorID::is_bcm ( Identifier  id) const
inlineinherited

Definition at line 951 of file AtlasDetectorID.h.

952 {
953  bool result = false;
954  if(is_forward(id)) {
955  result = (abs(m_lar_part_impl.unpack(id)) == m_BCM_ID);
956  }
957  return result;
958 }

◆ is_calo() [1/2]

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

Definition at line 393 of file AtlasDetectorID.cxx.

394 {
395  bool result = false;
396  if ( id.fields() > 0 ){
397  if ( id[0] == m_CALO_ID ) result = true;
398  }
399  return result;
400 }

◆ is_calo() [2/2]

bool AtlasDetectorID::is_calo ( Identifier  id) const
inlineinherited

Definition at line 707 of file AtlasDetectorID.h.

708 {
709  return (m_det_impl.unpack(id) == m_CALO_ID);
710 }

◆ is_csc() [1/2]

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

Definition at line 514 of file AtlasDetectorID.cxx.

515 {
516  bool result = false;
517  if ( id[0] == m_MUON_ID ) {
518  if ( id[4] == m_CSC_ID ) result = true;
519  }
520  return result;
521 }

◆ is_csc() [2/2]

bool AtlasDetectorID::is_csc ( Identifier  id) const
inlineinherited

Definition at line 891 of file AtlasDetectorID.h.

892 {
893  bool result = false;
894  if (!is_muon(id)) return false;
895  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
896  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
897  result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasCSC));
898  return result;
899 }

◆ is_forward()

bool AtlasDetectorID::is_forward ( Identifier  id) const
inlineinherited

Definition at line 935 of file AtlasDetectorID.h.

936 {
937  return (m_det_impl.unpack(id) == m_FWD_ID);
938 }

◆ is_hgtd() [1/2]

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

Definition at line 433 of file AtlasDetectorID.cxx.

434 {
435  bool result = false;
436  if ( is_indet(id) && id.fields() > 1 ){
437  if ( id[1] == m_HGTD_ID) result = true;
438  }
439  return result;
440 }

◆ is_hgtd() [2/2]

bool AtlasDetectorID::is_hgtd ( Identifier  id) const
inlineinherited

Definition at line 794 of file AtlasDetectorID.h.

795 {
796  bool result = false;
797  // Must check is_pixel to allow for special bits
798  // (don't need this check for 64-bit identifier, but leave it in for now)
799  if(is_indet(id) && !is_pixel(id)) {
801  }
802  return result;
803 }

◆ is_high_gain()

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

Definition at line 286 of file Tile_Base_ID.cxx.

287 {
288  bool result = is_tile(id)
289  && ( adc(id) == Tile_Base_ID::HIGHGAIN );
290 
291  return result;
292 }

◆ is_indet() [1/2]

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

Definition at line 353 of file AtlasDetectorID.cxx.

354 {
355  bool result = false;
356  if ( id.fields() > 0 ){
357  if ( id[0] == m_INDET_ID) result = true;
358  }
359  return result;
360 }

◆ is_indet() [2/2]

bool AtlasDetectorID::is_indet ( Identifier  id) const
inlineinherited

Definition at line 683 of file AtlasDetectorID.h.

684 {
685  return (m_det_impl.unpack(id) == m_INDET_ID);
686 }

◆ is_lar() [1/2]

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

Definition at line 363 of file AtlasDetectorID.cxx.

364 {
365  bool result = false;
366  if ( id.fields() > 0 ){
367  if ( id[0] == m_LAR_ID) result = true;
368  }
369  return result;
370 }

◆ is_lar() [2/2]

bool AtlasDetectorID::is_lar ( Identifier  id) const
inlineinherited

Definition at line 689 of file AtlasDetectorID.h.

690 {
691  return (m_det_impl.unpack(id) == m_LAR_ID);
692 }

◆ is_lar_dm()

bool AtlasDetectorID::is_lar_dm ( Identifier  id) const
inlineinherited

LAr/Tile dead material:

Definition at line 736 of file AtlasDetectorID.h.

737 {
738  bool result = false;
739  if (is_calo(id)) {
740  int temp = m_calo_side_impl.unpack(id);
741  result = (m_lar_dm_field.match(temp));
742  }
743  return result;
744 }

◆ is_lar_em() [1/2]

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

Definition at line 463 of file AtlasDetectorID.cxx.

464 {
465  bool result = false;
466  if ( is_lar(id) && id.fields() > 1 ){
467  if ( abs(id[1]) == m_LAR_EM_ID) result = true;
468  }
469  return result;
470 }

◆ is_lar_em() [2/2]

bool AtlasDetectorID::is_lar_em ( Identifier  id) const
inlineinherited

Definition at line 818 of file AtlasDetectorID.h.

819 {
820  bool result = false;
821  if(is_lar(id)) {
822  result = (abs(m_lar_part_impl.unpack(id)) == m_LAR_EM_ID);
823  }
824  return result;
825 }

◆ is_lar_fcal() [1/2]

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

Definition at line 483 of file AtlasDetectorID.cxx.

484 {
485  bool result = false;
486  if ( is_lar(id) && id.fields() > 1 ){
487  if ( abs(id[1]) == m_LAR_FCAL_ID ) result = true;
488  }
489  return result;
490 }

◆ is_lar_fcal() [2/2]

bool AtlasDetectorID::is_lar_fcal ( Identifier  id) const
inlineinherited

Definition at line 839 of file AtlasDetectorID.h.

840 {
841  bool result = false;
842  if(is_lar(id)) {
843  result = (abs(m_lar_part_impl.unpack(id)) == m_LAR_FCAL_ID);
844  }
845  return result;
846 }

◆ is_lar_hec() [1/2]

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

Definition at line 473 of file AtlasDetectorID.cxx.

474 {
475  bool result = false;
476  if ( is_lar(id) && id.fields() > 1 ){
477  if ( abs(id[1]) == m_LAR_HEC_ID ) result = true;
478  }
479  return result;
480 }

◆ is_lar_hec() [2/2]

bool AtlasDetectorID::is_lar_hec ( Identifier  id) const
inlineinherited

Definition at line 829 of file AtlasDetectorID.h.

830 {
831  bool result = false;
832  if(is_lar(id)) {
833  result = (abs(m_lar_part_impl.unpack(id)) == m_LAR_HEC_ID);
834  }
835  return result;
836 }

◆ is_lar_minifcal() [1/2]

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

Definition at line 493 of file AtlasDetectorID.cxx.

494 {
495  bool result = false;
496  if ( is_lar_fcal(id) && id.fields() > 3 ){
497  if ( abs(id[3]) == 0 ) result = true;
498  }
499  return result;
500 }

◆ is_lar_minifcal() [2/2]

bool AtlasDetectorID::is_lar_minifcal ( Identifier  id) const
inlineinherited

Definition at line 849 of file AtlasDetectorID.h.

850 {
851  bool result = false;
852  if(is_lar_fcal(id)) {
853  result = (m_lar_fcal_module_impl.unpack(id) == 0);
854  }
855  return result;
856 }

◆ is_low_gain()

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

Definition at line 277 of file Tile_Base_ID.cxx.

278 {
279  bool result = is_tile(id)
280  && ( adc(id) == Tile_Base_ID::LOWGAIN );
281 
282  return result;
283 }

◆ is_lucid()

bool AtlasDetectorID::is_lucid ( Identifier  id) const
inlineinherited

Definition at line 961 of file AtlasDetectorID.h.

962 {
963  bool result = false;
964  if(is_forward(id)) {
965  result = (abs(m_lar_part_impl.unpack(id)) == m_LUCID_ID);
966  }
967  return result;
968 }

◆ is_lumi() [1/2]

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

Definition at line 443 of file AtlasDetectorID.cxx.

444 {
445  bool result = false;
446  if ( is_indet(id) && id.fields() > 1 ){
447  if ( id[1] == m_LUMI_ID) result = true;
448  }
449  return result;
450 }

◆ is_lumi() [2/2]

bool AtlasDetectorID::is_lumi ( Identifier  id) const
inlineinherited

Definition at line 806 of file AtlasDetectorID.h.

807 {
808  bool result = false;
809  // Must check is_pixel to allow for special bits
810  // (don't need this check for 64-bit identifier, but leave it in for now)
811  if(is_indet(id) && !is_pixel(id)) {
813  }
814  return result;
815 }

◆ is_lvl1_online()

bool AtlasDetectorID::is_lvl1_online ( Identifier  id) const
inlineinherited

Definition at line 724 of file AtlasDetectorID.h.

725 {
726  bool result = false;
727  if (is_calo(id)) {
728  int temp = m_calo_side_impl.unpack(id);
729  result = (m_lvl1_onl_field.match(temp));
730  }
731  return result;
732 }

◆ is_lvl1_trig_towers()

bool AtlasDetectorID::is_lvl1_trig_towers ( Identifier  id) const
inlineinherited

Definition at line 713 of file AtlasDetectorID.h.

714 {
715  bool result = false;
716  if (is_calo(id)) {
717  int temp = m_calo_side_impl.unpack(id);
718  result = (m_lvl1_field.match(temp));
719  }
720  return result;
721 }

◆ is_mdt() [1/2]

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

Definition at line 503 of file AtlasDetectorID.cxx.

504 {
505 
506  bool result = false;
507  if ( id[0] == m_MUON_ID ) {
508  if ( id[4] == m_MDT_ID ) result = true;
509  }
510  return result;
511 }

◆ is_mdt() [2/2]

bool AtlasDetectorID::is_mdt ( Identifier  id) const
inlineinherited

Definition at line 859 of file AtlasDetectorID.h.

860 {
861  bool result = false;
862  if (!is_muon(id)) return false;
863  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
864  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
865  // MDT and RPC can only be destinguished by the additional bit in the ID
866  // since the station names are ambiguous
867  if (is_muon(id) && ((techBit == AtlasDetDescr::fAtlasMDT)
868  || (techBit == AtlasDetDescr::fAtlasRPC))) {
870  }
871  return result;
872 }

◆ is_mm() [1/2]

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

Definition at line 554 of file AtlasDetectorID.cxx.

555 {
556  bool result = false;
557  if ( id[0] == m_MUON_ID ) {
558  if ( id[4] == m_MM_ID ) result = true;
559  }
560  return result;
561 }

◆ is_mm() [2/2]

bool AtlasDetectorID::is_mm ( Identifier  id) const
inlineinherited

Definition at line 913 of file AtlasDetectorID.h.

914 {
915  bool result = false;
916  if (!is_muon(id)) return false;
917  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
918  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
919  result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasMM));
920  return result;
921 }

◆ is_muon() [1/2]

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

Definition at line 383 of file AtlasDetectorID.cxx.

384 {
385  bool result = false;
386  if ( id.fields() > 0 ){
387  if ( id[0] == m_MUON_ID ) result = true;
388  }
389  return result;
390 }

◆ is_muon() [2/2]

bool AtlasDetectorID::is_muon ( Identifier  id) const
inlineinherited

Definition at line 701 of file AtlasDetectorID.h.

702 {
703  return (m_det_impl.unpack(id) == m_MUON_ID);
704 }

◆ is_negative()

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

Definition at line 241 of file Tile_Base_ID.cxx.

242 {
243  bool result = is_tile(id)
244  && ( side(id) == Tile_Base_ID::NEGATIVE );
245 
246  return result;
247 }

◆ is_pixel() [1/2]

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

Definition at line 403 of file AtlasDetectorID.cxx.

404 {
405  bool result = false;
406  if ( is_indet(id) && id.fields() > 1 ){
407  if ( id[1] == m_PIXEL_ID ) result = true;
408  }
409  return result;
410 }

◆ is_pixel() [2/2]

bool AtlasDetectorID::is_pixel ( Identifier  id) const
inlineinherited

Definition at line 760 of file AtlasDetectorID.h.

761 {
762  bool result = false;
763  if(is_indet(id)) {
765  }
766  return result;
767 }

◆ is_plr() [1/2]

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

Definition at line 453 of file AtlasDetectorID.cxx.

454 {
455  bool result = false;
456  if ( is_lumi(id) ){
457  if ( id[2] == m_LUMI_PLR_ID) result = true;
458  }
459  return result;
460 }

◆ 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 250 of file Tile_Base_ID.cxx.

251 {
252  bool result = is_tile(id)
253  && ( side(id) == Tile_Base_ID::POSITIVE );
254 
255  return result;
256 }

◆ is_rpc() [1/2]

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

Definition at line 524 of file AtlasDetectorID.cxx.

525 {
526  bool result = false;
527  if ( id[0] == m_MUON_ID ) {
528  if ( id[4] == m_RPC_ID ) result = true;
529  }
530  return result;
531 }

◆ is_rpc() [2/2]

bool AtlasDetectorID::is_rpc ( Identifier  id) const
inlineinherited

Definition at line 875 of file AtlasDetectorID.h.

876 {
877  bool result = false;
878  if (!is_muon(id)) return false;
879  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
880  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
881  // MDT and RPC can only be destinguished by the additional bit in the ID
882  // since the station names are ambiguous
883  if (is_muon(id) && ((techBit == AtlasDetDescr::fAtlasMDT)
884  || (techBit == AtlasDetDescr::fAtlasRPC))) {
886  }
887  return result;
888 }

◆ is_sct() [1/2]

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

Definition at line 413 of file AtlasDetectorID.cxx.

414 {
415  bool result = false;
416  if ( is_indet(id) && id.fields() > 1 ){
417  if ( id[1] == m_SCT_ID ) return(true);
418  }
419  return result;
420 }

◆ is_sct() [2/2]

bool AtlasDetectorID::is_sct ( Identifier  id) const
inlineinherited

Definition at line 770 of file AtlasDetectorID.h.

771 {
772  bool result = false;
773  // Must check is_pixel to allow for special bits
774  // (don't need this check for 64-bit identifier, but leave it in for now)
775  if(is_indet(id) && !is_pixel(id)) {
777  }
778  return result;
779 }

◆ is_stgc() [1/2]

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

Definition at line 544 of file AtlasDetectorID.cxx.

545 {
546  bool result = false;
547  if ( id[0] == m_MUON_ID ) {
548  if ( id[4] == m_STGC_ID ) result = true;
549  }
550  return result;
551 }

◆ is_stgc() [2/2]

bool AtlasDetectorID::is_stgc ( Identifier  id) const
inlineinherited

Definition at line 924 of file AtlasDetectorID.h.

925 {
926  bool result = false;
927  if (!is_muon(id)) return false;
928  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
929  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
930  result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasSTGC));
931  return result;
932 }

◆ is_supercell()

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

Definition at line 294 of file Tile_Base_ID.cxx.

295 {
296  return is_tile(id) && (get_field(id,m_SECTION_INDEX) & SUPERCELL_MASK);
297 }

◆ is_tgc() [1/2]

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

Definition at line 534 of file AtlasDetectorID.cxx.

535 {
536  bool result = false;
537  if ( id[0] == m_MUON_ID ) {
538  if ( id[4] == m_TGC_ID ) result = true;
539  }
540  return result;
541 }

◆ is_tgc() [2/2]

bool AtlasDetectorID::is_tgc ( Identifier  id) const
inlineinherited

Definition at line 902 of file AtlasDetectorID.h.

903 {
904  bool result = false;
905  if (!is_muon(id)) return false;
906  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
907  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
908  result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasTGC));
909  return result;
910 }

◆ is_tile() [1/2]

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

Definition at line 373 of file AtlasDetectorID.cxx.

374 {
375  bool result = false;
376  if ( id.fields() > 0 ){
377  if ( id[0] == m_TILE_ID ) result = true;
378  }
379  return result;
380 }

◆ is_tile() [2/2]

bool AtlasDetectorID::is_tile ( Identifier  id) const
inlineinherited

Definition at line 695 of file AtlasDetectorID.h.

696 {
697  return (m_det_impl.unpack(id) == m_TILE_ID);
698 }

◆ is_tile_aux()

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

Definition at line 232 of file Tile_Base_ID.cxx.

233 {
234  bool result = is_tile(id)
235  && ( section(id) == Tile_Base_ID::AUXDET );
236 
237  return result;
238 }

◆ 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 205 of file Tile_Base_ID.cxx.

206 {
207  bool result = is_tile(id)
208  && ( section(id) == Tile_Base_ID::BARREL );
209 
210  return result;
211 }

◆ is_tile_dm()

bool AtlasDetectorID::is_tile_dm ( Identifier  id) const
inlineinherited

Definition at line 748 of file AtlasDetectorID.h.

749 {
750  bool result = false;
751  if (is_calo(id)) {
752  int temp = m_calo_side_impl.unpack(id);
753  result = (m_tile_dm_field.match(temp));
754  }
755  return result;
756 }

◆ is_tile_extbarrel()

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

Definition at line 214 of file Tile_Base_ID.cxx.

215 {
216  bool result = is_tile(id)
217  && ( section(id) == Tile_Base_ID::EXTBAR );
218 
219  return result;
220 }

◆ is_tile_gap()

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

Definition at line 223 of file Tile_Base_ID.cxx.

224 {
225  bool result = is_tile(id)
226  && ( section(id) == Tile_Base_ID::GAPDET );
227 
228  return result;
229 }

◆ is_tile_gapscin()

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

Definition at line 268 of file Tile_Base_ID.cxx.

269 {
270  bool result = is_tile(id)
271  && ( sample(id) == Tile_Base_ID::SAMP_E );
272 
273  return result;
274 }

◆ is_trt() [1/2]

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

Definition at line 423 of file AtlasDetectorID.cxx.

424 {
425  bool result = false;
426  if ( is_indet(id) && id.fields() > 1 ){
427  if ( id[1] == m_TRT_ID ) result = true;
428  }
429  return result;
430 }

◆ is_trt() [2/2]

bool AtlasDetectorID::is_trt ( Identifier  id) const
inlineinherited

Definition at line 782 of file AtlasDetectorID.h.

783 {
784  bool result = false;
785  // Must check is_pixel to allow for special bits
786  // (don't need this check for 64-bit identifier, but leave it in for now)
787  if(is_indet(id) && !is_pixel(id)) {
789  }
790  return result;
791 }

◆ is_twosides()

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

Definition at line 259 of file Tile_Base_ID.cxx.

260 {
261  bool result = is_tile(id)
262  && ( side(id) == 0 );
263 
264  return result;
265 }

◆ is_zdc()

bool AtlasDetectorID::is_zdc ( Identifier  id) const
inlineinherited

Definition at line 971 of file AtlasDetectorID.h.

972 {
973  bool result = false;
974  if(is_forward(id)) {
975  result = (abs(m_lar_part_impl.unpack(id)) == m_ZDC_ID);
976  }
977  return result;
978 }

◆ lar()

Identifier AtlasDetectorID::lar ( void  ) const
inherited

Definition at line 36 of file AtlasDetectorID.cxx.

37 {
39  // Pack field
41  return (result);
42 }

◆ lar_dm()

Identifier AtlasDetectorID::lar_dm ( void  ) const
inherited

Definition at line 144 of file AtlasDetectorID.cxx.

145 {
147  // Pack field
150  return (result);
151 }

◆ lar_em()

Identifier AtlasDetectorID::lar_em ( void  ) const
inherited

Definition at line 123 of file AtlasDetectorID.cxx.

124 {
126  // Pack field
129  return (result);
130 }

◆ lar_em_exp()

ExpandedIdentifier AtlasDetectorID::lar_em_exp ( void  ) const
inlineprotectedinherited

LAr.

Definition at line 562 of file AtlasDetectorID.h.

563 {
565  return (result << m_LAR_EM_ID);
566 }

◆ lar_em_field_value()

int AtlasDetectorID::lar_em_field_value ( ) const
inlineprotectedinherited

Definition at line 644 of file AtlasDetectorID.h.

644 {return (m_LAR_EM_ID);}

◆ lar_exp()

ExpandedIdentifier AtlasDetectorID::lar_exp ( void  ) const
inlineprotectedinherited

Definition at line 492 of file AtlasDetectorID.h.

493 {
495  return (result << m_LAR_ID);
496 }

◆ lar_fcal()

Identifier AtlasDetectorID::lar_fcal ( void  ) const
inherited

Definition at line 174 of file AtlasDetectorID.cxx.

175 {
177  // Pack field
180  return (result);
181 }

◆ lar_fcal_exp()

ExpandedIdentifier AtlasDetectorID::lar_fcal_exp ( void  ) const
inlineprotectedinherited

Definition at line 576 of file AtlasDetectorID.h.

577 {
579  return (result << m_LAR_FCAL_ID);
580 }

◆ lar_fcal_field_value()

int AtlasDetectorID::lar_fcal_field_value ( ) const
inlineprotectedinherited

Definition at line 650 of file AtlasDetectorID.h.

650 {return (m_LAR_FCAL_ID);}

◆ lar_field_value()

int AtlasDetectorID::lar_field_value ( ) const
inlineprotectedinherited

Definition at line 614 of file AtlasDetectorID.h.

614 {return (m_LAR_ID);}

◆ lar_hec()

Identifier AtlasDetectorID::lar_hec ( void  ) const
inherited

Definition at line 164 of file AtlasDetectorID.cxx.

165 {
167  // Pack field
170  return (result);
171 }

◆ lar_hec_exp()

ExpandedIdentifier AtlasDetectorID::lar_hec_exp ( void  ) const
inlineprotectedinherited

Definition at line 569 of file AtlasDetectorID.h.

570 {
572  return (result << m_LAR_HEC_ID);
573 }

◆ lar_hec_field_value()

int AtlasDetectorID::lar_hec_field_value ( ) const
inlineprotectedinherited

Definition at line 647 of file AtlasDetectorID.h.

647 {return (m_LAR_HEC_ID);}

◆ lar_lvl1()

Identifier AtlasDetectorID::lar_lvl1 ( void  ) const
inherited

Definition at line 134 of file AtlasDetectorID.cxx.

135 {
137  // Pack field
140  return (result);
141 }

◆ lucid_exp()

ExpandedIdentifier AtlasDetectorID::lucid_exp ( void  ) const
inlineprotectedinherited

Definition at line 597 of file AtlasDetectorID.h.

598 {
600  return (result << m_LUCID_ID);
601 }

◆ lucid_field_value()

int AtlasDetectorID::lucid_field_value ( ) const
inlineprotectedinherited

Definition at line 677 of file AtlasDetectorID.h.

677 {return (m_LUCID_ID);}

◆ lumi()

Identifier AtlasDetectorID::lumi ( void  ) const
inherited

Definition at line 113 of file AtlasDetectorID.cxx.

114 {
116  // Pack field
119  return (result);
120 }

◆ lumi_exp()

ExpandedIdentifier AtlasDetectorID::lumi_exp ( void  ) const
inlineprotectedinherited

Definition at line 555 of file AtlasDetectorID.h.

556 {
558  return (result << m_LUMI_ID);
559 }

◆ lumi_field_value()

int AtlasDetectorID::lumi_field_value ( ) const
inlineprotectedinherited

Definition at line 638 of file AtlasDetectorID.h.

638 {return (m_LUMI_ID);}

◆ mdt()

Identifier AtlasDetectorID::mdt ( void  ) const
inherited

Definition at line 184 of file AtlasDetectorID.cxx.

185 {
186  // THIS METHOD SHOULD BE REMOVED !!! DOESN'T MAKE SENSE TO HAVE AN MDT ID
187 
189  return (result);
190 }

◆ mdt_field_value()

int AtlasDetectorID::mdt_field_value ( ) const
inlineprotectedinherited

Definition at line 653 of file AtlasDetectorID.h.

653 {return (m_MDT_ID);}

◆ mm()

Identifier AtlasDetectorID::mm ( void  ) const
inherited

Definition at line 225 of file AtlasDetectorID.cxx.

226 {
228  // THIS METHOD SHOULD BE REMOVED !!! DOESN'T MAKE SENSE TO HAVE AN MM ID
229  return (result);
230 }

◆ mm_field_value()

int AtlasDetectorID::mm_field_value ( ) const
inlineprotectedinherited

Definition at line 668 of file AtlasDetectorID.h.

668 {return (m_MM_ID);}

◆ module()

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

Definition at line 159 of file Tile_Base_ID.cxx.

160 {
161  return get_field(id,m_MODULE_INDEX);
162 }

◆ module_begin()

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

iterator over set of module Identifiers

Definition at line 1343 of file Tile_Base_ID.cxx.

1344 {
1345  return m_modules.begin();
1346 }

◆ module_context()

IdContext Tile_Base_ID::module_context ( void  ) const
inherited

id for modules

Definition at line 1047 of file Tile_Base_ID.cxx.

1048 {
1049  return {0, m_MODULE_INDEX};
1050 }

◆ module_end()

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

Definition at line 1348 of file Tile_Base_ID.cxx.

1349 {
1350  return m_modules.end();
1351 }

◆ module_hash_max()

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

Definition at line 1303 of file Tile_Base_ID.cxx.

1304 {
1305  return m_modules.hash_max();
1306 }

◆ module_id() [1/5]

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

Definition at line 1455 of file Tile_Base_ID.cxx.

1456 {
1457  return this->module_id (exp_id[m_SECTION_INDEX],
1458  exp_id[m_SIDE_INDEX],
1459  exp_id[m_MODULE_INDEX]);
1460 }

◆ module_id() [2/5]

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

Definition at line 513 of file Tile_Base_ID.cxx.

514 {
516  // extract with the dictionary
517  Identifier id;
518  if(!dict()->copy(any_id, 0, 0, m_MODULE_INDEX, m_tile_region_index, id)) {
519  result = id;
520  }
521  return (result);
522 }

◆ 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 911 of file Tile_Base_ID.cxx.

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

◆ module_id() [4/5]

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

Definition at line 505 of file Tile_Base_ID.cxx.

507 {
508  return module_id (section, side, module, do_checks());
509 }

◆ module_id() [5/5]

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

Definition at line 469 of file Tile_Base_ID.cxx.

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

◆ module_ids()

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

Definition at line 1423 of file Tile_Base_ID.cxx.

1424 {
1425  return m_modules.ids();
1426 }

◆ module_range()

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

Definition at line 1353 of file Tile_Base_ID.cxx.

1354 {
1355  return m_modules.range();
1356 }

◆ 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 54 of file AtlasDetectorID.cxx.

55 {
57  // Pack field
59  return (result);
60 }

◆ muon_exp()

ExpandedIdentifier AtlasDetectorID::muon_exp ( void  ) const
inlineprotectedinherited

Definition at line 506 of file AtlasDetectorID.h.

507 {
509  return (result << m_MUON_ID);
510 }

◆ muon_field_value()

int AtlasDetectorID::muon_field_value ( ) const
inlineprotectedinherited

Definition at line 620 of file AtlasDetectorID.h.

620 {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 218 of file CaloIDHelper.cxx.

219 {
220  if (regHash >= m_vecOfDictRegions.size()) return NOT_VALID;
221  return (m_vecOfDictRegions[regHash]->m_phi0);
222 }

◆ phi_max()

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

Definition at line 1569 of file Tile_Base_ID.cxx.

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

◆ 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 196 of file CaloIDHelper.cxx.

197 {
198  if (regHash >= m_vecOfDictRegions.size()) return NOT_VALID;
199  return 2. * M_PI / m_vecOfDictRegions[regHash]->m_dphi ;
200 }

◆ pixel()

Identifier AtlasDetectorID::pixel ( void  ) const
inherited

Definition at line 73 of file AtlasDetectorID.cxx.

74 {
76  // Pack field
79  return (result);
80 }

◆ pixel_exp()

ExpandedIdentifier AtlasDetectorID::pixel_exp ( void  ) const
inlineprotectedinherited

Inner Detector:

Definition at line 527 of file AtlasDetectorID.h.

528 {
530  return (result << m_PIXEL_ID);
531 }

◆ pixel_field_value()

int AtlasDetectorID::pixel_field_value ( ) const
inlineprotectedinherited

Definition at line 626 of file AtlasDetectorID.h.

626 {return (m_PIXEL_ID);}

◆ plr_field_value()

int AtlasDetectorID::plr_field_value ( ) const
inlineprotectedinherited

Definition at line 641 of file AtlasDetectorID.h.

641 {return (m_LUMI_PLR_ID);}

◆ pmt()

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

Definition at line 180 of file Tile_Base_ID.cxx.

181 {
182  return get_field(id,m_PMT_INDEX);
183 }

◆ pmt_begin()

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

iterator over set of pmt Identifiers

Definition at line 1388 of file Tile_Base_ID.cxx.

1389 {
1390  return m_pmts.begin();
1391 }

◆ pmt_context()

IdContext Tile_Base_ID::pmt_context ( void  ) const
inherited

id for PMTs

Definition at line 1065 of file Tile_Base_ID.cxx.

1066 {
1067  return {0, m_PMT_INDEX};
1068 }

◆ pmt_end()

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

Definition at line 1393 of file Tile_Base_ID.cxx.

1394 {
1395  return m_pmts.end();
1396 }

◆ pmt_hash_max()

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

Definition at line 1318 of file Tile_Base_ID.cxx.

1319 {
1320  return m_pmts.hash_max();
1321 }

◆ pmt_id() [1/7]

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

Definition at line 1479 of file Tile_Base_ID.cxx.

1480 {
1481  return this->pmt_id (exp_id[m_SECTION_INDEX],
1482  exp_id[m_SIDE_INDEX],
1483  exp_id[m_MODULE_INDEX],
1484  exp_id[m_TOWER_INDEX],
1485  exp_id[m_SAMPLE_INDEX],
1486  exp_id[m_PMT_INDEX]);
1487 }

◆ pmt_id() [2/7]

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

Definition at line 640 of file Tile_Base_ID.cxx.

641 {
643  // extract with the dictionary
644  Identifier id;
645  if(!dict()->copy(any_id, 0, 0, m_PMT_INDEX, m_tile_region_index, id)) {
646  result = id;
647  }
648  return (result);
649 }

◆ pmt_id() [3/7]

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

Definition at line 699 of file Tile_Base_ID.cxx.

701 {
702  return pmt_id (cell_id, pmt, do_checks());
703 }

◆ pmt_id() [4/7]

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

Definition at line 652 of file Tile_Base_ID.cxx.

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

◆ pmt_id() [5/7]

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

Definition at line 966 of file Tile_Base_ID.cxx.

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

◆ 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 746 of file Tile_Base_ID.cxx.

749 {
750  return pmt_id (section, side, module, tower, sample, pmt, do_checks());
751 }

◆ 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 706 of file Tile_Base_ID.cxx.

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

◆ pmt_ids()

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

Definition at line 1438 of file Tile_Base_ID.cxx.

1439 {
1440  return m_pmts.ids();
1441 }

◆ pmt_range()

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

Definition at line 1398 of file Tile_Base_ID.cxx.

1399 {
1400  return m_pmts.range();
1401 }

◆ print()

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

Expanded print out of any identifier.

Definition at line 648 of file AtlasDetectorID.cxx.

650 {
651  ATH_MSG_INFO(print_to_string(id, context));
652 }

◆ 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 655 of file AtlasDetectorID.cxx.

657 {
658  // Print out for any Atlas identifier
659  std::string result;
661 
662  // Do a generic printout of identifier from dictionary
663  unsigned int max_index = (context) ? context->end_index() : 999;
664 
665  // Find the dictionary to use:
666  IdDictDictionary* dict = 0;
667  ExpandedIdentifier expId;
668  ExpandedIdentifier prefix; // default is null prefix
669  Identifier compact = id;
670 
671  if (is_indet(id)) {
672  dict = m_indet_dict;
673  }
674  else if (is_lar(id)) {
675  dict = m_lar_dict;
676  }
677  else if (is_tile(id)) {
678  dict = m_tile_dict;
679  }
680  else if (is_muon(id)) {
681  dict = m_muon_dict;
682  }
683  else if (is_lvl1_trig_towers(id) ||
684  is_lvl1_online(id) ||
685  is_lar_dm(id) ||
686  is_tile_dm(id)) {
687  dict = m_calo_dict;
688  }
689  else if (is_forward(id)) {
690  dict = m_fwd_dict;
691  }
692 
693 
694  if (!dict) return (result);
695 
696  if (dict->unpack(compact,
697  prefix,
698  max_index,
699  " ",
700  result)) {
701  return (result);
702  }
703  }
704  return (result);
705 }

◆ reg_begin()

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

iterator over set of region Identifiers

Definition at line 1328 of file Tile_Base_ID.cxx.

1329 {
1330  return regions().begin();
1331 }

◆ reg_end()

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

Definition at line 1333 of file Tile_Base_ID.cxx.

1334 {
1335  return regions().end();
1336 }

◆ reg_range()

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

Definition at line 1338 of file Tile_Base_ID.cxx.

1339 {
1340  return regions().range();
1341 }

◆ region() [1/2]

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

Definition at line 130 of file Tile_Base_ID.cxx.

131 {
132  IdentifierHash hash_id;
133  IdContext context = region_context();
134 
135  get_hash(region_id(id),hash_id,&context);
136 
137  return (int)hash_id;
138 }

◆ region() [2/2]

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

Definition at line 119 of file Tile_Base_ID.cxx.

120 {
121  IdentifierHash hash_id;
122  IdContext context = region_context();
123 
124  get_hash(region_id(section,side),hash_id,&context);
125 
126  return (int)hash_id;
127 }

◆ region_begin()

id_iterator Tile_Base_ID::region_begin ( ) const
inlineinherited

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

Definition at line 219 of file Tile_Base_ID.h.

219 { return reg_begin(); }

◆ region_context()

IdContext Tile_Base_ID::region_context ( void  ) const
inherited

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

id for regions

Definition at line 1041 of file Tile_Base_ID.cxx.

1042 {
1043  return {0, m_SIDE_INDEX};
1044 }

◆ region_end()

id_iterator Tile_Base_ID::region_end ( ) const
inlineinherited

Definition at line 220 of file Tile_Base_ID.h.

220 { return reg_end(); }

◆ region_eta_max()

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

Definition at line 1563 of file Tile_Base_ID.cxx.

1564 {
1565  IdContext context = region_context();
1566  return eta_max (id, context);
1567 }

◆ region_eta_min()

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

Definition at line 1557 of file Tile_Base_ID.cxx.

1558 {
1559  IdContext context = region_context();
1560  return eta_min (id, context);
1561 }

◆ 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 ( void  ) const
inherited

hash tables max size

Definition at line 1298 of file Tile_Base_ID.cxx.

1299 {
1300  return regions().hash_max();
1301 }

◆ region_id() [1/6]

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

Construct identifiers from ExpandedIdentifier's.

Definition at line 1449 of file Tile_Base_ID.cxx.

1450 {
1451  return this->region_id (exp_id[m_SECTION_INDEX],
1452  exp_id[m_SIDE_INDEX]);
1453 }

◆ region_id() [2/6]

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

Definition at line 457 of file Tile_Base_ID.cxx.

458 {
460  // extract with the dictionary
461  Identifier id;
462  if(!dict()->copy(any_id, 0, 0, m_SIDE_INDEX, m_tile_region_index, id)) {
463  result = id;
464  }
465  return (result);
466 }

◆ 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 405 of file Tile_Base_ID.cxx.

406 {
408  IdentifierHash hash_id = index;
409  IdContext context = region_context();
410 
411  get_id(hash_id,result,&context);
412 
413  return result;
414 }

◆ region_id() [5/6]

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

Definition at line 450 of file Tile_Base_ID.cxx.

451 {
452  return region_id (section, side, do_checks());
453 }

◆ region_id() [6/6]

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

Definition at line 417 of file Tile_Base_ID.cxx.

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

◆ region_ids()

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

provide access to id vectors, accessed via hash

Definition at line 1418 of file Tile_Base_ID.cxx.

1419 {
1420  return regions().ids();
1421 }

◆ region_range()

id_range Tile_Base_ID::region_range ( ) const
inlineinherited

Definition at line 221 of file Tile_Base_ID.h.

221 { 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 266 of file AtlasDetectorID.cxx.

268 {
269  // Register version of dictionary dict_name
270 
271  // Access dictionary by name
272  IdDictDictionary* dict = dict_mgr.find_dictionary(dict_name);
273  if (!dict) return(1);
274  // Add in dict name, file name and version
275  m_dict_names.push_back(dict_name);
276  m_file_names.push_back(dict->file_name());
277  m_dict_tags.push_back(dict->dict_tag());
278  return (0);
279 }

◆ 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 284 of file AtlasDetectorID.cxx.

285 {
286  // If no tag has been registered, then reinitialize
287  if (m_dict_tags.size() == 0) return (true);
288 
289  // If no dict names have been registered, then reinitialize
290  if (m_dict_names.size() == 0) return (true);
291 
292  // Loop over dict names and check version tags
293  if (m_dict_names.size() != m_dict_tags.size()) {
294  ATH_MSG_ERROR("reinitialize: dict names and tags vectors not the same length ");
295  ATH_MSG_ERROR("names: " << m_dict_names.size() << " tags: " << m_dict_tags.size());
296  }
297  for (unsigned int i = 0; i < m_dict_names.size(); ++i) {
298  // Access dictionary by name
299  IdDictDictionary* dict = dict_mgr.find_dictionary(m_dict_names[i]);
300  if (!dict) {
301  ATH_MSG_ERROR("reinitialize: could not find dict - " << m_dict_names[i]);
302  return(false);
303  }
304  if (m_dict_tags[i] != dict->dict_tag()) {
305  // Remove all memory of versions
306  m_dict_names.clear();
307  m_dict_tags.clear();
308  m_file_names.clear();
309  return (true);
310  }
311  }
312 
313  // Tags match - don't reinitialize
314  return (false);
315 }

◆ rpc()

Identifier AtlasDetectorID::rpc ( void  ) const
inherited

Definition at line 201 of file AtlasDetectorID.cxx.

202 {
204  // THIS METHOD SHOULD BE REMOVED !!! DOESN'T MAKE SENSE TO HAVE AN RPC ID
205  return (result);
206 }

◆ rpc_field_value()

int AtlasDetectorID::rpc_field_value ( ) const
inlineprotectedinherited

Definition at line 659 of file AtlasDetectorID.h.

659 {return (m_RPC_ID);}

◆ sample()

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

Definition at line 171 of file Tile_Base_ID.cxx.

172 {
173  if ( section(id) == Tile_Base_ID::AUXDET )
174  return Tile_Base_ID::SAMP_X;
175  else
176  return get_field(id,m_SAMPLE_INDEX);
177 }

◆ sampling()

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

Definition at line 164 of file Tile_Base_ID.h.

164 { return m_sample_impl.unpack(id); }

◆ sct()

Identifier AtlasDetectorID::sct ( void  ) const
inherited

Definition at line 83 of file AtlasDetectorID.cxx.

84 {
86  // Pack field
89  return (result);
90 }

◆ sct_exp()

ExpandedIdentifier AtlasDetectorID::sct_exp ( void  ) const
inlineprotectedinherited

Definition at line 534 of file AtlasDetectorID.h.

535 {
537  return (result << m_SCT_ID);
538 }

◆ sct_field_value()

int AtlasDetectorID::sct_field_value ( ) const
inlineprotectedinherited

Definition at line 629 of file AtlasDetectorID.h.

629 {return (m_SCT_ID);}

◆ section()

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

Definition at line 147 of file Tile_Base_ID.cxx.

148 {
150 }

◆ set_do_checks()

void AtlasDetectorID::set_do_checks ( bool  do_checks)
overridevirtualinherited

Implements IdHelper.

Definition at line 733 of file AtlasDetectorID.cxx.

734 {
736 }

◆ set_do_neighbours()

void AtlasDetectorID::set_do_neighbours ( bool  do_neighbours)
overridevirtualinherited

Implements IdHelper.

Definition at line 743 of file AtlasDetectorID.cxx.

744 {
746 }

◆ set_quiet()

void AtlasDetectorID::set_quiet ( bool  quiet)
inherited

Set flag for suppressing informational output.

Definition at line 753 of file AtlasDetectorID.cxx.

754 {
755  m_quiet = quiet ;
756 }

◆ setDictVersion()

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

Implements IdHelper.

Definition at line 759 of file AtlasDetectorID.cxx.

760 {
761  const IdDictDictionary* dict = dict_mgr.find_dictionary (name);
762 
763  m_dict_version = dict->m_version;
764 }

◆ 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 748 of file AtlasDetectorID.cxx.

749 {
750  m_msgSvc = msgSvc ;
751 }

◆ 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 565 of file AtlasDetectorID.cxx.

568 {
569  ATH_MSG_INFO(show_to_string(id, context, sep));
570 }

◆ 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 574 of file AtlasDetectorID.cxx.

577 {
578  // Do a generic printout of identifier
579 
580  std::string result("Unable to decode id");
581  unsigned int max_index = (context) ? context->end_index() : 999;
582 
583  if (!m_is_initialized_from_dict) return (result);
584 
585  // Find the dictionary to use:
586  IdDictDictionary* dict = 0;
587  ExpandedIdentifier expId;
588  ExpandedIdentifier prefix; // default is null prefix
589  Identifier compact = id;
590 
591  if (is_indet(id)) {
592  dict = m_indet_dict;
593  }
594  else if (is_lar(id)) {
595  dict = m_lar_dict;
596  }
597  else if (is_tile(id)) {
598  dict = m_tile_dict;
599  }
600  else if (is_muon(id)) {
601  dict = m_muon_dict;
602  }
603  else if (is_lvl1_trig_towers(id) ||
604  is_lvl1_online(id) ||
605  is_lar_dm(id) ||
606  is_tile_dm(id)) {
607  dict = m_calo_dict;
608  }
609  else if (is_forward(id)) {
610  dict = m_fwd_dict;
611  }
612 
613 
614 
615  if (!dict) return (result);
616 
617  if (dict->unpack(compact,
618  prefix,
619  max_index,
620  expId)) {
621  return (result);
622  }
623 
624  bool first = true;
625  char temp[20];
626 
627  result = "";
628  if ('.' == sep) result = "[";
629  for (unsigned int i = 0; i < expId.fields(); ++i) {
630  if (first) first = false;
631  else result += sep;
632  sprintf (temp, "%d", expId[i]);
633  result += temp;
634  }
635  if ('.' == sep) result += "]";
636 
637 // result += " compact [";
638 // sprintf (temp, "0x%x", (unsigned int)compact);
639 // result += temp;
640 // result += "]";
641 
642  return (result);
643 }

◆ side()

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

Definition at line 153 of file Tile_Base_ID.cxx.

154 {
155  return get_field(id,m_SIDE_INDEX);
156 }

◆ stgc()

Identifier AtlasDetectorID::stgc ( void  ) const
inherited

Definition at line 217 of file AtlasDetectorID.cxx.

218 {
220  // THIS METHOD SHOULD BE REMOVED !!! DOESN'T MAKE SENSE TO HAVE AN STGC ID
221  return (result);
222 }

◆ stgc_field_value()

int AtlasDetectorID::stgc_field_value ( ) const
inlineprotectedinherited

Definition at line 665 of file AtlasDetectorID.h.

665 {return (m_STGC_ID);}

◆ subdet_context()

IdContext AtlasDetectorID::subdet_context ( void  ) const
inherited

IdContext (indicates id length) for sub-detector.

Definition at line 242 of file AtlasDetectorID.cxx.

243 {
245  return (IdContext(id, 0, m_SUBDET_INDEX));
246 }

◆ system()

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

Definition at line 141 of file Tile_Base_ID.cxx.

142 {
143  return get_field(id,m_SYSTEM_INDEX);
144 }

◆ tgc()

Identifier AtlasDetectorID::tgc ( void  ) const
inherited

Definition at line 209 of file AtlasDetectorID.cxx.

210 {
212  // THIS METHOD SHOULD BE REMOVED !!! DOESN'T MAKE SENSE TO HAVE AN TGC ID
213  return (result);
214 }

◆ tgc_field_value()

int AtlasDetectorID::tgc_field_value ( ) const
inlineprotectedinherited

Definition at line 662 of file AtlasDetectorID.h.

662 {return (m_TGC_ID);}

◆ tile()

Identifier AtlasDetectorID::tile ( void  ) const
inherited

Definition at line 45 of file AtlasDetectorID.cxx.

46 {
48  // Pack field
50  return (result);
51 }

◆ tile_barrel()

Identifier Tile_Base_ID::tile_barrel ( ) const
inherited

build identifier for Tile Barrel

Definition at line 318 of file Tile_Base_ID.cxx.

319 {
321 
322  int id[8];
325 
326  Identifier compactId(0);
327  if (!dict()->pack32(id, 0, m_SECTION_INDEX, m_tile_region_index, compactId)) {
328  result = compactId;
329  }
330 
331  return result;
332 }

◆ tile_det() [1/2]

Identifier Tile_Base_ID::tile_det ( int  section) const
inherited

build identifier for any Tilecal section

Definition at line 398 of file Tile_Base_ID.cxx.

399 {
400  return tile_det (section, do_checks());
401 }

◆ tile_det() [2/2]

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

Definition at line 374 of file Tile_Base_ID.cxx.

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

◆ tile_dm()

Identifier AtlasDetectorID::tile_dm ( void  ) const
inherited

Definition at line 154 of file AtlasDetectorID.cxx.

155 {
157  // Pack field
160  return (result);
161 }

◆ tile_exp()

ExpandedIdentifier AtlasDetectorID::tile_exp ( void  ) const
inlineprotectedinherited

Definition at line 499 of file AtlasDetectorID.h.

500 {
502  return (result << m_TILE_ID);
503 }

◆ tile_extbarrel()

Identifier Tile_Base_ID::tile_extbarrel ( ) const
inherited

build identifier for Tile Extended Barrel

Definition at line 336 of file Tile_Base_ID.cxx.

337 {
339 
340  int id[8];
343 
344  Identifier compactId(0);
345  if (!dict()->pack32(id, 0, m_SECTION_INDEX, m_tile_region_index, compactId)) {
346  result = compactId;
347  }
348 
349  return result;
350 }

◆ tile_field_value()

int AtlasDetectorID::tile_field_value ( ) const
inlineprotectedinherited

Definition at line 617 of file AtlasDetectorID.h.

617 {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 355 of file Tile_Base_ID.cxx.

356 {
358 
359  assert (!m_supercell);
360  int id[8];
363 
364  Identifier compactId(0);
365  if (!dict()->pack32(id, 0, m_SECTION_INDEX, m_tile_region_index, compactId)) {
366  result = compactId;
367  }
368 
369  return result;
370 }

◆ tile_system()

Identifier Tile_Base_ID::tile_system ( ) const
inherited

build identifier for whole TileCal

Definition at line 301 of file Tile_Base_ID.cxx.

302 {
304 
305  int id[8];
307 
308  Identifier compactId(0);
309  if (!dict()->pack32(id, 0, m_SYSTEM_INDEX, m_tile_region_index, compactId)) {
310  result = compactId;
311  }
312 
313  return result;
314 }

◆ to_range()

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

Definition at line 767 of file AtlasDetectorID.cxx.

768 {
769 
770  // Build a string from the contents of an identifier
771 
772  int fields = id.fields();
773  char temp[10] = "";
774  std::string result("");
775 
776  for (int i = 0; i < fields; ++i) {
777  sprintf( temp, "%d", id[i]);
778  if (i > 0) result += '/'; // add '/' only if NOT last one
779  result += temp;
780  }
781 
782  return result;
783 }

◆ to_string() [1/2]

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

Definition at line 52 of file Tile_Base_ID.cxx.

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

◆ to_string() [2/2]

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

Definition at line 76 of file Tile_Base_ID.cxx.

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

◆ tower()

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

Definition at line 165 of file Tile_Base_ID.cxx.

166 {
167  return get_field(id,m_TOWER_INDEX);
168 }

◆ tower_begin()

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

iterator over set of tower Identifiers

Definition at line 1358 of file Tile_Base_ID.cxx.

1359 {
1360  return m_towers.begin();
1361 }

◆ tower_context()

IdContext Tile_Base_ID::tower_context ( void  ) const
inherited

id for towers

Definition at line 1053 of file Tile_Base_ID.cxx.

1054 {
1055  return {0, m_TOWER_INDEX};
1056 }

◆ tower_end()

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

Definition at line 1363 of file Tile_Base_ID.cxx.

1364 {
1365  return m_towers.end();
1366 }

◆ tower_hash_max()

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

Definition at line 1308 of file Tile_Base_ID.cxx.

1309 {
1310  return m_towers.hash_max();
1311 }

◆ tower_id() [1/5]

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

Definition at line 1462 of file Tile_Base_ID.cxx.

1463 {
1464  return this->tower_id (exp_id[m_SECTION_INDEX],
1465  exp_id[m_SIDE_INDEX],
1466  exp_id[m_MODULE_INDEX],
1467  exp_id[m_TOWER_INDEX]);
1468 }

◆ tower_id() [2/5]

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

Definition at line 569 of file Tile_Base_ID.cxx.

570 {
572  // extract with the dictionary
573  Identifier id;
574  if(!dict()->copy(any_id, 0, 0, m_TOWER_INDEX, m_tile_region_index, id)) {
575  result = id;
576  }
577  return (result);
578 }

◆ 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 929 of file Tile_Base_ID.cxx.

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

◆ tower_id() [4/5]

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

Definition at line 562 of file Tile_Base_ID.cxx.

564 {
565  return tower_id (section, side, module, tower, do_checks());
566 }

◆ 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 525 of file Tile_Base_ID.cxx.

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

◆ tower_ids()

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

Definition at line 1428 of file Tile_Base_ID.cxx.

1429 {
1430  return m_towers.ids();
1431 }

◆ tower_range()

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

Definition at line 1368 of file Tile_Base_ID.cxx.

1369 {
1370  return m_towers.range();
1371 }

◆ trt()

Identifier AtlasDetectorID::trt ( void  ) const
inherited

Definition at line 93 of file AtlasDetectorID.cxx.

94 {
96  // Pack field
99  return (result);
100 }

◆ trt_exp()

ExpandedIdentifier AtlasDetectorID::trt_exp ( void  ) const
inlineprotectedinherited

Definition at line 541 of file AtlasDetectorID.h.

542 {
544  return (result << m_TRT_ID);
545 }

◆ trt_field_value()

int AtlasDetectorID::trt_field_value ( ) const
inlineprotectedinherited

Definition at line 632 of file AtlasDetectorID.h.

632 {return (m_TRT_ID);}

◆ zdc_exp()

ExpandedIdentifier AtlasDetectorID::zdc_exp ( void  ) const
inlineprotectedinherited

Definition at line 604 of file AtlasDetectorID.h.

605 {
607  return (result << m_ZDC_ID);
608 }

◆ zdc_field_value()

int AtlasDetectorID::zdc_field_value ( ) const
inlineprotectedinherited

Definition at line 679 of file AtlasDetectorID.h.

679 {return (m_ZDC_ID);}

Friends And Related Function Documentation

◆ TileNeighbour

friend class TileNeighbour
friend

Definition at line 70 of file TileID.h.

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 357 of file Tile_Base_ID.h.

◆ m_ADC_INDEX

size_type Tile_Base_ID::m_ADC_INDEX
privateinherited

Definition at line 348 of file Tile_Base_ID.h.

◆ m_adcs

CaloIDHelper::HashGroup Tile_Base_ID::m_adcs
privateinherited

Definition at line 370 of file Tile_Base_ID.h.

◆ m_ALFA_ID

int AtlasDetectorID::m_ALFA_ID {1}
privateinherited

Definition at line 424 of file AtlasDetectorID.h.

◆ m_atlas_dict

IdDictDictionary* AtlasDetectorID::m_atlas_dict {}
privateinherited

Definition at line 435 of file AtlasDetectorID.h.

◆ m_BCM_ID

int AtlasDetectorID::m_BCM_ID {3}
privateinherited

Definition at line 425 of file AtlasDetectorID.h.

◆ m_calo_dict

IdDictDictionary* AtlasDetectorID::m_calo_dict {}
privateinherited

Definition at line 440 of file AtlasDetectorID.h.

◆ m_CALO_ID

int AtlasDetectorID::m_CALO_ID {10}
privateinherited

Definition at line 406 of file AtlasDetectorID.h.

◆ m_calo_side_impl

IdDictFieldImplementation AtlasDetectorID::m_calo_side_impl
privateinherited

Definition at line 445 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 418 of file AtlasDetectorID.h.

◆ m_det_impl

IdDictFieldImplementation AtlasDetectorID::m_det_impl
privateinherited

Definition at line 443 of file AtlasDetectorID.h.

◆ m_DET_INDEX

size_type AtlasDetectorID::m_DET_INDEX {999}
privateinherited

Definition at line 399 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 375 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 381 of file AtlasDetectorID.h.

◆ m_dict_version

std::string AtlasDetectorID::m_dict_version
privateinherited

Definition at line 397 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 362 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 365 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 378 of file AtlasDetectorID.h.

◆ m_full_adc_range

MultiRange Tile_Base_ID::m_full_adc_range
privateinherited

Definition at line 365 of file Tile_Base_ID.h.

◆ m_full_cell_range

MultiRange Tile_Base_ID::m_full_cell_range
privateinherited

Definition at line 363 of file Tile_Base_ID.h.

◆ m_full_module_range

MultiRange Tile_Base_ID::m_full_module_range
privateinherited

Definition at line 361 of file Tile_Base_ID.h.

◆ m_full_pmt_range

MultiRange Tile_Base_ID::m_full_pmt_range
privateinherited

Definition at line 364 of file Tile_Base_ID.h.

◆ m_full_region_range

MultiRange Tile_Base_ID::m_full_region_range
privateinherited

Definition at line 360 of file Tile_Base_ID.h.

◆ m_full_tower_range

MultiRange Tile_Base_ID::m_full_tower_range
privateinherited

Definition at line 362 of file Tile_Base_ID.h.

◆ m_fwd_dict

IdDictDictionary* AtlasDetectorID::m_fwd_dict {}
privateinherited

Definition at line 441 of file AtlasDetectorID.h.

◆ m_FWD_ID

int AtlasDetectorID::m_FWD_ID {13}
privateinherited

Definition at line 423 of file AtlasDetectorID.h.

◆ m_fwd_part_impl

IdDictFieldImplementation AtlasDetectorID::m_fwd_part_impl
privateinherited

Definition at line 451 of file AtlasDetectorID.h.

◆ m_helper

AtlasDetectorIDHelper* AtlasDetectorID::m_helper {}
privateinherited

Definition at line 442 of file AtlasDetectorID.h.

◆ m_HGTD_ID

int AtlasDetectorID::m_HGTD_ID {4}
privateinherited

Definition at line 410 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

IdDictDictionary* AtlasDetectorID::m_indet_dict {}
privateinherited

Definition at line 436 of file AtlasDetectorID.h.

◆ m_INDET_ID

int AtlasDetectorID::m_INDET_ID {2}
privateinherited

Definition at line 402 of file AtlasDetectorID.h.

◆ m_indet_part_impl

IdDictFieldImplementation AtlasDetectorID::m_indet_part_impl
privateinherited

Definition at line 444 of file AtlasDetectorID.h.

◆ m_is_initialized_from_dict

bool AtlasDetectorID::m_is_initialized_from_dict {}
privateinherited

Definition at line 398 of file AtlasDetectorID.h.

◆ m_isHighLuminosityLHC

bool AtlasDetectorID::m_isHighLuminosityLHC {}
privateinherited

Definition at line 429 of file AtlasDetectorID.h.

◆ m_lar_dict

IdDictDictionary* AtlasDetectorID::m_lar_dict {}
privateinherited

Definition at line 437 of file AtlasDetectorID.h.

◆ m_lar_dm_field

Range::field AtlasDetectorID::m_lar_dm_field
privateinherited

Definition at line 433 of file AtlasDetectorID.h.

◆ m_LAR_EM_ID

int AtlasDetectorID::m_LAR_EM_ID {1}
privateinherited

Definition at line 413 of file AtlasDetectorID.h.

◆ m_LAR_FCAL_ID

int AtlasDetectorID::m_LAR_FCAL_ID {3}
privateinherited

Definition at line 415 of file AtlasDetectorID.h.

◆ m_lar_fcal_module_impl

IdDictFieldImplementation AtlasDetectorID::m_lar_fcal_module_impl
privateinherited

Definition at line 447 of file AtlasDetectorID.h.

◆ m_LAR_FCAL_MODULE_INDEX

int AtlasDetectorID::m_LAR_FCAL_MODULE_INDEX {999}
privateinherited

Definition at line 416 of file AtlasDetectorID.h.

◆ m_LAR_HEC_ID

int AtlasDetectorID::m_LAR_HEC_ID {2}
privateinherited

Definition at line 414 of file AtlasDetectorID.h.

◆ m_LAR_ID

int AtlasDetectorID::m_LAR_ID {4}
privateinherited

Definition at line 403 of file AtlasDetectorID.h.

◆ m_lar_part_impl

IdDictFieldImplementation AtlasDetectorID::m_lar_part_impl
privateinherited

Definition at line 446 of file AtlasDetectorID.h.

◆ m_LUCID_ID

int AtlasDetectorID::m_LUCID_ID {5}
privateinherited

Definition at line 426 of file AtlasDetectorID.h.

◆ m_LUMI_ID

int AtlasDetectorID::m_LUMI_ID {3}
privateinherited

Definition at line 411 of file AtlasDetectorID.h.

◆ m_LUMI_PLR_ID

int AtlasDetectorID::m_LUMI_PLR_ID {1}
privateinherited

Definition at line 412 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 431 of file AtlasDetectorID.h.

◆ m_lvl1_onl_field

Range::field AtlasDetectorID::m_lvl1_onl_field
privateinherited

Definition at line 432 of file AtlasDetectorID.h.

◆ m_MDT_ID

int AtlasDetectorID::m_MDT_ID {0}
privateinherited

Definition at line 417 of file AtlasDetectorID.h.

◆ m_MM_ID

int AtlasDetectorID::m_MM_ID {5}
privateinherited

Definition at line 422 of file AtlasDetectorID.h.

◆ m_module_impl

IdDictFieldImplementation Tile_Base_ID::m_module_impl
privateinherited

Definition at line 353 of file Tile_Base_ID.h.

◆ m_MODULE_INDEX

size_type Tile_Base_ID::m_MODULE_INDEX
privateinherited

Definition at line 344 of file Tile_Base_ID.h.

◆ m_modules

CaloIDHelper::HashGroup Tile_Base_ID::m_modules
privateinherited

Definition at line 367 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 368 of file AtlasDetectorID.h.

◆ m_muon_dict

IdDictDictionary* AtlasDetectorID::m_muon_dict {}
privateinherited

Definition at line 439 of file AtlasDetectorID.h.

◆ m_MUON_ID

int AtlasDetectorID::m_MUON_ID {7}
privateinherited

Definition at line 405 of file AtlasDetectorID.h.

◆ m_muon_mdt_impl

IdDictFieldImplementation AtlasDetectorID::m_muon_mdt_impl
privateinherited

Definition at line 449 of file AtlasDetectorID.h.

◆ m_muon_rpc_impl

IdDictFieldImplementation AtlasDetectorID::m_muon_rpc_impl
privateinherited

Definition at line 450 of file AtlasDetectorID.h.

◆ m_muon_station_name_impl

IdDictFieldImplementation AtlasDetectorID::m_muon_station_name_impl
privateinherited

Definition at line 448 of file AtlasDetectorID.h.

◆ m_MUON_SUBDET_INDEX

size_type AtlasDetectorID::m_MUON_SUBDET_INDEX {999}
privateinherited

Definition at line 401 of file AtlasDetectorID.h.

◆ m_muon_tech_bits

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

Definition at line 454 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 372 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 407 of file AtlasDetectorID.h.

◆ m_pmt_impl

IdDictFieldImplementation Tile_Base_ID::m_pmt_impl
privateinherited

Definition at line 356 of file Tile_Base_ID.h.

◆ m_PMT_INDEX

size_type Tile_Base_ID::m_PMT_INDEX
privateinherited

Definition at line 347 of file Tile_Base_ID.h.

◆ m_pmts

CaloIDHelper::HashGroup Tile_Base_ID::m_pmts
privateinherited

Definition at line 369 of file Tile_Base_ID.h.

◆ m_quiet

bool AtlasDetectorID::m_quiet {}
protectedinherited

If true, suppress DEBUG/INFO messages.

Definition at line 371 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 419 of file AtlasDetectorID.h.

◆ m_sample_impl

IdDictFieldImplementation Tile_Base_ID::m_sample_impl
privateinherited

Definition at line 355 of file Tile_Base_ID.h.

◆ m_SAMPLE_INDEX

size_type Tile_Base_ID::m_SAMPLE_INDEX
privateinherited

Definition at line 346 of file Tile_Base_ID.h.

◆ m_SCT_ID

int AtlasDetectorID::m_SCT_ID {2}
privateinherited

Definition at line 408 of file AtlasDetectorID.h.

◆ m_section_impl

IdDictFieldImplementation Tile_Base_ID::m_section_impl
privateinherited

Definition at line 351 of file Tile_Base_ID.h.

◆ m_SECTION_INDEX

size_type Tile_Base_ID::m_SECTION_INDEX
privateinherited

Definition at line 342 of file Tile_Base_ID.h.

◆ m_side_impl

IdDictFieldImplementation Tile_Base_ID::m_side_impl
privateinherited

Definition at line 352 of file Tile_Base_ID.h.

◆ m_SIDE_INDEX

size_type Tile_Base_ID::m_SIDE_INDEX
privateinherited

Definition at line 343 of file Tile_Base_ID.h.

◆ m_slar_impl

IdDictFieldImplementation Tile_Base_ID::m_slar_impl
privateinherited

Definition at line 358 of file Tile_Base_ID.h.

◆ m_STGC_ID

int AtlasDetectorID::m_STGC_ID {4}
privateinherited

Definition at line 421 of file AtlasDetectorID.h.

◆ m_SUBDET_INDEX

size_type AtlasDetectorID::m_SUBDET_INDEX {999}
privateinherited

Definition at line 400 of file AtlasDetectorID.h.

◆ m_supercell

unsigned Tile_Base_ID::m_supercell
privateinherited

Definition at line 338 of file Tile_Base_ID.h.

◆ m_system_impl

IdDictFieldImplementation Tile_Base_ID::m_system_impl
privateinherited

Definition at line 350 of file Tile_Base_ID.h.

◆ m_SYSTEM_INDEX

size_type Tile_Base_ID::m_SYSTEM_INDEX
privateinherited

Definition at line 341 of file Tile_Base_ID.h.

◆ m_TGC_ID

int AtlasDetectorID::m_TGC_ID {3}
privateinherited

Definition at line 420 of file AtlasDetectorID.h.

◆ m_tile_dict

IdDictDictionary* AtlasDetectorID::m_tile_dict {}
privateinherited

Definition at line 438 of file AtlasDetectorID.h.

◆ m_tile_dm_field

Range::field AtlasDetectorID::m_tile_dm_field
privateinherited

Definition at line 434 of file AtlasDetectorID.h.

◆ m_TILE_ID

int AtlasDetectorID::m_TILE_ID {5}
privateinherited

Definition at line 404 of file AtlasDetectorID.h.

◆ m_tile_region_index

size_type Tile_Base_ID::m_tile_region_index
privateinherited

Definition at line 340 of file Tile_Base_ID.h.

◆ m_tower_impl

IdDictFieldImplementation Tile_Base_ID::m_tower_impl
privateinherited

Definition at line 354 of file Tile_Base_ID.h.

◆ m_TOWER_INDEX

size_type Tile_Base_ID::m_TOWER_INDEX
privateinherited

Definition at line 345 of file Tile_Base_ID.h.

◆ m_towers

CaloIDHelper::HashGroup Tile_Base_ID::m_towers
privateinherited

Definition at line 368 of file Tile_Base_ID.h.

◆ m_TRT_ID

int AtlasDetectorID::m_TRT_ID {3}
privateinherited

Definition at line 409 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 427 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:505
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
IdDictDictionary::find_region
IdDictRegion * find_region(const std::string &region_name) const
Definition: IdDictDictionary.cxx:101
AtlasDetectorID::is_pixel
bool is_pixel(Identifier id) const
Definition: AtlasDetectorID.h:760
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:354
IdDictDictionary::dict_tag
const std::string & dict_tag(void) const
Access to the dictionary tag.
Definition: IdDictDictionary.h:262
Tile_Base_ID::eta_min
int eta_min(const Identifier &id) const
max values (-999 == failure)
Definition: Tile_Base_ID.cxx:1545
AtlasDetectorID::m_muon_dict
IdDictDictionary * m_muon_dict
Definition: AtlasDetectorID.h:439
AtlasDetectorID::indet_field_value
int indet_field_value() const
Provide efficient access to individual field values, for subclass idhelpers.
Definition: AtlasDetectorID.h:611
Tile_Base_ID::decode_section
int decode_section(int section) const
Definition: Tile_Base_ID.h:314
TileNeighbour::next_eta
int next_eta(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
Definition: TileNeighbour.cxx:496
AtlasDetectorID::is_forward
bool is_forward(Identifier id) const
Definition: AtlasDetectorID.h:935
IdDictDictionary::build_multirange
MultiRange build_multirange() const
Get MultiRange for full dictionary.
Definition: IdDictDictionary.cxx:299
Tile_Base_ID::m_full_adc_range
MultiRange m_full_adc_range
Definition: Tile_Base_ID.h:365
AtlasDetectorID::m_muon_tech_bits
std::vector< unsigned int > m_muon_tech_bits
Definition: AtlasDetectorID.h:454
AtlasDetectorID::MAX_BIT
@ MAX_BIT
Definition: AtlasDetectorID.h:389
CaloIDHelper::NOT_VALID
@ NOT_VALID
Definition: CaloIDHelper.h:36
AtlasDetectorID::m_LUMI_ID
int m_LUMI_ID
Definition: AtlasDetectorID.h:411
IdDictDictionary::unpack
int unpack(const Identifier &id, const ExpandedIdentifier &prefix, size_t index2, ExpandedIdentifier &unpackedId) const
Unpack the value_type id to an expanded Identifier, considering the provided prefix (result will incl...
Definition: IdDictDictionary.cxx:683
Tile_Base_ID::SAMP_B
@ SAMP_B
Definition: Tile_Base_ID.h:54
Tile_Base_ID::reg_range
id_range reg_range() const
Definition: Tile_Base_ID.cxx:1338
get_generator_info.result
result
Definition: get_generator_info.py:21
AtlasDetectorID::m_indet_part_impl
IdDictFieldImplementation m_indet_part_impl
Definition: AtlasDetectorID.h:444
IdDictGroup
Definition: IdDictGroup.h:19
InDetDD::PLR
@ PLR
Definition: DetectorDesign.h:46
checkHVCorrections.unpack
unpack
Definition: checkHVCorrections.py:98
Tile_Base_ID::ONLINE
@ ONLINE
Definition: Tile_Base_ID.h:48
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
Identifier::MAX_BIT
@ MAX_BIT
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:33
AtlasDetectorID::is_lar_fcal
bool is_lar_fcal(Identifier id) const
Definition: AtlasDetectorID.h:839
TileNeighbour::next_samp
int next_samp(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
Definition: TileNeighbour.cxx:524
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:351
IdDictFieldImplementation::show_to_string
std::string show_to_string(void) const
Definition: IdDictFieldImplementation.cxx:38
AtlasDetectorID::is_lar
bool is_lar(Identifier id) const
Definition: AtlasDetectorID.h:689
Pixel
Definition: PixelFEUtils.h:16
AtlasDetectorID::muon_field_value
int muon_field_value() const
Definition: AtlasDetectorID.h:620
Tile_Base_ID::m_MODULE_INDEX
size_type m_MODULE_INDEX
Definition: Tile_Base_ID.h:344
LArNeighbours::corners2D
@ corners2D
Definition: LArNeighbours.h:17
Tile_Base_ID::cell_context
IdContext cell_context(void) const
id for cells
Definition: Tile_Base_ID.cxx:1059
AtlasDetectorID::m_TRT_ID
int m_TRT_ID
Definition: AtlasDetectorID.h:409
quiet
bool quiet
Definition: TrigGlobEffCorrValidation.cxx:190
index
Definition: index.py:1
Tile_Base_ID::m_system_impl
IdDictFieldImplementation m_system_impl
Definition: Tile_Base_ID.h:350
Tile_Base_ID::pmt
int pmt(const Identifier &id) const
Definition: Tile_Base_ID.cxx:180
Tile_Base_ID::SEXTBAR
@ SEXTBAR
Definition: Tile_Base_ID.h:49
IdentifierField::get_minimum
element_type get_minimum() const
Query the values.
Definition: IdentifierField.h:59
Tile_Base_ID::SAMP_A
@ SAMP_A
Definition: Tile_Base_ID.h:53
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:410
IdContext::end_index
size_type end_index() const
Definition: IdContext.h:46
AtlasDetectorID::calo_field_value
int calo_field_value() const
Definition: AtlasDetectorID.h:623
Tile_Base_ID::NREGIONS
@ NREGIONS
Definition: Tile_Base_ID.h:58
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:54
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
Tile_Base_ID::side
int side(const Identifier &id) const
Definition: Tile_Base_ID.cxx:153
ExpandedIdentifier::add
void add(element_type value)
Append a value into a new field.
Tile_Base_ID::AUXDET
@ AUXDET
Definition: Tile_Base_ID.h:48
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:171
Tile_Base_ID::encode_section
int encode_section(int section) const
Definition: Tile_Base_ID.h:319
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
AtlasDetectorID::m_tile_dict
IdDictDictionary * m_tile_dict
Definition: AtlasDetectorID.h:438
Tile_Base_ID::m_PMT_INDEX
size_type m_PMT_INDEX
Definition: Tile_Base_ID.h:347
Tile_Base_ID::initLevelsFromDict
int initLevelsFromDict(const std::string &group_name)
Definition: Tile_Base_ID.cxx:1613
AtlasDetectorID::m_msgSvc
IMessageSvc * m_msgSvc
pointer to the message service
Definition: AtlasDetectorID.h:368
Tile_Base_ID::HIGHGAIN
@ HIGHGAIN
Definition: Tile_Base_ID.h:57
ExpandedIdentifier::fields
size_type fields() const
AtlasDetectorID::m_dict_version
std::string m_dict_version
Definition: AtlasDetectorID.h:397
IdDictMgr::find_metadata
const std::string & find_metadata(const std::string &name) const
Access to meta data, name/value pairs.
Definition: IdDictMgr.cxx:92
IdentifierField::get_maximum
element_type get_maximum() const
Definition: IdentifierField.h:68
Tile_Base_ID::GAPDET
@ GAPDET
Definition: Tile_Base_ID.h:48
Tile_Base_ID::m_neighbour
TileNeighbour m_neighbour
Definition: Tile_Base_ID.h:372
AtlasDetectorID::m_do_checks
bool m_do_checks
Flag for subclasses to know whether or not to perform checks.
Definition: AtlasDetectorID.h:362
Tile_Base_ID::NSIDES
@ NSIDES
Definition: Tile_Base_ID.h:58
Tile_Base_ID::tower
int tower(const Identifier &id) const
Definition: Tile_Base_ID.cxx:165
ReadOfcFromCool.field
field
Definition: ReadOfcFromCool.py:48
Tile_Base_ID::SAMP_E
@ SAMP_E
Definition: Tile_Base_ID.h:55
AtlasDetectorID::m_ZDC_ID
int m_ZDC_ID
Definition: AtlasDetectorID.h:427
AtlasDetectorID::m_STGC_ID
int m_STGC_ID
Definition: AtlasDetectorID.h:421
AtlasDetectorID::lar_field_value
int lar_field_value() const
Definition: AtlasDetectorID.h:614
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:48
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
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:1590
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
empty
bool empty(TH1 *h)
Definition: computils.cxx:295
AtlasDetectorID::ALL_BITS
@ ALL_BITS
Definition: AtlasDetectorID.h:392
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:738
TileNeighbour::prev_samp
int prev_samp(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
Definition: TileNeighbour.cxx:510
Tile_Base_ID::m_module_impl
IdDictFieldImplementation m_module_impl
Definition: Tile_Base_ID.h:353
AtlasDetectorID::tile_exp
ExpandedIdentifier tile_exp(void) const
Definition: AtlasDetectorID.h:499
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
IdDictDictionary::find_field
IdDictField * find_field(const std::string &name) const
Definition: IdDictDictionary.cxx:45
Tile_Base_ID::TWOSIDES
@ TWOSIDES
Definition: Tile_Base_ID.h:56
AtlasDetectorID::is_lvl1_trig_towers
bool is_lvl1_trig_towers(Identifier id) const
Definition: AtlasDetectorID.h:713
IdDictRegion
Definition: IdDictRegion.h:20
Tile_Base_ID::NOT_VALID_HASH
@ NOT_VALID_HASH
Definition: Tile_Base_ID.h:264
IdDictDictionary::m_version
std::string m_version
Definition: IdDictDictionary.h:217
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:119
Tile_Base_ID::module_context
IdContext module_context(void) const
id for modules
Definition: Tile_Base_ID.cxx:1047
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:1181
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
AtlasDetectorID::m_LAR_ID
int m_LAR_ID
Definition: AtlasDetectorID.h:403
TileNeighbour::prev_eta
int prev_eta(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
Definition: TileNeighbour.cxx:482
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:456
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:108
Tile_Base_ID::SAMP_C
@ SAMP_C
Definition: Tile_Base_ID.h:54
AtlasDetectorID::m_do_neighbours
bool m_do_neighbours
Flag for subclasses to know whether or not to perform neighbour initialization.
Definition: AtlasDetectorID.h:365
TileNeighbour::initialize
int initialize(const Tile_Base_ID *tileID, const std::string &filename="TileNeighbour.txt")
Definition: TileNeighbour.cxx:61
Tile_Base_ID::Tile_Base_ID
Tile_Base_ID(const std::string &name, bool supercell)
Constructor.
Definition: Tile_Base_ID.cxx:33
Tile_Base_ID::m_SECTION_INDEX
size_type m_SECTION_INDEX
Definition: Tile_Base_ID.h:342
Tile_Base_ID::m_pmts
CaloIDHelper::HashGroup m_pmts
Definition: Tile_Base_ID.h:369
Tile_Base_ID::tile_det
Identifier tile_det(int section) const
build identifier for any Tilecal section
Definition: Tile_Base_ID.cxx:398
AtlasDetectorID::m_INDET_ID
int m_INDET_ID
Definition: AtlasDetectorID.h:402
CaloIDHelper::m_vecOfDictRegions
std::vector< const IdDictRegion * > m_vecOfDictRegions
List of IdDictRegion objects.
Definition: CaloIDHelper.h:342
Trk::DetectorElemType::Silicon
@ Silicon
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:340
AtlasDetectorID::m_LUMI_PLR_ID
int m_LUMI_PLR_ID
Definition: AtlasDetectorID.h:412
Tile_Base_ID::EXTBAR
@ EXTBAR
Definition: Tile_Base_ID.h:48
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:405
LArNeighbours::nextInPhi
@ nextInPhi
Definition: LArNeighbours.h:13
IdentifierField::match
bool match(element_type value) const
The basic match operation.
Definition: IdentifierField.cxx:71
AtlasDetectorID::PIXEL_MASK
@ PIXEL_MASK
Definition: AtlasDetectorID.h:391
AtlasDetectorID::m_tile_dm_field
Range::field m_tile_dm_field
Definition: AtlasDetectorID.h:434
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:1077
IdDictDictionary::find_group
IdDictGroup * find_group(const std::string &group_name) const
Definition: IdDictDictionary.cxx:115
Tile
Definition: TileVolumeBuilder.h:43
Tile_Base_ID::adc
int adc(const Identifier &id) const
Definition: Tile_Base_ID.cxx:186
IdDictMgr::find_dictionary
IdDictDictionary * find_dictionary(const std::string &name) const
Access dictionary by name.
Definition: IdDictMgr.cxx:115
AtlasDetectorID::ATLAS_ID
@ ATLAS_ID
Definition: AtlasDetectorID.h:388
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:404
TRT
Definition: HitInfo.h:33
Tile_Base_ID::module
int module(const Identifier &id) const
Definition: Tile_Base_ID.cxx:159
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
IdentifierField::empty
bool empty() const
Definition: IdentifierField.h:114
Tile_Base_ID::tower_id
Identifier tower_id(int section, int side, int module, int tower) const
Definition: Tile_Base_ID.cxx:562
AtlasDetectorID::m_calo_dict
IdDictDictionary * m_calo_dict
Definition: AtlasDetectorID.h:440
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:50
AtlasDetectorID::m_is_initialized_from_dict
bool m_is_initialized_from_dict
Definition: AtlasDetectorID.h:398
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:446
AtlasDetectorID::indet_exp
ExpandedIdentifier indet_exp(void) const
Detector systems:
Definition: AtlasDetectorID.h:485
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:449
AtlasDetectorID::m_lar_fcal_module_impl
IdDictFieldImplementation m_lar_fcal_module_impl
Definition: AtlasDetectorID.h:447
Tile_Base_ID::SUPERCELL_MASK
@ SUPERCELL_MASK
Definition: Tile_Base_ID.h:51
Tile_Base_ID::m_ADC_INDEX
size_type m_ADC_INDEX
Definition: Tile_Base_ID.h:348
AtlasDetectorID::is_tile_dm
bool is_tile_dm(Identifier id) const
Definition: AtlasDetectorID.h:748
AtlasDetectorID::m_LAR_EM_ID
int m_LAR_EM_ID
Definition: AtlasDetectorID.h:413
IdDictDictionary::m_regions
std::vector< IdDictRegion * > m_regions
Definition: IdDictDictionary.h:235
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
Tile_Base_ID::tower_context
IdContext tower_context(void) const
id for towers
Definition: Tile_Base_ID.cxx:1053
Tile_Base_ID::POSITIVE
@ POSITIVE
Definition: Tile_Base_ID.h:56
mc.group_name
group_name
Definition: mc.PhPy8EG_A14NNPDF23_NNLOPS_example.py:33
AtlasDetectorID::m_fwd_dict
IdDictDictionary * m_fwd_dict
Definition: AtlasDetectorID.h:441
TileID_Exception
Exception class for Tile Identifiers.
Definition: TileID_Exception.h:16
AtlasDetectorID::is_tile
bool is_tile(Identifier id) const
Definition: AtlasDetectorID.h:695
Tile_Base_ID::LOWGAIN
@ LOWGAIN
Definition: Tile_Base_ID.h:57
AtlasDetectorID::m_TGC_ID
int m_TGC_ID
Definition: AtlasDetectorID.h:420
Tile_Base_ID::SBARREL
@ SBARREL
Definition: Tile_Base_ID.h:49
AtlasDetectorID::m_CSC_ID
int m_CSC_ID
Definition: AtlasDetectorID.h:418
AtlasDetectorID::m_lvl1_onl_field
Range::field m_lvl1_onl_field
Definition: AtlasDetectorID.h:432
LArNeighbours::prevInSamp
@ prevInSamp
Definition: LArNeighbours.h:19
AtlasDetectorID::m_quiet
bool m_quiet
If true, suppress DEBUG/INFO messages.
Definition: AtlasDetectorID.h:371
AtlasDetectorID::m_LAR_HEC_ID
int m_LAR_HEC_ID
Definition: AtlasDetectorID.h:414
Tile_Base_ID::m_TOWER_INDEX
size_type m_TOWER_INDEX
Definition: Tile_Base_ID.h:345
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:1333
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:232
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:1151
SCT
Definition: SCT_ChipUtils.h:14
AtlasDetectorID::m_muon_rpc_impl
IdDictFieldImplementation m_muon_rpc_impl
Definition: AtlasDetectorID.h:450
Identifier::ALL_BITS
@ ALL_BITS
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:34
AtlasDetDescr::fAtlasMM
@ fAtlasMM
Definition: AtlasDetTechnology.h:54
AtlasDetectorID::m_SCT_ID
int m_SCT_ID
Definition: AtlasDetectorID.h:408
AtlasDetDescr::fAtlasSTGC
@ fAtlasSTGC
Definition: AtlasDetTechnology.h:53
AtlasDetectorID::m_LAR_FCAL_ID
int m_LAR_FCAL_ID
Definition: AtlasDetectorID.h:415
AtlasDetectorID::is_calo
bool is_calo(Identifier id) const
Definition: AtlasDetectorID.h:707
AtlasDetectorID::m_MM_ID
int m_MM_ID
Definition: AtlasDetectorID.h:422
IdDictDictionary::file_name
const std::string & file_name(void) const
Access to file name.
Definition: IdDictDictionary.h:255
AtlasDetectorID::m_DET_INDEX
size_type m_DET_INDEX
Definition: AtlasDetectorID.h:399
Tile_Base_ID::init_hashes
int init_hashes(void)
Definition: Tile_Base_ID.cxx:1750
Tile_Base_ID::adc_id
Identifier adc_id(const Identifier &cell_id, int pmt, int adc) const
Definition: Tile_Base_ID.cxx:802
AtlasDetectorID::tile_field_value
int tile_field_value() const
Definition: AtlasDetectorID.h:617
IdDictDictionary::get_label_value
int get_label_value(const std::string &field, const std::string &label, int &value) const
Definition: IdDictDictionary.cxx:73
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:655
Tile_Base_ID::NSECTIONS
@ NSECTIONS
Definition: Tile_Base_ID.h:58
IdContext::prefix_id
const ExpandedIdentifier & prefix_id() const
Accessors.
Definition: IdContext.h:44
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
AtlasDetectorID::m_indet_dict
IdDictDictionary * m_indet_dict
Definition: AtlasDetectorID.h:436
Tile_Base_ID::NEGATIVE
@ NEGATIVE
Definition: Tile_Base_ID.h:56
Tile_Base_ID::m_full_module_range
MultiRange m_full_module_range
Definition: Tile_Base_ID.h:361
AtlasDetectorID::m_calo_side_impl
IdDictFieldImplementation m_calo_side_impl
Definition: AtlasDetectorID.h:445
AtlasDetectorID::is_indet
bool is_indet(Identifier id) const
Definition: AtlasDetectorID.h:683
AtlasDetectorID::m_dict_names
std::vector< std::string > m_dict_names
List of dictionary names used by this helper.
Definition: AtlasDetectorID.h:375
AtlasDetectorID::m_lar_dm_field
Range::field m_lar_dm_field
Definition: AtlasDetectorID.h:433
Tile_Base_ID::m_towers
CaloIDHelper::HashGroup m_towers
Definition: Tile_Base_ID.h:368
Tile_Base_ID::m_pmt_impl
IdDictFieldImplementation m_pmt_impl
Definition: Tile_Base_ID.h:356
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.h:520
Tile_Base_ID::m_adc_impl
IdDictFieldImplementation m_adc_impl
Definition: Tile_Base_ID.h:357
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:448
AtlasDetectorID::m_MDT_ID
int m_MDT_ID
Definition: AtlasDetectorID.h:417
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:419
Tile_Base_ID::adc_context
IdContext adc_context(void) const
id for ADCs
Definition: Tile_Base_ID.cxx:1071
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:338
TileNeighbour::prev_samp_wide
int prev_samp_wide(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
Definition: TileNeighbour.cxx:538
Tile_Base_ID::m_sample_impl
IdDictFieldImplementation m_sample_impl
Definition: Tile_Base_ID.h:355
Tile_Base_ID::m_side_impl
IdDictFieldImplementation m_side_impl
Definition: Tile_Base_ID.h:352
Tile_Base_ID::SAMP_D
@ SAMP_D
Definition: Tile_Base_ID.h:55
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:363
AtlasDetDescr::fAtlasRPC
@ fAtlasRPC
Definition: AtlasDetTechnology.h:51
DeMoScan.index
string index
Definition: DeMoScan.py:364
AtlasDetectorID::is_lumi
bool is_lumi(Identifier id) const
Definition: AtlasDetectorID.h:806
Tile_Base_ID::m_SIDE_INDEX
size_type m_SIDE_INDEX
Definition: Tile_Base_ID.h:343
AtlasDetectorID::reinitialize
bool reinitialize(const IdDictMgr &dict_mgr)
Test whether an idhelper should be reinitialized based on the change of tags.
Definition: AtlasDetectorID.cxx:284
Tile_Base_ID::m_adcs
CaloIDHelper::HashGroup m_adcs
Definition: Tile_Base_ID.h:370
AtlasDetectorID::is_lar_dm
bool is_lar_dm(Identifier id) const
LAr/Tile dead material:
Definition: AtlasDetectorID.h:736
CaloLCW_tf.group
group
Definition: CaloLCW_tf.py:28
AtlasDetectorID::is_muon
bool is_muon(Identifier id) const
Definition: AtlasDetectorID.h:701
IdDictDictionary::m_name
std::string m_name
Definition: IdDictDictionary.h:216
AtlasDetectorID::m_det_impl
IdDictFieldImplementation m_det_impl
Definition: AtlasDetectorID.h:443
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:367
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:574
AtlasDetectorID::lar_exp
ExpandedIdentifier lar_exp(void) const
Definition: AtlasDetectorID.h:492
AtlasDetectorID::m_file_names
std::vector< std::string > m_file_names
List of dictionary file names used by this helper.
Definition: AtlasDetectorID.h:378
Tile_Base_ID::m_full_pmt_range
MultiRange m_full_pmt_range
Definition: Tile_Base_ID.h:364
Tile_Base_ID::eta_max
int eta_max(const Identifier &id) const
Definition: Tile_Base_ID.cxx:1551
Tile_Base_ID::pmt_id
Identifier pmt_id(const Identifier &any_id) const
Definition: Tile_Base_ID.cxx:640
AtlasDetDescr::fAtlasCSC
@ fAtlasCSC
Definition: AtlasDetTechnology.h:50
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:536
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:341
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
IdentifierField
This is the individual specification for the range of one ExpandedIdentifier IdentifierField.
Definition: IdentifierField.h:21
AtlasDetectorID::m_CALO_ID
int m_CALO_ID
Definition: AtlasDetectorID.h:406
AtlasDetectorID::m_ALFA_ID
int m_ALFA_ID
Definition: AtlasDetectorID.h:424
AtlasDetectorID::m_MUON_ID
int m_MUON_ID
Definition: AtlasDetectorID.h:405
Tile_Base_ID::pmt_context
IdContext pmt_context(void) const
id for PMTs
Definition: Tile_Base_ID.cxx:1065
AtlasDetectorID::m_lar_dict
IdDictDictionary * m_lar_dict
Definition: AtlasDetectorID.h:437
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:407
AtlasDetectorID::is_lvl1_online
bool is_lvl1_online(Identifier id) const
Definition: AtlasDetectorID.h:724
Tile_Base_ID::m_full_tower_range
MultiRange m_full_tower_range
Definition: Tile_Base_ID.h:362
LArNeighbours::prevInEta
@ prevInEta
Definition: LArNeighbours.h:14
Tile_Base_ID::region_context
IdContext region_context(void) const
access to IdContext's which define which levels of fields are contained in the id
Definition: Tile_Base_ID.cxx:1041
TileNeighbour::next_phi
int next_phi(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
Definition: TileNeighbour.cxx:469
calibdata.copy
bool copy
Definition: calibdata.py:27
TileNeighbour::next_samp_wide
int next_samp_wide(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
Definition: TileNeighbour.cxx:552
AtlasDetDescr::fAtlasTGC
@ fAtlasTGC
Definition: AtlasDetTechnology.h:52
CaloCondBlobAlgs_fillNoiseFromASCII.fields
fields
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:106
Tile_Base_ID::m_full_region_range
MultiRange m_full_region_range
Definition: Tile_Base_ID.h:360
Tile_Base_ID::section
int section(const Identifier &id) const
Definition: Tile_Base_ID.cxx:147
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:425
Analysis::TT
@ TT
Definition: JpsiFinder.h:36
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:581
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:728
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:381
Tile_Base_ID::m_SAMPLE_INDEX
size_type m_SAMPLE_INDEX
Definition: Tile_Base_ID.h:346
AtlasDetectorID::m_SUBDET_INDEX
size_type m_SUBDET_INDEX
Definition: AtlasDetectorID.h:400
AtlasDetectorID::m_FWD_ID
int m_FWD_ID
Definition: AtlasDetectorID.h:423
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:1328
AtlasDetectorID::m_lvl1_field
Range::field m_lvl1_field
Definition: AtlasDetectorID.h:431
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:426
Tile_Base_ID::SAMP_X
@ SAMP_X
Definition: Tile_Base_ID.h:55
CaloIDHelper::channel_id
Identifier channel_id(IdentifierHash hashId) const
Return the channel (cell) Identifier for a given hash code (no checking).
Identifier
Definition: IdentifierFieldParser.cxx:14