ATLAS Offline Software
Loading...
Searching...
No Matches
LArHEC_ID Class Reference

Helper class for LArHEC offline identifiers. More...

#include <LArHEC_ID.h>

Inheritance diagram for LArHEC_ID:
Collaboration diagram for LArHEC_ID:

Public Types

enum  { NOT_VALID =999999 }
typedef Identifier::size_type size_type
using id_iterator = std::vector<Identifier>::const_iterator
 Type for iterators over identifiers.
using id_range = std::ranges::subrange<id_iterator>
 Type for range over identifiers.
enum class  HelperType {
  Unimplemented = -1 , Silicon = 0 , 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
}
 enum class for eventual final derived types of this class More...

Public Member Functions

 LArHEC_ID ()
virtual ~LArHEC_ID ()
virtual int initialize_from_dictionary (const IdDictMgr &dict_mgr)
 initialization from the identifier dictionary
Identifier region_id (const ExpandedIdentifier &exp_id) const
 region identifier for a channel from ExpandedIdentifier
Identifier region_id (int pos_neg, int sampling, int region) const
 build a region identifier for a channel
Identifier region_id (int pos_neg, int sampling, int region, bool checks) const
Identifier region_id (const Identifier channelId) const
 allows to know in which region is a channel/cell – valid for both kinds of channels
Identifier region_id (IdentifierHash hashId) const
 Return the region Identifier for a given hash code (no checking).
Identifier channel_id (const ExpandedIdentifier &exp_id) const
 channel identifier for a channel from ExpandedIdentifier
Identifier channel_id (int pos_neg, int sampling, int region, int eta, int phi) const
 build a cell identifier for a channel
Identifier channel_id (int pos_neg, int sampling, int region, int eta, int phi, bool checks) const
Identifier channel_id (int pos_neg, int sampling, int eta, int phi) const
 build a cell identifier for a channel
eta counting includes regions
Identifier channel_id (int pos_neg, int sampling, int sector, int region, int eta, int phi_sector) const
 For a specific sector , eta, phi_sector.
Identifier channel_id (const Identifier regionId, int eta, int phi) const
 allows to build a channel id starting from a region id (e.g.
Identifier channel_id (const Identifier regionId, int eta, int phi, bool checks) const
Identifier channel_id (IdentifierHash hashId) const
 Return the channel (cell) Identifier for a given hash code (no checking).
bool is_supercell (const Identifier id) const
 Test if the identifier represents a supercell.
IdentifierHash channel_hash (Identifier channelId) const
 create hash id from channel id
IdentifierHash channel_hash_binary_search (Identifier channelId) const
 create hash id from channel id – method NOT optimised, please use channel_hash() above
id_iterator reg_begin () const
 begin iterator over set of region Identifiers
id_iterator reg_end () const
 end iterator over set of region Identifiers
id_range reg_range () const
 Range over set of Region Identifiers.
id_iterator hec_begin () const
 begin iterator over full set of Hec Identifiers for channels
id_iterator hec_end () const
 end iterator over full set of Hec Identifiers for channels
id_range hec_range () const
 Range over full set of HEC Identifiers.
const std::vector< Identifier > & channel_ids () const
 provide access to channel id vector, accessed via hash
const std::vector< Identifier > & region_ids () const
 provide access to region id vector, accessed via hash
int pos_neg (const Identifier id) const
 return pos_neg -2 (C side) or 2 (A side)
int sampling (const Identifier id) const
 return sampling [0,3] (only 0 for supercells)
int region (const Identifier id) const
 return region [0,1]
int eta (const Identifier id) const
 return eta [0,9] outer part [0,3] inner part
int phi (const Identifier id) const
 return phi[0,63] outer part [0,31] inner part
int eta_min (const Identifier regId) const
 min value of eta index (-999 == failure)
int eta_max (const Identifier regId) const
 max value of eta index (-999 == failure)
int phi_min (const Identifier regId) const
 min value of phi index (-999 == failure)
int phi_max (const Identifier regId) const
 max value of phi index (-999 == failure)
int initialize_base_from_dictionary (const IdDictMgr &dict_mgr, const std::string &group_name)
 initialization from the identifier dictionary
bool twoSymSides () const
 True if the + and - sides of the calorimeter are identical (true layout).
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, faces 2D, corners2D, all2D, prevInSamp, nextInSamp, upAndDown, all3D

const HashGroupchannels () const
 Return the HashGroup for channels (cells).
const HashGroupregions () const
 Return the HashGroup for regions.
IdentifierHash region_hash (Identifier regionId) const
 Convert a connected region Identifier to a hash code.
virtual int get_id (const IdentifierHash &hash_id, Identifier &id, const IdContext *context=0) const
 Convert a hash code to an Identifier for either channels or regions, depending on the context.
virtual int get_hash (const Identifier &id, IdentifierHash &hash_id, const IdContext *context=0) const
 Convert an Identifier to a hash code for either channels or regions, depending on the context.
size_type channel_hash_max () const
 One more than the largest channel (cell) hash code.
size_type region_hash_max () const
 One more than the largest region hash code.
IdContext channel_context () const
 Return the context for channels (cells).
IdContext region_context () const
 Return the context for regions.
const std::vector< const IdDictRegion * > & dictRegions () const
 Return the vector of IdDictRegion, accessed via region hash.
float etaGranularity (const IdentifierHash regHash) const
 Return the eta granularity of a region, or NOT_VALID.
float phiGranularity (const IdentifierHash regHash) const
 Return the phi granularity of a region, or NOT_VALID.
float eta0 (const IdentifierHash regHash) const
 Return the minimum eta of region, or NOT_VALID.
float phi0 (const IdentifierHash regHash) const
 Return the minimum phi of region, or NOT_VALID.
const std::string & name () const
 Return the name for this helper.
bool msgLvl (const MSG::Level lvl) const
 Test the output level.
MsgStream & msg () const
 The standard message stream.
MsgStream & msg (const MSG::Level lvl) const
 The standard message stream.
void setLevel (MSG::Level lvl)
 Change the current logging level.
'structors
virtual HelperType helper () const
 Type of helper, defaulted to 'Unimplemented'.
const std::string & group () const
 Group name for this helper.
Detector system ids
Identifier indet (void) const
 Detector systems:
Identifier lar (void) const
Identifier tile (void) const
Identifier muon (void) const
Identifier calo (void) const
Inner Detector subsystem ids
Identifier pixel (void) const
Identifier sct (void) const
Identifier trt (void) const
Identifier hgtd (void) const
Identifier lumi (void) const
LAr subsystem ids
Identifier lar_em (void) const
Identifier lar_hec (void) const
Identifier lar_fcal (void) const
Muon subsystem ids
Identifier mdt (void) const
Identifier csc (void) const
Identifier rpc (void) const
Identifier tgc (void) const
Identifier stgc (void) const
Identifier mm (void) const
level 1 and dead material ids
Identifier lar_lvl1 (void) const
Identifier lar_dm (void) const
Identifier tile_dm (void) const
Contexts to provide id length - e.g. for use in generic decoding
IdContext detsystem_context (void) const
 IdContext (indicates id length) for detector systems.
IdContext subdet_context (void) const
 IdContext (indicates id length) for sub-detector.
Initialization and version name
virtual std::string dictionaryVersion (void) const override
Generic printing of identifiers
void show (Identifier id, const IdContext *context=0, char sep='.') const
 Short print out of any identifier (optionally provide separation character - default is '.
std::string show_to_string (Identifier id, const IdContext *context=0, char sep='.') const
 or provide the printout in string form
void print (Identifier id, const IdContext *context=0) const
 Expanded print out of any identifier.
std::string print_to_string (Identifier id, const IdContext *context=0) const
 or provide the printout in string form
Test of an Identifier to see if it belongs to a particular detector (sub)system:
bool is_indet (Identifier id) const
bool is_lar (Identifier id) const
bool is_tile (Identifier id) const
bool is_muon (Identifier id) const
bool is_calo (Identifier id) const
bool is_lvl1_trig_towers (Identifier id) const
bool is_lvl1_online (Identifier id) const
bool is_pixel (Identifier id) const
bool is_sct (Identifier id) const
bool is_trt (Identifier id) const
bool is_hgtd (Identifier id) const
bool is_lumi (Identifier id) const
bool is_plr (Identifier id) const
bool is_lar_em (Identifier id) const
bool is_lar_hec (Identifier id) const
bool is_lar_fcal (Identifier id) const
bool is_lar_minifcal (Identifier id) const
bool is_lar_dm (Identifier id) const
 LAr/Tile dead material:
bool is_tile_dm (Identifier id) const
bool is_mdt (Identifier id) const
bool is_csc (Identifier id) const
bool is_tgc (Identifier id) const
bool is_rpc (Identifier id) const
bool is_stgc (Identifier id) const
bool is_mm (Identifier id) const
bool is_forward (Identifier id) const
bool is_alfa (Identifier id) const
bool is_bcm (Identifier id) const
bool is_lucid (Identifier id) const
bool is_zdc (Identifier id) const
Test of an Identifier to see if it belongs to a particular detector (sub)system (using expanded ids):
bool is_indet (const ExpandedIdentifier &id) const
bool is_lar (const ExpandedIdentifier &id) const
bool is_tile (const ExpandedIdentifier &id) const
bool is_muon (const ExpandedIdentifier &id) const
bool is_calo (const ExpandedIdentifier &id) const
bool is_pixel (const ExpandedIdentifier &id) const
bool is_sct (const ExpandedIdentifier &id) const
bool is_trt (const ExpandedIdentifier &id) const
bool is_hgtd (const ExpandedIdentifier &id) const
bool is_lumi (const ExpandedIdentifier &id) const
bool is_plr (const ExpandedIdentifier &id) const
bool is_lar_em (const ExpandedIdentifier &id) const
bool is_lar_hec (const ExpandedIdentifier &id) const
bool is_lar_fcal (const ExpandedIdentifier &id) const
bool is_lar_minifcal (const ExpandedIdentifier &id) const
bool is_mdt (const ExpandedIdentifier &id) const
bool is_csc (const ExpandedIdentifier &id) const
bool is_tgc (const ExpandedIdentifier &id) const
bool is_rpc (const ExpandedIdentifier &id) const
bool is_stgc (const ExpandedIdentifier &id) const
bool is_mm (const ExpandedIdentifier &id) const
Dictionary versioning: provide access to dictionary names and versions. Note that a helper may correspond to one or more id dictionary
const std::vector< std::string > & dict_names (void) const
 Dictionary names.
const std::vector< std::string > & file_names (void) const
 File names for subdet dictionaries.
const std::vector< std::string > & dict_tags (void) const
 Version tags for subdet dictionaries.
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:
virtual bool do_checks (void) const override
 Checks are performed by default in debug compilation and NOT in optimized compilation.
virtual void set_do_checks (bool do_checks) override

Static Public Attributes

static constexpr int invalidIndex {999}
static constexpr int invalidId {-1}

Protected Member Functions

int fill_vec_of_dict_regions (const std::string &group_name="")
 Do basic initialization of the helper.

Private Types

enum  { NOT_VALID_HASH = 64000 }

Private Member Functions

int phi_min_init (const Identifier regId) const
void region_id_checks (int pos_neg, int sampling, int region) const
void channel_id_checks (int pos_neg, int sampling, int region, int eta, int phi) const
void channel_id_checks (const Identifier regionId, int eta, int phi) 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)
int initLevelsFromDict (const std::string &group_name)
int init_hashes ()
int get_prevInEta (const LArHEC_region *hecRegion, const unsigned int &index, const short int &nPhi, const float &gPhi, const unsigned int &minHash, int &neighbourIndex, IdentifierHash *neighbList, unsigned int &nBiggerCell) const
int get_nextInEta (const LArHEC_region *hecRegion, const unsigned int &index, const short int &nPhi, const float &gPhi, const unsigned int &maxHash, int &neighbourIndex, IdentifierHash *neighbList, unsigned int &nBiggerCell) const
int get_prevInSamp (const LArHEC_region *hecRegion, const unsigned int &index, const short int &nPhi, const unsigned int &minHash, const double &absEta, int &neighbourIndex, IdentifierHash *neighbList) const
int get_nextInSamp (const LArHEC_region *hecRegion, const unsigned int &index, const short int &nPhi, const unsigned int &minHash, const double &absEta, int &neighbourIndex, IdentifierHash *neighbList) const
int init_neighbors ()
*Group of channel (cell) Identifiers. HashGroup m_channels
void initMessaging () const
 Initialize our message level and MessageSvc.

Static Private Member Functions

static int get_prevInPhi (const LArHEC_region *hecRegion, const unsigned int &index, const short int &nPhi, const unsigned int &minHash, int &neighbourIndex, IdentifierHash *neighbList)
static int get_nextInPhi (const LArHEC_region *hecRegion, const unsigned int &index, const short int &nPhi, const unsigned int &minHash, int &neighbourIndex, IdentifierHash *neighbList)

Private Attributes

unsigned m_slar
size_type m_hec_region_index
size_type m_LAR_INDEX
size_type m_HEC_INDEX
size_type m_POSNEG_INDEX
size_type m_SAMPLING_INDEX
size_type m_REGION_INDEX
size_type m_ETA_INDEX
size_type m_PHI_INDEX
size_type m_SLAR_INDEX
MultiRange m_full_channel_range
MultiRange m_full_region_range
bool m_two_sym_sides
std::vector< short int > m_vecOfPhiMin
std::vector< HashCalcm_hash_calcs
IdDictFieldImplementation m_lar_impl
IdDictFieldImplementation m_hec_impl
IdDictFieldImplementation m_pn_impl
IdDictFieldImplementation m_sampling_impl
IdDictFieldImplementation m_region_impl
IdDictFieldImplementation m_eta_impl
IdDictFieldImplementation m_phi_impl
IdDictFieldImplementation m_slar_impl
IdDictFieldImplementation m_pn_reg_impl
std::vector< LArHEC_region * > m_vecOfRegions
std::vector< short int > m_vecOfCellInfo
*Name of this helper std::string m_name
*Group of region Identifiers HashGroup m_regions
*The dictionary for this helper const IdDictDictionarym_dict
*List of c IdDictRegion objects std::vector< const IdDictRegion * > m_vecOfDictRegions
std::string m_nm
 Message source name.
boost::thread_specific_ptr< MsgStream > m_msg_tls
 MsgStream instance (a std::cout like with print-out levels).
std::atomic< IMessageSvc * > m_imsg { nullptr }
 MessageSvc pointer.
std::atomic< MSG::Level > m_lvl { MSG::NIL }
 Current logging level.
std::atomic_flag m_initialized ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
 Messaging initialized (initMessaging).

neighbours are initialized by default. One can switch or query this mode with the following methods:

virtual bool do_neighbours (void) const override
 Neighbour initialization is performed by default One can switch or query this mode for any idHelper with the following method:
virtual void set_do_neighbours (bool do_neighbours) override
enum  ID { ATLAS_ID = static_cast<Identifier::value_type>(0) , MAX_BIT = Identifier::MAX_BIT , PIXEL_MASK = static_cast<Identifier::value_type>(0xFF) , ALL_BITS = Identifier::ALL_BITS }
std::string m_dict_version
const IdDictDictionarym_atlas_dict {}
const IdDictDictionarym_indet_dict {}
const IdDictDictionarym_lar_dict {}
const IdDictDictionarym_tile_dict {}
const IdDictDictionarym_muon_dict {}
const IdDictDictionarym_calo_dict {}
const IdDictDictionarym_fwd_dict {}
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}
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
Range::field m_lvl1_field
Range::field m_lvl1_onl_field
Range::field m_lar_dm_field
Range::field m_tile_dm_field
std::unique_ptr< AtlasDetectorIDHelperm_helper {}
std::vector< unsigned int > m_muon_tech_bits
bool m_is_initialized_from_dict {}
bool m_isHighLuminosityLHC {}
const IdDictDictionarydictionary (const Identifier &id) const
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:
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:
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.
ExpandedIdentifier lar_hec_exp (void) const
ExpandedIdentifier lar_fcal_exp (void) const
ExpandedIdentifier alfa_exp (void) const
 Forward.
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.
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.
bool reinitialize (const IdDictMgr &dict_mgr)
 Test whether an idhelper should be reinitialized based on the change of tags.
std::string m_group
 Group name.
std::vector< std::string > m_dict_names
 List of dictionary names used by this helper.
std::vector< std::string > m_file_names
 List of dictionary file names used by this helper.
std::vector< std::string > m_dict_tags
 List of dictionary versions used by this helper.
bool m_do_checks {}
 Flag for subclasses to know whether or not to perform checks.
bool m_do_neighbours {true}
 Flag for subclasses to know whether or not to perform neighbour initialization.

Detailed Description

Helper class for LArHEC offline identifiers.

This class provides an interface to decode and generate offline identifiers for the HEC detector subsystem.

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

            Connected channels :
            ------------------
element           range              meaning
-------           -----              -------

pos/neg          -2 or 2          -2 = negative HEC (C side), 2 = positive HEC  ( A side)

sampling         [0,3]            [0,1] = first wheel, [2,3] = second wheel 

region           [0,1]            0 : outer part, 1 : inner part

eta              [0,9]            Outer part region 0 , samplings 0 and 1 , 1.5< eta <2.5 , deta=0.1
"                [1,9]            Outer part region 0 , samplings 2       , 1.6< eta <2.5 , deta=0.1
"                [2,9]            Outer part region 0 , samplings 3       , 1.7< eta <2.5 , deta=0.1
"                [0,3]            Inner part region 1 , samplings 0 and 3 , 2.5< eta <3.3 , deta=0.2
"                [0,2]            Inner part region 1 , samplings 1 and 2 , 2.5< eta <3.1 , deta=0.2

phi              [0,63]           Outer part, dphi=0.1
"                [0,31]           Inner part, dphi=0.2

5632 active cells in the full HEC 

            Disconnected channels :
            ---------------------
element           range              meaning
-------           -----              -------

pos/neg          -2 or 2          -2 = negative HEC (C side), 2 = positive HEC  ( A side)

sampling         [1,3]            [0,1] = first wheel, [2,3] = second wheel 

region           [0,1]            0 : outer part, 1 : inner part

eta               0               Outer part region 0 , sampling 2        , 1.5< eta <1.6 , deta=0.1
"                [0,1]            Outer part region 0 , sampling 3        , 1.5< eta <1.7 , deta=0.1
"                 3               Inner part region 1 , samplings 1 and 2 , 3.1< eta <3.3 , deta=0.2

phi              [0,63]           Outer part, dphi=0.1
"                [0,31]           Inner part, dphi=0.2

Author
started by RD Schaffer
maintained by Fabienne Ledroit

Definition at line 74 of file LArHEC_ID.h.

Member Typedef Documentation

◆ id_iterator

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

Type for iterators over identifiers.

Definition at line 42 of file CaloIDHelper.h.

◆ id_range

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

Type for range over identifiers.

Definition at line 44 of file CaloIDHelper.h.

◆ size_type

typedef Identifier::size_type CaloIDHelper::size_type
inherited

Definition at line 39 of file CaloIDHelper.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
inherited
Enumerator
NOT_VALID 

Definition at line 36 of file CaloIDHelper.h.

36{ NOT_VALID=999999 };

◆ anonymous enum

anonymous enum
privateinherited
Enumerator
NOT_VALID_HASH 

Definition at line 198 of file LArHEC_Base_ID.h.

198{NOT_VALID_HASH = 64000};

◆ HelperType

enum class 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 56 of file AtlasDetectorID.h.

56 {
57 Unimplemented = -1,
58 Silicon = 0,
59 Pixel, PLR, SCT, TRT,
60 //inherits from CaloIDHelper
61 LArEM, LArFCal, LArFCalSuperCell,
62 LArHEC, LArHEC_SuperCell, LARMiniFCal,
63 Tile, TileSuperCell,
64 //
65 //inherit from LArOnlineId
66 LArOnline, LArOnlineSuperCell,
67 //
68 LArElectrode, LArHVLine,
69 TileHardware, TileTestbeam,
70 CaloCell, CaloSuperCell,
71 CaloDM, CaloLvl1,
72 //inherit from JGTowerBase
73 GTower, JTower,
74 //
75 Muon,
76 LUCID, LUCID_Hardware,
77 Zdc,ZdcHardware,
78 TT
79 };
@ TRT
Definition RegSelEnums.h:26
@ SCT
Definition RegSelEnums.h:25
@ Pixel
Definition DetType.h:13
constexpr std::initializer_list< int > Tile
Definition HIEventDefs.h:70
Muon_v1 Muon
Reference the current persistent version:

◆ ID

enum AtlasDetectorID::ID
privateinherited
Enumerator
ATLAS_ID 
MAX_BIT 
PIXEL_MASK 
ALL_BITS 

Definition at line 377 of file AtlasDetectorID.h.

377 {
378 ATLAS_ID = static_cast<Identifier::value_type>(0),
379 MAX_BIT = Identifier::MAX_BIT,
380 // mask to distinguish a pixel id from lvl1 id (bit 1 set)
381 PIXEL_MASK = static_cast<Identifier::value_type>(0xFF),
383 };

Constructor & Destructor Documentation

◆ LArHEC_ID()

LArHEC_ID::LArHEC_ID ( )

Definition at line 16 of file LArHEC_ID.cxx.

16 :
17 LArHEC_Base_ID ("LArHEC_ID", "lar_hec", false)
18{
19}
LArHEC_Base_ID(const std::string &name, const std::string &group, bool supercell)
Constructor.

◆ ~LArHEC_ID()

LArHEC_ID::~LArHEC_ID ( )
virtualdefault

Member Function Documentation

◆ alfa_exp()

ExpandedIdentifier AtlasDetectorID::alfa_exp ( void ) const
protectedinherited

Forward.

Definition at line 1053 of file AtlasDetectorID.cxx.

1054{
1055 ExpandedIdentifier result(fwd_exp());
1056 return (result << m_ALFA_ID);
1057}
ExpandedIdentifier fwd_exp(void) const

◆ alfa_field_value()

int AtlasDetectorID::alfa_field_value ( ) const
inlineprotectedinherited

Definition at line 516 of file AtlasDetectorID.h.

516{return (m_ALFA_ID);}

◆ bcm_exp()

ExpandedIdentifier AtlasDetectorID::bcm_exp ( void ) const
protectedinherited

Definition at line 1060 of file AtlasDetectorID.cxx.

1061{
1062 ExpandedIdentifier result(fwd_exp());
1063 return (result << m_BCM_ID);
1064}

◆ bcm_field_value()

int AtlasDetectorID::bcm_field_value ( ) const
inlineprotectedinherited

Definition at line 518 of file AtlasDetectorID.h.

518{return (m_BCM_ID);}

◆ calo()

Identifier AtlasDetectorID::calo ( void ) const
inherited

Definition at line 78 of file AtlasDetectorID.cxx.

78 {
79 return m_det_impl.new_pack(calo_field_value());
80}
IdDictFieldImplementation m_det_impl
int calo_field_value() const

◆ calo_exp()

ExpandedIdentifier AtlasDetectorID::calo_exp ( void ) const
protectedinherited

Definition at line 983 of file AtlasDetectorID.cxx.

984{
985 ExpandedIdentifier result;
986 return (result << m_CALO_ID);
987}

◆ calo_field_value()

int AtlasDetectorID::calo_field_value ( ) const
inlineprotectedinherited

Definition at line 466 of file AtlasDetectorID.h.

466{return (m_CALO_ID);}

◆ channel()

*Group of CaloIDHelper::channel ( cell )
privateinherited

◆ channel_context()

IdContext CaloIDHelper::channel_context ( ) const
inherited

Return the context for channels (cells).

◆ channel_hash()

IdentifierHash LArHEC_Base_ID::channel_hash ( Identifier channelId) const
inherited

create hash id from channel id

◆ channel_hash_binary_search()

IdentifierHash LArHEC_Base_ID::channel_hash_binary_search ( Identifier channelId) const
inherited

create hash id from channel id – method NOT optimised, please use channel_hash() above

◆ channel_hash_max()

size_type CaloIDHelper::channel_hash_max ( ) const
inherited

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

◆ channel_id() [1/8]

Identifier LArHEC_Base_ID::channel_id ( const ExpandedIdentifier & exp_id) const
inherited

channel identifier for a channel from ExpandedIdentifier

◆ channel_id() [2/8]

Identifier LArHEC_Base_ID::channel_id ( const Identifier regionId,
int eta,
int phi ) const
inherited

allows to build a channel id starting from a region id (e.g.

from descriptors) – valid for both kinds of channels

◆ channel_id() [3/8]

Identifier LArHEC_Base_ID::channel_id ( const Identifier regionId,
int eta,
int phi,
bool checks ) const
inherited

◆ channel_id() [4/8]

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

◆ channel_id() [5/8]

Identifier LArHEC_Base_ID::channel_id ( int pos_neg,
int sampling,
int eta,
int phi ) const
inherited

build a cell identifier for a channel
eta counting includes regions

Definition at line 53 of file LArHEC_Base_ID.cxx.

55{
56 // must calculate region number and shift eta
57 int region=999;
58 if ( 0 <= eta && eta < 10 ) { region = 0;}
59 else if ( 10 <= eta && eta < 14 ) { region = 1; eta -= 10;}
60
61 return (channel_id (pos_neg, sampling, region, eta, phi));
62}
int region(const Identifier id) const
return region [0,1]
Identifier channel_id(const ExpandedIdentifier &exp_id) const
channel identifier for a channel from ExpandedIdentifier
int phi(const Identifier id) const
return phi[0,63] outer part [0,31] inner part
int eta(const Identifier id) const
return eta [0,9] outer part [0,3] inner part
int pos_neg(const Identifier id) const
return pos_neg -2 (C side) or 2 (A side)
int sampling(const Identifier id) const
return sampling [0,3] (only 0 for supercells)

◆ channel_id() [6/8]

Identifier LArHEC_Base_ID::channel_id ( int pos_neg,
int sampling,
int region,
int eta,
int phi ) const
inherited

build a cell identifier for a channel

◆ channel_id() [7/8]

Identifier LArHEC_Base_ID::channel_id ( int pos_neg,
int sampling,
int region,
int eta,
int phi,
bool checks ) const
inherited

◆ channel_id() [8/8]

Identifier LArHEC_Base_ID::channel_id ( int pos_neg,
int sampling,
int sector,
int region,
int eta,
int phi_sector ) const
inherited

For a specific sector , eta, phi_sector.


sector       [0,31]

phi_sector   [0,1]            Outer part, dphi=0.1
"            [0]              Inner part, dphi=0.2

Definition at line 65 of file LArHEC_Base_ID.cxx.

67{
68 int phi = ( region == 0 ? sector*2 + phi_sector : sector );
69 return (channel_id (pos_neg, sampling, region, eta, phi ));
70}

◆ channel_id_checks() [1/2]

void LArHEC_Base_ID::channel_id_checks ( const Identifier regionId,
int eta,
int phi ) const
privateinherited

Definition at line 351 of file LArHEC_Base_ID.cxx.

353{
354
355 // Check that id is within allowed range
356 // Fill expanded id
357 ExpandedIdentifier expId;
358
359 IdContext context = region_context();
360 if (get_expanded_id(regionId, expId, &context)) {
361 std::string errorMessage = "LArHEC_Base_ID::channel_id(regId) result is not OK: ID = "
362 + show_to_string(regionId) ;
363 throw LArID_Exception(errorMessage , 8);
364 }
365
366 expId << eta << phi << m_slar;
367
368 if (!m_full_channel_range.match(expId)) {
369 std::string errorMessage = "LArHEC_Base_ID::channel_id(regId) result is not OK: ID, range = "
370 + std::string(expId) + " , " + (std::string)m_full_channel_range;
371 throw LArID_Exception(errorMessage , 8);
372 }
373}
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
IdContext region_context() const
Return the context for regions.
MultiRange m_full_channel_range
virtual int get_expanded_id(const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
create expanded Identifier from Identifier (return == 0 for OK)

◆ channel_id_checks() [2/2]

void LArHEC_Base_ID::channel_id_checks ( int pos_neg,
int sampling,
int region,
int eta,
int phi ) const
privateinherited

Definition at line 335 of file LArHEC_Base_ID.cxx.

337{
338
339 // Check that id is within allowed range
340 // Fill expanded id
341 ExpandedIdentifier expId(lar_hec_exp());
342 expId << pos_neg << sampling << region << eta << phi << m_slar ;
343
344 if (!m_full_channel_range.match(expId)) {
345 std::string errorMessage = "LArHEC_Base_ID::channel_id() result is not OK: ID, range = "
346 + std::string(expId) + " , " + (std::string)m_full_channel_range;
347 throw LArID_Exception(errorMessage , 8);
348 }
349}
ExpandedIdentifier lar_hec_exp(void) const

◆ channel_ids()

const std::vector< Identifier > & LArHEC_Base_ID::channel_ids ( ) const
inherited

provide access to channel id vector, accessed via hash

◆ channels()

const HashGroup & CaloIDHelper::channels ( ) const
inherited

Return the HashGroup for channels (cells).

◆ csc()

Identifier AtlasDetectorID::csc ( void ) const
inherited

Definition at line 47 of file AtlasDetectorID.cxx.

47 {
48 return Identifier{};
49}

◆ csc_field_value()

int AtlasDetectorID::csc_field_value ( ) const
inlineprotectedinherited

Definition at line 499 of file AtlasDetectorID.h.

499{return (m_CSC_ID);}

◆ detsystem_context()

IdContext AtlasDetectorID::detsystem_context ( void ) const
inherited

IdContext (indicates id length) for detector systems.

Definition at line 127 of file AtlasDetectorID.cxx.

127 {
128 ExpandedIdentifier id{};
129 return IdContext{id, 0, m_DET_INDEX};
130}

◆ dict_names()

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

Dictionary names.

Definition at line 382 of file AtlasDetectorID.cxx.

382 {
383 return m_dict_names;
384}
std::vector< std::string > m_dict_names
List of dictionary names used by this helper.

◆ dict_tags()

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

Version tags for subdet dictionaries.

Definition at line 388 of file AtlasDetectorID.cxx.

388 {
389 return m_dict_tags;
390}
std::vector< std::string > m_dict_tags
List of dictionary versions used by this helper.

◆ dictionary()

const IdDictDictionary * AtlasDetectorID::dictionary ( const Identifier & id) const
privateinherited

Definition at line 1080 of file AtlasDetectorID.cxx.

1080 {
1081 if (is_indet(id)) {
1082 return m_indet_dict;
1083 }
1084 if (is_lar(id)) {
1085 return m_lar_dict;
1086 }
1087 if (is_tile(id)) {
1088 return m_tile_dict;
1089 }
1090 if (is_muon(id)) {
1091 return m_muon_dict;
1092 }
1093 if (is_lvl1_trig_towers(id) || is_lvl1_online(id) || is_lar_dm(id) || is_tile_dm(id)) {
1094 return m_calo_dict;
1095 }
1096 if (is_forward(id)) {
1097 return m_fwd_dict;
1098 }
1099 return nullptr;
1100}
const IdDictDictionary * m_calo_dict
const IdDictDictionary * m_muon_dict
bool is_indet(Identifier id) const
bool is_lar(Identifier id) const
bool is_lar_dm(Identifier id) const
LAr/Tile dead material:
bool is_lvl1_online(Identifier id) const
const IdDictDictionary * m_tile_dict
const IdDictDictionary * m_fwd_dict
bool is_muon(Identifier id) const
bool is_tile_dm(Identifier id) const
bool is_tile(Identifier id) const
const IdDictDictionary * m_indet_dict
bool is_forward(Identifier id) const
const IdDictDictionary * m_lar_dict
bool is_lvl1_trig_towers(Identifier id) const

◆ dictionaryVersion()

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

Implements IdHelper.

Definition at line 227 of file AtlasDetectorID.cxx.

227 {
228 return m_dict_version;
229}
std::string m_dict_version

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

391 {
392 return m_do_checks;
393}
bool m_do_checks
Flag for subclasses to know whether or not to perform checks.

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

398 {
399 return m_do_neighbours;
400}
bool m_do_neighbours
Flag for subclasses to know whether or not to perform neighbour initialization.

◆ eta()

int LArHEC_Base_ID::eta ( const Identifier id) const
inherited

return eta [0,9] outer part [0,3] inner part

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

207{
208 if (regHash >= m_vecOfDictRegions.size()) return NOT_VALID;
209 return (m_vecOfDictRegions.at(regHash)->eta0());
210}
*List of c IdDictRegion objects std::vector< const IdDictRegion * > m_vecOfDictRegions

◆ eta_max()

int LArHEC_Base_ID::eta_max ( const Identifier regId) const
inherited

max value of eta index (-999 == failure)

Warning
input = REGION ID !!

Definition at line 98 of file LArHEC_Base_ID.cxx.

99{
100 ExpandedIdentifier expId;
101 IdContext region_cntxt = region_context();
102 if(!get_expanded_id(regId, expId, &region_cntxt)) {
103 int result = -999;
104 for (unsigned int i = 0; i < m_full_channel_range.size(); ++i) {
105 const Range& range = m_full_channel_range[i];
106 if (range.match(expId)) {
107 const Range::field& eta_field = range[m_ETA_INDEX];
108 if (not eta_field.empty()) {
109 int etamax = eta_field.get_maximum();
110 if (result < etamax) result = etamax;
111 }
112 }
113 }
114 return (result);
115 }
116 return (-999); // default
117}
bool empty() const
If true, this field does not have any constraints, and may hold any value representable by element_ty...
element_type get_maximum() const
size_type m_ETA_INDEX

◆ eta_min()

int LArHEC_Base_ID::eta_min ( const Identifier regId) const
inherited

min value of eta index (-999 == failure)

Warning
input = REGION ID !!

Definition at line 72 of file LArHEC_Base_ID.cxx.

73{
74 ExpandedIdentifier expId;
75 IdContext region_cntxt = region_context();
76 if(!get_expanded_id(regId, expId, &region_cntxt)) {
77 int result = -999;
78 for (unsigned int i = 0; i < m_full_channel_range.size(); ++i) {
79 const Range& range = m_full_channel_range[i];
80 if (range.match(expId)) {
81 const Range::field& eta_field = range[m_ETA_INDEX];
82 if (not eta_field.empty()) {
83 int etamin = eta_field.get_minimum();
84 if (-999 == result) {
85 result = etamin;
86 }
87 else {
88 if (etamin < result) result = etamin;
89 }
90 }
91 }
92 }
93 return (result);
94 }
95 return (-999);
96}
element_type get_minimum() const
Query the values.

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

185{
186 if (regHash >= m_vecOfDictRegions.size()) return NOT_VALID;
187 return m_vecOfDictRegions.at(regHash)->deta();
188}

◆ file_names()

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

File names for subdet dictionaries.

Definition at line 385 of file AtlasDetectorID.cxx.

385 {
386 return m_file_names;
387}
std::vector< std::string > m_file_names
List of dictionary file names used by this helper.

◆ fill_vec_of_dict_regions()

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

Do basic initialization of the helper.

Parameters
dict_mgrThe dictionary manager returned from the parser.
dict_nameThe dictionary name (eg, `LArCalorimeter').
Returns
0 on success, non-zero on failure. */ int initialize_base_from_dictionary (const IdDictMgr& dict_mgr, const std::string& dict_name);

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

Return the dictionary for this subdetector. const IdDictDictionary* dict() const;

/**

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.
Parameters
dict_mgrThe dictionary manager returned from the parser.
dict_nameThe dictionary name (eg, `LArCalorimeter').
Returns
0 on success, non-zero on failure. */ int CaloIDHelper::initialize_base_from_dictionary (const IdDictMgr& dict_mgr, const std::string& dict_name) { init base object if(AtlasDetectorID::initialize_from_dictionary(dict_mgr)) return (1);

Register version of dictionary if (register_dict_tag(dict_mgr, dict_name)) return(1);

m_dict = dict_mgr.find_dictionary (dict_name); if(!m_dict) { ATH_MSG_ERROR("cannot access " << dict_name << "dictionary"); return 1; } return 0; }

/**

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

257{
258 m_vecOfDictRegions.clear();
259 m_vecOfDictRegions.reserve (regions().hash_max());
260 IdContext region_cntxt = region_context();
261 ExpandedIdentifier expRegId;
262 for (Identifier id : regions().range()) {
263 if(!get_expanded_id(id, expRegId, &region_cntxt)) {
264 m_vecOfDictRegions.push_back (m_dict->find_region(expRegId,group_name));
265 }
266 }
267 // cppcheck-suppress assertWithSideEffect
268 assert (m_vecOfDictRegions.size() == regions().hash_max());
269 return 0;
270}
const HashGroup & regions() const
Return the HashGroup for regions.
virtual int get_expanded_id(const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const =0
Create an expanded Identifier from an Identifier.
*The dictionary for this helper const IdDictDictionary * m_dict

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

514{return (m_FWD_ID);}

◆ fwd_exp()

ExpandedIdentifier AtlasDetectorID::fwd_exp ( void ) const
protectedinherited

Definition at line 990 of file AtlasDetectorID.cxx.

991{
992 ExpandedIdentifier result;
993 return (result << m_FWD_ID);
994}

◆ get_expanded_id()

int LArHEC_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 375 of file LArHEC_Base_ID.cxx.

376{
377 // We assume that the context is >= region
378 exp_id.clear();
379 exp_id << lar_field_value()
381 << pos_neg(id)
382 << sampling(id)
383 << region(id);
384 if(context && context->end_index() >= m_ETA_INDEX) {
385 exp_id << eta(id);
386 if(context->end_index() >= m_PHI_INDEX) {
387 exp_id << phi(id);
388 if ( context->end_index() >= m_SLAR_INDEX) {
389 exp_id << (unsigned)is_supercell(id);
390 }
391 }
392 }
393 return (0);
394}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
int lar_hec_field_value() const
int lar_field_value() const
void clear()
Erase all fields.
size_type m_SLAR_INDEX
bool is_supercell(const Identifier id) const
Test if the identifier represents a supercell.
size_type m_PHI_INDEX

◆ get_hash()

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

Convert an Identifier to a hash code for either channels or regions, depending on the context.

Uses binary search. Some of the subdetector-specific helpers define faster versions of channel_hash and region_hash (that, however, do less checking).

Parameters
idThe identifier to convert.
[out]hash_idThe resulting hash code. Will be invalid if there was an error.
contextThe context in which to do the conversion (specifies whether we want channels or regions).
Returns
0 for success, non-zero for failure (unrecognized context or Identifier.

Reimplemented from AtlasDetectorID.

Reimplemented in Tile_Base_ID.

Definition at line 160 of file CaloIDHelper.cxx.

161{
162 hash_id = IdentifierHash();
163
164 size_t begin = (context) ? context->begin_index(): 0;
165 size_t end = (context) ? context->end_index() : 0;
166
167 if (0 == begin) {
168 const HashGroup* hg = nullptr;
169 if (m_channels.end_index() == end) hg = &m_channels;
170 else if (m_regions.end_index() == end) hg = &m_regions;
171
172 if (hg)
173 return hg->get_hash (id, hash_id);
174 }
175
176 return 1;
177}
Manage a list of identifiers.
*Group of region Identifiers HashGroup m_regions

◆ get_id()

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

Convert a hash code to an Identifier for either channels or regions, depending on the context.

If you know the context at compile-time, channel_id and region_id will be faster (but they don't do range checking).

Parameters
hash_idThe hash code to convert.
[out]idThe resulting Identifier. Will be invalid if there was an error.
contextThe context in which to do the conversion (specifies whether we want channels or regions).
Returns
0 for success, non-zero for failure (unrecognized context, or hash code out of range).

Reimplemented from AtlasDetectorID.

Reimplemented in Tile_Base_ID.

Definition at line 118 of file CaloIDHelper.cxx.

121{
122 int result = 1;
123 id.clear();
124
125 size_t begin = (context) ? context->begin_index(): 0;
126 size_t end = (context) ? context->end_index() : 0;
127
128 if (0 == begin) {
129 const HashGroup* hg = nullptr;
130 if (m_channels.end_index() == end) hg = &m_channels;
131 else if (m_regions.end_index() == end) hg = &m_regions;
132
133 if (hg) {
134 if (hash_id < hg->hash_max()) {
135 id = hg->id (hash_id);
136 result = 0;
137 }
138 }
139 }
140
141 return(result);
142}

◆ get_neighbours()

int LArHEC_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, faces 2D, corners2D, all2D, prevInSamp, nextInSamp, upAndDown, all3D

     in 'nextInEta' and 'nextInSamp', next means 'away from the centre of Atlas' <br>
     in 'prevInEta' and 'prevInSamp', prev means 'towards   the centre of Atlas' <br>
 faces2D means prevInPhi + nextInPhi + prevInEta + nextInEta <br>
 corners2D means corners in the same sampling, 
                 not only touching cells but all corner cells forming a square (in case of change in eta granularity ) <br>
 all2D means faces2D + corners2D <br>
 upAndDown means prevInSamp + nextInSamp <br>
 all3D means all2D + upAndDown <br> 

Definition at line 534 of file LArHEC_Base_ID.cxx.

535{
536 int result = 1;
537
538 neighbourList.clear();
539
540 if(!m_do_neighbours) {
541 ATH_MSG_WARNING("neighbours not initialized !!! returning empty list");
542 return result;
543 }
544
545 if(id>=channel_hash_max()) {
546 ATH_MSG_WARNING("neighbours requested for non-existing channel -- id/max " << id << "/" << channel_hash_max());
547 return result;
548 }
549
550 const short int maxNeighb=20;
551 IdentifierHash neighbList[maxNeighb];
552 int neighbourIndex = 0;
553
554 // cell index
555 unsigned int index=id;
556
557 //
558 // .... find in which region is the cell
559 //
560 short int regionN=m_vecOfCellInfo[index];
561 // get pointer to this region
562 LArHEC_region* hecRegion = m_vecOfRegions[regionN];
563 // retrieve characteristic numbers for this region
564 short int nPhi = hecRegion->phiN();
565 float gPhi = hecRegion->phiGranularity();
566 unsigned int minHash = hecRegion->hashMin();
567 unsigned int maxHash = hecRegion->hashMax();
568
569 bool corners2DOnly = ( (option & LArNeighbours::all2D)
571 //
572 // .... previous neighbour in phi
573 //
574 IdentifierHash prevNeighbInPhi=NOT_VALID_HASH;
575 if( (option & LArNeighbours::prevInPhi)
576 || corners2DOnly ){
577 if(!get_prevInPhi(hecRegion, index, nPhi, minHash, neighbourIndex, neighbList)){
578 prevNeighbInPhi=neighbList[neighbourIndex-1];
579 if( corners2DOnly ){
580 neighbourIndex--;
581 }
582 }
583 }
584
585 //
586 // ....next neighbour in phi
587 //
588 IdentifierHash nextNeighbInPhi=NOT_VALID_HASH;
589 if( (option & LArNeighbours::nextInPhi)
590 || corners2DOnly ){
591 if(!get_nextInPhi(hecRegion, index, nPhi, minHash, neighbourIndex, neighbList)){
592 nextNeighbInPhi=neighbList[neighbourIndex-1];
593 if( corners2DOnly ){
594 neighbourIndex--;
595 }
596 }
597 }
598
599 //
600 // ....previous neighbours in eta
601 //
602 unsigned int nPrevBiggerCell=NOT_VALID_HASH;
603 if( (option & LArNeighbours::prevInEta) ){
604 get_prevInEta(hecRegion, index, nPhi, gPhi, minHash, neighbourIndex, neighbList, nPrevBiggerCell);
605 }
606
607 //
608 // ....next neighbours in eta
609 //
610 unsigned int nNextBiggerCell=NOT_VALID_HASH;
611 if( (option & LArNeighbours::nextInEta) ){
612 get_nextInEta(hecRegion, index, nPhi, gPhi, maxHash, neighbourIndex, neighbList, nNextBiggerCell);
613 }
614
615 //
616 // ....corners in the same sampling
617 //
618 if( (option & LArNeighbours::corners2D) ){
619 if(prevNeighbInPhi != NOT_VALID_HASH){
620 unsigned int index1=prevNeighbInPhi;
621 int oldNeighbourIndex = neighbourIndex;
622 // allow only 1 corner cell in order to avoid the problem of
623 // non-mutual neighbourness
624 // since the cells come ordered in phi it should be the last cell for
625 // prevNeighbInPhi as starting points
626 get_prevInEta(hecRegion, index1, nPhi, gPhi, minHash, neighbourIndex, neighbList, nPrevBiggerCell);
627 if ( neighbourIndex > oldNeighbourIndex+1 ) {
628 neighbList[oldNeighbourIndex] = neighbList[neighbourIndex-1];
629 neighbourIndex = oldNeighbourIndex+1;
630 }
631 oldNeighbourIndex = neighbourIndex;
632 get_nextInEta(hecRegion, index1, nPhi, gPhi, maxHash, neighbourIndex, neighbList, nNextBiggerCell);
633 if ( neighbourIndex > oldNeighbourIndex+1 ) {
634 neighbList[oldNeighbourIndex] = neighbList[neighbourIndex-1];
635 neighbourIndex = oldNeighbourIndex+1;
636 }
637 }
638
639 if(nextNeighbInPhi != NOT_VALID_HASH){
640 unsigned int index2=nextNeighbInPhi;
641 int oldNeighbourIndex = neighbourIndex;
642 // allow only 1 corner cell in order to avoid the problem of
643 // non-mutual neighbourness
644 // since the cells come ordered in phi it should be the 1st cell for
645 // nextNeighbInPhi
646 get_prevInEta(hecRegion, index2, nPhi, gPhi, minHash, neighbourIndex, neighbList, nPrevBiggerCell);
647 if ( neighbourIndex > oldNeighbourIndex+1 ) {
648 neighbourIndex = oldNeighbourIndex+1;
649 }
650 oldNeighbourIndex = neighbourIndex;
651 get_nextInEta(hecRegion, index2, nPhi, gPhi, maxHash, neighbourIndex, neighbList, nNextBiggerCell);
652 if ( neighbourIndex > oldNeighbourIndex+1 ) {
653 neighbourIndex = oldNeighbourIndex+1;
654 }
655 }
656 }
657
658 //
659 // .... neighbours in sampling (common code)
660 // HEC caracteristics = no granularity change, partial overlap of samplings
661 //
662 if( (option & LArNeighbours::upAndDown) ){
663 // initial eta granularity
664 float granEta = hecRegion->etaGranularity();
665 // initial eta
666 int nEta = int( (index-minHash) / nPhi);
667 double absEta = hecRegion->etaMin() + nEta*granEta;
668
669 // previous neighbours in sampling
670 if( (option & LArNeighbours::prevInSamp) ){
671 get_prevInSamp(hecRegion, index, nPhi, minHash, absEta, neighbourIndex, neighbList);
672 } // end option
673
674 // next neighbours in sampling
675 if( (option & LArNeighbours::nextInSamp) ){
676 get_nextInSamp(hecRegion, index, nPhi, minHash, absEta, neighbourIndex, neighbList);
677 }
678 }
679
680 neighbourList.resize(neighbourIndex);
681 if (neighbourIndex <= maxNeighb) {
682 std::copy (&neighbList[0], &neighbList[neighbourIndex], neighbourList.begin());
683 result = 0 ;
684 } else {
685 ATH_MSG_WARNING("more than 20 neighbours for this cell, NONE will be retained " << neighbourIndex);
686 }
687 return result;
688
689}
#define ATH_MSG_WARNING(x,...)
size_type channel_hash_max() const
One more than the largest channel (cell) hash code.
static int get_prevInPhi(const LArHEC_region *hecRegion, const unsigned int &index, const short int &nPhi, const unsigned int &minHash, int &neighbourIndex, IdentifierHash *neighbList)
static int get_nextInPhi(const LArHEC_region *hecRegion, const unsigned int &index, const short int &nPhi, const unsigned int &minHash, int &neighbourIndex, IdentifierHash *neighbList)
int get_nextInSamp(const LArHEC_region *hecRegion, const unsigned int &index, const short int &nPhi, const unsigned int &minHash, const double &absEta, int &neighbourIndex, IdentifierHash *neighbList) const
int get_prevInEta(const LArHEC_region *hecRegion, const unsigned int &index, const short int &nPhi, const float &gPhi, const unsigned int &minHash, int &neighbourIndex, IdentifierHash *neighbList, unsigned int &nBiggerCell) const
int get_prevInSamp(const LArHEC_region *hecRegion, const unsigned int &index, const short int &nPhi, const unsigned int &minHash, const double &absEta, int &neighbourIndex, IdentifierHash *neighbList) const
int get_nextInEta(const LArHEC_region *hecRegion, const unsigned int &index, const short int &nPhi, const float &gPhi, const unsigned int &maxHash, int &neighbourIndex, IdentifierHash *neighbList, unsigned int &nBiggerCell) const
std::vector< short int > m_vecOfCellInfo
std::vector< LArHEC_region * > m_vecOfRegions
float etaGranularity() const
eta granularity
unsigned int hashMax() const
hash Id of the last cell of the region +1
unsigned int hashMin() const
hash Id of the first cell of the region
float phiGranularity() const
phi granularity
short int phiN() const
number of phi bins
float etaMin() const
starting eta
str index
Definition DeMoScan.py:362
bool absEta(const xAOD::TauJet &tau, float &out)
constexpr int nEta
Default bin number of eta for vertex map.
constexpr int nPhi
Default bin number of phi for vertex map.

◆ get_nextInEta()

int LArHEC_Base_ID::get_nextInEta ( const LArHEC_region * hecRegion,
const unsigned int & index,
const short int & nPhi,
const float & gPhi,
const unsigned int & maxHash,
int & neighbourIndex,
IdentifierHash * neighbList,
unsigned int & nBiggerCell ) const
privateinherited

Definition at line 775 of file LArHEC_Base_ID.cxx.

778{
779 int result = 1;
780 unsigned int nIndex = 0;
781 IdentifierHash nHash = 0;
782
783 if( hecRegion->isEtaMax(index)){
784 // eta == etaMax -> go to next region in eta
785 short int nNextEtaRegion = hecRegion->nextEtaRegion();
786 // no neighbour if no next region in eta
787 if( nNextEtaRegion != NOT_VALID_HEC_REGION ) {
788 // Tell clang to optimize assuming that FP exceptions can trap.
789 // Otherwise, it can vectorize the division, which can lead to
790 // spurious division-by-zero traps from unused vector lanes.
792 LArHEC_region* nextHecRegion = m_vecOfRegions[nNextEtaRegion];
793 float gPhiPlus= nextHecRegion->phiGranularity();
794 unsigned int minHashPlus = nextHecRegion->hashMin();
795 float phiMargin = 0.25*std::min(gPhi,gPhiPlus);
796 float rPhi = (index+nPhi-maxHash)*gPhi+hecRegion->phiMin();
797 int nPhiPlusFirst = int(std::floor((rPhi -nextHecRegion->phiMin())
798 /gPhiPlus+phiMargin))+minHashPlus;
799 int nPhiPlusNext = int(std::floor((rPhi+gPhi-nextHecRegion->phiMin())
800 /gPhiPlus+phiMargin))+minHashPlus;
801 if ( nPhiPlusNext == nPhiPlusFirst ) nPhiPlusNext++;
802
803 for(int i=nPhiPlusFirst; i<nPhiPlusNext; i++){
804 nIndex = i ;
805 if(nIndex != nBiggerCell) {
806 nHash = nIndex;
807 neighbList[neighbourIndex] = nHash;
808 neighbourIndex++;
809 result = 0;
810 }
811 // to avoid duplicated cells in corners
812 if(gPhi < gPhiPlus && nBiggerCell == NOT_VALID_HASH) nBiggerCell=nIndex;
813 }
814 }
815 }
816 else {
817 // stay in same region (1 neighbour)
818 nIndex = index + nPhi;
819 nHash = nIndex;
820 neighbList[neighbourIndex] = nHash;
821 neighbourIndex++;
822 result = 0;
823 }
824 return result;
825}
@ NOT_VALID_HEC_REGION
bool isEtaMax(const unsigned int &index) const
is the considered cell in the last eta bin of the region ?
short int nextEtaRegion() const
region number of the next region in eta
float phiMin() const
starting phi
#define CXXUTILS_TRAPPING_FP
Definition trapping_fp.h:24

◆ get_nextInPhi()

int LArHEC_Base_ID::get_nextInPhi ( const LArHEC_region * hecRegion,
const unsigned int & index,
const short int & nPhi,
const unsigned int & minHash,
int & neighbourIndex,
IdentifierHash * neighbList )
staticprivateinherited

Definition at line 706 of file LArHEC_Base_ID.cxx.

708{
709 int result = 1;
710 if(!hecRegion->isPhiMax(index)) {
711 unsigned int nIndex = index+1;
712 if( ((index-minHash+1)%(nPhi)) == 0 ) nIndex=index-nPhi+1;
713 IdentifierHash nHash = nIndex;
714 neighbList[neighbourIndex] = nHash;
715 neighbourIndex++;
716 result = 0;
717 }
718 return result;
719}
bool isPhiMax(const unsigned int &index) const
is the considered cell in the last phi bin of the region ?

◆ get_nextInSamp()

int LArHEC_Base_ID::get_nextInSamp ( const LArHEC_region * hecRegion,
const unsigned int & index,
const short int & nPhi,
const unsigned int & minHash,
const double & absEta,
int & neighbourIndex,
IdentifierHash * neighbList ) const
privateinherited

Definition at line 887 of file LArHEC_Base_ID.cxx.

890{
891 int result = 1;
892 // neighbours' indices
893 unsigned int nIndex=0;
894 // neighbours' hash
895 IdentifierHash nHash=0;
896
897 const std::vector<short int>& nextSampRegion=hecRegion->nextSamplingRegion();
898 int nNextSampReg = nextSampRegion.size();
899 if(nNextSampReg > 0) {
900 float gEta = hecRegion->etaGranularity();
901 float gPhi = hecRegion->phiGranularity();
902 for(int ireg=0; ireg<nNextSampReg; ireg++) {
903 LArHEC_region* nextHecRegion = m_vecOfRegions[nextSampRegion[ireg]];
904 float granEtaPlus = nextHecRegion->etaGranularity();
905 float minEtaPlus = nextHecRegion->etaMin();
906 float maxEtaPlus = nextHecRegion->etaMax();
907 float margin = 0.25*std::min(gEta,granEtaPlus);
908 if((minEtaPlus < absEta+gEta-margin) && (absEta+margin < maxEtaPlus)) {
909 // Tell clang to optimize assuming that FP exceptions can trap.
910 // Otherwise, it can vectorize the division, which can lead to
911 // spurious division-by-zero traps from unused vector lanes.
913
914 short int nPhiPlus = nextHecRegion->phiN();
915 unsigned int minHashPlus = nextHecRegion->hashMin();
916 float gPhiPlus = nextHecRegion->phiGranularity();
917 float phiMargin = 0.25*std::min(gPhi,gPhiPlus);
918 // phi 'coordinate' in initial region
919 float rPhi = ((index-minHash)%nPhi)*gPhi+hecRegion->phiMin();
920 int nPhiPlusFirst = int(std::floor((rPhi -nextHecRegion->phiMin())
921 /gPhiPlus+phiMargin));
922 int nPhiPlusNext = int(std::floor((rPhi+gPhi-nextHecRegion->phiMin())
923 /gPhiPlus+phiMargin));
924 if ( nPhiPlusNext == nPhiPlusFirst ) nPhiPlusNext++;
925
926 double fEtaPlus = (absEta-minEtaPlus) / granEtaPlus + margin ;
927 int nEtaPlus = int(fEtaPlus) ;
928 for(int i=nPhiPlusFirst; i<nPhiPlusNext; i++){
929 nIndex = minHashPlus + nEtaPlus * nPhiPlus + i;
930 if( (nIndex >= nextHecRegion->hashMin()) && (nIndex < nextHecRegion->hashMax()) ) {
931 nHash = nIndex;
932 neighbList[neighbourIndex] = nHash;
933 neighbourIndex++;
934 result = 0;
935 }
936 }
937 }
938 }
939 }
940 return result;
941}
float etaMax() const
end eta
const std::vector< short int > & nextSamplingRegion() const
region number of the next region in sampling

◆ get_prevInEta()

int LArHEC_Base_ID::get_prevInEta ( const LArHEC_region * hecRegion,
const unsigned int & index,
const short int & nPhi,
const float & gPhi,
const unsigned int & minHash,
int & neighbourIndex,
IdentifierHash * neighbList,
unsigned int & nBiggerCell ) const
privateinherited

Definition at line 721 of file LArHEC_Base_ID.cxx.

723{
724 int result = 1;
725 unsigned int nIndex = 0;
726 IdentifierHash nHash = 0;
727
728 if( hecRegion->isEtaMin(index)){
729 // eta == etaMin -> go to previous region in eta
730 short int nPrevEtaRegion = hecRegion->prevEtaRegion();
731 // no neighbour if no previous region in eta
732 if( nPrevEtaRegion != NOT_VALID_HEC_REGION ) {
733 // Tell clang to optimize assuming that FP exceptions can trap.
734 // Otherwise, it can vectorize the division, which can lead to
735 // spurious division-by-zero traps from unused vector lanes.
737 LArHEC_region* prevHecRegion = m_vecOfRegions[nPrevEtaRegion];
738 short int nPhiMinus = prevHecRegion->phiN();
739 float gPhiMinus= prevHecRegion->phiGranularity();
740 unsigned int maxHashMinus = prevHecRegion->hashMax();
741 float phiMargin = 0.25*std::min(gPhi,gPhiMinus);
742 float rPhi = (index-minHash)*gPhi+hecRegion->phiMin();
743 int nPhiMinusFirst = int(std::floor((rPhi -prevHecRegion->phiMin())
744 /gPhiMinus+phiMargin))
745 +maxHashMinus-nPhiMinus;
746 int nPhiMinusNext = int(std::floor((rPhi+gPhi-prevHecRegion->phiMin())
747 /gPhiMinus+phiMargin))
748 +maxHashMinus-nPhiMinus;
749 if ( nPhiMinusNext == nPhiMinusFirst ) nPhiMinusNext++;
750
751 for(int i=nPhiMinusFirst; i<nPhiMinusNext; i++){
752 nIndex = i ;
753 if(nIndex != nBiggerCell) {
754 nHash = nIndex;
755 neighbList[neighbourIndex] = nHash;
756 neighbourIndex++;
757 result = 0;
758 }
759 // to avoid duplicated cells in corners
760 if(gPhi < gPhiMinus && nBiggerCell == NOT_VALID_HASH) nBiggerCell=nIndex;
761 }
762 }
763 }
764 else {
765 // stay in same region (1 neighbour)
766 nIndex = index - nPhi;
767 nHash = nIndex;
768 neighbList[neighbourIndex] = nHash;
769 neighbourIndex++;
770 result = 0;
771 }
772 return result;
773}
short int prevEtaRegion() const
region number of the previous region in eta
bool isEtaMin(const unsigned int &index) const
is the considered cell in the first eta bin of the region ?

◆ get_prevInPhi()

int LArHEC_Base_ID::get_prevInPhi ( const LArHEC_region * hecRegion,
const unsigned int & index,
const short int & nPhi,
const unsigned int & minHash,
int & neighbourIndex,
IdentifierHash * neighbList )
staticprivateinherited

Definition at line 691 of file LArHEC_Base_ID.cxx.

693{
694 int result = 1;
695 if(!hecRegion->isPhiMin(index)) {
696 unsigned int nIndex = index-1;
697 if( ((index-minHash)%(nPhi)) == 0 ) nIndex=index+nPhi-1;
698 IdentifierHash nHash = nIndex;
699 neighbList[neighbourIndex] = nHash;
700 neighbourIndex++;
701 result = 0;
702 }
703 return result;
704}
bool isPhiMin(const unsigned int &index) const
is the considered cell in the first phi bin of the region ?

◆ get_prevInSamp()

int LArHEC_Base_ID::get_prevInSamp ( const LArHEC_region * hecRegion,
const unsigned int & index,
const short int & nPhi,
const unsigned int & minHash,
const double & absEta,
int & neighbourIndex,
IdentifierHash * neighbList ) const
privateinherited

Definition at line 827 of file LArHEC_Base_ID.cxx.

830{
831 int result = 1;
832 // neighbours' indices
833 unsigned int nIndex=0;
834 // neighbours' hash
835 IdentifierHash nHash=0;
836
837 // previous region in sampling
838 const std::vector<short int>& prevSampRegion=hecRegion->prevSamplingRegion();
839 int nPrevSampReg = prevSampRegion.size();
840 if(nPrevSampReg > 0) {
841 float gEta = hecRegion->etaGranularity();
842 float gPhi = hecRegion->phiGranularity();
843 for(int ireg=0; ireg<nPrevSampReg; ireg++) {
844 LArHEC_region* prevHecRegion = m_vecOfRegions[prevSampRegion[ireg]];
845 float minEtaMinus = prevHecRegion->etaMin();
846 float maxEtaMinus = prevHecRegion->etaMax();
847 // eta granularity of previous region
848 float granEtaMinus = prevHecRegion->etaGranularity();
849 float margin = 0.25*std::min(gEta,granEtaMinus);
850 if((minEtaMinus < absEta+gEta-margin) && (absEta+margin < maxEtaMinus)) {
851 // Tell clang to optimize assuming that FP exceptions can trap.
852 // Otherwise, it can vectorize the division, which can lead to
853 // spurious division-by-zero traps from unused vector lanes.
855
856 // max phi of previous region in sampling
857 short int nPhiMinus = prevHecRegion->phiN();
858 // first hash of previous region in sampling
859 unsigned int minHashMinus = prevHecRegion->hashMin();
860 float gPhiMinus = prevHecRegion->phiGranularity();
861 float phiMargin = 0.25*std::min(gPhi,gPhiMinus);
862 // phi 'coordinate' in initial region
863 float rPhi = ((index-minHash)%nPhi)*gPhi+hecRegion->phiMin();
864 int nPhiMinusFirst = int(std::floor((rPhi -prevHecRegion->phiMin())
865 /gPhiMinus+phiMargin));
866 int nPhiMinusNext = int(std::floor((rPhi+gPhi-prevHecRegion->phiMin())
867 /gPhiMinus+phiMargin));
868 if ( nPhiMinusNext == nPhiMinusFirst ) nPhiMinusNext++;
869 // eta coordinate in initial region
870 double fEtaMinus = (absEta-minEtaMinus) / granEtaMinus + margin;
871 short int nEtaMinus = int(fEtaMinus) ;
872 for(int i=nPhiMinusFirst; i<nPhiMinusNext; i++){
873 nIndex = minHashMinus + nEtaMinus * nPhiMinus + i;
874 if( (nIndex >= prevHecRegion->hashMin()) && (nIndex < prevHecRegion->hashMax()) ) {
875 nHash = nIndex;
876 neighbList[neighbourIndex] = nHash;
877 neighbourIndex++;
878 result = 0;
879 }
880 }
881 } // end eta condition
882 } // end loop on ireg
883 } // end if(nPrevSampReg>0)
884 return result;
885}
const std::vector< short int > & prevSamplingRegion() const
region number of the prev region in sampling

◆ group()

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

Group name for this helper.

Definition at line 39 of file AtlasDetectorID.cxx.

40{
41 return m_group;
42}
std::string m_group
Group name.

◆ hec_begin()

id_iterator LArHEC_Base_ID::hec_begin ( ) const
inherited

begin iterator over full set of Hec Identifiers for channels

◆ hec_end()

id_iterator LArHEC_Base_ID::hec_end ( ) const
inherited

end iterator over full set of Hec Identifiers for channels

◆ hec_range()

id_range LArHEC_Base_ID::hec_range ( ) const
inherited

Range over full set of HEC Identifiers.

◆ helper()

virtual HelperType AtlasDetectorID::helper ( ) const
inlinevirtualinherited

Type of helper, defaulted to 'Unimplemented'.

Reimplemented in PixelID, PLR_ID, and SCT_ID.

Definition at line 92 of file AtlasDetectorID.h.

◆ hgtd()

Identifier AtlasDetectorID::hgtd ( void ) const
inherited

Definition at line 94 of file AtlasDetectorID.cxx.

94 {
96}
IdDictFieldImplementation m_indet_part_impl
int indet_field_value() const
Provide efficient access to individual field values, for subclass idhelpers.

◆ hgtd_exp()

ExpandedIdentifier AtlasDetectorID::hgtd_exp ( void ) const
protectedinherited

Definition at line 1018 of file AtlasDetectorID.cxx.

1019{
1020 ExpandedIdentifier result(indet_exp());
1021 return (result << m_HGTD_ID);
1022}
ExpandedIdentifier indet_exp(void) const
Detector systems:

◆ hgtd_field_value()

int AtlasDetectorID::hgtd_field_value ( ) const
inlineprotectedinherited

Definition at line 478 of file AtlasDetectorID.h.

478{return (m_HGTD_ID);}

◆ indet()

Identifier AtlasDetectorID::indet ( void ) const
inherited

Detector systems:

Definition at line 62 of file AtlasDetectorID.cxx.

62 {
63 return m_det_impl.new_pack(indet_field_value());
64}

◆ indet_exp()

ExpandedIdentifier AtlasDetectorID::indet_exp ( void ) const
protectedinherited

Detector systems:

Definition at line 955 of file AtlasDetectorID.cxx.

956{
957 ExpandedIdentifier result;
958 return (result << m_INDET_ID);
959}

◆ indet_field_value()

int AtlasDetectorID::indet_field_value ( ) const
inlineprotectedinherited

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

Definition at line 454 of file AtlasDetectorID.h.

454{return (m_INDET_ID);}

◆ init_hashes()

int LArHEC_Base_ID::init_hashes ( )
privateinherited

Definition at line 520 of file LArHEC_Base_ID.cxx.

521{
522 if (channels().init (*this, "channels",
525 return 1;
526 if (regions().init (*this, "regions",
529 return 1;
530
531 return (0);
532}
static const std::vector< std::string > regions
const HashGroup & channels() const
Return the HashGroup for channels (cells).
size_type m_REGION_INDEX
Identifier region_id(const ExpandedIdentifier &exp_id) const
region identifier for a channel from ExpandedIdentifier
MultiRange m_full_region_range

◆ init_neighbors()

int LArHEC_Base_ID::init_neighbors ( )
privateinherited

Definition at line 944 of file LArHEC_Base_ID.cxx.

945{
946 const std::vector<const IdDictRegion*>& vecOfDictRegions = dictRegions();
947
948 ATH_MSG_DEBUG("init_neighbors");
949
950 //
951 // ..... loop on HEC regions -> store vector of LArHEC_region*
952 //
953 short int reg=0;
954 std::vector<Identifier>::const_iterator debut=reg_begin() ;
955 std::vector<Identifier>::const_iterator fin =reg_end() ;
956
957 for (; debut != fin; ++debut)
958 {
959 const Identifier& regId = (*debut);
960 bool fullSym = (dictionaryVersion() == "fullAtlas" );
961 //
962 // ..... translate regId to chanId and get hash
963 //
964 Identifier id ;
965 unsigned int index0 = NOT_VALID_HASH;
966 int etaMin = eta_min(regId);
967 int phiMin = phi_min(regId);
968 if(etaMin >= 0 && phiMin >= 0)
969 {
970 try{
971 id = channel_id (regId, etaMin, phiMin );
972 }
973 catch(LArID_Exception & except){
974 ATH_MSG_ERROR(" LArId exception " << (std::string)except);
975 }
976 IdentifierHash hashId = channel_hash(id) ;
977 index0=hashId;
978 }
979 else
980 {
981 ATH_MSG_WARNING(" could not find non negative etaMin and phiMin for region " << show_to_string(regId));
982 index0 = 0;
983 }
984
985
986 short int deltaEta = eta_max(regId) - eta_min(regId) + 1 ;
987 short int nPhi = phi_max(regId) - phi_min(regId) + 1 ;
988 // starting eta
989 float eta0 = this->eta0(reg);
990 // eta granularity
991 float deta = this->etaGranularity(reg);
992 // starting phi
993 float phi0 = this->phi0(reg);
994 // phi granularity
995 float dphi = this->phiGranularity(reg);
996
997 // full range of regions
998 unsigned int ireg0=0;
999 unsigned int ireg1=region_hash_max();
1000 // if 2 symetric sides, in which side is the current reg.
1001 if(twoSymSides()) {
1002 if(reg < (short int)region_hash_max()/2) {
1003 ireg0=0;
1004 ireg1=region_hash_max()/2;
1005 } else {
1006 ireg0=region_hash_max()/2;
1007 ireg1=region_hash_max();
1008 }
1009 }
1010
1011 //
1012 // .... compute prev/next regions in eta
1013 //
1014 short int regForPrevEta=NOT_VALID_HEC_REGION;
1015 const IdDictRegion* prevEtaDicReg = vecOfDictRegions[reg]->prev_abs_eta();
1016 short int regForNextEta=NOT_VALID_HEC_REGION;
1017 const IdDictRegion* nextEtaDicReg = vecOfDictRegions[reg]->next_abs_eta();
1018 for(unsigned int ireg=ireg0;ireg<ireg1;ireg++){
1019 if(vecOfDictRegions[ireg] == prevEtaDicReg) regForPrevEta = ireg;
1020 if(vecOfDictRegions[ireg] == nextEtaDicReg) regForNextEta = ireg;
1021 }
1022
1023 //
1024 // .... compute prev/next regions in sampling
1025 //
1026 //
1027 std::vector<short int> regForPrevSamp;
1028 for (const IdDictRegion* dictreg : vecOfDictRegions[reg]->prev_samp()) {
1029 for(unsigned int ireg=ireg0;ireg<ireg1;ireg++){
1030 if(vecOfDictRegions[ireg] == dictreg) regForPrevSamp.push_back(ireg);
1031 }
1032 }
1033
1034 std::vector<short int> regForNextSamp;
1035 for (const IdDictRegion* dictreg : vecOfDictRegions[reg]->next_samp()) {
1036 for(unsigned int ireg=ireg0;ireg<ireg1;ireg++){
1037 if(vecOfDictRegions[ireg] == dictreg) regForNextSamp.push_back(ireg);
1038 }
1039 }
1040
1041 //
1042 // ....now ready to build region object
1043 //
1044
1045 LArHEC_region * hecRegion = new LArHEC_region(index0,deltaEta,nPhi,eta0,deta,phi0,dphi,fullSym,
1046 regForPrevEta,regForNextEta,
1047 regForPrevSamp,regForNextSamp);
1048 // save in a vector for further use in get_neighbours method
1049 m_vecOfRegions.push_back(hecRegion);
1050 reg++;
1051 } // end of loop on regions
1052
1053 //
1054 // ..... loop on channels
1055 //
1056 reg=0;
1057 debut = hec_begin();
1058 fin = hec_end();
1059 if( debut != fin ){
1060 Identifier lastRegId=region_id(*debut);
1061 for (; debut != fin; ++debut) {
1062 const Identifier& chanId = (*debut);
1063 const Identifier& regId = region_id(chanId);
1064 if(regId != lastRegId) reg++;
1065
1066 if(m_do_checks) {
1067 // for cross check only
1068 IdentifierHash hashReg = region_hash(regId);
1069 if ((short int)hashReg != reg) {
1070 ATH_MSG_ERROR(" init_neighbors: problem reg, hashReg = " << reg << " " << hashReg);
1071 }
1072 }
1073
1074 // save region of the cell in a vector for further use in get_neighbours method
1075 m_vecOfCellInfo.push_back(reg);
1076
1077 lastRegId=regId;
1078 }
1079 }
1080 return (0);
1081}
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
virtual std::string dictionaryVersion(void) const override
float phi0(const IdentifierHash regHash) const
Return the minimum phi of region, or NOT_VALID.
IdentifierHash region_hash(Identifier regionId) const
Convert a connected region Identifier to a hash code.
float eta0(const IdentifierHash regHash) const
Return the minimum eta of region, or NOT_VALID.
const std::vector< const IdDictRegion * > & dictRegions() const
Return the vector of IdDictRegion, accessed via region hash.
float etaGranularity(const IdentifierHash regHash) const
Return the eta granularity of a region, or NOT_VALID.
size_type region_hash_max() const
One more than the largest region hash code.
float phiGranularity(const IdentifierHash regHash) const
Return the phi granularity of a region, or NOT_VALID.
id_iterator hec_end() const
end iterator over full set of Hec Identifiers for channels
int eta_min(const Identifier regId) const
min value of eta index (-999 == failure)
id_iterator reg_begin() const
begin iterator over set of region Identifiers
bool twoSymSides() const
True if the + and - sides of the calorimeter are identical (true layout).
int phi_max(const Identifier regId) const
max value of phi index (-999 == failure)
id_iterator hec_begin() const
begin iterator over full set of Hec Identifiers for channels
int phi_min(const Identifier regId) const
min value of phi index (-999 == failure)
int eta_max(const Identifier regId) const
max value of eta index (-999 == failure)
IdentifierHash channel_hash(Identifier channelId) const
create hash id from channel id
id_iterator reg_end() const
end iterator over set of region Identifiers
double deltaEta(const I4Momentum &p1, const I4Momentum &p2)
Computes efficiently .
Definition P4Helpers.h:66

◆ initialize_base_from_dictionary()

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

initialization from the identifier dictionary

Definition at line 166 of file LArHEC_Base_ID.cxx.

169{
170 ATH_MSG_DEBUG("initialize_base_from_dictionary");
171
172 // Check whether this helper should be reinitialized
173 if (!reinitialize(dict_mgr)) {
174 ATH_MSG_DEBUG("Request to reinitialize not satisfied - tags have not changed");
175 return (0);
176 }
177 else {
178 ATH_MSG_DEBUG("(Re)initialize");
179 }
180
181 // init base object
182 if(CaloIDHelper::initialize_base_from_dictionary(dict_mgr,
183 "LArCalorimeter"))
184 return (1);
185
186 // initialize dictionary version
187 AtlasDetectorID::setDictVersion(dict_mgr, "LArCalorimeter");
188
189 // Initialize the field indices
190 if(initLevelsFromDict(group_name)) {
191 ATH_MSG_WARNING(" initialize_base_from_dict - cannot initialize HEC part of LArCalorimeter dictionary ");
192 // return (1); // to allow TB dictionary (no HEC in H8)
193 }
194 else {
195 // Find value for the field LAr Calorimeter
196 const IdDictDictionary* atlasDict = dict_mgr.find_dictionary ("ATLAS");
197 int larField = -1;
198 if (atlasDict->get_label_value("subdet", "LArCalorimeter", larField)) {
199 ATH_MSG_ERROR("Could not get value for label 'LArCalorimeter' of field 'subdet' in dictionary " << atlasDict->name());
200 return (1);
201 }
202
203 // Find value for the field LArHEC
204 int larHecField = -1;
205 if (dict()->get_label_value("part", "LArHEC", larHecField)) {
206 ATH_MSG_ERROR("Could not get value for label 'LArHEC' of field 'part' in dictionary " << atlasDict->name());
207 return (1);
208 }
209
210 // Set up id for region and range prefix
211 ExpandedIdentifier exp_region_id;
212 exp_region_id.add(larField);
213 exp_region_id.add(larHecField);
214 Range prefix;
215 m_full_channel_range = dict()->build_multirange(exp_region_id, group_name, prefix);
216 m_full_region_range = dict()->build_multirange(exp_region_id, group_name, prefix, "region");
217
218 ATH_MSG_DEBUG("initialize_from_dict : ");
219 ATH_MSG_DEBUG(" channel range -> " << (std::string)m_full_channel_range);
220 ATH_MSG_DEBUG(" region range -> " << (std::string)m_full_region_range);
221
222 // initilize m_two_sym_sides
223 m_two_sym_sides = ( dictionaryVersion() == "fullAtlas" );
224
225 // Setup the hash tables
226 if(init_hashes()) return (1);
227
228 // initialize dictionary regions
229 if (fill_vec_of_dict_regions (group_name)) return 1;
230
232 for (unsigned int i = 0; i < region_hash_max(); ++i) {
233 Identifier regId = region_id(i);
234 m_vecOfPhiMin[i] = phi_min_init(regId);
235 }
236
237 // Setup for hash calculation
238 // The regions have uniform eta/phi granularity.
239 // The lookup table only needs to contain the
240 // hash offset for each region, the first eta index
241 // and the number of phi cells.
242
243 // The implementation requires:
244
245 // 1) a lookup table for each region containing hash offset,
246 // etamin and nphi
247 // 2) a decoder to access the "index" corresponding to the
248 // pn/samp/reg fields. These fields use 4 bits, so the
249 // vector has a length of 16 for 16 regions.
250
251 // Create decoder for fields pn to region
253 m_pn_impl.bits() +
254 m_sampling_impl.bits() +
255 m_region_impl.bits();
256 IdDictFieldImplementation::size_type bits_offset = m_pn_impl.bits_offset();
257 m_pn_reg_impl.set_bits(bits, bits_offset);
258
259 // std::cout << "pn_reg " << m_pn_reg_impl.decode_index() << " "
260 // << (std::string)m_pn_reg_impl.ored_field() << " "
261 // << std::hex << m_pn_reg_impl.mask() << " "
262 // << m_pn_reg_impl.zeroing_mask() << " "
263 // << std::dec << m_pn_reg_impl.shift()
264 // << " " << m_pn_reg_impl.bits() << " " <<m_pn_reg_impl.bits_offset()
265 // << std::endl;
266
267
268 // Set up vector as lookup table for hash calculation.
269 m_hash_calcs.resize(16);
270
271 for (unsigned int i = 0; i < region_hash_max(); ++i) {
272
273 Identifier regId = region_id(i) ;
274 HashCalc hc;
275
276 int etamin = eta_min(regId);
277 if(etamin < 0) {
278 etamin = 0;
279 ATH_MSG_WARNING("setting etamin to 0 because actual value not found for regId " << show_to_string(regId));
280 }
281 int phimin = phi_min(regId);
282 int phimax = phi_max(regId);
283 if(phimin < 0 || phimax < 0) {
284 phimin = phimax = 0;
285 ATH_MSG_WARNING("setting phimin/phimax to 0 because actual value not found for regId " << show_to_string(regId));
286 }
287 Identifier min = channel_id ( regId, etamin, phimin);
288 IdentifierHash min_hash = channel_hash_binary_search(min);
289 hc.m_hash = min_hash;
290 hc.m_etamin = etamin;
291 hc.m_phimin = phimin;
292 hc.m_nphi = phimax-phimin+1 ;
293 m_hash_calcs[m_pn_reg_impl.unpack(min)] = hc;
294
295 if (m_pn_reg_impl.unpack(min) > 15) {
296 ATH_MSG_ERROR("min > 15 " << i << m_pn_reg_impl.unpack(min) << show_to_string(min));
297 }
298 }
299
300 // Check hash calculation
301 for (unsigned int i = 0; i < channel_hash_max(); ++i) {
302 Identifier id = channel_id(i);
303 if (channel_hash(id) != i) {
304 ATH_MSG_ERROR("channel ranges, id, hash, i = " << show_to_string(id) << channel_hash(id) << i);
305 }
306 }
307 }
308
309 // Setup hash tables for finding neighbors
310 if(m_do_neighbours) {
311 if(init_neighbors()) return (1);
312 }
313
314 return 0;
315}
#define min(a, b)
Definition cfImp.cxx:40
bool reinitialize(const IdDictMgr &dict_mgr)
Test whether an idhelper should be reinitialized based on the change of tags.
virtual void setDictVersion(const IdDictMgr &dict_mgr, const std::string &name) override
int fill_vec_of_dict_regions(const std::string &group_name="")
Do basic initialization of the helper.
void add(element_type value)
Append a value into a new field.
int get_label_value(const std::string &field, const std::string &label, int &value) const
const std::string & name() const
Dictionary name.
const IdDictDictionary * find_dictionary(const std::string &name) const
Access dictionary by name.
small class holding the starting hash value, the min eta and the number of phi bins of each region
IdDictFieldImplementation m_region_impl
int initLevelsFromDict(const std::string &group_name)
int phi_min_init(const Identifier regId) const
IdDictFieldImplementation m_sampling_impl
std::vector< HashCalc > m_hash_calcs
std::vector< short int > m_vecOfPhiMin
IdDictFieldImplementation m_pn_impl
IdDictFieldImplementation m_pn_reg_impl
IdentifierHash channel_hash_binary_search(Identifier channelId) const
create hash id from channel id – method NOT optimised, please use channel_hash() above

◆ initialize_from_dictionary()

int LArHEC_ID::initialize_from_dictionary ( const IdDictMgr & dict_mgr)
virtual

initialization from the identifier dictionary

Reimplemented from AtlasDetectorID.

Definition at line 23 of file LArHEC_ID.cxx.

25{
26 ATH_MSG_DEBUG("initialize_from_dictionary");
27
28 // Check whether this helper should be reinitialized
29 if (!reinitialize(dict_mgr)) {
30 ATH_MSG_DEBUG("Request to reinitialize not satisfied - tags have not changed");
31 return (0);
32 }
33 else {
34 ATH_MSG_DEBUG("(Re)initialize");
35 }
36
37 // init base object
39 return (1);
40
41
42 return 0;
43}
const std::string & group() const
Group name for this helper.
int initialize_base_from_dictionary(const IdDictMgr &dict_mgr, const std::string &group_name)
initialization from the identifier dictionary

◆ initLevelsFromDict()

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

Definition at line 396 of file LArHEC_Base_ID.cxx.

397{
398 if(!dict()) {
399 ATH_MSG_ERROR("initLevelsFromDict - dictionary NOT initialized");
400 return (1);
401 }
402
403 // Find out which identifier field corresponds to each level.
404
405 m_LAR_INDEX = 999 ;
406 m_HEC_INDEX = 999 ;
407 m_POSNEG_INDEX = 999 ;
408 m_SAMPLING_INDEX = 999 ;
409 m_REGION_INDEX = 999 ;
410 m_ETA_INDEX = 999 ;
411 m_PHI_INDEX = 999 ;
412 m_SLAR_INDEX = 999 ;
413
414 // Save index to a HEC region for unpacking
415 ExpandedIdentifier expId(lar_hec_exp());
416 if (dict()->find_region(expId,m_hec_region_index)){
417 ATH_MSG_ERROR("initLevelsFromDict - unable to find hec region index: id, reg " << expId << m_hec_region_index);
418 return (1);
419 }
420
421 const IdDictField* field = dict()->find_field("subdet") ;
422 if (field) {
423 m_LAR_INDEX = field->index();
424 }
425 else {
426 ATH_MSG_ERROR("initLevelsFromDict - unable to find 'subdet' field");
427 return (1);
428 }
429
430 field = dict()->find_field("part") ;
431 if (field) {
432 m_HEC_INDEX = field->index();
433 }
434 else {
435 ATH_MSG_ERROR("initLevelsFromDict - unable to find 'part' field");
436 return (1);
437 }
438
439 field = dict()->find_field("barrel-endcap") ;
440 if (field) {
441 m_POSNEG_INDEX = field->index();
442 }
443 else {
444 ATH_MSG_ERROR("initLevelsFromDict - unable to find 'barrel-endcap' field");
445 return (1);
446 }
447
448 field = dict()->find_field("sampling") ;
449 if (field) {
450 m_SAMPLING_INDEX = field->index();
451 }
452 else {
453 ATH_MSG_ERROR("initLevelsFromDict - unable to find 'sampling' field");
454 return (1);
455 }
456
457 field = dict()->find_field("region") ;
458 if (field) {
459 m_REGION_INDEX = field->index();
460 }
461 else {
462 ATH_MSG_ERROR("initLevelsFromDict - unable to find 'region' field");
463 return (1);
464 }
465
466 field = dict()->find_field("eta") ;
467 if (field) {
468 m_ETA_INDEX = field->index();
469 }
470 else {
471 ATH_MSG_ERROR("initLevelsFromDict - unable to find 'eta' field");
472 return (1);
473 }
474
475 field = dict()->find_field("phi") ;
476 if (field) {
477 m_PHI_INDEX = field->index();
478 }
479 else {
480 ATH_MSG_ERROR("initLevelsFromDict - unable to find 'phi' field");
481 return (1);
482 }
483
484 field = dict()->find_field("is-slar-hec") ;
485 if (field) {
486 m_SLAR_INDEX = field->index();
487 }
488 else {
489 ATH_MSG_ERROR("initLevelsFromDict - unable to find 'is-slar-hec' field");
490 return (1);
491 }
492
493
494 // Set the field implementations
495
496 const IdDictRegion& region = dict()->region(m_hec_region_index);
497
498 m_lar_impl = region.implementation(m_LAR_INDEX);
499 m_hec_impl = region.implementation(m_HEC_INDEX);
500 m_pn_impl = region.implementation(m_POSNEG_INDEX);
501 m_sampling_impl = region.implementation(m_SAMPLING_INDEX);
502 m_region_impl = region.implementation(m_REGION_INDEX);
503 m_eta_impl = region.implementation(m_ETA_INDEX);
504 m_phi_impl = region.implementation(m_PHI_INDEX);
505 m_slar_impl = region.implementation(m_SLAR_INDEX);
506
507 ATH_MSG_DEBUG("decode index and bit fields for each level: ");
508 ATH_MSG_DEBUG("lar " << m_lar_impl);
509 ATH_MSG_DEBUG("hec " << m_hec_impl);
510 ATH_MSG_DEBUG("pn " << m_pn_impl);
511 ATH_MSG_DEBUG("samp " << m_sampling_impl);
512 ATH_MSG_DEBUG("reg " << m_region_impl);
513 ATH_MSG_DEBUG("eta " << m_eta_impl);
514 ATH_MSG_DEBUG("phi " << m_phi_impl);
515 ATH_MSG_DEBUG("is-slar " << m_slar_impl);
516
517 return(0) ;
518}
IdDictFieldImplementation m_phi_impl
size_type m_SAMPLING_INDEX
size_type m_LAR_INDEX
IdDictFieldImplementation m_hec_impl
IdDictFieldImplementation m_slar_impl
size_type m_hec_region_index
size_type m_POSNEG_INDEX
size_type m_HEC_INDEX
IdDictFieldImplementation m_lar_impl
IdDictFieldImplementation m_eta_impl

◆ 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 // If user did not set an explicit level, set a default
43 if (m_lvl == MSG::NIL) {
44 m_lvl = m_imsg ?
45 static_cast<MSG::Level>( m_imsg.load()->outputLevel(m_nm) ) :
46 MSG::INFO;
47 }
48}
std::string m_nm
Message source name.
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
std::atomic< MSG::Level > m_lvl
Current logging level.
IMessageSvc * getMessageSvc(bool quiet=false)
int outputLevel(const IMessageSvc *ims, const std::string &source)

◆ is_alfa()

bool AtlasDetectorID::is_alfa ( Identifier id) const
inlineinherited

Definition at line 784 of file AtlasDetectorID.h.

785{
786 bool result = false;
787 if(is_forward(id)) {
788 result = (std::abs(m_lar_part_impl.unpack(id)) == m_ALFA_ID);
789 }
790 return result;
791}
IdDictFieldImplementation m_lar_part_impl

◆ is_bcm()

bool AtlasDetectorID::is_bcm ( Identifier id) const
inlineinherited

Definition at line 794 of file AtlasDetectorID.h.

795{
796 bool result = false;
797 if(is_forward(id)) {
798 result = (std::abs(m_lar_part_impl.unpack(id)) == m_BCM_ID);
799 }
800 return result;
801}

◆ is_calo() [1/2]

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

Definition at line 242 of file AtlasDetectorID.cxx.

242 {
243 return id.fields() > 0 && id[0] == m_CALO_ID;
244}

◆ is_calo() [2/2]

bool AtlasDetectorID::is_calo ( Identifier id) const
inlineinherited

Definition at line 550 of file AtlasDetectorID.h.

551{
552 return (m_det_impl.unpack(id) == m_CALO_ID);
553}

◆ is_csc() [1/2]

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

Definition at line 284 of file AtlasDetectorID.cxx.

284 {
285 return id.fields() > 4 && id[0] == m_MUON_ID && id[4] == m_CSC_ID;
286}

◆ is_csc() [2/2]

bool AtlasDetectorID::is_csc ( Identifier id) const
inlineinherited

Definition at line 734 of file AtlasDetectorID.h.

735{
736 bool result = false;
737 if (!is_muon(id)) return false;
738 unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
739 unsigned int techBit = m_muon_tech_bits[stationNameIndex];
740 result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasCSC));
741 return result;
742}
std::vector< unsigned int > m_muon_tech_bits
IdDictFieldImplementation m_muon_station_name_impl

◆ is_forward()

bool AtlasDetectorID::is_forward ( Identifier id) const
inlineinherited

Definition at line 778 of file AtlasDetectorID.h.

779{
780 return (m_det_impl.unpack(id) == m_FWD_ID);
781}

◆ is_hgtd() [1/2]

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

Definition at line 255 of file AtlasDetectorID.cxx.

255 {
256 return is_indet(id) && id.fields() > 1 && id[1] == m_HGTD_ID;
257}

◆ is_hgtd() [2/2]

bool AtlasDetectorID::is_hgtd ( Identifier id) const
inlineinherited

Definition at line 637 of file AtlasDetectorID.h.

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

◆ is_indet() [1/2]

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

Definition at line 230 of file AtlasDetectorID.cxx.

230 {
231 return id.fields() > 0 && id[0] == m_INDET_ID;
232}

◆ is_indet() [2/2]

bool AtlasDetectorID::is_indet ( Identifier id) const
inlineinherited

Definition at line 526 of file AtlasDetectorID.h.

527{
528 return (m_det_impl.unpack(id) == m_INDET_ID);
529}

◆ is_lar() [1/2]

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

Definition at line 233 of file AtlasDetectorID.cxx.

233 {
234 return id.fields() > 0 && id[0] == m_LAR_ID;
235}

◆ is_lar() [2/2]

bool AtlasDetectorID::is_lar ( Identifier id) const
inlineinherited

Definition at line 532 of file AtlasDetectorID.h.

533{
534 return (m_det_impl.unpack(id) == m_LAR_ID);
535}

◆ is_lar_dm()

bool AtlasDetectorID::is_lar_dm ( Identifier id) const
inlineinherited

LAr/Tile dead material:

Definition at line 579 of file AtlasDetectorID.h.

580{
581 bool result = false;
582 if (is_calo(id)) {
583 int temp = m_calo_side_impl.unpack(id);
584 result = (m_lar_dm_field.match(temp));
585 }
586 return result;
587}
Range::field m_lar_dm_field
IdDictFieldImplementation m_calo_side_impl
bool is_calo(Identifier id) const

◆ is_lar_em() [1/2]

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

Definition at line 265 of file AtlasDetectorID.cxx.

265 {
266 return is_lar(id) && id.fields() > 1 && std::abs(id[1]) == m_LAR_EM_ID;
267}

◆ is_lar_em() [2/2]

bool AtlasDetectorID::is_lar_em ( Identifier id) const
inlineinherited

Definition at line 661 of file AtlasDetectorID.h.

662{
663 bool result = false;
664 if(is_lar(id)) {
665 result = (std::abs(m_lar_part_impl.unpack(id)) == m_LAR_EM_ID);
666 }
667 return result;
668}

◆ is_lar_fcal() [1/2]

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

Definition at line 272 of file AtlasDetectorID.cxx.

272 {
273 return is_lar(id) && id.fields() > 1 && std::abs(id[1]) == m_LAR_FCAL_ID;
274}

◆ is_lar_fcal() [2/2]

bool AtlasDetectorID::is_lar_fcal ( Identifier id) const
inlineinherited

Definition at line 682 of file AtlasDetectorID.h.

683{
684 bool result = false;
685 if(is_lar(id)) {
686 result = (std::abs(m_lar_part_impl.unpack(id)) == m_LAR_FCAL_ID);
687 }
688 return result;
689}

◆ is_lar_hec() [1/2]

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

Definition at line 268 of file AtlasDetectorID.cxx.

268 {
269 return is_lar(id) && id.fields() > 1 && std::abs(id[1]) == m_LAR_HEC_ID;
270}

◆ is_lar_hec() [2/2]

bool AtlasDetectorID::is_lar_hec ( Identifier id) const
inlineinherited

Definition at line 672 of file AtlasDetectorID.h.

673{
674 bool result = false;
675 if(is_lar(id)) {
676 result = (std::abs(m_lar_part_impl.unpack(id)) == m_LAR_HEC_ID);
677 }
678 return result;
679}

◆ is_lar_minifcal() [1/2]

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

Definition at line 276 of file AtlasDetectorID.cxx.

276 {
277 return is_lar_fcal(id) && id.fields() > 3 &&std::abs(id[3]) == 0;
278}
bool is_lar_fcal(Identifier id) const

◆ is_lar_minifcal() [2/2]

bool AtlasDetectorID::is_lar_minifcal ( Identifier id) const
inlineinherited

Definition at line 692 of file AtlasDetectorID.h.

693{
694 bool result = false;
695 if(is_lar_fcal(id)) {
696 result = (m_lar_fcal_module_impl.unpack(id) == 0);
697 }
698 return result;
699}
IdDictFieldImplementation m_lar_fcal_module_impl

◆ is_lucid()

bool AtlasDetectorID::is_lucid ( Identifier id) const
inlineinherited

Definition at line 804 of file AtlasDetectorID.h.

805{
806 bool result = false;
807 if(is_forward(id)) {
808 result = (std::abs(m_lar_part_impl.unpack(id)) == m_LUCID_ID);
809 }
810 return result;
811}

◆ is_lumi() [1/2]

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

Definition at line 258 of file AtlasDetectorID.cxx.

258 {
259 return is_indet(id) && id.fields() > 1 && id[1] == m_LUMI_ID;
260}

◆ is_lumi() [2/2]

bool AtlasDetectorID::is_lumi ( Identifier id) const
inlineinherited

Definition at line 649 of file AtlasDetectorID.h.

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

◆ is_lvl1_online()

bool AtlasDetectorID::is_lvl1_online ( Identifier id) const
inlineinherited

Definition at line 567 of file AtlasDetectorID.h.

568{
569 bool result = false;
570 if (is_calo(id)) {
571 int temp = m_calo_side_impl.unpack(id);
572 result = (m_lvl1_onl_field.match(temp));
573 }
574 return result;
575}
Range::field m_lvl1_onl_field

◆ is_lvl1_trig_towers()

bool AtlasDetectorID::is_lvl1_trig_towers ( Identifier id) const
inlineinherited

Definition at line 556 of file AtlasDetectorID.h.

557{
558 bool result = false;
559 if (is_calo(id)) {
560 int temp = m_calo_side_impl.unpack(id);
561 result = (m_lvl1_field.match(temp));
562 }
563 return result;
564}
Range::field m_lvl1_field

◆ is_mdt() [1/2]

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

Definition at line 280 of file AtlasDetectorID.cxx.

280 {
281 return id.fields() > 4 && id[0] == m_MUON_ID && id[4] == m_MDT_ID;
282}

◆ is_mdt() [2/2]

bool AtlasDetectorID::is_mdt ( Identifier id) const
inlineinherited

Definition at line 702 of file AtlasDetectorID.h.

703{
704 bool result = false;
705 if (!is_muon(id)) return false;
706 unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
707 unsigned int techBit = m_muon_tech_bits[stationNameIndex];
708 // MDT and RPC can only be destinguished by the additional bit in the ID
709 // since the station names are ambiguous
710 if (is_muon(id) && ((techBit == AtlasDetDescr::fAtlasMDT)
711 || (techBit == AtlasDetDescr::fAtlasRPC))) {
712 result = (m_muon_mdt_impl.unpack(id) == m_MDT_ID);
713 }
714 return result;
715}
IdDictFieldImplementation m_muon_mdt_impl

◆ is_mm() [1/2]

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

Definition at line 300 of file AtlasDetectorID.cxx.

300 {
301 return id.fields() > 4 && id[0] == m_MUON_ID && id[4] == m_MM_ID;
302}

◆ is_mm() [2/2]

bool AtlasDetectorID::is_mm ( Identifier id) const
inlineinherited

Definition at line 756 of file AtlasDetectorID.h.

757{
758 bool result = false;
759 if (!is_muon(id)) return false;
760 unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
761 unsigned int techBit = m_muon_tech_bits[stationNameIndex];
762 result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasMM));
763 return result;
764}

◆ is_muon() [1/2]

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

Definition at line 239 of file AtlasDetectorID.cxx.

239 {
240 return id.fields() > 0 && id[0] == m_MUON_ID;
241}

◆ is_muon() [2/2]

bool AtlasDetectorID::is_muon ( Identifier id) const
inlineinherited

Definition at line 544 of file AtlasDetectorID.h.

545{
546 return (m_det_impl.unpack(id) == m_MUON_ID);
547}

◆ is_pixel() [1/2]

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

Definition at line 245 of file AtlasDetectorID.cxx.

245 {
246 return is_indet(id) && id.fields() > 1 && id[1] == m_PIXEL_ID;
247}

◆ is_pixel() [2/2]

bool AtlasDetectorID::is_pixel ( Identifier id) const
inlineinherited

Definition at line 603 of file AtlasDetectorID.h.

604{
605 bool result = false;
606 if(is_indet(id)) {
607 result = (m_indet_part_impl.unpack(id) == m_PIXEL_ID);
608 }
609 return result;
610}

◆ is_plr() [1/2]

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

Definition at line 261 of file AtlasDetectorID.cxx.

261 {
262 return is_lumi(id) && id.fields() > 2 && id[2] == m_LUMI_PLR_ID;
263}
bool is_lumi(Identifier id) const

◆ is_plr() [2/2]

bool AtlasDetectorID::is_plr ( Identifier id) const
inherited

◆ is_rpc() [1/2]

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

Definition at line 288 of file AtlasDetectorID.cxx.

288 {
289 return id.fields() > 4 && id[0] == m_MUON_ID && id[4] == m_RPC_ID;
290}

◆ is_rpc() [2/2]

bool AtlasDetectorID::is_rpc ( Identifier id) const
inlineinherited

Definition at line 718 of file AtlasDetectorID.h.

719{
720 bool result = false;
721 if (!is_muon(id)) return false;
722 unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
723 unsigned int techBit = m_muon_tech_bits[stationNameIndex];
724 // MDT and RPC can only be destinguished by the additional bit in the ID
725 // since the station names are ambiguous
726 if (is_muon(id) && ((techBit == AtlasDetDescr::fAtlasMDT)
727 || (techBit == AtlasDetDescr::fAtlasRPC))) {
728 result = (m_muon_rpc_impl.unpack(id) == m_RPC_ID);
729 }
730 return result;
731}
IdDictFieldImplementation m_muon_rpc_impl

◆ is_sct() [1/2]

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

Definition at line 249 of file AtlasDetectorID.cxx.

249 {
250 return is_indet(id) && id.fields() > 1 && id[1] == m_SCT_ID;
251}

◆ is_sct() [2/2]

bool AtlasDetectorID::is_sct ( Identifier id) const
inlineinherited

Definition at line 613 of file AtlasDetectorID.h.

614{
615 bool result = false;
616 // Must check is_pixel to allow for special bits
617 // (don't need this check for 64-bit identifier, but leave it in for now)
618 if(is_indet(id) && !is_pixel(id)) {
619 result = (m_indet_part_impl.unpack(id) == m_SCT_ID);
620 }
621 return result;
622}

◆ is_stgc() [1/2]

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

Definition at line 296 of file AtlasDetectorID.cxx.

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

◆ is_stgc() [2/2]

bool AtlasDetectorID::is_stgc ( Identifier id) const
inlineinherited

Definition at line 767 of file AtlasDetectorID.h.

768{
769 bool result = false;
770 if (!is_muon(id)) return false;
771 unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
772 unsigned int techBit = m_muon_tech_bits[stationNameIndex];
773 result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasSTGC));
774 return result;
775}

◆ is_supercell()

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

Test if the identifier represents a supercell.

◆ is_tgc() [1/2]

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

Definition at line 292 of file AtlasDetectorID.cxx.

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

◆ is_tgc() [2/2]

bool AtlasDetectorID::is_tgc ( Identifier id) const
inlineinherited

Definition at line 745 of file AtlasDetectorID.h.

746{
747 bool result = false;
748 if (!is_muon(id)) return false;
749 unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
750 unsigned int techBit = m_muon_tech_bits[stationNameIndex];
751 result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasTGC));
752 return result;
753}

◆ is_tile() [1/2]

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

Definition at line 236 of file AtlasDetectorID.cxx.

236 {
237 return id.fields() > 0 && id[0] == m_TILE_ID;
238}

◆ is_tile() [2/2]

bool AtlasDetectorID::is_tile ( Identifier id) const
inlineinherited

Definition at line 538 of file AtlasDetectorID.h.

539{
540 return (m_det_impl.unpack(id) == m_TILE_ID);
541}

◆ is_tile_dm()

bool AtlasDetectorID::is_tile_dm ( Identifier id) const
inlineinherited

Definition at line 591 of file AtlasDetectorID.h.

592{
593 bool result = false;
594 if (is_calo(id)) {
595 int temp = m_calo_side_impl.unpack(id);
596 result = (m_tile_dm_field.match(temp));
597 }
598 return result;
599}
Range::field m_tile_dm_field

◆ is_trt() [1/2]

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

Definition at line 252 of file AtlasDetectorID.cxx.

252 {
253 return is_indet(id) && id.fields() > 1;
254}

◆ is_trt() [2/2]

bool AtlasDetectorID::is_trt ( Identifier id) const
inlineinherited

Definition at line 625 of file AtlasDetectorID.h.

626{
627 bool result = false;
628 // Must check is_pixel to allow for special bits
629 // (don't need this check for 64-bit identifier, but leave it in for now)
630 if(is_indet(id) && !is_pixel(id)) {
631 result = (m_indet_part_impl.unpack(id) == m_TRT_ID);
632 }
633 return result;
634}

◆ is_zdc()

bool AtlasDetectorID::is_zdc ( Identifier id) const
inlineinherited

Definition at line 814 of file AtlasDetectorID.h.

815{
816 bool result = false;
817 if(is_forward(id)) {
818 result = (std::abs(m_lar_part_impl.unpack(id)) == m_ZDC_ID);
819 }
820 return result;
821}

◆ lar()

Identifier AtlasDetectorID::lar ( void ) const
inherited

Definition at line 66 of file AtlasDetectorID.cxx.

66 {
67 return m_det_impl.new_pack(lar_field_value());
68}

◆ lar_dm()

Identifier AtlasDetectorID::lar_dm ( void ) const
inherited

Definition at line 118 of file AtlasDetectorID.cxx.

118 {
119 return makeId(m_det_impl, m_calo_side_impl, calo_field_value(), -4);
120}

◆ lar_em()

Identifier AtlasDetectorID::lar_em ( void ) const
inherited

Definition at line 102 of file AtlasDetectorID.cxx.

102 {
104}

◆ lar_em_exp()

ExpandedIdentifier AtlasDetectorID::lar_em_exp ( void ) const
protectedinherited

LAr.

Definition at line 1032 of file AtlasDetectorID.cxx.

1033{
1034 ExpandedIdentifier result(lar_exp());
1035 return (result << m_LAR_EM_ID);
1036}
ExpandedIdentifier lar_exp(void) const

◆ lar_em_field_value()

int AtlasDetectorID::lar_em_field_value ( ) const
inlineprotectedinherited

Definition at line 487 of file AtlasDetectorID.h.

487{return (m_LAR_EM_ID);}

◆ lar_exp()

ExpandedIdentifier AtlasDetectorID::lar_exp ( void ) const
protectedinherited

Definition at line 962 of file AtlasDetectorID.cxx.

963{
964 ExpandedIdentifier result;
965 return (result << m_LAR_ID);
966}

◆ lar_fcal()

Identifier AtlasDetectorID::lar_fcal ( void ) const
inherited

Definition at line 110 of file AtlasDetectorID.cxx.

110 {
112}

◆ lar_fcal_exp()

ExpandedIdentifier AtlasDetectorID::lar_fcal_exp ( void ) const
protectedinherited

Definition at line 1046 of file AtlasDetectorID.cxx.

1047{
1048 ExpandedIdentifier result(lar_exp());
1049 return (result << m_LAR_FCAL_ID);
1050}

◆ lar_fcal_field_value()

int AtlasDetectorID::lar_fcal_field_value ( ) const
inlineprotectedinherited

Definition at line 493 of file AtlasDetectorID.h.

493{return (m_LAR_FCAL_ID);}

◆ lar_field_value()

int AtlasDetectorID::lar_field_value ( ) const
inlineprotectedinherited

Definition at line 457 of file AtlasDetectorID.h.

457{return (m_LAR_ID);}

◆ lar_hec()

Identifier AtlasDetectorID::lar_hec ( void ) const
inherited

Definition at line 106 of file AtlasDetectorID.cxx.

106 {
108}

◆ lar_hec_exp()

ExpandedIdentifier AtlasDetectorID::lar_hec_exp ( void ) const
protectedinherited

Definition at line 1039 of file AtlasDetectorID.cxx.

1040{
1041 ExpandedIdentifier result(lar_exp());
1042 return (result << m_LAR_HEC_ID);
1043}

◆ lar_hec_field_value()

int AtlasDetectorID::lar_hec_field_value ( ) const
inlineprotectedinherited

Definition at line 490 of file AtlasDetectorID.h.

490{return (m_LAR_HEC_ID);}

◆ lar_lvl1()

Identifier AtlasDetectorID::lar_lvl1 ( void ) const
inherited

Definition at line 114 of file AtlasDetectorID.cxx.

114 {
115 return makeId(m_det_impl, m_calo_side_impl, calo_field_value(), -1);
116}

◆ lucid_exp()

ExpandedIdentifier AtlasDetectorID::lucid_exp ( void ) const
protectedinherited

Definition at line 1067 of file AtlasDetectorID.cxx.

1068{
1069 ExpandedIdentifier result(fwd_exp());
1070 return (result << m_LUCID_ID);
1071}

◆ lucid_field_value()

int AtlasDetectorID::lucid_field_value ( ) const
inlineprotectedinherited

Definition at line 520 of file AtlasDetectorID.h.

520{return (m_LUCID_ID);}

◆ lumi()

Identifier AtlasDetectorID::lumi ( void ) const
inherited

Definition at line 98 of file AtlasDetectorID.cxx.

98 {
100}

◆ lumi_exp()

ExpandedIdentifier AtlasDetectorID::lumi_exp ( void ) const
protectedinherited

Definition at line 1025 of file AtlasDetectorID.cxx.

1026{
1027 ExpandedIdentifier result(indet_exp());
1028 return (result << m_LUMI_ID);
1029}

◆ lumi_field_value()

int AtlasDetectorID::lumi_field_value ( ) const
inlineprotectedinherited

Definition at line 481 of file AtlasDetectorID.h.

481{return (m_LUMI_ID);}

◆ mdt()

Identifier AtlasDetectorID::mdt ( void ) const
inherited

Definition at line 44 of file AtlasDetectorID.cxx.

44 {
45 return Identifier{};
46}

◆ mdt_field_value()

int AtlasDetectorID::mdt_field_value ( ) const
inlineprotectedinherited

Definition at line 496 of file AtlasDetectorID.h.

496{return (m_MDT_ID);}

◆ mm()

Identifier AtlasDetectorID::mm ( void ) const
inherited

Definition at line 59 of file AtlasDetectorID.cxx.

59 {
60 return Identifier{};
61}

◆ mm_field_value()

int AtlasDetectorID::mm_field_value ( ) const
inlineprotectedinherited

Definition at line 511 of file AtlasDetectorID.h.

511{return (m_MM_ID);}

◆ 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 167 of file AthMessaging.h.

168{
169 MsgStream* ms = m_msg_tls.get();
170 if (!ms) {
171 if (!m_initialized.test_and_set()) initMessaging();
172 ms = new MsgStream(m_imsg,m_nm);
173 m_msg_tls.reset( ms );
174 }
175
176 ms->setLevel (m_lvl);
177 return *ms;
178}
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels).
void initMessaging() const
Initialize our message level and MessageSvc.

◆ 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 182 of file AthMessaging.h.

183{ return msg() << lvl; }
MsgStream & msg() const
The standard message stream.

◆ 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 user did not set explicit message level we have to initialize
154 // the messaging and retrieve the default via the MessageSvc.
155 if (m_lvl==MSG::NIL && !m_initialized.test_and_set()) initMessaging();
156
157 if (m_lvl <= lvl) {
158 msg() << lvl;
159 return true;
160 } else {
161 return false;
162 }
163}

◆ muon()

Identifier AtlasDetectorID::muon ( void ) const
inherited

Definition at line 74 of file AtlasDetectorID.cxx.

74 {
75 return m_det_impl.new_pack(muon_field_value());
76}
int muon_field_value() const

◆ muon_exp()

ExpandedIdentifier AtlasDetectorID::muon_exp ( void ) const
protectedinherited

Definition at line 976 of file AtlasDetectorID.cxx.

977{
978 ExpandedIdentifier result;
979 return (result << m_MUON_ID);
980}

◆ muon_field_value()

int AtlasDetectorID::muon_field_value ( ) const
inlineprotectedinherited

Definition at line 463 of file AtlasDetectorID.h.

463{return (m_MUON_ID);}

◆ name()

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

Return the name for this helper.

◆ phi()

int LArHEC_Base_ID::phi ( const Identifier id) const
inherited

return phi[0,63] outer part [0,31] inner part

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

218{
219 if (regHash >= m_vecOfDictRegions.size()) return NOT_VALID;
220 return (m_vecOfDictRegions.at(regHash)->phi0());
221}

◆ phi_max()

int LArHEC_Base_ID::phi_max ( const Identifier regId) const
inherited

max value of phi index (-999 == failure)

Warning
input = REGION ID !!

Definition at line 145 of file LArHEC_Base_ID.cxx.

146{
147 ExpandedIdentifier expId;
148 IdContext region_cntxt = region_context();
149 if(!get_expanded_id(regId, expId, &region_cntxt)) {
150 int result = -999;
151 for (unsigned int i = 0; i < m_full_channel_range.size(); ++i) {
152 const Range& range = m_full_channel_range[i];
153 if (range.match(expId)) {
154 const Range::field& phi_field = range[m_PHI_INDEX];
155 if (not phi_field.empty()) {
156 int phimax = phi_field.get_maximum();
157 if (result < phimax) result = phimax;
158 }
159 }
160 }
161 return (result);
162 }
163 return (-999); // default
164}

◆ phi_min()

int LArHEC_Base_ID::phi_min ( const Identifier regId) const
inherited

min value of phi index (-999 == failure)

Warning
input = REGION ID !!

◆ phi_min_init()

int LArHEC_Base_ID::phi_min_init ( const Identifier regId) const
privateinherited

Definition at line 119 of file LArHEC_Base_ID.cxx.

120{
121 ExpandedIdentifier expId;
122 IdContext region_cntxt = region_context();
123 if(!get_expanded_id(regId, expId, &region_cntxt)) {
124 int result = -999;
125 for (unsigned int i = 0; i < m_full_channel_range.size(); ++i) {
126 const Range& range = m_full_channel_range[i];
127 if (range.match(expId)) {
128 const Range::field& phi_field = range[m_PHI_INDEX];
129 if (not phi_field.empty()) {
130 int phimin = phi_field.get_minimum();
131 if (-999 == result) {
132 result = phimin;
133 }
134 else {
135 if (phimin < result) result = phimin;
136 }
137 }
138 }
139 }
140 return (result);
141 }
142 return (-999); // default
143}

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

196{
197 if (regHash >= m_vecOfDictRegions.size()) return NOT_VALID;
198 return 2. * M_PI / m_vecOfDictRegions.at(regHash)->dphi();
199}
#define M_PI

◆ pixel()

Identifier AtlasDetectorID::pixel ( void ) const
inherited

Definition at line 82 of file AtlasDetectorID.cxx.

82 {
84}

◆ pixel_exp()

ExpandedIdentifier AtlasDetectorID::pixel_exp ( void ) const
protectedinherited

Inner Detector:

Definition at line 997 of file AtlasDetectorID.cxx.

998{
999 ExpandedIdentifier result(indet_exp());
1000 return (result << m_PIXEL_ID);
1001}

◆ pixel_field_value()

int AtlasDetectorID::pixel_field_value ( ) const
inlineprotectedinherited

Definition at line 469 of file AtlasDetectorID.h.

469{return (m_PIXEL_ID);}

◆ plr_field_value()

int AtlasDetectorID::plr_field_value ( ) const
inlineprotectedinherited

Definition at line 484 of file AtlasDetectorID.h.

484{return (m_LUMI_PLR_ID);}

◆ pos_neg()

int LArHEC_Base_ID::pos_neg ( const Identifier id) const
inherited

return pos_neg -2 (C side) or 2 (A side)

◆ print()

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

Expanded print out of any identifier.

Definition at line 354 of file AtlasDetectorID.cxx.

354 {
355 ATH_MSG_INFO(print_to_string(id, context));
356}
#define ATH_MSG_INFO(x,...)
std::string print_to_string(Identifier id, const IdContext *context=0) const
or provide the printout in string form

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

359 {
360 // Print out for any Atlas identifier
361 std::string result;
363
364 // Do a generic printout of identifier from dictionary
365 unsigned int max_index = (context) ? context->end_index() : 999;
366
367 // Find the dictionary to use:
368 const IdDictDictionary *dict = dictionary(id);
369 ExpandedIdentifier expId;
370 ExpandedIdentifier prefix; // default is null prefix
371 Identifier compact = id;
372 if (!dict) {
373 ATH_MSG_WARNING(__func__<<":"<<__LINE__<<" No dictionary could be associated to "<<id);
374 return result;
375 }
376 if (dict->unpack(m_group, compact, prefix, max_index," ", result)) {
377 return result;
378 }
379 }
380 return result;
381}
const IdDictDictionary * dictionary(const Identifier &id) const
int unpack(const std::string &group, const Identifier &id, const ExpandedIdentifier &prefix, size_t index2, ExpandedIdentifier &unpackedId) const
Unpack the value_type id to an expanded Identifier for a given group, considering the provided prefix...

◆ reg_begin()

id_iterator LArHEC_Base_ID::reg_begin ( ) const
inherited

begin iterator over set of region Identifiers

◆ reg_end()

id_iterator LArHEC_Base_ID::reg_end ( ) const
inherited

end iterator over set of region Identifiers

◆ reg_range()

id_range LArHEC_Base_ID::reg_range ( ) const
inherited

Range over set of Region Identifiers.

◆ region()

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

return region [0,1]

◆ region_context()

IdContext CaloIDHelper::region_context ( ) const
inherited

Return the context for regions.

◆ 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()

size_type CaloIDHelper::region_hash_max ( ) const
inherited

One more than the largest region hash code.

◆ region_id() [1/5]

Identifier LArHEC_Base_ID::region_id ( const ExpandedIdentifier & exp_id) const
inherited

region identifier for a channel from ExpandedIdentifier

◆ region_id() [2/5]

Identifier LArHEC_Base_ID::region_id ( const Identifier channelId) const
inherited

allows to know in which region is a channel/cell – valid for both kinds of channels

◆ region_id() [3/5]

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

◆ region_id() [4/5]

Identifier LArHEC_Base_ID::region_id ( int pos_neg,
int sampling,
int region ) const
inherited

build a region identifier for a channel

◆ region_id() [5/5]

Identifier LArHEC_Base_ID::region_id ( int pos_neg,
int sampling,
int region,
bool checks ) const
inherited

◆ region_id_checks()

void LArHEC_Base_ID::region_id_checks ( int pos_neg,
int sampling,
int region ) const
privateinherited

Definition at line 319 of file LArHEC_Base_ID.cxx.

320{
321
322 // Check that id is within allowed range
323 // Fill expanded id (initially with 4/2/0/0/0/0/0)
324 ExpandedIdentifier expId(lar_hec_exp());
325 expId << pos_neg << sampling << region ;
326
327 if (!m_full_region_range.match(expId)) {
328 std::string errorMessage = "LArHEC_Base_ID::region_id() result is not OK: ID, range = "
329 + std::string(expId) + " , " + (std::string)m_full_region_range;
330 throw LArID_Exception(errorMessage , 7);
331 }
332
333}

◆ region_ids()

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

provide access to region id vector, accessed via hash

◆ regions()

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

151 {
152 // Register version of dictionary dict_name
153
154 // Access dictionary by name
155 const IdDictDictionary *dict = dict_mgr.find_dictionary(dict_name);
156 if (!dict) {
157 ATH_MSG_ERROR(__func__<<":"<<__LINE__<<" No dictionary found");
158 return 1;
159
160 }
161 // Add in dict name, file name and version
162 m_dict_names.push_back(dict_name);
163 m_file_names.push_back(dict->file_name());
164 m_dict_tags.push_back(dict->dict_tag());
165 return 0;
166}
const std::string & dict_tag() const
Access to the dictionary tag.
const std::string & file_name() const
Access to file name.

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

170 {
171 // If no tag has been registered, then reinitialize
172 if (m_dict_tags.empty() || m_dict_names.empty() ){
173 return true;
174 }
175
176 // Loop over dict names and check version tags
177 if (m_dict_names.size() != m_dict_tags.size()) [[unlikely]]{
178 ATH_MSG_ERROR("reinitialize: dict names and tags vectors not the same length ");
179 ATH_MSG_ERROR("names: " << m_dict_names.size() << " tags: " << m_dict_tags.size());
180 }
181 for (unsigned int i = 0; i < m_dict_names.size(); ++i) {
182 // Access dictionary by name
183 const IdDictDictionary *dict = dict_mgr.find_dictionary(m_dict_names[i]);
184 if (!dict)[[unlikely]] {
185 ATH_MSG_ERROR("reinitialize: could not find dict - " << m_dict_names[i]);
186 return false;
187 }
188 if (m_dict_tags[i] != dict->dict_tag()) {
189 // Remove all memory of versions
190 m_dict_names.clear();
191 m_dict_tags.clear();
192 m_file_names.clear();
193 return true;
194 }
195 }
196
197 // Tags match - don't reinitialize
198 return false;
199}
#define unlikely(x)

◆ rpc()

Identifier AtlasDetectorID::rpc ( void ) const
inherited

Definition at line 50 of file AtlasDetectorID.cxx.

50 {
51 return Identifier{};
52}

◆ rpc_field_value()

int AtlasDetectorID::rpc_field_value ( ) const
inlineprotectedinherited

Definition at line 502 of file AtlasDetectorID.h.

502{return (m_RPC_ID);}

◆ sampling()

int LArHEC_Base_ID::sampling ( const Identifier id) const
inherited

return sampling [0,3] (only 0 for supercells)

◆ sct()

Identifier AtlasDetectorID::sct ( void ) const
inherited

Definition at line 86 of file AtlasDetectorID.cxx.

86 {
88}

◆ sct_exp()

ExpandedIdentifier AtlasDetectorID::sct_exp ( void ) const
protectedinherited

Definition at line 1004 of file AtlasDetectorID.cxx.

1005{
1006 ExpandedIdentifier result(indet_exp());
1007 return (result << m_SCT_ID);
1008}

◆ sct_field_value()

int AtlasDetectorID::sct_field_value ( ) const
inlineprotectedinherited

Definition at line 472 of file AtlasDetectorID.h.

472{return (m_SCT_ID);}

◆ set_do_checks()

void AtlasDetectorID::set_do_checks ( bool do_checks)
overridevirtualinherited

Implements IdHelper.

Definition at line 394 of file AtlasDetectorID.cxx.

394 {
396}
virtual bool do_checks(void) const override
Checks are performed by default in debug compilation and NOT in optimized compilation.

◆ set_do_neighbours()

void AtlasDetectorID::set_do_neighbours ( bool do_neighbours)
overridevirtualinherited

Implements IdHelper.

Definition at line 402 of file AtlasDetectorID.cxx.

402 {
404}
virtual bool do_neighbours(void) const override
Neighbour initialization is performed by default One can switch or query this mode for any idHelper w...

◆ setDictVersion()

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

Implements IdHelper.

Definition at line 406 of file AtlasDetectorID.cxx.

406 {
407 const IdDictDictionary *dict = dict_mgr.find_dictionary(name);
408 m_dict_version = dict->version();
409}
const std::string & version() const
Dictionary version.

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

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

305 {
306 ATH_MSG_INFO(show_to_string(id, context, sep));
307}

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

311 {
312 // Do a generic printout of identifier
313
314 std::string result("Unable to decode id");
315 unsigned int max_index = (context) ? context->end_index() : 999;
316
317 if (!id.is_valid()) {
318 return "[INVALID]";
319 }
320
322 return result;
323
324 // Find the dictionary to use:
325 const IdDictDictionary * dict = dictionary(id);
326 ExpandedIdentifier expId{};
327 ExpandedIdentifier prefix{}; // default is null prefix
328 Identifier compact = id;
329
330 if (!dict) {
331 ATH_MSG_WARNING(__func__<<" No detector type associated to id "<<id);
332 return result;
333 }
334 if (dict->unpack(m_group, compact, prefix, max_index, expId)) {
335 return result;
336 }
337
338 bool first = true;
339 result = "";
340 if ('.' == sep)
341 result = '[';
342 for (unsigned int i = 0; i < expId.fields(); ++i) {
343 if (first)
344 first = false;
345 else
346 result += sep;
347 result += std::to_string(expId[i]);
348 }
349 if ('.' == sep)
350 result += ']';
351 return result;
352}
size_type fields() const
bool first
Definition DeMoScan.py:534

◆ stgc()

Identifier AtlasDetectorID::stgc ( void ) const
inherited

Definition at line 56 of file AtlasDetectorID.cxx.

56 {
57 return Identifier{};
58}

◆ stgc_field_value()

int AtlasDetectorID::stgc_field_value ( ) const
inlineprotectedinherited

Definition at line 508 of file AtlasDetectorID.h.

508{return (m_STGC_ID);}

◆ subdet_context()

IdContext AtlasDetectorID::subdet_context ( void ) const
inherited

IdContext (indicates id length) for sub-detector.

Definition at line 133 of file AtlasDetectorID.cxx.

133 {
134 ExpandedIdentifier id{};
135 return IdContext{id, 0, m_SUBDET_INDEX};
136}
size_type m_SUBDET_INDEX

◆ tgc()

Identifier AtlasDetectorID::tgc ( void ) const
inherited

Definition at line 53 of file AtlasDetectorID.cxx.

53 {
54 return Identifier{};
55}

◆ tgc_field_value()

int AtlasDetectorID::tgc_field_value ( ) const
inlineprotectedinherited

Definition at line 505 of file AtlasDetectorID.h.

505{return (m_TGC_ID);}

◆ tile()

Identifier AtlasDetectorID::tile ( void ) const
inherited

Definition at line 70 of file AtlasDetectorID.cxx.

70 {
71 return m_det_impl.new_pack(tile_field_value());
72}
int tile_field_value() const

◆ tile_dm()

Identifier AtlasDetectorID::tile_dm ( void ) const
inherited

Definition at line 122 of file AtlasDetectorID.cxx.

122 {
123 return makeId(m_det_impl, m_calo_side_impl, calo_field_value(), -5);
124}

◆ tile_exp()

ExpandedIdentifier AtlasDetectorID::tile_exp ( void ) const
protectedinherited

Definition at line 969 of file AtlasDetectorID.cxx.

970{
971 ExpandedIdentifier result;
972 return (result << m_TILE_ID);
973}

◆ tile_field_value()

int AtlasDetectorID::tile_field_value ( ) const
inlineprotectedinherited

Definition at line 460 of file AtlasDetectorID.h.

460{return (m_TILE_ID);}

◆ to_range()

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

Definition at line 411 of file AtlasDetectorID.cxx.

411 {
412
413 // Build a string from the contents of an identifier
414 int fields = id.fields();
415 std::string result;
416 for (int i = 0; i < fields; ++i) {
417 if (i > 0) {
418 result += '/'; // add '/' only if NOT first one
419 }
420 result += std::to_string(id[i]);
421 }
422 return result;
423}

◆ trt()

Identifier AtlasDetectorID::trt ( void ) const
inherited

Definition at line 90 of file AtlasDetectorID.cxx.

90 {
92}

◆ trt_exp()

ExpandedIdentifier AtlasDetectorID::trt_exp ( void ) const
protectedinherited

Definition at line 1011 of file AtlasDetectorID.cxx.

1012{
1013 ExpandedIdentifier result(indet_exp());
1014 return (result << m_TRT_ID);
1015}

◆ trt_field_value()

int AtlasDetectorID::trt_field_value ( ) const
inlineprotectedinherited

Definition at line 475 of file AtlasDetectorID.h.

475{return (m_TRT_ID);}

◆ twoSymSides()

bool LArHEC_Base_ID::twoSymSides ( ) const
inherited

True if the + and - sides of the calorimeter are identical (true layout).

False if they are mirror reflections (used in early MC).

◆ zdc_exp()

ExpandedIdentifier AtlasDetectorID::zdc_exp ( void ) const
protectedinherited

Definition at line 1074 of file AtlasDetectorID.cxx.

1075{
1076 ExpandedIdentifier result(fwd_exp());
1077 return (result << m_ZDC_ID);
1078}

◆ zdc_field_value()

int AtlasDetectorID::zdc_field_value ( ) const
inlineprotectedinherited

Definition at line 522 of file AtlasDetectorID.h.

522{return (m_ZDC_ID);}

Member Data Documentation

◆ ATLAS_THREAD_SAFE

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

Messaging initialized (initMessaging).

Definition at line 141 of file AthMessaging.h.

◆ invalidId

int AtlasDetectorID::invalidId {-1}
staticconstexprinherited

Definition at line 81 of file AtlasDetectorID.h.

81{-1};

◆ invalidIndex

int AtlasDetectorID::invalidIndex {999}
staticconstexprinherited

Definition at line 80 of file AtlasDetectorID.h.

80{999};

◆ m_ALFA_ID

int AtlasDetectorID::m_ALFA_ID {1}
privateinherited

Definition at line 411 of file AtlasDetectorID.h.

411{1};

◆ m_atlas_dict

const IdDictDictionary* AtlasDetectorID::m_atlas_dict {}
privateinherited

Definition at line 368 of file AtlasDetectorID.h.

368{};

◆ m_BCM_ID

int AtlasDetectorID::m_BCM_ID {3}
privateinherited

Definition at line 412 of file AtlasDetectorID.h.

412{3};

◆ m_calo_dict

const IdDictDictionary* AtlasDetectorID::m_calo_dict {}
privateinherited

Definition at line 373 of file AtlasDetectorID.h.

373{};

◆ m_CALO_ID

int AtlasDetectorID::m_CALO_ID {10}
privateinherited

Definition at line 393 of file AtlasDetectorID.h.

393{10};

◆ m_calo_side_impl

IdDictFieldImplementation AtlasDetectorID::m_calo_side_impl
privateinherited

Definition at line 419 of file AtlasDetectorID.h.

◆ m_CSC_ID

int AtlasDetectorID::m_CSC_ID {1}
privateinherited

Definition at line 405 of file AtlasDetectorID.h.

405{1};

◆ m_det_impl

IdDictFieldImplementation AtlasDetectorID::m_det_impl
privateinherited

Definition at line 417 of file AtlasDetectorID.h.

◆ m_DET_INDEX

size_type AtlasDetectorID::m_DET_INDEX {999}
privateinherited

Definition at line 386 of file AtlasDetectorID.h.

386{999};

◆ m_dict

* The dictionary for this helper const IdDictDictionary* CaloIDHelper::m_dict
privateinherited

Definition at line 332 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 355 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 361 of file AtlasDetectorID.h.

◆ m_dict_version

std::string AtlasDetectorID::m_dict_version
privateinherited

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

440{};

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

443{true};

◆ m_eta_impl

IdDictFieldImplementation LArHEC_Base_ID::m_eta_impl
privateinherited

Definition at line 286 of file LArHEC_Base_ID.h.

◆ m_ETA_INDEX

size_type LArHEC_Base_ID::m_ETA_INDEX
privateinherited

Definition at line 249 of file LArHEC_Base_ID.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 358 of file AtlasDetectorID.h.

◆ m_full_channel_range

MultiRange LArHEC_Base_ID::m_full_channel_range
privateinherited

Definition at line 253 of file LArHEC_Base_ID.h.

◆ m_full_region_range

MultiRange LArHEC_Base_ID::m_full_region_range
privateinherited

Definition at line 254 of file LArHEC_Base_ID.h.

◆ m_fwd_dict

const IdDictDictionary* AtlasDetectorID::m_fwd_dict {}
privateinherited

Definition at line 374 of file AtlasDetectorID.h.

374{};

◆ m_FWD_ID

int AtlasDetectorID::m_FWD_ID {13}
privateinherited

Definition at line 410 of file AtlasDetectorID.h.

410{13};

◆ m_fwd_part_impl

IdDictFieldImplementation AtlasDetectorID::m_fwd_part_impl
privateinherited

Definition at line 425 of file AtlasDetectorID.h.

◆ m_group

std::string AtlasDetectorID::m_group
protectedinherited

Group name.

Definition at line 352 of file AtlasDetectorID.h.

◆ m_hash_calcs

std::vector<HashCalc> LArHEC_Base_ID::m_hash_calcs
privateinherited

Definition at line 278 of file LArHEC_Base_ID.h.

◆ m_hec_impl

IdDictFieldImplementation LArHEC_Base_ID::m_hec_impl
privateinherited

Definition at line 282 of file LArHEC_Base_ID.h.

◆ m_HEC_INDEX

size_type LArHEC_Base_ID::m_HEC_INDEX
privateinherited

Definition at line 245 of file LArHEC_Base_ID.h.

◆ m_hec_region_index

size_type LArHEC_Base_ID::m_hec_region_index
privateinherited

Definition at line 243 of file LArHEC_Base_ID.h.

◆ m_helper

std::unique_ptr<AtlasDetectorIDHelper> AtlasDetectorID::m_helper {}
privateinherited

Definition at line 430 of file AtlasDetectorID.h.

430{};

◆ m_HGTD_ID

int AtlasDetectorID::m_HGTD_ID {4}
privateinherited

Definition at line 397 of file AtlasDetectorID.h.

397{4};

◆ m_imsg

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

MessageSvc pointer.

Definition at line 135 of file AthMessaging.h.

135{ nullptr };

◆ m_indet_dict

const IdDictDictionary* AtlasDetectorID::m_indet_dict {}
privateinherited

Definition at line 369 of file AtlasDetectorID.h.

369{};

◆ m_INDET_ID

int AtlasDetectorID::m_INDET_ID {2}
privateinherited

Definition at line 389 of file AtlasDetectorID.h.

389{2};

◆ m_indet_part_impl

IdDictFieldImplementation AtlasDetectorID::m_indet_part_impl
privateinherited

Definition at line 418 of file AtlasDetectorID.h.

◆ m_is_initialized_from_dict

bool AtlasDetectorID::m_is_initialized_from_dict {}
privateinherited

Definition at line 435 of file AtlasDetectorID.h.

435{};

◆ m_isHighLuminosityLHC

bool AtlasDetectorID::m_isHighLuminosityLHC {}
privateinherited

Definition at line 436 of file AtlasDetectorID.h.

436{};

◆ m_lar_dict

const IdDictDictionary* AtlasDetectorID::m_lar_dict {}
privateinherited

Definition at line 370 of file AtlasDetectorID.h.

370{};

◆ m_lar_dm_field

Range::field AtlasDetectorID::m_lar_dm_field
privateinherited

Definition at line 428 of file AtlasDetectorID.h.

◆ m_LAR_EM_ID

int AtlasDetectorID::m_LAR_EM_ID {1}
privateinherited

Definition at line 400 of file AtlasDetectorID.h.

400{1};

◆ m_LAR_FCAL_ID

int AtlasDetectorID::m_LAR_FCAL_ID {3}
privateinherited

Definition at line 402 of file AtlasDetectorID.h.

402{3};

◆ m_lar_fcal_module_impl

IdDictFieldImplementation AtlasDetectorID::m_lar_fcal_module_impl
privateinherited

Definition at line 421 of file AtlasDetectorID.h.

◆ m_LAR_FCAL_MODULE_INDEX

int AtlasDetectorID::m_LAR_FCAL_MODULE_INDEX {999}
privateinherited

Definition at line 403 of file AtlasDetectorID.h.

403{999};

◆ m_LAR_HEC_ID

int AtlasDetectorID::m_LAR_HEC_ID {2}
privateinherited

Definition at line 401 of file AtlasDetectorID.h.

401{2};

◆ m_LAR_ID

int AtlasDetectorID::m_LAR_ID {4}
privateinherited

Definition at line 390 of file AtlasDetectorID.h.

390{4};

◆ m_lar_impl

IdDictFieldImplementation LArHEC_Base_ID::m_lar_impl
privateinherited

Definition at line 281 of file LArHEC_Base_ID.h.

◆ m_LAR_INDEX

size_type LArHEC_Base_ID::m_LAR_INDEX
privateinherited

Definition at line 244 of file LArHEC_Base_ID.h.

◆ m_lar_part_impl

IdDictFieldImplementation AtlasDetectorID::m_lar_part_impl
privateinherited

Definition at line 420 of file AtlasDetectorID.h.

◆ m_LUCID_ID

int AtlasDetectorID::m_LUCID_ID {5}
privateinherited

Definition at line 413 of file AtlasDetectorID.h.

413{5};

◆ m_LUMI_ID

int AtlasDetectorID::m_LUMI_ID {3}
privateinherited

Definition at line 398 of file AtlasDetectorID.h.

398{3};

◆ m_LUMI_PLR_ID

int AtlasDetectorID::m_LUMI_PLR_ID {1}
privateinherited

Definition at line 399 of file AtlasDetectorID.h.

399{1};

◆ m_lvl

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

Current logging level.

Definition at line 138 of file AthMessaging.h.

138{ MSG::NIL };

◆ m_lvl1_field

Range::field AtlasDetectorID::m_lvl1_field
privateinherited

Definition at line 426 of file AtlasDetectorID.h.

◆ m_lvl1_onl_field

Range::field AtlasDetectorID::m_lvl1_onl_field
privateinherited

Definition at line 427 of file AtlasDetectorID.h.

◆ m_MDT_ID

int AtlasDetectorID::m_MDT_ID {0}
privateinherited

Definition at line 404 of file AtlasDetectorID.h.

404{0};

◆ m_MM_ID

int AtlasDetectorID::m_MM_ID {5}
privateinherited

Definition at line 409 of file AtlasDetectorID.h.

409{5};

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

const IdDictDictionary* AtlasDetectorID::m_muon_dict {}
privateinherited

Definition at line 372 of file AtlasDetectorID.h.

372{};

◆ m_MUON_ID

int AtlasDetectorID::m_MUON_ID {7}
privateinherited

Definition at line 392 of file AtlasDetectorID.h.

392{7};

◆ m_muon_mdt_impl

IdDictFieldImplementation AtlasDetectorID::m_muon_mdt_impl
privateinherited

Definition at line 423 of file AtlasDetectorID.h.

◆ m_muon_rpc_impl

IdDictFieldImplementation AtlasDetectorID::m_muon_rpc_impl
privateinherited

Definition at line 424 of file AtlasDetectorID.h.

◆ m_muon_station_name_impl

IdDictFieldImplementation AtlasDetectorID::m_muon_station_name_impl
privateinherited

Definition at line 422 of file AtlasDetectorID.h.

◆ m_MUON_SUBDET_INDEX

size_type AtlasDetectorID::m_MUON_SUBDET_INDEX {999}
privateinherited

Definition at line 388 of file AtlasDetectorID.h.

388{999};

◆ m_muon_tech_bits

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

Definition at line 433 of file AtlasDetectorID.h.

◆ m_name

* Name of this helper std::string CaloIDHelper::m_name
privateinherited

Definition at line 323 of file CaloIDHelper.h.

◆ m_nm

std::string AthMessaging::m_nm
privateinherited

Message source name.

Definition at line 129 of file AthMessaging.h.

◆ m_phi_impl

IdDictFieldImplementation LArHEC_Base_ID::m_phi_impl
privateinherited

Definition at line 287 of file LArHEC_Base_ID.h.

◆ m_PHI_INDEX

size_type LArHEC_Base_ID::m_PHI_INDEX
privateinherited

Definition at line 250 of file LArHEC_Base_ID.h.

◆ m_PIXEL_ID

int AtlasDetectorID::m_PIXEL_ID {1}
privateinherited

Definition at line 394 of file AtlasDetectorID.h.

394{1};

◆ m_pn_impl

IdDictFieldImplementation LArHEC_Base_ID::m_pn_impl
privateinherited

Definition at line 283 of file LArHEC_Base_ID.h.

◆ m_pn_reg_impl

IdDictFieldImplementation LArHEC_Base_ID::m_pn_reg_impl
privateinherited

Definition at line 290 of file LArHEC_Base_ID.h.

◆ m_POSNEG_INDEX

size_type LArHEC_Base_ID::m_POSNEG_INDEX
privateinherited

Definition at line 246 of file LArHEC_Base_ID.h.

◆ m_region_impl

IdDictFieldImplementation LArHEC_Base_ID::m_region_impl
privateinherited

Definition at line 285 of file LArHEC_Base_ID.h.

◆ m_REGION_INDEX

size_type LArHEC_Base_ID::m_REGION_INDEX
privateinherited

Definition at line 248 of file LArHEC_Base_ID.h.

◆ m_regions

* Group of region Identifiers HashGroup CaloIDHelper::m_regions
privateinherited

Definition at line 329 of file CaloIDHelper.h.

◆ m_RPC_ID

int AtlasDetectorID::m_RPC_ID {2}
privateinherited

Definition at line 406 of file AtlasDetectorID.h.

406{2};

◆ m_sampling_impl

IdDictFieldImplementation LArHEC_Base_ID::m_sampling_impl
privateinherited

Definition at line 284 of file LArHEC_Base_ID.h.

◆ m_SAMPLING_INDEX

size_type LArHEC_Base_ID::m_SAMPLING_INDEX
privateinherited

Definition at line 247 of file LArHEC_Base_ID.h.

◆ m_SCT_ID

int AtlasDetectorID::m_SCT_ID {2}
privateinherited

Definition at line 395 of file AtlasDetectorID.h.

395{2};

◆ m_slar

unsigned LArHEC_Base_ID::m_slar
privateinherited

Definition at line 241 of file LArHEC_Base_ID.h.

◆ m_slar_impl

IdDictFieldImplementation LArHEC_Base_ID::m_slar_impl
privateinherited

Definition at line 288 of file LArHEC_Base_ID.h.

◆ m_SLAR_INDEX

size_type LArHEC_Base_ID::m_SLAR_INDEX
privateinherited

Definition at line 251 of file LArHEC_Base_ID.h.

◆ m_STGC_ID

int AtlasDetectorID::m_STGC_ID {4}
privateinherited

Definition at line 408 of file AtlasDetectorID.h.

408{4};

◆ m_SUBDET_INDEX

size_type AtlasDetectorID::m_SUBDET_INDEX {999}
privateinherited

Definition at line 387 of file AtlasDetectorID.h.

387{999};

◆ m_TGC_ID

int AtlasDetectorID::m_TGC_ID {3}
privateinherited

Definition at line 407 of file AtlasDetectorID.h.

407{3};

◆ m_tile_dict

const IdDictDictionary* AtlasDetectorID::m_tile_dict {}
privateinherited

Definition at line 371 of file AtlasDetectorID.h.

371{};

◆ m_tile_dm_field

Range::field AtlasDetectorID::m_tile_dm_field
privateinherited

Definition at line 429 of file AtlasDetectorID.h.

◆ m_TILE_ID

int AtlasDetectorID::m_TILE_ID {5}
privateinherited

Definition at line 391 of file AtlasDetectorID.h.

391{5};

◆ m_TRT_ID

int AtlasDetectorID::m_TRT_ID {3}
privateinherited

Definition at line 396 of file AtlasDetectorID.h.

396{3};

◆ m_two_sym_sides

bool LArHEC_Base_ID::m_two_sym_sides
privateinherited

Definition at line 256 of file LArHEC_Base_ID.h.

◆ m_vecOfCellInfo

std::vector<short int> LArHEC_Base_ID::m_vecOfCellInfo
privateinherited

Definition at line 293 of file LArHEC_Base_ID.h.

◆ m_vecOfDictRegions

* List of c IdDictRegion objects std::vector<const IdDictRegion*> CaloIDHelper::m_vecOfDictRegions
privateinherited

Definition at line 335 of file CaloIDHelper.h.

◆ m_vecOfPhiMin

std::vector<short int> LArHEC_Base_ID::m_vecOfPhiMin
privateinherited

Definition at line 258 of file LArHEC_Base_ID.h.

◆ m_vecOfRegions

std::vector<LArHEC_region*> LArHEC_Base_ID::m_vecOfRegions
privateinherited

Definition at line 292 of file LArHEC_Base_ID.h.

◆ m_ZDC_ID

int AtlasDetectorID::m_ZDC_ID {7}
privateinherited

Definition at line 414 of file AtlasDetectorID.h.

414{7};

The documentation for this class was generated from the following files: