ATLAS Offline Software
Classes | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
LArOnlineID_Base Class Referenceabstract

Helper for the Liquid Argon Calorimeter cell identifiers. More...

#include <LArOnlineID_Base.h>

Inheritance diagram for LArOnlineID_Base:
Collaboration diagram for LArOnlineID_Base:

Classes

class  HashCalc
 Define the Hash identifier for channels and febs. More...
 
class  HashCalcFeb
 

Public Types

typedef Identifier::size_type size_type
 
typedef std::vector< HWIdentifier >::const_iterator id_iterator
 Type for iterators over identifiers. More...
 
typedef boost::iterator_range< id_iteratorid_range
 Type for range over identifiers. More...
 
enum  HelperType {
  HelperType::Unimplemented = -1, HelperType::Silicon = 0, HelperType::Pixel, HelperType::PLR,
  HelperType::SCT, HelperType::TRT, HelperType::LArEM, HelperType::LArFCal,
  HelperType::LArFCalSuperCell, HelperType::LArHEC, HelperType::LArHEC_SuperCell, HelperType::LARMiniFCal,
  HelperType::Tile, HelperType::TileSuperCell, HelperType::LArOnline, HelperType::LArOnlineSuperCell,
  HelperType::LArElectrode, HelperType::LArHVLine, HelperType::TileHardware, HelperType::TileTestbeam,
  HelperType::CaloCell, HelperType::CaloSuperCell, HelperType::CaloDM, HelperType::CaloLvl1,
  HelperType::GTower, HelperType::JTower, HelperType::Muon, HelperType::LUCID,
  HelperType::LUCID_Hardware, HelperType::Zdc, HelperType::ZdcHardware, HelperType::TT
}
 enum class for eventual final derived types of this class More...
 

Public Member Functions

 LArOnlineID_Base (const std::string &name, const std::string &group, bool is_slar)
 Default constructor. More...
 
 ~LArOnlineID_Base ()
 Default destructor. More...
 
HWIdentifier feedthrough_Id (int barrel_ec, int pos_neg, int feedthrough) const
 Create a feedthrough identifier from fields. More...
 
HWIdentifier feedthrough_Id (int barrel_ec, int pos_neg, int feedthrough, bool checks) const
 
HWIdentifier feedthrough_Id (IdentifierHash feedthroughHash) const
 Create a feedthrough identifier from hash_id. More...
 
IdentifierHash feedthrough_Hash (HWIdentifier feedthroughId) const
 Create hash id from feedthrough identifiers. More...
 
id_iterator feedthrough_begin () const
 Return an iterator pointing to Feedthrough identifiers collection. More...
 
id_iterator feedthrough_end () const
 
id_range feedthrough_range () const
 
HWIdentifier feb_Id (int barrel_ec, int pos_neg, int feedthrough, int slot) const
 Create feb_Id from fields. More...
 
HWIdentifier feb_Id (int barrel_ec, int pos_neg, int feedthrough, int slot, bool checks) const
 
HWIdentifier feb_Id (IdentifierHash febHash) const
 create feb identifier from hash id More...
 
IdentifierHash feb_Hash (HWIdentifier febId) const
 Create feb hash identifiers from feb identifiers. More...
 
id_iterator feb_begin () const
 Returns an iterator pointing to a feb identifier collection. More...
 
id_iterator feb_end () const
 
id_range feb_range () const
 
HWIdentifier channel_Id (int barrel_ec, int pos_neg, int feedthrough, int slot, int channel) const
 create channel identifier from fields More...
 
HWIdentifier channel_Id (int barrel_ec, int pos_neg, int feedthrough, int slot, int channel, bool checks) const
 
HWIdentifier channel_Id (IdentifierHash channelHash) const
 Create channel identifiers from hash id. More...
 
IdentifierHash channel_Hash (HWIdentifier channelId) const
 Create channel_hash from channel_Id. More...
 
id_iterator channel_begin () const
 Returns an iterator pointing to a channel identifier collection. More...
 
id_iterator channel_end () const
 
id_range channel_range () const
 
HWIdentifier feedthrough_Id (const HWIdentifier Id) const
 Define a channel identifier from a feedthrough identifier. More...
 
HWIdentifier feb_Id (const HWIdentifier channelId) const
 Define a feb identifier from a channel identifier. More...
 
HWIdentifier feb_Id (const HWIdentifier feedthroughId, int slot) const
 Define a feb identifier from a feedthrough identifier. More...
 
HWIdentifier channel_Id (const HWIdentifier feedthroughId, int slot, int channel) const
 Define a channel identifier from a feedthrough identifier. More...
 
HWIdentifier channel_Id (const HWIdentifier feedthroughId, int slot, int channel, bool checks) const
 
HWIdentifier channel_Id (const HWIdentifier febId, int channel) const
 Define a channel identifier from a feb identifier. More...
 
HWIdentifier channel_Id (const HWIdentifier febId, int channel, bool checks) const
 
size_type feedthroughHashMax () const
 Define feedthrough hash tables max size. More...
 
size_type febHashMax () const
 define feb hash tables max size More...
 
size_type channelHashMax () const
 Define channel hash tables max size. More...
 
HWIdentifier calib_module_Id (int barrel_ec, int pos_neg, int feedthrough, int slot) const
 Build calibration module identifier from fields. More...
 
HWIdentifier calib_module_Id (IdentifierHash calibModuleHash) const
 Create calibration module identifier from hash identifiers. More...
 
IdentifierHash calib_module_Hash (HWIdentifier calibModuleId) const
 create calibration module_hash identifier from module Identifier More...
 
id_iterator calib_module_begin () const
 Return an iterator pointing to a calibFeb identifier 's collection. More...
 
id_iterator calib_module_end () const
 
id_range calib_module_range () const
 
HWIdentifier calib_channel_Id (int barrel_ec, int pos_neg, int feedthrough, int slot, int channel) const
 create calibration channel identifiers from fields More...
 
HWIdentifier calib_channel_Id (IdentifierHash calibChannelHash) const
 create calibration channel identifiers from hash identifiers More...
 
id_iterator calib_channel_begin () const
 Return an iterator pointing to a collection of calibration channel identifiers. More...
 
id_iterator calib_channel_end () const
 
id_range calib_channel_range () const
 
HWIdentifier calib_module_Id (const HWIdentifier ChannelId) const
 Define a calibration module identifier from a channel identifier. More...
 
HWIdentifier calib_module_Id (const HWIdentifier FeedthroughId, int slot) const
 Define a calibration module identifier from a feedthrough identifier. More...
 
HWIdentifier calib_channel_Id (const HWIdentifier FeedthroughId, int slot, int channel) const
 Define a calibration channel identifier from a feedthrough identifier. More...
 
HWIdentifier calib_channel_Id (const HWIdentifier febId, int ChannelId) const
 Define a calibration channel identifier from a feb identifier. More...
 
IdentifierHash calib_channel_Hash (HWIdentifier channelId) const
 
size_type calibModuleHashMax () const
 Define calibration module hash tables max size. More...
 
size_type calibChannelHashMax () const
 Define calibration channel hash tables max size. More...
 
bool isEMBchannel (const HWIdentifier id) const
 
virtual bool isEMECchannel (const HWIdentifier id) const =0
 
virtual bool isHECchannel (const HWIdentifier id) const =0
 
bool isFCALchannel (const HWIdentifier id) const
 
virtual bool isEMECIW (const HWIdentifier id) const =0
 
virtual bool isEMECOW (const HWIdentifier id) const =0
 
bool isEMBPS (const HWIdentifier id) const
 
bool isEMECPS (const HWIdentifier id) const
 
bool isPS (const HWIdentifier id) const
 
bool isNotWarmCableConnected (const HWIdentifier id) const
 
bool isCalibration (const HWIdentifier id) const
 
bool isHecOnline (const HWIdentifier id) const
 
bool isHecOnlineFebId (const HWIdentifier febId) const
 
bool isEMECinHECchannel (const HWIdentifier id) const
 
bool isEmBarrelOnline (const HWIdentifier id) const
 
bool isEmEndcapOnline (const HWIdentifier id) const
 
bool isEndcapOnline (const HWIdentifier id) const
 
bool isFcalOnline (const HWIdentifier id) const
 
bool isEmEndcapStandardOnline (const HWIdentifier id) const
 
bool isEmEndcapSpecialOnline (const HWIdentifier id) const
 
int channelInSlotMax (const HWIdentifier Id) const
 Return the Maximum channel number of a given feb slot. More...
 
std::string feedthrough_name (const HWIdentifier id) const
 Return a string corresponding to a feedthrough name given an identifier. More...
 
std::string channel_name (const HWIdentifier id) const
 Return a string corresponding to a feedthrough name given an identifier. More...
 
int barrel_ec (const HWIdentifier id) const
 Return the position barrel or endcap of a hardware cell identifier:
barrel_ec = [0,1] : Barrel / EndCap. More...
 
int pos_neg (const HWIdentifier id) const
 Return the side of a hardware cell identifier
pos_neg = [0,1] positive-side or negative-side Barrel/Endcap. More...
 
int feedthrough (const HWIdentifier id) const
 Return the feedthrough of a hardware cell identifier :
feedthrough = [0,31] Barrel - A/C side or H/I half barrel
feedthrough = [1,25] Endcap-Standard EMEC 1.6<|eta|<2.4 - A/C side
feedthrough = [1,25] Endcap-Special EMEC 1.5<|eta|<1.6 and 2.4<|eta|<3.2
feedthrough = [1,25] HEC A/C side. More...
 
int slot (const HWIdentifier id) const
 Return the slot number of a hardware cell identifier:
slot = [1,15] Slot-ID in top part of the crate (higher phi)
Note that a crate is = Slot(1-15)L + Slot(1-15)R. More...
 
int channel (const HWIdentifier id) const
 Return the channel number of a hardware cell identifier
channel = [0,127] in all FEB. More...
 
int is_slar (const HWIdentifier id) const
 Return whether the channel is in slar or not is_ slar = [0,1] in all FEB. More...
 
bool isValidId (const HWIdentifier id) const
 Returns false if the identifier is not a LAr-online id or any of the sub-fields is out of range. More...
 
virtual int initialize_from_dictionary (const IdDictMgr &dict_mgr)
 initialization from the identifier dictionary More...
 
IdContext cryostatEndContext () const
 Define context for cryostat (obsolete) More...
 
IdContext feedthroughContext () const
 Define context for feedthroughs. More...
 
IdContext febContext () const
 Define context for feb. More...
 
IdContext channelContext () const
 Define context for channel. More...
 
bool msgLvl (const MSG::Level lvl) const
 Test the output level. More...
 
MsgStream & msg () const
 The standard message stream. More...
 
MsgStream & msg (const MSG::Level lvl) const
 The standard message stream. More...
 
void setLevel (MSG::Level lvl)
 Change the current logging level. More...
 

Protected Types

enum  { NOT_VALID_HASH = 256000 }
 

Protected Member Functions

IdentifierHash feb_Hash_binary_search (HWIdentifier channelId) const
 
IdentifierHash channel_Hash_binary_search (HWIdentifier channelId) const
 
void channel_Id_checks (int barrel_ec, int pos_neg, int feedthrough, int slot, int channel) const
 
void channel_Id_checks (const HWIdentifier feedthroughId, int slot, int channel) const
 
void channel_Id_checks (const HWIdentifier febId, int channel) const
 
void feb_Id_checks (int barrel_ec, int pos_neg, int feedthrough, int slot) const
 
void feedthrough_Id_checks (int barrel_ec, int pos_neg, int feedthrough) const
 
int get_expanded_id (const HWIdentifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
 create expanded HWIdentifier from HWIdentifier (return == 0 for OK) More...
 
int get_expanded_calib_id (const HWIdentifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
 
int initLevelsFromDict (const std::string &group_name)
 
int init_hashes ()
 
int init_calib_hashes ()
 

Protected Attributes

bool m_this_is_slar
 
size_type m_laronlineRegion_index
 
size_type m_lar_index
 
size_type m_laronline_index
 
size_type m_bec_index
 
size_type m_side_index
 
size_type m_feedthrough_index
 
size_type m_slot_index
 
size_type m_channel_in_slot_index
 
size_type m_slar_index
 
const IdDictDictionarym_dict
 
MultiRange m_full_laronline_range
 
MultiRange m_full_feedthrough_range
 
MultiRange m_full_feb_range
 
MultiRange m_full_channel_range
 
size_type m_feedthroughHashMax
 
size_type m_febHashMax
 
size_type m_channelHashMax
 
std::vector< HWIdentifierm_feedthrough_vec
 
std::vector< HWIdentifierm_feb_vec
 
std::vector< HWIdentifierm_channel_vec
 
MultiRange m_full_calib_laronline_range
 
MultiRange m_full_calib_module_range
 
size_type m_calibModuleHashMax
 
size_type m_calibChannelHashMax
 
std::vector< HWIdentifierm_calib_module_vec
 
std::vector< HWIdentifierm_calib_channel_vec
 
IdDictFieldImplementation m_lar_impl
 Field Implementation. More...
 
IdDictFieldImplementation m_laronline_impl
 
IdDictFieldImplementation m_bec_impl
 
IdDictFieldImplementation m_side_impl
 
IdDictFieldImplementation m_feedthrough_impl
 
IdDictFieldImplementation m_slot_impl
 
IdDictFieldImplementation m_channel_in_slot_impl
 
IdDictFieldImplementation m_bec_ft_impl
 
IdDictFieldImplementation m_bec_slot_impl
 
IdDictFieldImplementation m_slar_impl
 
std::vector< HashCalcFebm_feb_hash_calcs
 
std::vector< HashCalcm_chan_hash_calcs
 

Private Member Functions

void initMessaging () const
 Initialize our message level and MessageSvc. More...
 

Private Attributes

std::string m_nm
 Message source name. More...
 
boost::thread_specific_ptr< MsgStream > m_msg_tls
 MsgStream instance (a std::cout like with print-out levels) More...
 
std::atomic< IMessageSvc * > m_imsg { nullptr }
 MessageSvc pointer. More...
 
std::atomic< MSG::Level > m_lvl { MSG::NIL }
 Current logging level. More...
 
std::atomic_flag m_initialized ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
 Messaging initialized (initMessaging) More...
 

setting pointer to the MessageService

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

Detailed Description

Helper for the Liquid Argon Calorimeter cell identifiers.

This class provides a hardware description of a calorimeter cell

Author
Arnaud Lucotte

LArCalorimeter fields:

Part: 4 = LArOnline barrel_ec : 0 = barrel 1 = end-cap pos_neg : 0 = negative eta side (C side) 1 = positive eta side (A side) feedthrough :
[0,31] = EM BARREL crates 00,01,04,07,08,11,12,13, 14,17,18,19,20,23,24 = EMEC Standard crates 02,09,15,21 = EMEC Special crates 03,10,16,22 = HEC crates (note: slots 1&2 are EMEC slots) 06 = FCAL crate
25-27 = sFCAL (is reported as FCAL) slot :
1 to 14 = EM BARREL crates 1 to 13 = Endcap Standard crates 1 to 15 = Endcap Special crates 5,6,7,8,9,10 = HEC in HEC crates 1,2 = EMEC in HEC crates 1 to 15 = FCAL crates 1 to 10 = sFCAL crates channel: 0 to 127

In the following, four contexts are defined:

Throw a LArOnlID_Exception if one parameter is out of range

Access Methods :

There are three types of methods:

RECOMMENDED methods : bool isEMBchannel (const HWIdentifier Id) const; bool isEMECchannel (const HWIdentifier Id) const; bool isHECchannel (const HWIdentifier Id) const; bool isFCALchannel (const HWIdentifier Id) const; bool isEMECIW (const HWIdentifier Id) const; bool isEMECOW (const HWIdentifier Id) const; bool isEndcapOnline (const HWIdentifier Id) const; bool isEmEndcapStandardOnline(const HWIdentifier Id) const; bool isEmEndcapSpecialOnline (const HWIdentifier Id) const; bool isEMBPS (const HWIdentifier Id) const; bool isEMECPS (const HWIdentifier Id) const; bool isPS (const HWIdentifier Id) const;

USE-with-CARE methods (still used for historical reasons): bool isHecOnline (const HWIdentifier chId) const; bool isHecOnlineFebId(const HWIdentifier febId)const; bool isEMECinHECchannel(const HWIdentifier Id) const;

OBSOLETE methods : bool isEmBarrelOnline(const HWIdentifier chId) const; -> use isEMBchannel bool isEmEndcapOnline(const HWIdentifier chId) const; -> use isEMECchannel bool isFcalOnline (const HWIdentifier chId) const; -> use isFCALchannel

int channelInSlotMax (const HWIdentifier Id) const;


Definition at line 104 of file LArOnlineID_Base.h.

Member Typedef Documentation

◆ id_iterator

typedef std::vector<HWIdentifier>::const_iterator LArOnlineID_Base::id_iterator

Type for iterators over identifiers.

Definition at line 111 of file LArOnlineID_Base.h.

◆ id_range

typedef boost::iterator_range<id_iterator> LArOnlineID_Base::id_range

Type for range over identifiers.

Definition at line 113 of file LArOnlineID_Base.h.

◆ size_type

Definition at line 108 of file LArOnlineID_Base.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
NOT_VALID_HASH 

Definition at line 444 of file LArOnlineID_Base.h.

444 {NOT_VALID_HASH = 256000};

◆ HelperType

enum AtlasDetectorID::HelperType
stronginherited

enum class for eventual final derived types of this class

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

Definition at line 60 of file AtlasDetectorID.h.

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

◆ ID

enum AtlasDetectorID::ID
privateinherited
Enumerator
ATLAS_ID 
MAX_BIT 
PIXEL_MASK 
ALL_BITS 

Definition at line 395 of file AtlasDetectorID.h.

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

Constructor & Destructor Documentation

◆ LArOnlineID_Base()

LArOnlineID_Base::LArOnlineID_Base ( const std::string &  name,
const std::string &  group,
bool  is_slar 
)

Default constructor.

Definition at line 47 of file LArOnlineID_Base.cxx.

49  :
53  m_lar_index(999),
54  m_laronline_index(999),
55  m_bec_index(999),
56  m_side_index(999),
58  m_slot_index(999),
60  m_slar_index(999),
61  m_dict(nullptr),
63  m_febHashMax(0),
67 {
68 }

◆ ~LArOnlineID_Base()

LArOnlineID_Base::~LArOnlineID_Base ( )
default

Default destructor.

Member Function Documentation

◆ alfa_exp()

ExpandedIdentifier AtlasDetectorID::alfa_exp ( void  ) const
inlineprotectedinherited

Forward.

Definition at line 590 of file AtlasDetectorID.h.

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

◆ alfa_field_value()

int AtlasDetectorID::alfa_field_value ( ) const
inlineprotectedinherited

Definition at line 680 of file AtlasDetectorID.h.

680 {return (m_ALFA_ID);}

◆ barrel_ec()

int LArOnlineID_Base::barrel_ec ( const HWIdentifier  id) const

Return the position barrel or endcap of a hardware cell identifier:
barrel_ec = [0,1] : Barrel / EndCap.

Definition at line 1938 of file LArOnlineID_Base.cxx.

1940 {
1941  return (m_bec_impl.unpack(id));
1942 }

◆ bcm_exp()

ExpandedIdentifier AtlasDetectorID::bcm_exp ( void  ) const
inlineprotectedinherited

Definition at line 597 of file AtlasDetectorID.h.

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

◆ bcm_field_value()

int AtlasDetectorID::bcm_field_value ( ) const
inlineprotectedinherited

Definition at line 682 of file AtlasDetectorID.h.

682 {return (m_BCM_ID);}

◆ calib_channel_begin()

LArOnlineID_Base::id_iterator LArOnlineID_Base::calib_channel_begin ( ) const
inline

Return an iterator pointing to a collection of calibration channel identifiers.

Definition at line 713 of file LArOnlineID_Base.h.

715 {
716  return(m_calib_channel_vec.begin());
717 }

◆ calib_channel_end()

LArOnlineID_Base::id_iterator LArOnlineID_Base::calib_channel_end ( ) const
inline

Definition at line 718 of file LArOnlineID_Base.h.

720 {
721  return(m_calib_channel_vec.end());
722 }

◆ calib_channel_Hash()

IdentifierHash LArOnlineID_Base::calib_channel_Hash ( HWIdentifier  channelId) const
inline

Definition at line 670 of file LArOnlineID_Base.h.

672 {
673  std::vector<HWIdentifier>::const_iterator it = std::lower_bound(m_calib_channel_vec.begin(),m_calib_channel_vec.end(),channelId);
674  if ( it != m_calib_channel_vec.end() ){
675  return (it - m_calib_channel_vec.begin());
676  }
677  return(0) ;
678 }

◆ calib_channel_Id() [1/4]

HWIdentifier LArOnlineID_Base::calib_channel_Id ( const HWIdentifier  febId,
int  ChannelId 
) const
inline

Define a calibration channel identifier from a feb identifier.

Definition at line 654 of file LArOnlineID_Base.h.

656 {
657  HWIdentifier result(febId);
658  /* Pack fields independently */
661 
662  return result;
663 }

◆ calib_channel_Id() [2/4]

HWIdentifier LArOnlineID_Base::calib_channel_Id ( const HWIdentifier  FeedthroughId,
int  slot,
int  channel 
) const
inline

Define a calibration channel identifier from a feedthrough identifier.

Definition at line 641 of file LArOnlineID_Base.h.

643 {
644  HWIdentifier result(feedthroughId);
645  /* Pack fields independently */
650 
651  return result;
652 }

◆ calib_channel_Id() [3/4]

HWIdentifier LArOnlineID_Base::calib_channel_Id ( IdentifierHash  calibChannelHash) const
inline

create calibration channel identifiers from hash identifiers

Definition at line 664 of file LArOnlineID_Base.h.

666 {
667  return(m_calib_channel_vec[channelHashId]);
668 }

◆ calib_channel_Id() [4/4]

HWIdentifier LArOnlineID_Base::calib_channel_Id ( int  barrel_ec,
int  pos_neg,
int  feedthrough,
int  slot,
int  channel 
) const
inline

create calibration channel identifiers from fields

Definition at line 624 of file LArOnlineID_Base.h.

627 {
628  HWIdentifier result(0);
629  /* Pack fields independently */
637 
638  return result;
639 }

◆ calib_channel_range()

LArOnlineID_Base::id_range LArOnlineID_Base::calib_channel_range ( ) const
inline

Definition at line 723 of file LArOnlineID_Base.h.

725 {
727 }

◆ calib_module_begin()

LArOnlineID_Base::id_iterator LArOnlineID_Base::calib_module_begin ( ) const
inline

Return an iterator pointing to a calibFeb identifier 's collection.

Definition at line 697 of file LArOnlineID_Base.h.

699 {
700  return(m_calib_module_vec.begin());
701 }

◆ calib_module_end()

LArOnlineID_Base::id_iterator LArOnlineID_Base::calib_module_end ( ) const
inline

Definition at line 702 of file LArOnlineID_Base.h.

704 {
705  return(m_calib_module_vec.end());
706 }

◆ calib_module_Hash()

IdentifierHash LArOnlineID_Base::calib_module_Hash ( HWIdentifier  calibModuleId) const
inline

create calibration module_hash identifier from module Identifier

Definition at line 614 of file LArOnlineID_Base.h.

616 {
617  std::vector<HWIdentifier>::const_iterator it = std::lower_bound(m_calib_module_vec.begin(),m_calib_module_vec.end(),calibModuleId);
618  if ( it != m_calib_module_vec.end() ){
619  return (it - m_calib_module_vec.begin());
620  }
621  return (0);
622 }

◆ calib_module_Id() [1/4]

HWIdentifier LArOnlineID_Base::calib_module_Id ( const HWIdentifier  ChannelId) const
inline

Define a calibration module identifier from a channel identifier.

Definition at line 600 of file LArOnlineID_Base.h.

602 {
603  HWIdentifier result(calibChannelId);
605  return(result);
606 }

◆ calib_module_Id() [2/4]

HWIdentifier LArOnlineID_Base::calib_module_Id ( const HWIdentifier  FeedthroughId,
int  slot 
) const
inline

Define a calibration module identifier from a feedthrough identifier.

Definition at line 590 of file LArOnlineID_Base.h.

592 {
593  HWIdentifier result(feedthroughId);
594  /* Pack fields independently */
597  return(result);
598 }

◆ calib_module_Id() [3/4]

HWIdentifier LArOnlineID_Base::calib_module_Id ( IdentifierHash  calibModuleHash) const
inline

Create calibration module identifier from hash identifiers.

Definition at line 608 of file LArOnlineID_Base.h.

610 {
611  return(m_calib_module_vec[calibModuleHashId]);
612 }

◆ calib_module_Id() [4/4]

HWIdentifier LArOnlineID_Base::calib_module_Id ( int  barrel_ec,
int  pos_neg,
int  feedthrough,
int  slot 
) const
inline

Build calibration module identifier from fields.

Definition at line 575 of file LArOnlineID_Base.h.

578 {
579  HWIdentifier result(0);
580  /*Pack fields independently */
587  return result;
588 }

◆ calib_module_range()

LArOnlineID_Base::id_range LArOnlineID_Base::calib_module_range ( ) const
inline

Definition at line 707 of file LArOnlineID_Base.h.

709 {
711 }

◆ calibChannelHashMax()

LArOnlineID_Base::size_type LArOnlineID_Base::calibChannelHashMax ( ) const
inline

Define calibration channel hash tables max size.

Definition at line 686 of file LArOnlineID_Base.h.

688 {
689  return m_calibChannelHashMax;
690 }

◆ calibModuleHashMax()

LArOnlineID_Base::size_type LArOnlineID_Base::calibModuleHashMax ( ) const
inline

Define calibration module hash tables max size.

Definition at line 681 of file LArOnlineID_Base.h.

683 {
684  return m_calibModuleHashMax;
685 }

◆ calo()

Identifier AtlasDetectorID::calo ( void  ) const
inherited

Definition at line 78 of file AtlasDetectorID.cxx.

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

◆ calo_exp()

ExpandedIdentifier AtlasDetectorID::calo_exp ( void  ) const
inlineprotectedinherited

Definition at line 520 of file AtlasDetectorID.h.

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

◆ calo_field_value()

int AtlasDetectorID::calo_field_value ( ) const
inlineprotectedinherited

Definition at line 630 of file AtlasDetectorID.h.

630 {return (m_CALO_ID);}

◆ channel()

int LArOnlineID_Base::channel ( const HWIdentifier  id) const

Return the channel number of a hardware cell identifier
channel = [0,127] in all FEB.

Definition at line 1963 of file LArOnlineID_Base.cxx.

1965 {
1966  return (m_channel_in_slot_impl.unpack(id));
1967 }

◆ channel_begin()

LArOnlineID_Base::id_iterator LArOnlineID_Base::channel_begin ( ) const

Returns an iterator pointing to a channel identifier collection.

Definition at line 1922 of file LArOnlineID_Base.cxx.

1924 {
1925  return(m_channel_vec.begin());
1926 }

◆ channel_end()

LArOnlineID_Base::id_iterator LArOnlineID_Base::channel_end ( ) const

Definition at line 1927 of file LArOnlineID_Base.cxx.

1929 {
1930  return(m_channel_vec.end());
1931 }

◆ channel_Hash()

IdentifierHash LArOnlineID_Base::channel_Hash ( HWIdentifier  channelId) const

Create channel_hash from channel_Id.

Definition at line 1632 of file LArOnlineID_Base.cxx.

1633 {
1634  const HashCalc& hc = m_chan_hash_calcs[m_bec_slot_impl.unpack(channelId)];
1635  return (hc.m_hash + channel(channelId));
1636 }

◆ channel_Hash_binary_search()

IdentifierHash LArOnlineID_Base::channel_Hash_binary_search ( HWIdentifier  channelId) const
inlineprotected

Definition at line 562 of file LArOnlineID_Base.h.

564 {
565  std::vector<HWIdentifier>::const_iterator it = std::lower_bound(m_channel_vec.begin(),m_channel_vec.end(),channelId);
566  if ( it != m_channel_vec.end() ){
567  return (it - m_channel_vec.begin());
568  }
569  return(0) ;
570 }

◆ channel_Id() [1/7]

HWIdentifier LArOnlineID_Base::channel_Id ( const HWIdentifier  febId,
int  channel 
) const

Define a channel identifier from a feb identifier.

Definition at line 1626 of file LArOnlineID_Base.cxx.

1627 {
1628  return channel_Id (febId, channel, do_checks());
1629 }

◆ channel_Id() [2/7]

HWIdentifier LArOnlineID_Base::channel_Id ( const HWIdentifier  febId,
int  channel,
bool  checks 
) const

Definition at line 1607 of file LArOnlineID_Base.cxx.

1610 {
1611  HWIdentifier result(febId);
1612  /* Pack fields independently */
1615  if ( m_this_is_slar )
1616  m_slar_impl.pack (1, result);
1617 
1618  /* Do checks */
1619  if(checks) {
1620  channel_Id_checks( febId, channel );
1621  }
1622  return result;
1623 }

◆ channel_Id() [3/7]

HWIdentifier LArOnlineID_Base::channel_Id ( const HWIdentifier  feedthroughId,
int  slot,
int  channel 
) const

Define a channel identifier from a feedthrough identifier.

Definition at line 1601 of file LArOnlineID_Base.cxx.

1602 {
1603  return channel_Id (feedthroughId, slot, channel, do_checks());
1604 }

◆ channel_Id() [4/7]

HWIdentifier LArOnlineID_Base::channel_Id ( const HWIdentifier  feedthroughId,
int  slot,
int  channel,
bool  checks 
) const

Definition at line 1580 of file LArOnlineID_Base.cxx.

1583 {
1584  HWIdentifier result(feedthroughId);
1585  /* Pack fields independently */
1590  if ( m_this_is_slar )
1591  m_slar_impl.pack (1 , result);
1592 
1593  /* Do checks */
1594  if(checks) {
1595  channel_Id_checks( feedthroughId, slot, channel );
1596  }
1597  return result;
1598 }

◆ channel_Id() [5/7]

HWIdentifier LArOnlineID_Base::channel_Id ( IdentifierHash  channelHash) const

Create channel identifiers from hash id.

Definition at line 1572 of file LArOnlineID_Base.cxx.

1574 {
1575  return(m_channel_vec[channelHashId]);
1576 }

◆ channel_Id() [6/7]

HWIdentifier LArOnlineID_Base::channel_Id ( int  barrel_ec,
int  pos_neg,
int  feedthrough,
int  slot,
int  channel 
) const

create channel identifier from fields

Definition at line 1565 of file LArOnlineID_Base.cxx.

1567 {
1569  do_checks());
1570 }

◆ channel_Id() [7/7]

HWIdentifier LArOnlineID_Base::channel_Id ( int  barrel_ec,
int  pos_neg,
int  feedthrough,
int  slot,
int  channel,
bool  checks 
) const

Definition at line 1540 of file LArOnlineID_Base.cxx.

1544 {
1545  HWIdentifier result(0);
1546  /* Pack fields independently */
1548  m_laronline_impl.pack (s_lar_online_field_value , result);
1554  if ( m_this_is_slar )
1555  m_slar_impl.pack (1 , result);
1556 
1557  /* Do checks */
1558  if(checks) {
1560  }
1561  return result;
1562 }

◆ channel_Id_checks() [1/3]

void LArOnlineID_Base::channel_Id_checks ( const HWIdentifier  febId,
int  channel 
) const
protected

Definition at line 702 of file LArOnlineID_Base.cxx.

705 {
706  // Check that id is within allowed range
707  // Fill expanded id
708  ExpandedIdentifier expId;
709  IdContext context = febContext();
710  if (get_expanded_id(febId, expId, &context)) {
711  std::string errorMessage = "LArOnlineID_Base::channel_Id_checks(febId) result is not OK: ID = "
712  + show_to_string(febId) ;
713  LArOnlID_Exception except(errorMessage , 99);
714  throw except ;
715  }
716 
717  expId << channel;
718  if ( m_this_is_slar ) expId << 1;
719  if (!m_full_laronline_range.match(expId)) {
720  std::string errorMessage = "LArOnlineID_Base::channel_Id_checks(febId) result is not OK: ID, range = "
721  + std::string(expId) + " , " + (std::string)m_full_laronline_range;
722  LArOnlID_Exception except(errorMessage , 99);
723  throw except ;
724  }
725 }

◆ channel_Id_checks() [2/3]

void LArOnlineID_Base::channel_Id_checks ( const HWIdentifier  feedthroughId,
int  slot,
int  channel 
) const
protected

Definition at line 728 of file LArOnlineID_Base.cxx.

731 {
732  // Check that id is within allowed range
733  // Fill expanded id
734  ExpandedIdentifier expId;
735  IdContext context = feedthroughContext();
736  if (get_expanded_id(feedthroughId, expId, &context)) {
737  std::string errorMessage = "LArOnlineID_Base::channel_Id_checks(feedthroughId) result is not OK: ID = "
738  + show_to_string(feedthroughId) ;
739  LArOnlID_Exception except(errorMessage , 99);
740  throw except ;
741  }
742 
743  expId << slot << channel;
744  if ( m_this_is_slar ) expId << 1;
745  if (!m_full_laronline_range.match(expId)) {
746  std::string errorMessage = "LArOnlineID_Base::channel_Id_checks(feedthroughId) result is not OK: ID, range = "
747  + std::string(expId) + " , " + (std::string)m_full_laronline_range;
748  LArOnlID_Exception except(errorMessage , 99);
749  throw except ;
750  }
751 }

◆ channel_Id_checks() [3/3]

void LArOnlineID_Base::channel_Id_checks ( int  barrel_ec,
int  pos_neg,
int  feedthrough,
int  slot,
int  channel 
) const
protected

Definition at line 683 of file LArOnlineID_Base.cxx.

686 {
687  // Check that id is within allowed range
688  // Fill expanded id
689  ExpandedIdentifier expId(lar_exp());
690  expId << s_lar_online_field_value << barrel_ec << pos_neg << feedthrough << slot << channel ;
691  if ( m_this_is_slar ) expId << 1;
692 
693  if (!m_full_laronline_range.match(expId)) {
694  std::string errorMessage = "LArOnlineID_Base::channel_Id_checks() result is not OK: ID, range = "
695  + std::string(expId) + " , " + (std::string)m_full_laronline_range;
696  LArOnlID_Exception except(errorMessage , 99);
697  throw except ;
698  }
699 }

◆ channel_name()

std::string LArOnlineID_Base::channel_name ( const HWIdentifier  id) const

Return a string corresponding to a feedthrough name given an identifier.

Definition at line 221 of file LArOnlineID_Base.cxx.

221  {
222 //==================================================================
223  std::ostringstream s1;
224  //std::string s2;
225  int Nchan = channel(id);
226  int Nslot = slot(id);
227  int Nft = feedthrough(id);
228  std::string det_barrel_endcap = "NODETE";
229  std::string det_side = "/X-SIDE";
230 
231  if( barrel_ec(id) == 0 ) det_barrel_endcap = "BARREL";
232  if( barrel_ec(id) == 1 ) det_barrel_endcap = "ENDCAP";
233  if( pos_neg(id) == 1 ) det_side = "/A-SIDE";
234  if( pos_neg(id) == 0 ) det_side = "/C-SIDE";
235 
236  s1 << det_barrel_endcap
237  << det_side
238  << "/FT-" << Nft
239  << "/SLOT-" << Nslot
240  << "/CHAN-" << Nchan;
241  return s1.str();
242  //return s2;
243 }

◆ channel_range()

LArOnlineID_Base::id_range LArOnlineID_Base::channel_range ( ) const

Definition at line 1932 of file LArOnlineID_Base.cxx.

1934 {
1935  return {channel_begin(), channel_end()};
1936 }

◆ channelContext()

IdContext LArOnlineID_Base::channelContext ( ) const

Define context for channel.

Definition at line 269 of file LArOnlineID_Base.cxx.

271 {
273  return (IdContext(id, 0, m_channel_in_slot_index));
274 }

◆ channelHashMax()

LArOnlineID_Base::size_type LArOnlineID_Base::channelHashMax ( ) const

Define channel hash tables max size.

Definition at line 1897 of file LArOnlineID_Base.cxx.

1899 {
1900  return m_channelHashMax;
1901 }

◆ channelInSlotMax()

int LArOnlineID_Base::channelInSlotMax ( const HWIdentifier  Id) const

Return the Maximum channel number of a given feb slot.

Definition at line 289 of file LArOnlineID_Base.cxx.

291 {
292 
293  ExpandedIdentifier expId;
294  IdContext context = channelContext();
295  if(!get_expanded_id(channelId, expId, &context)) {
296  int result = -999;
297  for (unsigned int i = 0; i < m_full_laronline_range.size(); ++i) {
299  if (range.match(expId)) {
300  const Range::field& channel_in_slot_field = range[m_channel_in_slot_index];
301  if (!channel_in_slot_field.empty()) {
302  int channel_in_slotmax = channel_in_slot_field.get_maximum();
303  if (result < channel_in_slotmax) result = channel_in_slotmax + 1;
304  }
305  }
306  }
307  return (result);
308  }
309  return (-999); // default
310 }

◆ cryostatEndContext()

IdContext LArOnlineID_Base::cryostatEndContext ( ) const

Define context for cryostat (obsolete)

Definition at line 248 of file LArOnlineID_Base.cxx.

250 {
252  return (IdContext(id, 0, m_side_index));
253 }

◆ csc()

Identifier AtlasDetectorID::csc ( void  ) const
inherited

Definition at line 35 of file AtlasDetectorID.cxx.

35  {
36  return Identifier{};
37 }

◆ csc_field_value()

int AtlasDetectorID::csc_field_value ( ) const
inlineprotectedinherited

Definition at line 663 of file AtlasDetectorID.h.

663 {return (m_CSC_ID);}

◆ detsystem_context()

IdContext AtlasDetectorID::detsystem_context ( void  ) const
inherited

IdContext (indicates id length) for detector systems.

Definition at line 173 of file AtlasDetectorID.cxx.

173  {
174  ExpandedIdentifier id{};
175  return IdContext{id, 0, m_DET_INDEX};
176 }

◆ dict_names()

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

Dictionary names.

Definition at line 458 of file AtlasDetectorID.cxx.

458  {
459  return m_dict_names;
460 }

◆ dict_tags()

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

Version tags for subdet dictionaries.

Definition at line 464 of file AtlasDetectorID.cxx.

464  {
465  return m_dict_tags;
466 }

◆ dictionaryVersion()

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

Implements IdHelper.

Definition at line 276 of file AtlasDetectorID.cxx.

276  {
277  return m_dict_version;
278 }

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

467  {
468  return m_do_checks;
469 }

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

474  {
475  return m_do_neighbours;
476 }

◆ feb_begin()

LArOnlineID_Base::id_iterator LArOnlineID_Base::feb_begin ( ) const

Returns an iterator pointing to a feb identifier collection.

Definition at line 1906 of file LArOnlineID_Base.cxx.

1908 {
1909  return(m_feb_vec.begin());
1910 }

◆ feb_end()

LArOnlineID_Base::id_iterator LArOnlineID_Base::feb_end ( ) const

Definition at line 1911 of file LArOnlineID_Base.cxx.

1913 {
1914  return(m_feb_vec.end());
1915 }

◆ feb_Hash()

IdentifierHash LArOnlineID_Base::feb_Hash ( HWIdentifier  febId) const

Create feb hash identifiers from feb identifiers.

Definition at line 1512 of file LArOnlineID_Base.cxx.

1514 {
1515  // Get the hash caculator for the febs
1516  const HashCalcFeb& hc = m_feb_hash_calcs[m_bec_ft_impl.unpack(febId)];
1517  // Two cases:
1518  // 1) slot values are enumerated and we must look for a matching
1519  // value to obtain the index
1520  // 2) slot values are a continuous range, then the slot index is
1521  // sufficient for the hash calculation
1522  if (!hc.m_slot_values.empty()) {
1523  // find matching value
1524  int slotValue = slot(febId);
1525  for (int i = 0; (unsigned int)i < hc.m_slot_values.size(); ++i) {
1526  if (slotValue == hc.m_slot_values[i]) return (hc.m_hash + i);
1527  }
1528  MsgStream log(m_msgSvc, "LArOnlineID_Base" );
1529  if(m_msgSvc) {
1530  log << MSG::WARNING << "LArOnlineID_Base::feb_Hash - ***** WARNING: could not match slot value for has calculation " << endmsg;
1531  } else {
1532  std::cout << "LArOnlineID_Base::feb_Hash - ***** WARNING: could not match slot value for has calculation " << std::endl;
1533  }
1534  }
1535  size_type slotIndex = m_slot_impl.unpackToIndex(febId);
1536  return (hc.m_hash + slotIndex);
1537 }

◆ feb_Hash_binary_search()

IdentifierHash LArOnlineID_Base::feb_Hash_binary_search ( HWIdentifier  channelId) const
inlineprotected

Definition at line 551 of file LArOnlineID_Base.h.

553 {
554  std::vector<HWIdentifier>::const_iterator it = std::lower_bound(m_feb_vec.begin(),m_feb_vec.end(),febId);
555  if ( it != m_feb_vec.end() ){
556  return (it - m_feb_vec.begin());
557  }
558  return (0);
559 }

◆ feb_Id() [1/5]

HWIdentifier LArOnlineID_Base::feb_Id ( const HWIdentifier  channelId) const

Define a feb identifier from a channel identifier.

Definition at line 1498 of file LArOnlineID_Base.cxx.

1500 {
1503  return(result);
1504 }

◆ feb_Id() [2/5]

HWIdentifier LArOnlineID_Base::feb_Id ( const HWIdentifier  feedthroughId,
int  slot 
) const

Define a feb identifier from a feedthrough identifier.

Definition at line 1485 of file LArOnlineID_Base.cxx.

1487 {
1488  HWIdentifier result(feedthroughId);
1489  /* Pack fields independently */
1492  if ( m_this_is_slar )
1493  m_slar_impl.pack (1 , result);
1494 
1495  return(result);
1496 }

◆ feb_Id() [3/5]

HWIdentifier LArOnlineID_Base::feb_Id ( IdentifierHash  febHash) const

create feb identifier from hash id

Definition at line 1506 of file LArOnlineID_Base.cxx.

1508 {
1509  return(m_feb_vec[febHashId]);
1510 }

◆ feb_Id() [4/5]

HWIdentifier LArOnlineID_Base::feb_Id ( int  barrel_ec,
int  pos_neg,
int  feedthrough,
int  slot 
) const

Create feb_Id from fields.

Definition at line 1479 of file LArOnlineID_Base.cxx.

1481 {
1483 }

◆ feb_Id() [5/5]

HWIdentifier LArOnlineID_Base::feb_Id ( int  barrel_ec,
int  pos_neg,
int  feedthrough,
int  slot,
bool  checks 
) const

Definition at line 1454 of file LArOnlineID_Base.cxx.

1458 {
1459  HWIdentifier result(0);
1460 
1461  /*Pack fields independently */
1463  m_laronline_impl.pack (s_lar_online_field_value, result);
1468  if ( m_this_is_slar )
1469  m_slar_impl.pack (1 , result);
1470 
1471  /* Do checks */
1472  if(checks) {
1474  }
1475  return result;
1476 }

◆ feb_Id_checks()

void LArOnlineID_Base::feb_Id_checks ( int  barrel_ec,
int  pos_neg,
int  feedthrough,
int  slot 
) const
protected

Definition at line 754 of file LArOnlineID_Base.cxx.

756 {
757  // Check that id is within allowed range
758  // Fill expanded id
759  ExpandedIdentifier expId(lar_exp());
760  expId << s_lar_online_field_value << barrel_ec << pos_neg << feedthrough << slot ;
761 
762  if ( m_this_is_slar ) expId << 0 << 1;
763  if (!m_full_feedthrough_range.match(expId)) { std::string errorMessage = "LArOnlineID_Base::feb_Id_checks() result is not OK: ID, range = "
764  + std::string(expId) + " , " + (std::string)m_full_feb_range;
765  LArOnlID_Exception except(errorMessage , 99);
766  throw except ;
767  }
768 }

◆ feb_range()

LArOnlineID_Base::id_range LArOnlineID_Base::feb_range ( ) const

Definition at line 1916 of file LArOnlineID_Base.cxx.

1918 {
1919  return {feb_begin(), feb_end()};
1920 }

◆ febContext()

IdContext LArOnlineID_Base::febContext ( ) const

Define context for feb.

Definition at line 279 of file LArOnlineID_Base.cxx.

281 {
283  return (IdContext(id, 0, m_slot_index));
284 }

◆ febHashMax()

LArOnlineID_Base::size_type LArOnlineID_Base::febHashMax ( ) const

define feb hash tables max size

Definition at line 1892 of file LArOnlineID_Base.cxx.

1894 {
1895  return m_febHashMax;
1896 }

◆ feedthrough()

int LArOnlineID_Base::feedthrough ( const HWIdentifier  id) const

Return the feedthrough of a hardware cell identifier :
feedthrough = [0,31] Barrel - A/C side or H/I half barrel
feedthrough = [1,25] Endcap-Standard EMEC 1.6<|eta|<2.4 - A/C side
feedthrough = [1,25] Endcap-Special EMEC 1.5<|eta|<1.6 and 2.4<|eta|<3.2
feedthrough = [1,25] HEC A/C side.

Definition at line 1944 of file LArOnlineID_Base.cxx.

1946 {
1947  return (m_feedthrough_impl.unpack(id));
1948 }

◆ feedthrough_begin()

LArOnlineID_Base::id_iterator LArOnlineID_Base::feedthrough_begin ( ) const

Return an iterator pointing to Feedthrough identifiers collection.

Definition at line 1431 of file LArOnlineID_Base.cxx.

1433 {
1434  return(m_feedthrough_vec.begin());
1435 }

◆ feedthrough_end()

LArOnlineID_Base::id_iterator LArOnlineID_Base::feedthrough_end ( ) const

Definition at line 1437 of file LArOnlineID_Base.cxx.

1439 {
1440  return(m_feedthrough_vec.end());
1441 }

◆ feedthrough_Hash()

IdentifierHash LArOnlineID_Base::feedthrough_Hash ( HWIdentifier  feedthroughId) const

Create hash id from feedthrough identifiers.

Definition at line 1412 of file LArOnlineID_Base.cxx.

1414 {
1415  std::vector<HWIdentifier>::const_iterator it = std::lower_bound(m_feedthrough_vec.begin(),m_feedthrough_vec.end(),feedthroughId);
1416  if ( it != m_feedthrough_vec.end() ){
1417  return (it - m_feedthrough_vec.begin());
1418  }
1419  return (0);
1420 }

◆ feedthrough_Id() [1/4]

HWIdentifier LArOnlineID_Base::feedthrough_Id ( const HWIdentifier  Id) const

Define a channel identifier from a feedthrough identifier.

Definition at line 1422 of file LArOnlineID_Base.cxx.

1424 {
1425  HWIdentifier result(Id);
1428  return(result);
1429 }

◆ feedthrough_Id() [2/4]

HWIdentifier LArOnlineID_Base::feedthrough_Id ( IdentifierHash  feedthroughHash) const

Create a feedthrough identifier from hash_id.

Definition at line 1406 of file LArOnlineID_Base.cxx.

1408 {
1409  return(m_feedthrough_vec[feedthroughHashId]);
1410 }

◆ feedthrough_Id() [3/4]

HWIdentifier LArOnlineID_Base::feedthrough_Id ( int  barrel_ec,
int  pos_neg,
int  feedthrough 
) const

Create a feedthrough identifier from fields.

Definition at line 1400 of file LArOnlineID_Base.cxx.

1401 {
1403 }

◆ feedthrough_Id() [4/4]

HWIdentifier LArOnlineID_Base::feedthrough_Id ( int  barrel_ec,
int  pos_neg,
int  feedthrough,
bool  checks 
) const

Definition at line 1378 of file LArOnlineID_Base.cxx.

1380 {
1381  HWIdentifier result(0);
1382 
1383  /*Pack fields independently */
1385  m_laronline_impl.pack (s_lar_online_field_value, result);
1389  if ( m_this_is_slar )
1390  m_slar_impl.pack (1 , result);
1391 
1392  /* Do checks */
1393  if(checks)
1394  {
1396  }
1397  return result;
1398 }

◆ feedthrough_Id_checks()

void LArOnlineID_Base::feedthrough_Id_checks ( int  barrel_ec,
int  pos_neg,
int  feedthrough 
) const
protected

Definition at line 771 of file LArOnlineID_Base.cxx.

773 {
774  // Check that id is within allowed range
775  // Fill expanded id
776  ExpandedIdentifier expId(lar_exp());
777  expId << s_lar_online_field_value << barrel_ec << pos_neg << feedthrough << 0 << 0 << (int)m_this_is_slar;
778 
779 // if ( m_this_is_slar ) expId << 0 << 0 << 1;
780  if (!m_full_feedthrough_range.match(expId)) { std::string errorMessage = "LArOnlineID_Base::feedthrough_Id_checks() result is not OK: ID, range = "
781  + std::string(expId) + " , " + (std::string)m_full_feedthrough_range;
782  LArOnlID_Exception except(errorMessage , 99);
783  throw except ;
784  }
785 }

◆ feedthrough_name()

std::string LArOnlineID_Base::feedthrough_name ( const HWIdentifier  id) const

Return a string corresponding to a feedthrough name given an identifier.

Definition at line 75 of file LArOnlineID_Base.cxx.

75  {
76 //==================================================================
77  std::string result;
78  int ft = feedthrough(id);
79  if( barrel_ec(id)== 0 ){
80  // if BARREL
81  if( pos_neg(id) == 1 ){
82  // if EMBA
83  if( ft==31 ){result = "I01R";}
84  if( ft==0 ){result = "I01L";}
85  if( ft==1 ){result = "I02R";}
86  if( ft==2 ){result = "I02L";}
87  if( ft==3 ){result = "I03R";}
88  if( ft==4 ){result = "I03L";}
89  if( ft==5 ){result = "I04R";}
90  if( ft==6 ){result = "I04L";}
91  if( ft==7 ){result = "I05R";}
92  if( ft==8 ){result = "I05L";}
93  if( ft==9 ){result = "I06R";}
94  if( ft==10 ){result = "I06L";}
95  if( ft==11 ){result = "I07R";}
96  if( ft==12 ){result = "I07L";}
97  if( ft==13 ){result = "I08R";}
98  if( ft==14 ){result = "I08L";}
99  if( ft==15 ){result = "I09R";}
100  if( ft==16 ){result = "I09L";}
101  if( ft==17 ){result = "I10R";}
102  if( ft==18 ){result = "I10L";}
103  if( ft==19 ){result = "I11R";}
104  if( ft==20 ){result = "I11L";}
105  if( ft==21 ){result = "I12R";}
106  if( ft==22 ){result = "I12L";}
107  if( ft==23 ){result = "I13R";}
108  if( ft==24 ){result = "I13L";}
109  if( ft==25 ){result = "I14R";}
110  if( ft==26 ){result = "I14L";}
111  if( ft==27 ){result = "I15R";}
112  if( ft==28 ){result = "I15L";}
113  if( ft==29 ){result = "I16R";}
114  if( ft==30 ){result = "I16L";}
115  }
116  else{
117  // EMBC
118  if( ft==15 ){result = "H01R";}
119  if( ft==16 ){result = "H01L";}
120  if( ft==13 ){result = "H02R";}
121  if( ft==14 ){result = "H02L";}
122  if( ft==11 ){result = "H03R";}
123  if( ft==12 ){result = "H03L";}
124  if( ft==9 ){result = "H04R";}
125  if( ft==10){result = "H04L";}
126  if( ft==7 ){result = "H05R";}
127  if( ft==8 ){result = "H05L";}
128  if( ft==5 ){result = "H06R";}
129  if( ft==6 ){result = "H06L";}
130  if( ft==3 ){result = "H07R";}
131  if( ft==4 ){result = "H07L";}
132  if( ft==1 ){result = "H08R";}
133  if( ft==2 ){result = "H08L";}
134  if( ft==31){result = "H09R";}
135  if( ft==0 ){result = "H09L";}
136  if( ft==29 ){result = "H10R";}
137  if( ft==30 ){result = "H10L";}
138  if( ft==27 ){result = "H11R";}
139  if( ft==28 ){result = "H11L";}
140  if( ft==25 ){result = "H12R";}
141  if( ft==26 ){result = "H12L";}
142  if( ft==23 ){result = "H13R";}
143  if( ft==24 ){result = "H13L";}
144  if( ft==21 ){result = "H14R";}
145  if( ft==22 ){result = "H14L";}
146  if( ft==19 ){result = "H15R";}
147  if( ft==20 ){result = "H15L";}
148  if( ft==17 ){result = "H16R";}
149  if( ft==18 ){result = "H16L";}
150  }
151  }
152  if ( barrel_ec(id) == 1 ){
153  // ENDCAP
154  if( pos_neg(id) == 1 ){
155  // EMEC-A
156  if( ft==0 ){result = "A01R";}
157  if( ft==1 ){result = "A01L";}
158  if( ft==2 ){result = "A02R";}
159  if( ft==3 ){result = "A02L";}
160  if( ft==4 ){result = "A03R";}
161  if( ft==5 ){result = "A03L";}
162  if( ft==6 ){result = "A04R";}
163  if( ft==7 ){result = "A05R";}
164  if( ft==8 ){result = "A05L";}
165  if( ft==9 ){result = "A06R";}
166  if( ft==10){result = "A06L";}
167  if( ft==11){result = "A07R";}
168  if( ft==12){result = "A07L";}
169  if( ft==13){result = "A08R";}
170  if( ft==14){result = "A08L";}
171  if( ft==15){result = "A09R";}
172  if( ft==16){result = "A09L";}
173  if( ft==17){result = "A10R";}
174  if( ft==18){result = "A10L";}
175  if( ft==19){result = "A11R";}
176  if( ft==20){result = "A11L";}
177  if( ft==21){result = "A12R";}
178  if( ft==22){result = "A12L";}
179  if( ft==23){result = "A13R";}
180  if( ft==24){result = "A13L";}
181  if( ft==25){result = "A14R";} // ft25-27 are sFCal; A14R, A14L, A15L
182  if( ft==26){result = "A14L";} // will need to be replaced by actual
183  if( ft==27){result = "A15L";} // crate name once it exists
184  }
185  else{
186  // EMEC-C
187  if( ft==11 ){result = "C01R";}
188  if( ft==12 ){result = "C01L";}
189  if( ft==9 ){result = "C02R";}
190  if( ft==10 ){result = "C02L";}
191  if( ft==7 ){result = "C03R";}
192  if( ft==8 ){result = "C03L";}
193  if( ft==4 ){result = "C05R";}
194  if( ft==5 ){result = "C05L";}
195  if( ft==2 ){result = "C06R";}
196  if( ft==3 ){result = "C06L";}
197  if( ft==0 ){result = "C07R";}
198  if( ft==1 ){result = "C07L";}
199  if( ft==23 ){result = "C08R";}
200  if( ft==24 ){result = "C08L";}
201  if( ft==21 ){result = "C09R";}
202  if( ft==22 ){result = "C09L";}
203  if( ft==19 ){result = "C10R";}
204  if( ft==20 ){result = "C10L";}
205  if( ft==17 ){result = "C11R";}
206  if( ft==18 ){result = "C11L";}
207  if( ft==15 ){result = "C12R";}
208  if( ft==16 ){result = "C12L";}
209  if( ft==13 ){result = "C13R";}
210  if( ft==14 ){result = "C13L";}
211  if( ft==6 ){result = "C04L";}
212  if( ft==25 ){result = "C14R";} // ft25-27 are sFCal; C14R, C14L, C15L
213  if( ft==26 ){result = "C14L";} // will need to be replaced by actual
214  if( ft==27 ){result = "C15L";} // crate name once it exists
215  }
216  }
217  return result;
218 }

◆ feedthrough_range()

LArOnlineID_Base::id_range LArOnlineID_Base::feedthrough_range ( ) const

Definition at line 1443 of file LArOnlineID_Base.cxx.

1445 {
1446  return {feedthrough_begin(), feedthrough_end()};
1447 }

◆ feedthroughContext()

IdContext LArOnlineID_Base::feedthroughContext ( ) const

Define context for feedthroughs.

Definition at line 258 of file LArOnlineID_Base.cxx.

260 {
262  return (IdContext(id, 0, m_feedthrough_index));
263 }

◆ feedthroughHashMax()

LArOnlineID_Base::size_type LArOnlineID_Base::feedthroughHashMax ( ) const

Define feedthrough hash tables max size.

Definition at line 1887 of file LArOnlineID_Base.cxx.

1889 {
1890  return m_feedthroughHashMax;
1891 }

◆ file_names()

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

File names for subdet dictionaries.

Definition at line 461 of file AtlasDetectorID.cxx.

461  {
462  return m_file_names;
463 }

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

678 {return (m_FWD_ID);}

◆ fwd_exp()

ExpandedIdentifier AtlasDetectorID::fwd_exp ( void  ) const
inlineprotectedinherited

Definition at line 527 of file AtlasDetectorID.h.

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

◆ get_expanded_calib_id()

int LArOnlineID_Base::get_expanded_calib_id ( const HWIdentifier id,
ExpandedIdentifier exp_id,
const IdContext context 
) const
protected

Definition at line 817 of file LArOnlineID_Base.cxx.

820 {
821  // We assume that the context is >= feedthrough
822  exp_id.clear();
823  exp_id << lar_field_value()
824  << s_lar_onlineCalib_field_value
825  << barrel_ec(id)
826  << pos_neg(id)
827  << feedthrough(id);
828  if(context && context->end_index() >= m_slot_index) {
829  exp_id << slot(id);
830  if(context->end_index() >= m_channel_in_slot_index) {
831  exp_id << channel(id);
832  if(context->end_index() >= m_slar_index) {
833  exp_id << is_slar(id);
834  }
835  }
836  }
837  return (0);
838 }

◆ get_expanded_id()

int LArOnlineID_Base::get_expanded_id ( const HWIdentifier id,
ExpandedIdentifier exp_id,
const IdContext context 
) const
protected

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

Definition at line 790 of file LArOnlineID_Base.cxx.

793 {
794  // We assume that the context is >= feedthrough
795  exp_id.clear();
796  exp_id << lar_field_value()
797  << s_lar_online_field_value
798  << barrel_ec(id)
799  << pos_neg(id);
800  if(context && context->end_index() >= m_feedthrough_index) {
801  exp_id << feedthrough(id);
802  if(context && context->end_index() >= m_slot_index) {
803  exp_id << slot(id);
804  if(context->end_index() >= m_channel_in_slot_index) {
805  exp_id << channel(id);
806  if(context->end_index() >= m_slar_index) {
807  exp_id << is_slar(id);
808  }
809  }
810  }
811  }
812  return (0);
813 }

◆ get_hash()

int AtlasDetectorID::get_hash ( const Identifier id,
IdentifierHash hash_id,
const IdContext context = 0 
) const
overridevirtualinherited

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

Implements IdHelper.

Reimplemented in SCT_ID, TRT_ID, PixelID, SiliconID, MuonIdHelper, TileHWID, CaloIDHelper, TileTBID, Tile_Base_ID, HGTD_ID, CaloLVL1_ID, and JGTowerBase_ID.

Definition at line 190 of file AtlasDetectorID.cxx.

192  {
193  return 0;
194 }

◆ get_id()

int AtlasDetectorID::get_id ( const IdentifierHash hash_id,
Identifier id,
const IdContext context = 0 
) const
overridevirtualinherited

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

Implements IdHelper.

Reimplemented in SCT_ID, TRT_ID, PixelID, SiliconID, MuonIdHelper, TileHWID, CaloIDHelper, TileTBID, Tile_Base_ID, HGTD_ID, CaloLVL1_ID, and JGTowerBase_ID.

Definition at line 184 of file AtlasDetectorID.cxx.

186  {
187  return 0;
188 }

◆ group()

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

Group name for this helper.

Definition at line 27 of file AtlasDetectorID.cxx.

28 {
29  return m_group;
30 }

◆ helper()

virtual HelperType AtlasDetectorID::helper ( ) const
inlinevirtualinherited

Type of helper, defaulted to 'Unimplemented'.

Reimplemented in SCT_ID, PLR_ID, and PixelID.

Definition at line 96 of file AtlasDetectorID.h.

96  {
98  }

◆ hgtd()

Identifier AtlasDetectorID::hgtd ( void  ) const
inherited

Definition at line 109 of file AtlasDetectorID.cxx.

109  {
110  Identifier result{0};
111  // Pack field
114  return result;
115 }

◆ hgtd_exp()

ExpandedIdentifier AtlasDetectorID::hgtd_exp ( void  ) const
inlineprotectedinherited

Definition at line 555 of file AtlasDetectorID.h.

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

◆ hgtd_field_value()

int AtlasDetectorID::hgtd_field_value ( ) const
inlineprotectedinherited

Definition at line 642 of file AtlasDetectorID.h.

642 {return (m_HGTD_ID);}

◆ indet()

Identifier AtlasDetectorID::indet ( void  ) const
inherited

Detector systems:

Definition at line 50 of file AtlasDetectorID.cxx.

50  {
51  Identifier result{0};
52  // Pack field
54  return result;
55 }

◆ indet_exp()

ExpandedIdentifier AtlasDetectorID::indet_exp ( void  ) const
inlineprotectedinherited

Detector systems:

Definition at line 492 of file AtlasDetectorID.h.

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

◆ indet_field_value()

int AtlasDetectorID::indet_field_value ( ) const
inlineprotectedinherited

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

Definition at line 618 of file AtlasDetectorID.h.

618 {return (m_INDET_ID);}

◆ init_calib_hashes()

int LArOnlineID_Base::init_calib_hashes ( )
protected

Definition at line 1977 of file LArOnlineID_Base.cxx.

1979 {
1980  MsgStream log(m_msgSvc, "LArOnlineID_Base" );
1981  unsigned int nids=0;
1982  std::set<HWIdentifier> ids;
1983  for (unsigned int i = 0; i < m_full_calib_laronline_range.size(); ++i) {
1986  for (const auto & exp_id : rit) {
1987  HWIdentifier id = this->calib_channel_Id(exp_id[m_bec_index],
1988  exp_id[m_side_index],
1989  exp_id[m_feedthrough_index],
1990  exp_id[m_slot_index],
1991  exp_id[m_channel_in_slot_index]);
1992  if(!(ids.insert(id)).second) {
1993  if(m_msgSvc) {
1994  log << MSG::WARNING << " LArOnlineID_Base::init_calib_Hashes "
1995  << " Error: duplicated id for channel id. nids= " << nids
1996  << " compact Id " << std::string(exp_id) << " " << show_to_string(id) << endmsg;
1997  } else {
1998  std::cout << " LArOnlineID_Base::init_calib_Hashes "
1999  << " Error: duplicated id for channel id. nids= " << nids
2000  << " compact Id " ;
2001  exp_id.show();
2002  std::cout << " " << show_to_string(id) << std::endl;
2003  }
2004  }
2005  nids++;
2006  }
2007  }
2008  unsigned int nidtb=0;
2009  std::set<HWIdentifier>::const_iterator first = ids.begin();
2010  std::set<HWIdentifier>::const_iterator last = ids.end();
2011  for (;first != last && nidtb < nids; ++first) {
2012  m_calib_channel_vec.push_back(*first);
2013  nidtb++;
2014  }
2016 
2017  /* FEB hash */
2018  /*==========*/
2019  nids = 0;
2020  ids.clear();
2021  for (unsigned int i = 0; i < m_full_calib_module_range.size(); ++i) {
2024  for (const auto & exp_id : rit) {
2025  HWIdentifier febId = calib_module_Id( exp_id[m_bec_index],
2026  exp_id[m_side_index],
2027  exp_id[m_feedthrough_index],
2028  exp_id[m_slot_index] );
2029  if(!(ids.insert(febId)).second){
2030  if(m_msgSvc) {
2031  log << MSG::WARNING << " LArOnlineID_Base::init_calibhashes "
2032  << " Warning: duplicated id for feb id. nids= " << nids
2033  << " compact Id " << std::string(exp_id) << " " << show_to_string(febId) << endmsg;
2034  } else {
2035  std::cout << " LArOnlineID_Base::init_calibhashes "
2036  << " Error: duplicated id for feb id. nids= " << nids
2037  << " compact Id " ;
2038  exp_id.show();
2039  std::cout << " " << show_to_string(febId) << std::endl;
2040  std::cout << std::endl;
2041 
2042  }
2043  }
2044  nids++;
2045  }
2046  }
2047  nidtb=0;
2048  first = ids.begin();
2049  last = ids.end();
2050  for (;first != last && nidtb < nids; ++first)
2051  {
2052  m_calib_module_vec.push_back(*first);
2053  nidtb++;
2054  }
2056  return (0);
2057 }

◆ init_hashes()

int LArOnlineID_Base::init_hashes ( )
protected

Definition at line 1126 of file LArOnlineID_Base.cxx.

1128 {
1129  MsgStream log(m_msgSvc, "LArOnlineID_Base" );
1130  std::string strg1;
1131  std::string strg2;
1132  std::string strg3;
1133 
1134  /* channel hash */
1137  unsigned int nids = 0;
1138  std::set<HWIdentifier> ids;
1139  for (unsigned int i = 0; i < m_full_laronline_range.size(); ++i)
1140  {
1141  const Range& range = m_full_laronline_range[i];
1143  for (const auto & exp_id : rit)
1144  {
1145  HWIdentifier id = this->channel_Id (exp_id[m_bec_index],
1146  exp_id[m_side_index],
1147  exp_id[m_feedthrough_index],
1148  exp_id[m_slot_index],
1149  exp_id[m_channel_in_slot_index]);
1150  if(!(ids.insert(id)).second)
1151  {
1152  strg1 = " init_hashes: duplicated id for channel nb = "+std::to_string(nids);
1153  strg3 = " expanded Id= "+show_to_string(id);
1154  if(m_msgSvc)
1155  {
1156  log << MSG::ERROR << strg1 << endmsg;
1157  //log << MSG::ERROR << strg2 << endmsg;
1158  log << MSG::ERROR << strg3 << endmsg;
1159  }
1160  else
1161  {
1162  std::cout << "LArOnlineID_Base::Error" << strg1 << std::endl;
1163  //std::cout << strg2 << std::endl;
1164  std::cout << strg3 << std::endl;
1165  }
1166  }
1167  nids++;
1168  }
1169  }
1170  if(ids.size() != m_channelHashMax)
1171  {
1172  strg1 = " init_hashes ";
1173  strg2 = " set size NOT EQUAL to hash max. size "+std::to_string(ids.size());
1174  strg3 = " hash max "+std::to_string(m_channelHashMax);
1175  if(m_msgSvc)
1176  {
1177  log << MSG::ERROR << strg1 << endmsg;
1178  log << MSG::ERROR << strg2 << endmsg;
1179  log << MSG::ERROR << strg3 << endmsg;
1180  }
1181  else
1182  {
1183  std::cout << "LArOnlineID_Base::" << strg1 << std::endl;
1184  std::cout << "Error" << strg2 << std::endl;
1185  std::cout << strg3 << std::endl;
1186  }
1187  return (1);
1188  }
1189  nids=0;
1190  std::set<HWIdentifier>::const_iterator first = ids.begin();
1191  std::set<HWIdentifier>::const_iterator last = ids.end();
1192  for (;first != last && nids < m_channel_vec.size(); ++first)
1193  {
1194  m_channel_vec[nids] = (*first) ;
1195  nids++;
1196  }
1197 
1198  /* feedthrough hash */
1201  nids = 0;
1202  ids.clear();
1203  for (unsigned int i = 0; i < m_full_feedthrough_range.size(); ++i)
1204  {
1207  for (const auto & exp_id: rit) {
1208  HWIdentifier feedthroughId = feedthrough_Id( exp_id[m_bec_index],
1209  exp_id[m_side_index],
1210  exp_id[m_feedthrough_index] );
1211  if(!(ids.insert(feedthroughId)).second){
1212  strg1 = " init_hashes: duplicated id for feedthrough nb = "+std::to_string(nids);
1213  strg3 = " expanded Id= "+show_to_string(feedthroughId);
1214  if(m_msgSvc)
1215  {
1216  log << MSG::ERROR << strg1 << endmsg;
1217  //log << MSG::ERROR << strg2 << endmsg;
1218  log << MSG::ERROR << strg3 << endmsg;
1219  }
1220  else
1221  {
1222  std::cout << "LArOnlineID_Base:: Error" << strg1 << std::endl;
1223  //std::cout << strg2 << std::endl;
1224  std::cout << strg3 << std::endl;
1225  }
1226  }
1227  nids++;
1228  }
1229  }
1230  if(ids.size() != m_feedthroughHashMax)
1231  {
1232  strg1 = " init_hashes ";
1233  strg2 = " set size NOT EQUAL to feedthrough hash max. size "+std::to_string(ids.size());
1234  strg3 = " hash max= "+std::to_string(m_feedthroughHashMax);
1235  if(m_msgSvc)
1236  {
1237  log << MSG::ERROR << strg1 << endmsg;
1238  log << MSG::ERROR << strg2 << endmsg;
1239  log << MSG::ERROR << strg3 << endmsg;
1240  }
1241  else
1242  {
1243  std::cout << "LArOnlineID_Base::" << strg1 << std::endl;
1244  std::cout << " Error:" << strg2 << std::endl;
1245  std::cout << strg3 << std::endl;
1246  }
1247  return (1);
1248  }
1249  nids=0;
1250  first = ids.begin();
1251  last = ids.end();
1252  for (;first != last && nids < m_feedthrough_vec.size(); ++first)
1253  {
1254  m_feedthrough_vec[nids] = (*first) ;
1255  nids++;
1256  }
1257 
1258  /* FEB hash */
1259  /*==========*/
1261  m_feb_vec.resize(m_febHashMax);
1262  nids = 0;
1263  ids.clear();
1264  for (unsigned int i = 0; i < m_full_feb_range.size(); ++i)
1265  {
1266  const Range& range = m_full_feb_range[i];
1268  for (const auto & exp_id :rit)
1269  {
1270  HWIdentifier febId = feb_Id( exp_id[m_bec_index],
1271  exp_id[m_side_index],
1272  exp_id[m_feedthrough_index],
1273  exp_id[m_slot_index] );
1274  if(!(ids.insert(febId)).second)
1275  {
1276  strg1 = " init_hashes: duplicated id for FEB nb = "+std::to_string(nids);
1277  strg3 = " expanded Id= "+show_to_string(febId);
1278  if(m_msgSvc)
1279  {
1280  log << MSG::ERROR << strg1 << endmsg;
1281  //log << MSG::ERROR << strg2 << endmsg;
1282  log << MSG::ERROR << strg3 << endmsg;
1283  }
1284  else
1285  {
1286  std::cout << "LArOnlineID_Base::Error:" << strg1 << std::endl;
1287  //std::cout << strg2 << std::endl;
1288  std::cout << strg3 << std::endl;
1289  }
1290  }
1291  nids++;
1292  }
1293  }
1294  if(ids.size() != m_febHashMax)
1295  {
1296  strg1 = " init_hashes ";
1297  strg2 = " set size NOT EQUAL to FEB hash max. size "+std::to_string(ids.size());
1298  strg3 = " hash max "+std::to_string(m_febHashMax);
1299  if(m_msgSvc)
1300  {
1301  log << MSG::ERROR << strg1 << endmsg;
1302  log << MSG::ERROR << strg2 << endmsg;
1303  log << MSG::ERROR << strg3 << endmsg;
1304  }
1305  else
1306  {
1307  std::cout << "LArOnlineID_Base::" << strg1 << std::endl;
1308  std::cout << "Error:" << strg2 << std::endl;
1309  std::cout << strg3 << std::endl;
1310  }
1311  return (1);
1312  }
1313  nids=0;
1314  first = ids.begin();
1315  last = ids.end();
1316  for (;first != last && nids < m_feb_vec.size(); ++first)
1317  {
1318  m_feb_vec[nids] = (*first) ;
1319  nids++;
1320  }
1321 
1322 
1323  return (0);
1324 }

◆ initialize_from_dictionary()

int LArOnlineID_Base::initialize_from_dictionary ( const IdDictMgr dict_mgr)
virtual

initialization from the identifier dictionary

Reimplemented from AtlasDetectorID.

Reimplemented in LArOnline_SuperCellID, and LArOnlineID.

Definition at line 317 of file LArOnlineID_Base.cxx.

319 {
320  MsgStream log(m_msgSvc, "LArOnlineID_Base" );
321  if (!m_quiet) {
322  std::string strg = "initialize_from_dictionary";
323  if(m_msgSvc) {
324  log << MSG::INFO << strg << endmsg;
325  }
326  else {
327  std::cout << strg << std::endl;
328  }
329  }
330 
331  // Check whether this helper should be reinitialized
332  if (!reinitialize(dict_mgr)) {
333  if(m_msgSvc)log << MSG::DEBUG << "Request to reinitialize not satisfied - tags have not changed" << endmsg;
334  return (0);
335  }
336  else {
337  log << MSG::DEBUG << "(Re)initialize" << endmsg;
338  }
339 
340  // init base object
341  if(AtlasDetectorID::initialize_from_dictionary(dict_mgr)) return (1);
342  m_dict = dict_mgr.find_dictionary ("LArCalorimeter");
343  if(!m_dict) {
344 
345  std::string strg = " initialize_from_dictionary - cannot access LArCalorimeter dictionary ";
346  if(m_msgSvc) {
347  log << MSG::ERROR << strg << endmsg;
348  }
349  else {
350  std::cout << "LArOnlineID_Base::" << strg << std::endl;
351  }
352  return 1;
353  }
354 
355  // Register version of the dictionary used
356  if (register_dict_tag(dict_mgr, "LArCalorimeter")) return(1);
357 
358  // initialize dictionary version
359  AtlasDetectorID::setDictVersion(dict_mgr, "LArCalorimeter");
360 
361  /* Initialize the field indices */
362 // if(initLevelsFromDict()) return (1);
363  if(initLevelsFromDict(group())) return (1);
364 
365 
366  /* Find value for the field LAr Calorimeter */
367  const IdDictDictionary* atlasDict = dict_mgr.find_dictionary ("ATLAS");
368  int larField = -1;
369  if (atlasDict->get_label_value("subdet", "LArCalorimeter", larField)) {
370  std::stringstream strm;
371  strm << atlasDict->m_name;
372  std::string strg= " Could not get value for label 'LArCalorimeter' of field 'subdet' in dictionary "+strm.str();
373  if(m_msgSvc) {
374  log << MSG::ERROR << strg << endmsg;
375  }
376  else {
377  std::cout << "LArOnlineID_Base:" << strg << std::endl;
378  }
379  return (1);
380  }
381 
382  /* Find value for the field LArOnline */
383  int larOnlineField = -4;
384  if (m_dict->get_label_value("part", "LArOnline", larOnlineField)) {
385  std::stringstream strm;
386  strm << m_dict->m_name;
387  std::string strg = "Could not get value for label 'LArOnline' of field 'part' in dictionary "+strm.str();
388  if(m_msgSvc) {
389  log << MSG::ERROR << strg << endmsg;
390  }
391  else {
392  std::cout << strg << std::endl;
393  }
394  return (1);
395  }
396 
397  /* Find value for the field calibLArOnline */
398  int larOnlineCalibField = -5;
399  if (m_dict->get_label_value("part", "LArOnlineCalib", larOnlineCalibField)) {
400  std::stringstream strm;
401  strm << m_dict->m_name;
402  std::string strg = "Could not get value for label 'LArOnlineCalib' of field 'part' in dictionary "+strm.str();
403  if(m_msgSvc) {
404  log << MSG::ERROR << strg << endmsg;
405  }
406  else {
407  std::cout << strg << std::endl;
408  }
409  return (1);
410  }
411 
412  /* Set up id for Region and range prefix */
414  region_id.add(larField);
415  region_id.add(larOnlineField);
416  Range prefix;
417  /* Calib Multirange */
418  ExpandedIdentifier region_id2;
419  region_id2.add(larField);
420  region_id2.add(larOnlineCalibField);
421  Range prefix2;
422 
423  /*Full range for all channels*/
427 
428  std::string strg0= " initialize_from_dictionary :";
429  std::string strg1= " feedthrough range -> " + (std::string)m_full_feedthrough_range;
430  std::string strg2= " feedthrough slot range -> " + (std::string)m_full_feb_range;
431  std::string strg3= " channel range -> " + (std::string)m_full_laronline_range;
432  if(m_msgSvc) {
433  log << MSG::DEBUG << strg0 << endmsg;
434  log << MSG::DEBUG << strg1 << endmsg;
435  log << MSG::DEBUG << strg2 << endmsg;
436  log << MSG::DEBUG << strg3 << endmsg;
437  }
438  else {
439  std::cout << strg0 << std::endl;
440  std::cout << strg1 << std::endl;
441  std::cout << strg2 << std::endl;
442  std::cout << strg3 << std::endl;
443  }
444 
445  /* calib */
446  /* Full range for calib channels */
447  m_full_calib_laronline_range = m_dict->build_multirange( region_id2 , group(), prefix2);
448  m_full_calib_module_range = m_dict->build_multirange( region_id2 , group(), prefix2, "slot");
449 
450  if (!m_quiet) {
451  std::string strg0= "=> initialize_from_dictionary : ";
452  std::string strg2= "=> Calib module range -> " + (std::string)m_full_calib_module_range;
453  std::string strg3= "=> Calib channel range -> " + (std::string)m_full_calib_laronline_range;
454  if(m_msgSvc) {
455  log << MSG::DEBUG << strg0 << endmsg;
456  log << MSG::DEBUG << strg2 << endmsg;
457  log << MSG::DEBUG << strg3 << endmsg;
458  }
459  else {
460  std::cout << strg0 << std::endl;
461  std::cout << strg2 << std::endl;
462  std::cout << strg3 << std::endl;
463  }
464  }
465 
466  /* Setup the hash tables */
467  std::string strg="[initialize_from_dictionary] version= " + dictionaryVersion();
468  if(m_msgSvc) {
469  log << MSG::DEBUG << strg << endmsg;
470  }
471  else {
472  std::cout << "LArOnlineID_Base: " << strg << std::endl;
473  }
474  if( dictionaryVersion() == "fullAtlas" ) {
475  if(init_hashes()) return (1);
476  }
477 
478  // Setup for hash calculation for channels (febs is further below)
479 
480  // Febs have a uniform number of channels
481  // The lookup table only needs to contain the
482  // hash offset for each feb
483 
484  // The implementation requires:
485 
486  // 1) a lookup table for each feb containing hash offset
487  // 2) a decoder to access the "index" corresponding to the
488  // bec/side/ft/slot fields. These fields use x bits, so the
489  // vector has a length of 2**x.
490 
491  /* Create decoder for fields bec to slot */
493  m_bec_impl.bits() +
494  m_side_impl.bits() +
496  m_slot_impl.bits();
498  m_bec_slot_impl.set_bits(bits, bits_offset);
499  int size = (1 << bits);
500 
501  // Set up vector as lookup table for hash calculation.
502  m_chan_hash_calcs.resize(size);
503 
504  for (unsigned int i = 0; i < m_febHashMax; ++i) {
505 
506  HWIdentifier febId = feb_Id(i) ;
507 
508  HashCalc hc;
509 
510  HWIdentifier min = channel_Id ( febId, 0);
511 
513  hc.m_hash = min_hash;
515 
516  if (m_bec_slot_impl.unpack(min) >= size) {
517  strg = "Min > "+std::to_string(size);
518  strg1= " "+ show_to_string(min);
520  if(m_msgSvc) {
521  log << MSG::DEBUG << strg << endmsg;
522  log << MSG::DEBUG << strg1 << endmsg;
523  log << MSG::DEBUG << strg2 << endmsg;
524  }
525  else {
526  std::cout << strg << std::endl;
527  std::cout << strg1 << std::endl;
528  std::cout << strg2 << std::endl;
529  }
530  }
531  }
532 
533  // Check channel hash calculation
534  for (unsigned int i = 0; i < m_channelHashMax; ++i) {
535  HWIdentifier id = channel_Id(i);
536  if (channel_Hash(id) != i) {
537  strg = " ***** Error channel ranges, id, hash, i = "+show_to_string(id);
538  strg1= " , "+std::to_string(channel_Hash(id));
539  strg2= " , "+std::to_string(i);
540  if(m_msgSvc) {
541  log << MSG::ERROR << strg << endmsg;
542  log << MSG::ERROR << strg1 << endmsg;
543  log << MSG::ERROR << strg2 << endmsg;
544  }
545  else {
546  std::cout << strg << std::endl;
547  std::cout << strg1 << std::endl;
548  std::cout << strg2 << std::endl;
549  }
550  }
551  }
552 
553 
554 
555  // Setup for hash calculation for febs
556 
557  // We calculate the feb hash by saving the hash of each
558  // feedthrough in a HashCalc object and then adding on the slot
559  // number for a particular feb
560 
561  // The implementation requires:
562 
563  // 1) a lookup table for each ft containing hash offset
564  // 2) a decoder to access the "index" corresponding to the
565  // bec/side/ft fields. These fields use x bits, so the
566  // vector has a length of 2**x.
567 
568  /* Create decoder for fields bec to ft */
569  bits = m_bec_impl.bits() +
570  m_side_impl.bits() +
572  bits_offset = m_bec_impl.bits_offset();
573  m_bec_ft_impl.set_bits(bits, bits_offset);
574  size = (1 << bits);
575 
576  // Set up vector as lookup table for hash calculation.
577  m_feb_hash_calcs.resize(size);
578 
579  // Get context for conversion to expanded ids
580  IdContext ftContext = feedthroughContext();
581  ExpandedIdentifier ftExpId;
582 
583  for (unsigned int i = 0; i < m_feedthroughHashMax; ++i) {
584 
586 
587  HashCalcFeb hc;
588 
589  // Set the hash id for each feedthrough, and then check if one
590  // needs to also save the slot values
592  hc.m_hash = min_hash;
593 
594  // For each feedthrough we must check to see if the slot
595  // values are enumerated or not. If they are enumerate we must
596  // save the values in order to calculate the fed hash
597  if (get_expanded_id(min, ftExpId, &ftContext)) {
598  if(m_msgSvc) {
599  log << MSG::WARNING << " ***** Warning cannot get ft expanded id for " << show_to_string(min) << endmsg;
600  } else {
601  std::cout << " ***** Warning cannot get ft expanded id for " << show_to_string(min) << std::endl;
602  }
603  }
604  unsigned int nrangesFound = 0;
605  for (unsigned int i = 0; i < m_full_feb_range.size(); ++i) {
606  if (m_full_feb_range[i].match(ftExpId)) {
607  nrangesFound += 1;
608  const Range::field& slotField = m_full_feb_range[i][m_slot_index];
609  if (slotField.isEnumerated()) {
610  // save values
611  hc.m_slot_values = slotField.get_values();
612  }
613  }
614  }
615 
616  // Similarly, if there is more than one range per feedthrough,
617  // this means that slot values are not a continuous range. In
618  // this case, as well, we save all possible slot values
619  if (nrangesFound > 1) {
620  for (unsigned int i = 0; i < m_full_feb_range.size(); ++i) {
621  if (m_full_feb_range[i].match(ftExpId)) {
622  const Range::field& slotField = m_full_feb_range[i][m_slot_index];
623  if (slotField.isBounded()) {
624  // save values
625  unsigned int nvalues = slotField.get_maximum() - slotField.get_minimum() + 1;
626  hc.m_slot_values.reserve(hc.m_slot_values.size() + nvalues);
627  for (unsigned int j = 0; j < nvalues; ++j) {
628  hc.m_slot_values.push_back(j + slotField.get_minimum());
629  }
630  }
631  else {
632 
633  if(m_msgSvc) {
634  log << MSG::WARNING << " ***** Warning feb range slot field is NOT both_bounded - id, slot mode: "
635  << show_to_string(min) << " enumerated" << endmsg;
636  } else {
637  std::cout << " ***** Error feb range slot field is NOT both_bounded - id, slot mode: "
638  << show_to_string(min) << " enumerated" << std::endl;
639  }
640  }
641  }
642  }
643  }
644 
645 
646  // Set hash calculator
648 
649 
650  if (m_bec_ft_impl.unpack(min) >= size) {
651  strg = "Min > " + std::to_string(size) + " " + show_to_string(min) +
652  " " + std::to_string(m_bec_ft_impl.unpack(min)) + " " +
653  std::to_string(min_hash);
654  if (m_msgSvc) {
655  log << MSG::DEBUG << strg << endmsg;
656  } else {
657  std::cout << strg << std::endl;
658  }
659  }
660  }
661 
662  // Check feb hash calculation
663  for (unsigned int i = 0; i < m_febHashMax; ++i) {
664  HWIdentifier id = feb_Id(i);
665  if (feb_Hash(id) != i) {
666  strg = " ***** Error feb ranges, id, hash, i = " +
667  show_to_string(id) + " , " + std::to_string(feb_Hash(id)) + " , "+std::to_string(i);
668  if(m_msgSvc) {
669  log << MSG::ERROR << strg << endmsg;
670  }
671  else {
672  std::cout << strg << std::endl;
673  }
674  }
675  }
676 
677  return 0;
678 }

◆ initLevelsFromDict()

int LArOnlineID_Base::initLevelsFromDict ( const std::string &  group_name)
protected

Definition at line 843 of file LArOnlineID_Base.cxx.

845 {
846  MsgStream log(m_msgSvc, "LArOnlineID_Base" );
847 
848  if(!m_dict)
849  {
850  if(m_msgSvc) {
851  log << MSG::ERROR << "initLevelsFromDict - dictionary NOT initialized "
852  << endmsg;
853  }
854  else {
855  std::cout << "LArEM_ID::initLevelsFromDict - dictionary NOT initialized "
856  << std::endl ;
857  }
858  return (1);
859  }
860 
861  /* Find out which identifier field corresponds to each level.*/
862 
863  m_lar_index = 999 ;
864  m_laronline_index = 999 ;
865  m_bec_index = 999 ;
866  m_side_index = 999 ;
867  m_feedthrough_index = 999 ;
868  m_slot_index = 999 ;
870  m_slar_index = 999 ;
871  std::string strg;
872 
873  // Save index to a DictionaryRegion for unpacking
874  IdDictRegion* reg = m_dict->find_region("laronline-barrel");
875  if (reg)
876  {
878  }
879  else
880  {
881  strg = "initLevelsFromDict - unable to find laronline region ";
882  if(m_msgSvc)
883  {
884  log << MSG::ERROR << strg << endmsg;
885  }
886  else
887  {
888  std::cout << "LAronline_ID::" << strg << std::endl;
889  }
890  return (1);
891  }
892  /* Find LAr field */
893  IdDictField* field = m_dict->find_field("subdet") ;
894  if (field)
895  {
896  m_lar_index = field->m_index ;
897  }
898  else
899  {
900  strg= "initLevelsFromDict - unable to find 'subdet' field ";
901  if(m_msgSvc)
902  {
903  log << MSG::ERROR << strg << endmsg;
904  }
905  else
906  {
907  std::cout << "LArOnlineID_Base::" << strg << std::endl;
908  }
909  return (1);
910  }
911 
912  /* Find LArOnline field */
913  field = m_dict->find_field("part") ;
914  if (field)
915  {
916  m_laronline_index = field->m_index ;
917  }
918  else
919  {
920  strg= "initLevelsFromDict - unable to find 'part' field ";
921  if(m_msgSvc)
922  {
923  log << MSG::ERROR << strg << endmsg;
924  }
925  else
926  {
927  std::cout << "LArOnlineID_Base::" << strg << std::endl;
928  }
929  return (1);
930  }
931 
932  /* Find barrel-endcap field */
933  field = m_dict->find_field("barrel-ec") ;
934  if (field)
935  {
936  m_bec_index = field->m_index ;
937  }
938  else
939  {
940  strg= "initLevelsFromDict - unable to find 'barrel-endcap' field ";
941  if(m_msgSvc)
942  {
943  log << MSG::ERROR << strg << endmsg;
944  }
945  else
946  {
947  std::cout << "LArOnlineID_Base::" << strg << std::endl;
948  }
949  return (1);
950  }
951 
952  /* Find detector-side field */
953  field = m_dict->find_field("pos_neg") ;
954  if (field)
955  {
956  m_side_index = field->m_index ;
957  }
958  else
959  {
960  strg= "initLevelsFromDict - unable to find 'barrel-endcap' field ";
961  if(m_msgSvc)
962  {
963  log << MSG::ERROR << strg << endmsg;
964  }
965  else
966  {
967  std::cout << "LArOnlineID_Base::" << strg << std::endl;
968  }
969  return (1);
970  }
971 
972  /* Find feedthrough field */
973  std::string feedthrough_name;
974  if ( m_this_is_slar ){
975  feedthrough_name+="slar_feedthrough";
976  } else {
977  feedthrough_name+="feedthrough";
978  }
980  if (field) {
981  m_feedthrough_index = field->m_index ;
982  }
983  else
984  {
985  strg = "initLevelsFromDict - unable to find 'feedthrough' field ";
986  if(m_msgSvc)
987  {
988  log << MSG::ERROR << strg << endmsg;
989  }
990  else
991  {
992  std::cout << "LArOnlineID_Base::" << strg << std::endl;
993  }
994  return (1);
995  }
996 
997  /* Find slot field */
998  std::string slot_name;
999  if ( m_this_is_slar ){
1000  slot_name+="slar_slot";
1001  } else {
1002  slot_name+="slot";
1003  }
1004  field = m_dict->find_field(slot_name) ;
1005  if (field)
1006  {
1007  m_slot_index = field->m_index ;
1008  }
1009  else
1010  {
1011  strg = "initLevelsFromDict - unable to find 'slot' field ";
1012  if(m_msgSvc)
1013  {
1014  log << MSG::ERROR << strg << endmsg;
1015  }
1016  else
1017  {
1018  std::cout << "LArOnlineID_Base::" << strg << std::endl;
1019  }
1020  return (1);
1021  }
1022 
1023  /* Find channel_in_slot field */
1024  std::string channel_name;
1025  if ( m_this_is_slar ){
1026  channel_name+="sch_in_slot";
1027  } else {
1028  channel_name+="channel_in_slot";
1029  }
1031  if (field)
1032  {
1033  m_channel_in_slot_index = field->m_index ;
1034  }
1035  else
1036  {
1037  strg = "initLevelsFromDict - unable to find 'channel_in_slot' field ";
1038  if(m_msgSvc)
1039  {
1040  log << MSG::ERROR << strg << endmsg;
1041  }
1042  else
1043  {
1044  std::cout << "LArOnlineID_Base::" << strg << std::endl;
1045  }
1046  return (1);
1047  }
1048 
1049  /* Find slar field */
1050  if ( m_this_is_slar ) {
1051  field = m_dict->find_field("is-slar") ;
1052  if (field)
1053  {
1054  m_slar_index = field->m_index ;
1055  }
1056  else
1057  {
1058  strg = "initLevelsFromDict - unable to find 'slar' field ";
1059  if(m_msgSvc)
1060  {
1061  log << MSG::ERROR << strg << endmsg;
1062  }
1063  else
1064  {
1065  std::cout << "LArOnline_SuperCellID::" << strg << std::endl;
1066  }
1067  return (1);
1068  }
1069  } // end of m_this_is_slar
1070 
1071  /* Set the field implementations */
1072 
1074  if ( !group ) {
1075  log << MSG::ERROR << "initLevelsFromDict - cannot find "
1076  << group_name << endmsg;
1077  } else {
1078  m_laronlineRegion_index = group->regions()[0]->m_index;
1079  }
1080 
1082 
1090  if ( m_this_is_slar )
1092 
1093  if (!m_quiet) {
1094  if(m_msgSvc) {
1095  log << MSG::DEBUG << "decode index and bit fields for each level: " << endmsg;
1096  log << MSG::DEBUG << "lar " << m_lar_impl.show_to_string() << endmsg;
1097  log << MSG::DEBUG << "online " << m_laronline_impl.show_to_string() << endmsg;
1098  log << MSG::DEBUG << "bec " << m_bec_impl.show_to_string() << endmsg;
1099  log << MSG::DEBUG << "side " << m_side_impl.show_to_string() << endmsg;
1101  log << MSG::DEBUG << "slot " << m_slot_impl.show_to_string() << endmsg;
1102  log << MSG::DEBUG << "channel " << m_channel_in_slot_impl.show_to_string() << endmsg;
1103  if ( m_this_is_slar )
1104  log << MSG::DEBUG << "is-slar " << m_slar_impl.show_to_string() << endmsg;
1105  }
1106  else {
1107  std::cout << "decode index and bit fields for each level: " << std::endl;
1108  std::cout << "lar " << m_lar_impl.show_to_string() << std::endl;
1109  std::cout << "online " << m_laronline_impl.show_to_string() << std::endl;
1110  std::cout << "bec " << m_bec_impl.show_to_string() << std::endl;
1111  std::cout << "side " << m_side_impl.show_to_string() << std::endl;
1112  std::cout << "ft " << m_feedthrough_impl.show_to_string() << std::endl;
1113  std::cout << "solt " << m_slot_impl.show_to_string() << std::endl;
1114  std::cout << "channel " << m_channel_in_slot_impl.show_to_string() << std::endl;
1115  if ( m_this_is_slar )
1116  std::cout << "slar " << m_slar_impl.show_to_string() << std::endl;
1117  }
1118  }
1119 
1120  return(0) ;
1121 }

◆ initMessaging()

void AthMessaging::initMessaging ( ) const
privateinherited

Initialize our message level and MessageSvc.

This method should only be called once.

Definition at line 39 of file AthMessaging.cxx.

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

◆ is_alfa()

bool AtlasDetectorID::is_alfa ( Identifier  id) const
inlineinherited

Definition at line 948 of file AtlasDetectorID.h.

949 {
950  bool result = false;
951  if(is_forward(id)) {
952  result = (abs(m_lar_part_impl.unpack(id)) == m_ALFA_ID);
953  }
954  return result;
955 }

◆ is_bcm()

bool AtlasDetectorID::is_bcm ( Identifier  id) const
inlineinherited

Definition at line 958 of file AtlasDetectorID.h.

959 {
960  bool result = false;
961  if(is_forward(id)) {
962  result = (abs(m_lar_part_impl.unpack(id)) == m_BCM_ID);
963  }
964  return result;
965 }

◆ is_calo() [1/2]

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

Definition at line 291 of file AtlasDetectorID.cxx.

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

◆ is_calo() [2/2]

bool AtlasDetectorID::is_calo ( Identifier  id) const
inlineinherited

Definition at line 714 of file AtlasDetectorID.h.

715 {
716  return (m_det_impl.unpack(id) == m_CALO_ID);
717 }

◆ is_csc() [1/2]

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

Definition at line 333 of file AtlasDetectorID.cxx.

333  {
334  return id.fields() > 4 && id[0] == m_MUON_ID && id[4] == m_CSC_ID;
335 }

◆ is_csc() [2/2]

bool AtlasDetectorID::is_csc ( Identifier  id) const
inlineinherited

Definition at line 898 of file AtlasDetectorID.h.

899 {
900  bool result = false;
901  if (!is_muon(id)) return false;
902  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
903  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
904  result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasCSC));
905  return result;
906 }

◆ is_forward()

bool AtlasDetectorID::is_forward ( Identifier  id) const
inlineinherited

Definition at line 942 of file AtlasDetectorID.h.

943 {
944  return (m_det_impl.unpack(id) == m_FWD_ID);
945 }

◆ is_hgtd() [1/2]

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

Definition at line 304 of file AtlasDetectorID.cxx.

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

◆ is_hgtd() [2/2]

bool AtlasDetectorID::is_hgtd ( Identifier  id) const
inlineinherited

Definition at line 801 of file AtlasDetectorID.h.

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

◆ is_indet() [1/2]

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

Definition at line 279 of file AtlasDetectorID.cxx.

279  {
280  return id.fields() > 0 && id[0] == m_INDET_ID;
281 }

◆ is_indet() [2/2]

bool AtlasDetectorID::is_indet ( Identifier  id) const
inlineinherited

Definition at line 690 of file AtlasDetectorID.h.

691 {
692  return (m_det_impl.unpack(id) == m_INDET_ID);
693 }

◆ is_lar() [1/2]

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

Definition at line 282 of file AtlasDetectorID.cxx.

282  {
283  return id.fields() > 0 && id[0] == m_LAR_ID;
284 }

◆ is_lar() [2/2]

bool AtlasDetectorID::is_lar ( Identifier  id) const
inlineinherited

Definition at line 696 of file AtlasDetectorID.h.

697 {
698  return (m_det_impl.unpack(id) == m_LAR_ID);
699 }

◆ is_lar_dm()

bool AtlasDetectorID::is_lar_dm ( Identifier  id) const
inlineinherited

LAr/Tile dead material:

Definition at line 743 of file AtlasDetectorID.h.

744 {
745  bool result = false;
746  if (is_calo(id)) {
747  int temp = m_calo_side_impl.unpack(id);
748  result = (m_lar_dm_field.match(temp));
749  }
750  return result;
751 }

◆ is_lar_em() [1/2]

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

Definition at line 314 of file AtlasDetectorID.cxx.

314  {
315  return is_lar(id) && id.fields() > 1 && std::abs(id[1]) == m_LAR_EM_ID;
316 }

◆ is_lar_em() [2/2]

bool AtlasDetectorID::is_lar_em ( Identifier  id) const
inlineinherited

Definition at line 825 of file AtlasDetectorID.h.

826 {
827  bool result = false;
828  if(is_lar(id)) {
829  result = (abs(m_lar_part_impl.unpack(id)) == m_LAR_EM_ID);
830  }
831  return result;
832 }

◆ is_lar_fcal() [1/2]

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

Definition at line 321 of file AtlasDetectorID.cxx.

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

◆ is_lar_fcal() [2/2]

bool AtlasDetectorID::is_lar_fcal ( Identifier  id) const
inlineinherited

Definition at line 846 of file AtlasDetectorID.h.

847 {
848  bool result = false;
849  if(is_lar(id)) {
850  result = (abs(m_lar_part_impl.unpack(id)) == m_LAR_FCAL_ID);
851  }
852  return result;
853 }

◆ is_lar_hec() [1/2]

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

Definition at line 317 of file AtlasDetectorID.cxx.

317  {
318  return is_lar(id) && id.fields() > 1 && std::abs(id[1]) == m_LAR_HEC_ID;
319 }

◆ is_lar_hec() [2/2]

bool AtlasDetectorID::is_lar_hec ( Identifier  id) const
inlineinherited

Definition at line 836 of file AtlasDetectorID.h.

837 {
838  bool result = false;
839  if(is_lar(id)) {
840  result = (abs(m_lar_part_impl.unpack(id)) == m_LAR_HEC_ID);
841  }
842  return result;
843 }

◆ is_lar_minifcal() [1/2]

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

Definition at line 325 of file AtlasDetectorID.cxx.

325  {
326  return is_lar_fcal(id) && id.fields() > 3 &&std::abs(id[3]) == 0;
327 }

◆ is_lar_minifcal() [2/2]

bool AtlasDetectorID::is_lar_minifcal ( Identifier  id) const
inlineinherited

Definition at line 856 of file AtlasDetectorID.h.

857 {
858  bool result = false;
859  if(is_lar_fcal(id)) {
860  result = (m_lar_fcal_module_impl.unpack(id) == 0);
861  }
862  return result;
863 }

◆ is_lucid()

bool AtlasDetectorID::is_lucid ( Identifier  id) const
inlineinherited

Definition at line 968 of file AtlasDetectorID.h.

969 {
970  bool result = false;
971  if(is_forward(id)) {
972  result = (abs(m_lar_part_impl.unpack(id)) == m_LUCID_ID);
973  }
974  return result;
975 }

◆ is_lumi() [1/2]

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

Definition at line 307 of file AtlasDetectorID.cxx.

307  {
308  return is_indet(id) && id.fields() > 1 && id[1] == m_LUMI_ID;
309 }

◆ is_lumi() [2/2]

bool AtlasDetectorID::is_lumi ( Identifier  id) const
inlineinherited

Definition at line 813 of file AtlasDetectorID.h.

814 {
815  bool result = false;
816  // Must check is_pixel to allow for special bits
817  // (don't need this check for 64-bit identifier, but leave it in for now)
818  if(is_indet(id) && !is_pixel(id)) {
820  }
821  return result;
822 }

◆ is_lvl1_online()

bool AtlasDetectorID::is_lvl1_online ( Identifier  id) const
inlineinherited

Definition at line 731 of file AtlasDetectorID.h.

732 {
733  bool result = false;
734  if (is_calo(id)) {
735  int temp = m_calo_side_impl.unpack(id);
736  result = (m_lvl1_onl_field.match(temp));
737  }
738  return result;
739 }

◆ is_lvl1_trig_towers()

bool AtlasDetectorID::is_lvl1_trig_towers ( Identifier  id) const
inlineinherited

Definition at line 720 of file AtlasDetectorID.h.

721 {
722  bool result = false;
723  if (is_calo(id)) {
724  int temp = m_calo_side_impl.unpack(id);
725  result = (m_lvl1_field.match(temp));
726  }
727  return result;
728 }

◆ is_mdt() [1/2]

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

Definition at line 329 of file AtlasDetectorID.cxx.

329  {
330  return id.fields() > 4 && id[0] == m_MUON_ID && id[4] == m_MDT_ID;
331 }

◆ is_mdt() [2/2]

bool AtlasDetectorID::is_mdt ( Identifier  id) const
inlineinherited

Definition at line 866 of file AtlasDetectorID.h.

867 {
868  bool result = false;
869  if (!is_muon(id)) return false;
870  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
871  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
872  // MDT and RPC can only be destinguished by the additional bit in the ID
873  // since the station names are ambiguous
874  if (is_muon(id) && ((techBit == AtlasDetDescr::fAtlasMDT)
875  || (techBit == AtlasDetDescr::fAtlasRPC))) {
877  }
878  return result;
879 }

◆ is_mm() [1/2]

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

Definition at line 349 of file AtlasDetectorID.cxx.

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

◆ is_mm() [2/2]

bool AtlasDetectorID::is_mm ( Identifier  id) const
inlineinherited

Definition at line 920 of file AtlasDetectorID.h.

921 {
922  bool result = false;
923  if (!is_muon(id)) return false;
924  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
925  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
926  result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasMM));
927  return result;
928 }

◆ is_muon() [1/2]

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

Definition at line 288 of file AtlasDetectorID.cxx.

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

◆ is_muon() [2/2]

bool AtlasDetectorID::is_muon ( Identifier  id) const
inlineinherited

Definition at line 708 of file AtlasDetectorID.h.

709 {
710  return (m_det_impl.unpack(id) == m_MUON_ID);
711 }

◆ is_pixel() [1/2]

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

Definition at line 294 of file AtlasDetectorID.cxx.

294  {
295  return is_indet(id) && id.fields() > 1 && id[1] == m_PIXEL_ID;
296 }

◆ is_pixel() [2/2]

bool AtlasDetectorID::is_pixel ( Identifier  id) const
inlineinherited

Definition at line 767 of file AtlasDetectorID.h.

768 {
769  bool result = false;
770  if(is_indet(id)) {
772  }
773  return result;
774 }

◆ is_plr() [1/2]

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

Definition at line 310 of file AtlasDetectorID.cxx.

310  {
311  return is_lumi(id) && id.fields() > 2 && id[2] == m_LUMI_PLR_ID;
312 }

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

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

◆ is_rpc() [2/2]

bool AtlasDetectorID::is_rpc ( Identifier  id) const
inlineinherited

Definition at line 882 of file AtlasDetectorID.h.

883 {
884  bool result = false;
885  if (!is_muon(id)) return false;
886  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
887  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
888  // MDT and RPC can only be destinguished by the additional bit in the ID
889  // since the station names are ambiguous
890  if (is_muon(id) && ((techBit == AtlasDetDescr::fAtlasMDT)
891  || (techBit == AtlasDetDescr::fAtlasRPC))) {
893  }
894  return result;
895 }

◆ is_sct() [1/2]

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

Definition at line 298 of file AtlasDetectorID.cxx.

298  {
299  return is_indet(id) && id.fields() > 1 && id[1] == m_SCT_ID;
300 }

◆ is_sct() [2/2]

bool AtlasDetectorID::is_sct ( Identifier  id) const
inlineinherited

Definition at line 777 of file AtlasDetectorID.h.

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

◆ is_slar()

int LArOnlineID_Base::is_slar ( const HWIdentifier  id) const

Return whether the channel is in slar or not is_ slar = [0,1] in all FEB.

Definition at line 1969 of file LArOnlineID_Base.cxx.

1971 {
1972  return (m_slar_impl.unpack(id));
1973 }

◆ is_stgc() [1/2]

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

Definition at line 345 of file AtlasDetectorID.cxx.

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

◆ is_stgc() [2/2]

bool AtlasDetectorID::is_stgc ( Identifier  id) const
inlineinherited

Definition at line 931 of file AtlasDetectorID.h.

932 {
933  bool result = false;
934  if (!is_muon(id)) return false;
935  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
936  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
937  result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasSTGC));
938  return result;
939 }

◆ is_tgc() [1/2]

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

Definition at line 341 of file AtlasDetectorID.cxx.

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

◆ is_tgc() [2/2]

bool AtlasDetectorID::is_tgc ( Identifier  id) const
inlineinherited

Definition at line 909 of file AtlasDetectorID.h.

910 {
911  bool result = false;
912  if (!is_muon(id)) return false;
913  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
914  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
915  result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasTGC));
916  return result;
917 }

◆ is_tile() [1/2]

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

Definition at line 285 of file AtlasDetectorID.cxx.

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

◆ is_tile() [2/2]

bool AtlasDetectorID::is_tile ( Identifier  id) const
inlineinherited

Definition at line 702 of file AtlasDetectorID.h.

703 {
704  return (m_det_impl.unpack(id) == m_TILE_ID);
705 }

◆ is_tile_dm()

bool AtlasDetectorID::is_tile_dm ( Identifier  id) const
inlineinherited

Definition at line 755 of file AtlasDetectorID.h.

756 {
757  bool result = false;
758  if (is_calo(id)) {
759  int temp = m_calo_side_impl.unpack(id);
760  result = (m_tile_dm_field.match(temp));
761  }
762  return result;
763 }

◆ is_trt() [1/2]

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

Definition at line 301 of file AtlasDetectorID.cxx.

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

◆ is_trt() [2/2]

bool AtlasDetectorID::is_trt ( Identifier  id) const
inlineinherited

Definition at line 789 of file AtlasDetectorID.h.

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

◆ is_zdc()

bool AtlasDetectorID::is_zdc ( Identifier  id) const
inlineinherited

Definition at line 978 of file AtlasDetectorID.h.

979 {
980  bool result = false;
981  if(is_forward(id)) {
982  result = (abs(m_lar_part_impl.unpack(id)) == m_ZDC_ID);
983  }
984  return result;
985 }

◆ isCalibration()

bool LArOnlineID_Base::isCalibration ( const HWIdentifier  id) const

Definition at line 1783 of file LArOnlineID_Base.cxx.

1785 {
1786  int bec= barrel_ec(id);
1787  int ft = feedthrough(id);
1788  int sl = slot(id);
1789  return ( (bec==0 && sl==15)
1790  ||
1791  ( bec==1 && sl==15 &&
1792  (ft==0 ||
1793  ft==1 ||
1794  ft==4 ||
1795  ft==5 ||
1796  ft==7 ||
1797  ft==8 ||
1798  ft==11 ||
1799  ft==12 ||
1800  ft==13 ||
1801  ft==14 ||
1802  ft==17 ||
1803  ft==18 ||
1804  ft==19 ||
1805  ft==20 ||
1806  ft==23 ||
1807  ft==24 )
1808  )
1809  ||
1810  ( barrel_ec(id)==1 &&
1811  (sl==3 || sl==4 || sl==12) &&
1812  (ft==3 ||
1813  ft==10 ||
1814  ft==16 ||
1815  ft==22 )
1816  )
1817  ||
1818  ( barrel_ec(id)==1 && sl==16 )
1819  ||
1820  ( barrel_ec(id)==1 && ft==27 && sl==11 )
1821  );
1822 }

◆ isEmBarrelOnline()

bool LArOnlineID_Base::isEmBarrelOnline ( const HWIdentifier  id) const

Definition at line 1716 of file LArOnlineID_Base.cxx.

1718 {/* redefined to isEMBchannel() */
1719  return (isEMBchannel(id));
1720 }

◆ isEMBchannel()

bool LArOnlineID_Base::isEMBchannel ( const HWIdentifier  id) const
Returns
true if the Id belongs to a subsystem

Definition at line 1648 of file LArOnlineID_Base.cxx.

1650 {
1651  return (barrel_ec(id)==0);
1652 }

◆ isEMBPS()

bool LArOnlineID_Base::isEMBPS ( const HWIdentifier  id) const

Definition at line 1661 of file LArOnlineID_Base.cxx.

1663 {
1664  int bec= barrel_ec(id);
1665  int sl = slot(id);
1666  return (
1667  bec == 0 && sl == 1
1668  );
1669 }

◆ isEMECchannel()

virtual bool LArOnlineID_Base::isEMECchannel ( const HWIdentifier  id) const
pure virtual

Implemented in LArOnlineID, and LArOnline_SuperCellID.

◆ isEMECinHECchannel()

bool LArOnlineID_Base::isEMECinHECchannel ( const HWIdentifier  id) const

Definition at line 1873 of file LArOnlineID_Base.cxx.

1875 {/* re-definition with isEMECIW */
1876  return isEMECIW(id);
1877 }

◆ isEMECIW()

virtual bool LArOnlineID_Base::isEMECIW ( const HWIdentifier  id) const
pure virtual

Implemented in LArOnline_SuperCellID, and LArOnlineID.

◆ isEMECOW()

virtual bool LArOnlineID_Base::isEMECOW ( const HWIdentifier  id) const
pure virtual

Implemented in LArOnline_SuperCellID, and LArOnlineID.

◆ isEMECPS()

bool LArOnlineID_Base::isEMECPS ( const HWIdentifier  id) const

Definition at line 1671 of file LArOnlineID_Base.cxx.

1673 {/* redefinition (bug fix) */
1674  return (isEMECOW(id) && slot(id)==1);
1675 }

◆ isEmEndcapOnline()

bool LArOnlineID_Base::isEmEndcapOnline ( const HWIdentifier  id) const

Definition at line 1733 of file LArOnlineID_Base.cxx.

1735 {/* redefinition */
1736  return isEMECchannel(id);
1737 }

◆ isEmEndcapSpecialOnline()

bool LArOnlineID_Base::isEmEndcapSpecialOnline ( const HWIdentifier  id) const

Definition at line 1771 of file LArOnlineID_Base.cxx.

1773 {
1774  int ft = feedthrough(id);
1775  return ( barrel_ec(id)==1 &&
1776  (ft==2 ||
1777  ft==9 ||
1778  ft==15 ||
1779  ft==21 )
1780  );
1781 }

◆ isEmEndcapStandardOnline()

bool LArOnlineID_Base::isEmEndcapStandardOnline ( const HWIdentifier  id) const

Definition at line 1748 of file LArOnlineID_Base.cxx.

1750 {
1751  int ft = feedthrough(id);
1752  return ( barrel_ec(id)==1 &&
1753  (ft==0 ||
1754  ft==1 ||
1755  ft==4 ||
1756  ft==5 ||
1757  ft==7 ||
1758  ft==8 ||
1759  ft==11 ||
1760  ft==12 ||
1761  ft==13 ||
1762  ft==14 ||
1763  ft==17 ||
1764  ft==18 ||
1765  ft==19 ||
1766  ft==20 ||
1767  ft==23 ||
1768  ft==24)
1769  );
1770 }

◆ isEndcapOnline()

bool LArOnlineID_Base::isEndcapOnline ( const HWIdentifier  id) const

Definition at line 1722 of file LArOnlineID_Base.cxx.

1724 {
1725  return (barrel_ec(id)==1);
1726 }

◆ isFCALchannel()

bool LArOnlineID_Base::isFCALchannel ( const HWIdentifier  id) const

Definition at line 1653 of file LArOnlineID_Base.cxx.

1655 {
1656  return ( barrel_ec(id)==1 && feedthrough(id) == 6 );
1657 }

◆ isFcalOnline()

bool LArOnlineID_Base::isFcalOnline ( const HWIdentifier  id) const

Definition at line 1728 of file LArOnlineID_Base.cxx.

1730 {/* redefinition (was redundant with isFCALchannel) */
1731  return isFCALchannel(id);
1732 }

◆ isHECchannel()

virtual bool LArOnlineID_Base::isHECchannel ( const HWIdentifier  id) const
pure virtual

Implemented in LArOnline_SuperCellID, and LArOnlineID.

◆ isHecOnline()

bool LArOnlineID_Base::isHecOnline ( const HWIdentifier  id) const

Definition at line 1833 of file LArOnlineID_Base.cxx.

1835 {
1836  /* Must be used with CARE !
1837  * This method returns true for all slots/channel in HEC crates,
1838  * thus including the EMEC slot/channels that are present
1839  * in slot 1 and slot 2 of HEC crates !
1840  * To access specifically EMEC in HEC slot/channel, you then
1841  * have to use isEMECinHECchannel()
1842  */
1843  int ft = feedthrough(id);
1844  return (
1845  //(slot(id)!=1 && slot(id)!= 2) &&
1846  barrel_ec(id)==1 &&
1847  (ft==3 ||
1848  ft==10 ||
1849  ft==16 ||
1850  ft==22 )
1851  );
1852 }

◆ isHecOnlineFebId()

bool LArOnlineID_Base::isHecOnlineFebId ( const HWIdentifier  febId) const

Definition at line 1854 of file LArOnlineID_Base.cxx.

1856 {
1857  /* Must be used with CARE !
1858  * This method returns true for all slots/channel in HEC crates,
1859  * thus including the EMEC slot/channels that are present
1860  * in slot 1 and slot 2 of HEC crates !
1861  * To access specifically EMEC in HEC slot/channel, you then
1862  * have to use isEMECinHECchannel()
1863  */
1864  int ft = feedthrough(febId);
1865  return ( barrel_ec(febId)==1 &&
1866  (ft==3 ||
1867  ft==10 ||
1868  ft==16 ||
1869  ft==22 )
1870  );
1871 }

◆ isNotWarmCableConnected()

bool LArOnlineID_Base::isNotWarmCableConnected ( const HWIdentifier  id) const

Definition at line 1684 of file LArOnlineID_Base.cxx.

1686 {
1687  int ft = feedthrough(id);
1688  int sl = slot(id);
1689  int ch = channel(id);
1690  return (
1691  (
1692  isEMBchannel(id) &&
1693  ( (-1 < ft && ft < 32) &&
1694  ( sl == 14 ) &&
1695  ( 63 < ch && ch < 128 )
1696  )
1697  )
1698  ||
1699  (
1700  isEMECchannel(id) && sl == 1 &&
1701  (ft == 2 || ft == 9 || ft == 15 || ft == 21 ) &&
1702  (63 < ch && ch < 128)
1703  )
1704  );
1705 }

◆ isPS()

bool LArOnlineID_Base::isPS ( const HWIdentifier  id) const

Definition at line 1677 of file LArOnlineID_Base.cxx.

1679 {/* redefinition with isEMBPS and isEMECPS */
1680  return ( isEMBPS(id) || isEMECPS(id));
1681 }

◆ isValidId()

bool LArOnlineID_Base::isValidId ( const HWIdentifier  id) const

Returns false if the identifier is not a LAr-online id or any of the sub-fields is out of range.


Definition at line 1329 of file LArOnlineID_Base.cxx.

1329  {
1330 
1331 
1332  const int larid=m_lar_impl.unpack(id);
1333  const int laronlineid=m_laronline_impl.unpack(id);
1334  if (larid!=lar_field_value()) return false;
1335 
1336  if (laronlineid!=s_lar_online_field_value && laronlineid!=s_lar_onlineCalib_field_value) return false;
1337 
1338  const int channel=m_channel_in_slot_impl.unpack(id);
1339  if (channel<0 || channel>128) return false;
1340 
1341  const int bec=m_bec_impl.unpack(id);
1342  const int ft=m_feedthrough_impl.unpack(id);
1343  const int slot=m_slot_impl.unpack(id);
1344  if (slot<1) return false;
1345  if (ft<0) return false;
1346  if (bec==0) { // Barrel case
1347  if (ft>31) return false;
1348  if (slot>14) return false;
1349  }
1350  else { //Endcap case
1351  if (ft>27) return false;
1352  if (ft==2 || ft==9 || ft==15 || ft==21){ //Special crate
1353  if (slot >15) return false;
1354  }
1355  else if (ft==6) { //FCAL
1356  if (slot>15) return false;
1357  }
1358  else if (ft>24 && ft<28) { //sFCAL
1359  if (slot>10) return false;
1360  }
1361  else if (ft==3 || ft==10 || ft==16 || ft==22) { //HEC
1362  if (slot==3 || slot==4 || slot>10) return false;
1363  }
1364  else //standard crate
1365  if (slot>13) return false;
1366  }//end endcap
1367  return true;
1368 }

◆ lar()

Identifier AtlasDetectorID::lar ( void  ) const
inherited

Definition at line 57 of file AtlasDetectorID.cxx.

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

◆ lar_dm()

Identifier AtlasDetectorID::lar_dm ( void  ) const
inherited

Definition at line 141 of file AtlasDetectorID.cxx.

141  {
142  Identifier result{0};
143  // Pack field
146  return result;
147 }

◆ lar_em()

Identifier AtlasDetectorID::lar_em ( void  ) const
inherited

Definition at line 125 of file AtlasDetectorID.cxx.

125  {
126  Identifier result{0};
127  // Pack field
130  return result;
131 }

◆ lar_em_exp()

ExpandedIdentifier AtlasDetectorID::lar_em_exp ( void  ) const
inlineprotectedinherited

LAr.

Definition at line 569 of file AtlasDetectorID.h.

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

◆ lar_em_field_value()

int AtlasDetectorID::lar_em_field_value ( ) const
inlineprotectedinherited

Definition at line 651 of file AtlasDetectorID.h.

651 {return (m_LAR_EM_ID);}

◆ lar_exp()

ExpandedIdentifier AtlasDetectorID::lar_exp ( void  ) const
inlineprotectedinherited

Definition at line 499 of file AtlasDetectorID.h.

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

◆ lar_fcal()

Identifier AtlasDetectorID::lar_fcal ( void  ) const
inherited

Definition at line 165 of file AtlasDetectorID.cxx.

165  {
166  Identifier result{0};
167  // Pack field
170  return result;
171 }

◆ lar_fcal_exp()

ExpandedIdentifier AtlasDetectorID::lar_fcal_exp ( void  ) const
inlineprotectedinherited

Definition at line 583 of file AtlasDetectorID.h.

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

◆ lar_fcal_field_value()

int AtlasDetectorID::lar_fcal_field_value ( ) const
inlineprotectedinherited

Definition at line 657 of file AtlasDetectorID.h.

657 {return (m_LAR_FCAL_ID);}

◆ lar_field_value()

int AtlasDetectorID::lar_field_value ( ) const
inlineprotectedinherited

Definition at line 621 of file AtlasDetectorID.h.

621 {return (m_LAR_ID);}

◆ lar_hec()

Identifier AtlasDetectorID::lar_hec ( void  ) const
inherited

Definition at line 157 of file AtlasDetectorID.cxx.

157  {
158  Identifier result{0};
159  // Pack field
162  return result;
163 }

◆ lar_hec_exp()

ExpandedIdentifier AtlasDetectorID::lar_hec_exp ( void  ) const
inlineprotectedinherited

Definition at line 576 of file AtlasDetectorID.h.

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

◆ lar_hec_field_value()

int AtlasDetectorID::lar_hec_field_value ( ) const
inlineprotectedinherited

Definition at line 654 of file AtlasDetectorID.h.

654 {return (m_LAR_HEC_ID);}

◆ lar_lvl1()

Identifier AtlasDetectorID::lar_lvl1 ( void  ) const
inherited

Definition at line 133 of file AtlasDetectorID.cxx.

133  {
134  Identifier result{0};
135  // Pack field
138  return result;
139 }

◆ lucid_exp()

ExpandedIdentifier AtlasDetectorID::lucid_exp ( void  ) const
inlineprotectedinherited

Definition at line 604 of file AtlasDetectorID.h.

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

◆ lucid_field_value()

int AtlasDetectorID::lucid_field_value ( ) const
inlineprotectedinherited

Definition at line 684 of file AtlasDetectorID.h.

684 {return (m_LUCID_ID);}

◆ lumi()

Identifier AtlasDetectorID::lumi ( void  ) const
inherited

Definition at line 117 of file AtlasDetectorID.cxx.

117  {
118  Identifier result{0};
119  // Pack field
122  return result;
123 }

◆ lumi_exp()

ExpandedIdentifier AtlasDetectorID::lumi_exp ( void  ) const
inlineprotectedinherited

Definition at line 562 of file AtlasDetectorID.h.

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

◆ lumi_field_value()

int AtlasDetectorID::lumi_field_value ( ) const
inlineprotectedinherited

Definition at line 645 of file AtlasDetectorID.h.

645 {return (m_LUMI_ID);}

◆ mdt()

Identifier AtlasDetectorID::mdt ( void  ) const
inherited

Definition at line 32 of file AtlasDetectorID.cxx.

32  {
33  return Identifier{};
34 }

◆ mdt_field_value()

int AtlasDetectorID::mdt_field_value ( ) const
inlineprotectedinherited

Definition at line 660 of file AtlasDetectorID.h.

660 {return (m_MDT_ID);}

◆ mm()

Identifier AtlasDetectorID::mm ( void  ) const
inherited

Definition at line 47 of file AtlasDetectorID.cxx.

47  {
48  return Identifier{};
49 }

◆ mm_field_value()

int AtlasDetectorID::mm_field_value ( ) const
inlineprotectedinherited

Definition at line 675 of file AtlasDetectorID.h.

675 {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 164 of file AthMessaging.h.

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

◆ msg() [2/2]

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

The standard message stream.

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

Definition at line 179 of file AthMessaging.h.

180 { return msg() << lvl; }

◆ msgLvl()

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

Test the output level.

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

Definition at line 151 of file AthMessaging.h.

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

◆ muon()

Identifier AtlasDetectorID::muon ( void  ) const
inherited

Definition at line 71 of file AtlasDetectorID.cxx.

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

◆ muon_exp()

ExpandedIdentifier AtlasDetectorID::muon_exp ( void  ) const
inlineprotectedinherited

Definition at line 513 of file AtlasDetectorID.h.

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

◆ muon_field_value()

int AtlasDetectorID::muon_field_value ( ) const
inlineprotectedinherited

Definition at line 627 of file AtlasDetectorID.h.

627 {return (m_MUON_ID);}

◆ pixel()

Identifier AtlasDetectorID::pixel ( void  ) const
inherited

Definition at line 85 of file AtlasDetectorID.cxx.

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

◆ pixel_exp()

ExpandedIdentifier AtlasDetectorID::pixel_exp ( void  ) const
inlineprotectedinherited

Inner Detector:

Definition at line 534 of file AtlasDetectorID.h.

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

◆ pixel_field_value()

int AtlasDetectorID::pixel_field_value ( ) const
inlineprotectedinherited

Definition at line 633 of file AtlasDetectorID.h.

633 {return (m_PIXEL_ID);}

◆ plr_field_value()

int AtlasDetectorID::plr_field_value ( ) const
inlineprotectedinherited

Definition at line 648 of file AtlasDetectorID.h.

648 {return (m_LUMI_PLR_ID);}

◆ pos_neg()

int LArOnlineID_Base::pos_neg ( const HWIdentifier  id) const

Return the side of a hardware cell identifier
pos_neg = [0,1] positive-side or negative-side Barrel/Endcap.

Definition at line 1950 of file LArOnlineID_Base.cxx.

1952 {
1953  return (m_side_impl.unpack(id));
1954 }

◆ print()

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

Expanded print out of any identifier.

Definition at line 414 of file AtlasDetectorID.cxx.

414  {
415  ATH_MSG_INFO(print_to_string(id, context));
416 }

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

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

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

197  {
198  // Register version of dictionary dict_name
199 
200  // Access dictionary by name
201  IdDictDictionary *dict = dict_mgr.find_dictionary(dict_name);
202  if (!dict) {
203  ATH_MSG_ERROR(__func__<<":"<<__LINE__<<" No dictionary found");
204  return 1;
205 
206  }
207  // Add in dict name, file name and version
208  m_dict_names.push_back(dict_name);
209  m_file_names.push_back(dict->file_name());
210  m_dict_tags.push_back(dict->dict_tag());
211  return 0;
212 }

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

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

◆ rpc()

Identifier AtlasDetectorID::rpc ( void  ) const
inherited

Definition at line 38 of file AtlasDetectorID.cxx.

38  {
39  return Identifier{};
40 }

◆ rpc_field_value()

int AtlasDetectorID::rpc_field_value ( ) const
inlineprotectedinherited

Definition at line 666 of file AtlasDetectorID.h.

666 {return (m_RPC_ID);}

◆ sct()

Identifier AtlasDetectorID::sct ( void  ) const
inherited

Definition at line 93 of file AtlasDetectorID.cxx.

93  {
94  Identifier result{0};
95  // Pack field
98  return result;
99 }

◆ sct_exp()

ExpandedIdentifier AtlasDetectorID::sct_exp ( void  ) const
inlineprotectedinherited

Definition at line 541 of file AtlasDetectorID.h.

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

◆ sct_field_value()

int AtlasDetectorID::sct_field_value ( ) const
inlineprotectedinherited

Definition at line 636 of file AtlasDetectorID.h.

636 {return (m_SCT_ID);}

◆ set_do_checks()

void AtlasDetectorID::set_do_checks ( bool  do_checks)
overridevirtualinherited

Implements IdHelper.

Definition at line 470 of file AtlasDetectorID.cxx.

470  {
472 }

◆ set_do_neighbours()

void AtlasDetectorID::set_do_neighbours ( bool  do_neighbours)
overridevirtualinherited

Implements IdHelper.

Definition at line 478 of file AtlasDetectorID.cxx.

478  {
480 }

◆ set_quiet()

void AtlasDetectorID::set_quiet ( bool  quiet)
inherited

Set flag for suppressing informational output.

Definition at line 486 of file AtlasDetectorID.cxx.

486  {
487  m_quiet = quiet;
488 }

◆ setDictVersion()

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

Implements IdHelper.

Definition at line 490 of file AtlasDetectorID.cxx.

490  {
491  const IdDictDictionary *dict = dict_mgr.find_dictionary(name);
492  m_dict_version = dict->m_version;
493 }

◆ setLevel()

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

Change the current logging level.

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

Definition at line 28 of file AthMessaging.cxx.

29 {
30  m_lvl = lvl;
31 }

◆ setMessageSvc()

void AtlasDetectorID::setMessageSvc ( IMessageSvc *  msgSvc)
overridevirtualinherited

Implements IdHelper.

Definition at line 482 of file AtlasDetectorID.cxx.

482  {
483  m_msgSvc = msgSvc;
484 }

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

354  {
355  ATH_MSG_INFO(show_to_string(id, context, sep));
356 }

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

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

◆ slot()

int LArOnlineID_Base::slot ( const HWIdentifier  id) const

Return the slot number of a hardware cell identifier:
slot = [1,15] Slot-ID in top part of the crate (higher phi)
Note that a crate is = Slot(1-15)L + Slot(1-15)R.

Definition at line 1957 of file LArOnlineID_Base.cxx.

1959 {
1960  return (m_slot_impl.unpack(id));
1961 }

◆ stgc()

Identifier AtlasDetectorID::stgc ( void  ) const
inherited

Definition at line 44 of file AtlasDetectorID.cxx.

44  {
45  return Identifier{};
46 }

◆ stgc_field_value()

int AtlasDetectorID::stgc_field_value ( ) const
inlineprotectedinherited

Definition at line 672 of file AtlasDetectorID.h.

672 {return (m_STGC_ID);}

◆ subdet_context()

IdContext AtlasDetectorID::subdet_context ( void  ) const
inherited

IdContext (indicates id length) for sub-detector.

Definition at line 179 of file AtlasDetectorID.cxx.

179  {
180  ExpandedIdentifier id{};
181  return IdContext{id, 0, m_SUBDET_INDEX};
182 }

◆ tgc()

Identifier AtlasDetectorID::tgc ( void  ) const
inherited

Definition at line 41 of file AtlasDetectorID.cxx.

41  {
42  return Identifier{};
43 }

◆ tgc_field_value()

int AtlasDetectorID::tgc_field_value ( ) const
inlineprotectedinherited

Definition at line 669 of file AtlasDetectorID.h.

669 {return (m_TGC_ID);}

◆ tile()

Identifier AtlasDetectorID::tile ( void  ) const
inherited

Definition at line 64 of file AtlasDetectorID.cxx.

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

◆ tile_dm()

Identifier AtlasDetectorID::tile_dm ( void  ) const
inherited

Definition at line 149 of file AtlasDetectorID.cxx.

149  {
150  Identifier result{0};
151  // Pack field
154  return result;
155 }

◆ tile_exp()

ExpandedIdentifier AtlasDetectorID::tile_exp ( void  ) const
inlineprotectedinherited

Definition at line 506 of file AtlasDetectorID.h.

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

◆ tile_field_value()

int AtlasDetectorID::tile_field_value ( ) const
inlineprotectedinherited

Definition at line 624 of file AtlasDetectorID.h.

624 {return (m_TILE_ID);}

◆ to_range()

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

Definition at line 495 of file AtlasDetectorID.cxx.

495  {
496 
497  // Build a string from the contents of an identifier
498  int fields = id.fields();
499  std::string result("");
500  for (int i = 0; i < fields; ++i) {
501  if (i > 0) {
502  result += '/'; // add '/' only if NOT last one
503  }
504  result += std::format("{}", id[i]);
505  }
506  return result;
507 }

◆ trt()

Identifier AtlasDetectorID::trt ( void  ) const
inherited

Definition at line 101 of file AtlasDetectorID.cxx.

101  {
102  Identifier result{0};
103  // Pack field
106  return result;
107 }

◆ trt_exp()

ExpandedIdentifier AtlasDetectorID::trt_exp ( void  ) const
inlineprotectedinherited

Definition at line 548 of file AtlasDetectorID.h.

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

◆ trt_field_value()

int AtlasDetectorID::trt_field_value ( ) const
inlineprotectedinherited

Definition at line 639 of file AtlasDetectorID.h.

639 {return (m_TRT_ID);}

◆ zdc_exp()

ExpandedIdentifier AtlasDetectorID::zdc_exp ( void  ) const
inlineprotectedinherited

Definition at line 611 of file AtlasDetectorID.h.

612 {
614  return (result << m_ZDC_ID);
615 }

◆ zdc_field_value()

int AtlasDetectorID::zdc_field_value ( ) const
inlineprotectedinherited

Definition at line 686 of file AtlasDetectorID.h.

686 {return (m_ZDC_ID);}

Member Data Documentation

◆ ATLAS_THREAD_SAFE

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

Messaging initialized (initMessaging)

Definition at line 141 of file AthMessaging.h.

◆ m_ALFA_ID

int AtlasDetectorID::m_ALFA_ID {1}
privateinherited

Definition at line 431 of file AtlasDetectorID.h.

◆ m_atlas_dict

IdDictDictionary* AtlasDetectorID::m_atlas_dict {}
privateinherited

Definition at line 442 of file AtlasDetectorID.h.

◆ m_BCM_ID

int AtlasDetectorID::m_BCM_ID {3}
privateinherited

Definition at line 432 of file AtlasDetectorID.h.

◆ m_bec_ft_impl

IdDictFieldImplementation LArOnlineID_Base::m_bec_ft_impl
protected

Definition at line 519 of file LArOnlineID_Base.h.

◆ m_bec_impl

IdDictFieldImplementation LArOnlineID_Base::m_bec_impl
protected

Definition at line 514 of file LArOnlineID_Base.h.

◆ m_bec_index

size_type LArOnlineID_Base::m_bec_index
protected

Definition at line 483 of file LArOnlineID_Base.h.

◆ m_bec_slot_impl

IdDictFieldImplementation LArOnlineID_Base::m_bec_slot_impl
protected

Definition at line 520 of file LArOnlineID_Base.h.

◆ m_calib_channel_vec

std::vector<HWIdentifier> LArOnlineID_Base::m_calib_channel_vec
protected

Definition at line 509 of file LArOnlineID_Base.h.

◆ m_calib_module_vec

std::vector<HWIdentifier> LArOnlineID_Base::m_calib_module_vec
protected

Definition at line 508 of file LArOnlineID_Base.h.

◆ m_calibChannelHashMax

size_type LArOnlineID_Base::m_calibChannelHashMax
protected

Definition at line 507 of file LArOnlineID_Base.h.

◆ m_calibModuleHashMax

size_type LArOnlineID_Base::m_calibModuleHashMax
protected

Definition at line 506 of file LArOnlineID_Base.h.

◆ m_calo_dict

IdDictDictionary* AtlasDetectorID::m_calo_dict {}
privateinherited

Definition at line 447 of file AtlasDetectorID.h.

◆ m_CALO_ID

int AtlasDetectorID::m_CALO_ID {10}
privateinherited

Definition at line 413 of file AtlasDetectorID.h.

◆ m_calo_side_impl

IdDictFieldImplementation AtlasDetectorID::m_calo_side_impl
privateinherited

Definition at line 452 of file AtlasDetectorID.h.

◆ m_chan_hash_calcs

std::vector<HashCalc> LArOnlineID_Base::m_chan_hash_calcs
protected

Definition at line 540 of file LArOnlineID_Base.h.

◆ m_channel_in_slot_impl

IdDictFieldImplementation LArOnlineID_Base::m_channel_in_slot_impl
protected

Definition at line 518 of file LArOnlineID_Base.h.

◆ m_channel_in_slot_index

size_type LArOnlineID_Base::m_channel_in_slot_index
protected

Definition at line 487 of file LArOnlineID_Base.h.

◆ m_channel_vec

std::vector<HWIdentifier> LArOnlineID_Base::m_channel_vec
protected

Definition at line 501 of file LArOnlineID_Base.h.

◆ m_channelHashMax

size_type LArOnlineID_Base::m_channelHashMax
protected

Definition at line 497 of file LArOnlineID_Base.h.

◆ m_CSC_ID

int AtlasDetectorID::m_CSC_ID {1}
privateinherited

Definition at line 425 of file AtlasDetectorID.h.

◆ m_det_impl

IdDictFieldImplementation AtlasDetectorID::m_det_impl
privateinherited

Definition at line 450 of file AtlasDetectorID.h.

◆ m_DET_INDEX

size_type AtlasDetectorID::m_DET_INDEX {999}
privateinherited

Definition at line 406 of file AtlasDetectorID.h.

◆ m_dict

const IdDictDictionary* LArOnlineID_Base::m_dict
protected

Definition at line 490 of file LArOnlineID_Base.h.

◆ m_dict_names

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

List of dictionary names used by this helper.

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

◆ m_dict_version

std::string AtlasDetectorID::m_dict_version
privateinherited

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

◆ m_do_neighbours

bool AtlasDetectorID::m_do_neighbours {true}
protectedinherited

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

Definition at line 372 of file AtlasDetectorID.h.

◆ m_feb_hash_calcs

std::vector<HashCalcFeb> LArOnlineID_Base::m_feb_hash_calcs
protected

Definition at line 539 of file LArOnlineID_Base.h.

◆ m_feb_vec

std::vector<HWIdentifier> LArOnlineID_Base::m_feb_vec
protected

Definition at line 500 of file LArOnlineID_Base.h.

◆ m_febHashMax

size_type LArOnlineID_Base::m_febHashMax
protected

Definition at line 496 of file LArOnlineID_Base.h.

◆ m_feedthrough_impl

IdDictFieldImplementation LArOnlineID_Base::m_feedthrough_impl
protected

Definition at line 516 of file LArOnlineID_Base.h.

◆ m_feedthrough_index

size_type LArOnlineID_Base::m_feedthrough_index
protected

Definition at line 485 of file LArOnlineID_Base.h.

◆ m_feedthrough_vec

std::vector<HWIdentifier> LArOnlineID_Base::m_feedthrough_vec
protected

Definition at line 499 of file LArOnlineID_Base.h.

◆ m_feedthroughHashMax

size_type LArOnlineID_Base::m_feedthroughHashMax
protected

Definition at line 495 of file LArOnlineID_Base.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 385 of file AtlasDetectorID.h.

◆ m_full_calib_laronline_range

MultiRange LArOnlineID_Base::m_full_calib_laronline_range
protected

Definition at line 504 of file LArOnlineID_Base.h.

◆ m_full_calib_module_range

MultiRange LArOnlineID_Base::m_full_calib_module_range
protected

Definition at line 505 of file LArOnlineID_Base.h.

◆ m_full_channel_range

MultiRange LArOnlineID_Base::m_full_channel_range
protected

Definition at line 494 of file LArOnlineID_Base.h.

◆ m_full_feb_range

MultiRange LArOnlineID_Base::m_full_feb_range
protected

Definition at line 493 of file LArOnlineID_Base.h.

◆ m_full_feedthrough_range

MultiRange LArOnlineID_Base::m_full_feedthrough_range
protected

Definition at line 492 of file LArOnlineID_Base.h.

◆ m_full_laronline_range

MultiRange LArOnlineID_Base::m_full_laronline_range
protected

Definition at line 491 of file LArOnlineID_Base.h.

◆ m_fwd_dict

IdDictDictionary* AtlasDetectorID::m_fwd_dict {}
privateinherited

Definition at line 448 of file AtlasDetectorID.h.

◆ m_FWD_ID

int AtlasDetectorID::m_FWD_ID {13}
privateinherited

Definition at line 430 of file AtlasDetectorID.h.

◆ m_fwd_part_impl

IdDictFieldImplementation AtlasDetectorID::m_fwd_part_impl
privateinherited

Definition at line 458 of file AtlasDetectorID.h.

◆ m_group

std::string AtlasDetectorID::m_group
protectedinherited

Group name.

Definition at line 365 of file AtlasDetectorID.h.

◆ m_helper

AtlasDetectorIDHelper* AtlasDetectorID::m_helper {}
privateinherited

Definition at line 449 of file AtlasDetectorID.h.

◆ m_HGTD_ID

int AtlasDetectorID::m_HGTD_ID {4}
privateinherited

Definition at line 417 of file AtlasDetectorID.h.

◆ m_imsg

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

MessageSvc pointer.

Definition at line 135 of file AthMessaging.h.

◆ m_indet_dict

IdDictDictionary* AtlasDetectorID::m_indet_dict {}
privateinherited

Definition at line 443 of file AtlasDetectorID.h.

◆ m_INDET_ID

int AtlasDetectorID::m_INDET_ID {2}
privateinherited

Definition at line 409 of file AtlasDetectorID.h.

◆ m_indet_part_impl

IdDictFieldImplementation AtlasDetectorID::m_indet_part_impl
privateinherited

Definition at line 451 of file AtlasDetectorID.h.

◆ m_is_initialized_from_dict

bool AtlasDetectorID::m_is_initialized_from_dict {}
privateinherited

Definition at line 405 of file AtlasDetectorID.h.

◆ m_isHighLuminosityLHC

bool AtlasDetectorID::m_isHighLuminosityLHC {}
privateinherited

Definition at line 436 of file AtlasDetectorID.h.

◆ m_lar_dict

IdDictDictionary* AtlasDetectorID::m_lar_dict {}
privateinherited

Definition at line 444 of file AtlasDetectorID.h.

◆ m_lar_dm_field

Range::field AtlasDetectorID::m_lar_dm_field
privateinherited

Definition at line 440 of file AtlasDetectorID.h.

◆ m_LAR_EM_ID

int AtlasDetectorID::m_LAR_EM_ID {1}
privateinherited

Definition at line 420 of file AtlasDetectorID.h.

◆ m_LAR_FCAL_ID

int AtlasDetectorID::m_LAR_FCAL_ID {3}
privateinherited

Definition at line 422 of file AtlasDetectorID.h.

◆ m_lar_fcal_module_impl

IdDictFieldImplementation AtlasDetectorID::m_lar_fcal_module_impl
privateinherited

Definition at line 454 of file AtlasDetectorID.h.

◆ m_LAR_FCAL_MODULE_INDEX

int AtlasDetectorID::m_LAR_FCAL_MODULE_INDEX {999}
privateinherited

Definition at line 423 of file AtlasDetectorID.h.

◆ m_LAR_HEC_ID

int AtlasDetectorID::m_LAR_HEC_ID {2}
privateinherited

Definition at line 421 of file AtlasDetectorID.h.

◆ m_LAR_ID

int AtlasDetectorID::m_LAR_ID {4}
privateinherited

Definition at line 410 of file AtlasDetectorID.h.

◆ m_lar_impl

IdDictFieldImplementation LArOnlineID_Base::m_lar_impl
protected

Field Implementation.

Definition at line 512 of file LArOnlineID_Base.h.

◆ m_lar_index

size_type LArOnlineID_Base::m_lar_index
protected

Definition at line 481 of file LArOnlineID_Base.h.

◆ m_lar_part_impl

IdDictFieldImplementation AtlasDetectorID::m_lar_part_impl
privateinherited

Definition at line 453 of file AtlasDetectorID.h.

◆ m_laronline_impl

IdDictFieldImplementation LArOnlineID_Base::m_laronline_impl
protected

Definition at line 513 of file LArOnlineID_Base.h.

◆ m_laronline_index

size_type LArOnlineID_Base::m_laronline_index
protected

Definition at line 482 of file LArOnlineID_Base.h.

◆ m_laronlineRegion_index

size_type LArOnlineID_Base::m_laronlineRegion_index
protected

Definition at line 480 of file LArOnlineID_Base.h.

◆ m_LUCID_ID

int AtlasDetectorID::m_LUCID_ID {5}
privateinherited

Definition at line 433 of file AtlasDetectorID.h.

◆ m_LUMI_ID

int AtlasDetectorID::m_LUMI_ID {3}
privateinherited

Definition at line 418 of file AtlasDetectorID.h.

◆ m_LUMI_PLR_ID

int AtlasDetectorID::m_LUMI_PLR_ID {1}
privateinherited

Definition at line 419 of file AtlasDetectorID.h.

◆ m_lvl

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

Current logging level.

Definition at line 138 of file AthMessaging.h.

◆ m_lvl1_field

Range::field AtlasDetectorID::m_lvl1_field
privateinherited

Definition at line 438 of file AtlasDetectorID.h.

◆ m_lvl1_onl_field

Range::field AtlasDetectorID::m_lvl1_onl_field
privateinherited

Definition at line 439 of file AtlasDetectorID.h.

◆ m_MDT_ID

int AtlasDetectorID::m_MDT_ID {0}
privateinherited

Definition at line 424 of file AtlasDetectorID.h.

◆ m_MM_ID

int AtlasDetectorID::m_MM_ID {5}
privateinherited

Definition at line 429 of file AtlasDetectorID.h.

◆ m_msg_tls

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

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

Definition at line 132 of file AthMessaging.h.

◆ m_msgSvc

IMessageSvc* AtlasDetectorID::m_msgSvc {}
protectedinherited

pointer to the message service

Definition at line 375 of file AtlasDetectorID.h.

◆ m_muon_dict

IdDictDictionary* AtlasDetectorID::m_muon_dict {}
privateinherited

Definition at line 446 of file AtlasDetectorID.h.

◆ m_MUON_ID

int AtlasDetectorID::m_MUON_ID {7}
privateinherited

Definition at line 412 of file AtlasDetectorID.h.

◆ m_muon_mdt_impl

IdDictFieldImplementation AtlasDetectorID::m_muon_mdt_impl
privateinherited

Definition at line 456 of file AtlasDetectorID.h.

◆ m_muon_rpc_impl

IdDictFieldImplementation AtlasDetectorID::m_muon_rpc_impl
privateinherited

Definition at line 457 of file AtlasDetectorID.h.

◆ m_muon_station_name_impl

IdDictFieldImplementation AtlasDetectorID::m_muon_station_name_impl
privateinherited

Definition at line 455 of file AtlasDetectorID.h.

◆ m_MUON_SUBDET_INDEX

size_type AtlasDetectorID::m_MUON_SUBDET_INDEX {999}
privateinherited

Definition at line 408 of file AtlasDetectorID.h.

◆ m_muon_tech_bits

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

Definition at line 461 of file AtlasDetectorID.h.

◆ m_nm

std::string AthMessaging::m_nm
privateinherited

Message source name.

Definition at line 129 of file AthMessaging.h.

◆ m_PIXEL_ID

int AtlasDetectorID::m_PIXEL_ID {1}
privateinherited

Definition at line 414 of file AtlasDetectorID.h.

◆ m_quiet

bool AtlasDetectorID::m_quiet {}
protectedinherited

If true, suppress DEBUG/INFO messages.

Definition at line 378 of file AtlasDetectorID.h.

◆ m_RPC_ID

int AtlasDetectorID::m_RPC_ID {2}
privateinherited

Definition at line 426 of file AtlasDetectorID.h.

◆ m_SCT_ID

int AtlasDetectorID::m_SCT_ID {2}
privateinherited

Definition at line 415 of file AtlasDetectorID.h.

◆ m_side_impl

IdDictFieldImplementation LArOnlineID_Base::m_side_impl
protected

Definition at line 515 of file LArOnlineID_Base.h.

◆ m_side_index

size_type LArOnlineID_Base::m_side_index
protected

Definition at line 484 of file LArOnlineID_Base.h.

◆ m_slar_impl

IdDictFieldImplementation LArOnlineID_Base::m_slar_impl
protected

Definition at line 521 of file LArOnlineID_Base.h.

◆ m_slar_index

size_type LArOnlineID_Base::m_slar_index
protected

Definition at line 488 of file LArOnlineID_Base.h.

◆ m_slot_impl

IdDictFieldImplementation LArOnlineID_Base::m_slot_impl
protected

Definition at line 517 of file LArOnlineID_Base.h.

◆ m_slot_index

size_type LArOnlineID_Base::m_slot_index
protected

Definition at line 486 of file LArOnlineID_Base.h.

◆ m_STGC_ID

int AtlasDetectorID::m_STGC_ID {4}
privateinherited

Definition at line 428 of file AtlasDetectorID.h.

◆ m_SUBDET_INDEX

size_type AtlasDetectorID::m_SUBDET_INDEX {999}
privateinherited

Definition at line 407 of file AtlasDetectorID.h.

◆ m_TGC_ID

int AtlasDetectorID::m_TGC_ID {3}
privateinherited

Definition at line 427 of file AtlasDetectorID.h.

◆ m_this_is_slar

bool LArOnlineID_Base::m_this_is_slar
protected

Definition at line 445 of file LArOnlineID_Base.h.

◆ m_tile_dict

IdDictDictionary* AtlasDetectorID::m_tile_dict {}
privateinherited

Definition at line 445 of file AtlasDetectorID.h.

◆ m_tile_dm_field

Range::field AtlasDetectorID::m_tile_dm_field
privateinherited

Definition at line 441 of file AtlasDetectorID.h.

◆ m_TILE_ID

int AtlasDetectorID::m_TILE_ID {5}
privateinherited

Definition at line 411 of file AtlasDetectorID.h.

◆ m_TRT_ID

int AtlasDetectorID::m_TRT_ID {3}
privateinherited

Definition at line 416 of file AtlasDetectorID.h.

◆ m_ZDC_ID

int AtlasDetectorID::m_ZDC_ID {7}
privateinherited

Definition at line 434 of file AtlasDetectorID.h.


The documentation for this class was generated from the following files:
LArOnlineID_Base::m_side_index
size_type m_side_index
Definition: LArOnlineID_Base.h:484
IdDictDictionary::find_region
IdDictRegion * find_region(const std::string &region_name) const
Definition: IdDictDictionary.cxx:92
AtlasDetectorID::is_pixel
bool is_pixel(Identifier id) const
Definition: AtlasDetectorID.h:767
AthMessaging::m_lvl
std::atomic< MSG::Level > m_lvl
Current logging level.
Definition: AthMessaging.h:138
IdDictDictionary::dict_tag
const std::string & dict_tag(void) const
Access to the dictionary tag.
Definition: IdDictDictionary.h:262
AtlasDetectorID::m_muon_dict
IdDictDictionary * m_muon_dict
Definition: AtlasDetectorID.h:446
AtlasDetectorID::indet_field_value
int indet_field_value() const
Provide efficient access to individual field values, for subclass idhelpers.
Definition: AtlasDetectorID.h:618
ConstRangeIterator
Definition: RangeIterator.h:46
AtlasDetectorID::is_forward
bool is_forward(Identifier id) const
Definition: AtlasDetectorID.h:942
IdDictDictionary::build_multirange
MultiRange build_multirange() const
Get MultiRange for full dictionary.
Definition: IdDictDictionary.cxx:290
ReadCellNoiseFromCoolCompare.s1
s1
Definition: ReadCellNoiseFromCoolCompare.py:378
AtlasDetectorID::m_muon_tech_bits
std::vector< unsigned int > m_muon_tech_bits
Definition: AtlasDetectorID.h:461
AtlasDetectorID::MAX_BIT
@ MAX_BIT
Definition: AtlasDetectorID.h:396
sendEI_SPB.ch
ch
Definition: sendEI_SPB.py:35
LArOnlineID_Base::channel_Hash
IdentifierHash channel_Hash(HWIdentifier channelId) const
Create channel_hash from channel_Id.
Definition: LArOnlineID_Base.cxx:1632
AtlasDetectorID::m_LUMI_ID
int m_LUMI_ID
Definition: AtlasDetectorID.h:418
PlotCalibFromCool.ft
ft
Definition: PlotCalibFromCool.py:329
AtlasDetectorID::initialize_from_dictionary
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
Definition: AtlasDetectorID.cxx:250
get_generator_info.result
result
Definition: get_generator_info.py:21
AtlasDetectorID::m_indet_part_impl
IdDictFieldImplementation m_indet_part_impl
Definition: AtlasDetectorID.h:451
IdDictGroup
Definition: IdDictGroup.h:19
InDetDD::PLR
@ PLR
Definition: DetectorDesign.h:46
LArOnlineID_Base::m_slar_impl
IdDictFieldImplementation m_slar_impl
Definition: LArOnlineID_Base.h:521
vtune_athena.format
format
Definition: vtune_athena.py:14
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
LArOnlineID_Base::feedthrough_name
std::string feedthrough_name(const HWIdentifier id) const
Return a string corresponding to a feedthrough name given an identifier.
Definition: LArOnlineID_Base.cxx:75
AtlasDetectorID::is_lar_fcal
bool is_lar_fcal(Identifier id) const
Definition: AtlasDetectorID.h:846
LArOnlineID_Base::size_type
Identifier::size_type size_type
Definition: LArOnlineID_Base.h:108
ParticleGun_SamplingFraction.bec
int bec
Definition: ParticleGun_SamplingFraction.py:89
IdDictFieldImplementation::show_to_string
std::string show_to_string(void) const
Definition: IdDictFieldImplementation.cxx:38
AtlasDetectorID::is_lar
bool is_lar(Identifier id) const
Definition: AtlasDetectorID.h:696
Pixel
Definition: PixelFEUtils.h:16
AtlasDetectorID::muon_field_value
int muon_field_value() const
Definition: AtlasDetectorID.h:627
LArOnlineID_Base::m_feedthrough_impl
IdDictFieldImplementation m_feedthrough_impl
Definition: LArOnlineID_Base.h:516
AtlasDetectorID::m_TRT_ID
int m_TRT_ID
Definition: AtlasDetectorID.h:416
quiet
bool quiet
Definition: TrigGlobEffCorrValidation.cxx:190
LArOnlineID_Base::isEMECIW
virtual bool isEMECIW(const HWIdentifier id) const =0
IdentifierField::get_minimum
element_type get_minimum() const
Query the values.
Definition: IdentifierField.h:121
min
constexpr double min()
Definition: ap_fixedTest.cxx:26
AtlasDetectorID::m_HGTD_ID
int m_HGTD_ID
Definition: AtlasDetectorID.h:417
IdContext::end_index
size_type end_index() const
Definition: IdContext.h:46
AtlasDetectorID::calo_field_value
int calo_field_value() const
Definition: AtlasDetectorID.h:630
LArOnlineID_Base::feb_Id_checks
void feb_Id_checks(int barrel_ec, int pos_neg, int feedthrough, int slot) const
Definition: LArOnlineID_Base.cxx:754
LArOnlineID_Base::m_channel_vec
std::vector< HWIdentifier > m_channel_vec
Definition: LArOnlineID_Base.h:501
ExpandedIdentifier::add
void add(element_type value)
Append a value into a new field.
skel.it
it
Definition: skel.GENtoEVGEN.py:407
LArOnlineID_Base::slot
int slot(const HWIdentifier id) const
Return the slot number of a hardware cell identifier: slot = [1,15] Slot-ID in top part of the crat...
Definition: LArOnlineID_Base.cxx:1957
ExpandedIdentifier
Definition: DetectorDescription/Identifier/Identifier/ExpandedIdentifier.h:102
IdDictFieldImplementation::pack
void pack(int value, Identifier &id) const
Definition: IdDictFieldImplementation.h:173
AtlasDetectorID::m_tile_dict
IdDictDictionary * m_tile_dict
Definition: AtlasDetectorID.h:445
LArOnlineID_Base::m_slot_impl
IdDictFieldImplementation m_slot_impl
Definition: LArOnlineID_Base.h:517
LArOnlineID_Base::m_laronline_impl
IdDictFieldImplementation m_laronline_impl
Definition: LArOnlineID_Base.h:513
AtlasDetectorID::m_msgSvc
IMessageSvc * m_msgSvc
pointer to the message service
Definition: AtlasDetectorID.h:375
AtlasDetectorID::m_dict_version
std::string m_dict_version
Definition: AtlasDetectorID.h:404
IdentifierField::get_values
const element_vector & get_values() const
Definition: IdentifierField.h:133
IdentifierField::get_maximum
element_type get_maximum() const
Definition: IdentifierField.h:130
LArOnlineID_Base::feb_begin
id_iterator feb_begin() const
Returns an iterator pointing to a feb identifier collection.
Definition: LArOnlineID_Base.cxx:1906
LArOnlineID_Base::feedthrough_begin
id_iterator feedthrough_begin() const
Return an iterator pointing to Feedthrough identifiers collection.
Definition: LArOnlineID_Base.cxx:1431
AtlasDetectorID::m_do_checks
bool m_do_checks
Flag for subclasses to know whether or not to perform checks.
Definition: AtlasDetectorID.h:369
Identifier::MAX_BIT
static constexpr value_type MAX_BIT
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
LArOnlineID_Base::calib_module_Id
HWIdentifier calib_module_Id(int barrel_ec, int pos_neg, int feedthrough, int slot) const
Build calibration module identifier from fields.
Definition: LArOnlineID_Base.h:575
ReadOfcFromCool.field
field
Definition: ReadOfcFromCool.py:48
LArOnlineID_Base::m_laronline_index
size_type m_laronline_index
Definition: LArOnlineID_Base.h:482
LArOnlineID_Base::m_dict
const IdDictDictionary * m_dict
Definition: LArOnlineID_Base.h:490
AtlasDetectorID::m_ZDC_ID
int m_ZDC_ID
Definition: AtlasDetectorID.h:434
AtlasDetectorID::m_STGC_ID
int m_STGC_ID
Definition: AtlasDetectorID.h:428
LArOnlineID_Base::feedthroughContext
IdContext feedthroughContext() const
Define context for feedthroughs.
Definition: LArOnlineID_Base.cxx:258
AtlasDetectorID::lar_field_value
int lar_field_value() const
Definition: AtlasDetectorID.h:621
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
LArOnlineID_Base::m_side_impl
IdDictFieldImplementation m_side_impl
Definition: LArOnlineID_Base.h:515
HWIdentifier
Definition: HWIdentifier.h:13
LArOnlineID_Base::barrel_ec
int barrel_ec(const HWIdentifier id) const
Return the position barrel or endcap of a hardware cell identifier: barrel_ec = [0,...
Definition: LArOnlineID_Base.cxx:1938
AthMessaging::m_imsg
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
Definition: AthMessaging.h:135
IdDictFieldImplementation::unpack
int unpack(Identifier id) const
Identifier manipulation methods.
Definition: IdDictFieldImplementation.h:147
AtlasDetectorID::ALL_BITS
@ ALL_BITS
Definition: AtlasDetectorID.h:399
LArOnlineID_Base::channel_end
id_iterator channel_end() const
Definition: LArOnlineID_Base.cxx:1927
AtlasDetectorID::do_neighbours
virtual bool do_neighbours(void) const override
Neighbour initialization is performed by default One can switch or query this mode for any idHelper w...
Definition: AtlasDetectorID.cxx:474
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
IdDictDictionary::find_field
IdDictField * find_field(const std::string &name) const
Definition: IdDictDictionary.cxx:36
AtlasDetectorID::is_lvl1_trig_towers
bool is_lvl1_trig_towers(Identifier id) const
Definition: AtlasDetectorID.h:720
CalibDbCompareRT.region_id
region_id
Definition: CalibDbCompareRT.py:67
IdDictRegion
Definition: IdDictRegion.h:20
LArOnlineID_Base::m_feedthroughHashMax
size_type m_feedthroughHashMax
Definition: LArOnlineID_Base.h:495
IdDictDictionary::m_version
std::string m_version
Definition: IdDictDictionary.h:217
AtlasDetectorID::dictionaryVersion
virtual std::string dictionaryVersion(void) const override
Definition: AtlasDetectorID.cxx:276
LArOnlineID_Base::m_calib_channel_vec
std::vector< HWIdentifier > m_calib_channel_vec
Definition: LArOnlineID_Base.h:509
AtlasDetectorID::m_LAR_ID
int m_LAR_ID
Definition: AtlasDetectorID.h:410
LArOnlineID_Base::m_bec_slot_impl
IdDictFieldImplementation m_bec_slot_impl
Definition: LArOnlineID_Base.h:520
LArOnlineID_Base::m_calibModuleHashMax
size_type m_calibModuleHashMax
Definition: LArOnlineID_Base.h:506
AtlasDetectorID::m_do_neighbours
bool m_do_neighbours
Flag for subclasses to know whether or not to perform neighbour initialization.
Definition: AtlasDetectorID.h:372
IdDictFieldImplementation::reset
void reset(Identifier &id) const
Definition: IdDictFieldImplementation.h:183
AtlasDetectorID::m_INDET_ID
int m_INDET_ID
Definition: AtlasDetectorID.h:409
LArOnlineID_Base::m_feb_hash_calcs
std::vector< HashCalcFeb > m_feb_hash_calcs
Definition: LArOnlineID_Base.h:539
Trk::DetectorElemType::Silicon
@ Silicon
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
AtlasDetectorID::m_LUMI_PLR_ID
int m_LUMI_PLR_ID
Definition: AtlasDetectorID.h:419
LArOnlineID_Base::isFCALchannel
bool isFCALchannel(const HWIdentifier id) const
Definition: LArOnlineID_Base.cxx:1653
LArOnlineID_Base::is_slar
int is_slar(const HWIdentifier id) const
Return whether the channel is in slar or not is_ slar = [0,1] in all FEB.
Definition: LArOnlineID_Base.cxx:1969
LArOnlineID_Base::m_channel_in_slot_impl
IdDictFieldImplementation m_channel_in_slot_impl
Definition: LArOnlineID_Base.h:518
IdentifierField::match
bool match(element_type value) const
The basic match operation Given a value, test to see if it satisfies the constraints for this field.
Definition: IdentifierField.cxx:71
AtlasDetectorID::PIXEL_MASK
@ PIXEL_MASK
Definition: AtlasDetectorID.h:398
AtlasDetectorID::m_tile_dm_field
Range::field m_tile_dm_field
Definition: AtlasDetectorID.h:441
LArOnlineID_Base::id_range
boost::iterator_range< id_iterator > id_range
Type for range over identifiers.
Definition: LArOnlineID_Base.h:113
LArOnlineID_Base::m_full_feedthrough_range
MultiRange m_full_feedthrough_range
Definition: LArOnlineID_Base.h:492
IdDictFieldImplementation::unpackToIndex
size_type unpackToIndex(Identifier id) const
Unpack a single field index of the id.
Definition: IdDictFieldImplementation.h:164
IdDictDictionary::find_group
IdDictGroup * find_group(const std::string &group_name) const
Definition: IdDictDictionary.cxx:106
Tile
Definition: TileVolumeBuilder.h:42
LArOnlineID_Base::channel
int channel(const HWIdentifier id) const
Return the channel number of a hardware cell identifier channel = [0,127] in all FEB.
Definition: LArOnlineID_Base.cxx:1963
Identifier::ALL_BITS
static constexpr value_type ALL_BITS
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:33
IdDictMgr::find_dictionary
IdDictDictionary * find_dictionary(const std::string &name) const
Access dictionary by name.
Definition: IdDictMgr.cxx:115
IdDictRegion::m_index
size_t m_index
Definition: IdDictRegion.h:43
AtlasDetectorID::ATLAS_ID
@ ATLAS_ID
Definition: AtlasDetectorID.h:395
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
LArOnlineID_Base::m_febHashMax
size_type m_febHashMax
Definition: LArOnlineID_Base.h:496
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AtlasDetectorID::m_TILE_ID
int m_TILE_ID
Definition: AtlasDetectorID.h:411
TRT
Definition: HitInfo.h:33
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
IdentifierField::empty
bool empty() const
If true, this field does not have any constraints, and may hold any value representable by element_ty...
Definition: IdentifierField.h:182
AtlasDetectorID::m_group
std::string m_group
Group name.
Definition: AtlasDetectorID.h:365
LArOnlineID_Base::m_slar_index
size_type m_slar_index
Definition: LArOnlineID_Base.h:488
AtlasDetectorID::m_calo_dict
IdDictDictionary * m_calo_dict
Definition: AtlasDetectorID.h:447
lumiFormat.i
int i
Definition: lumiFormat.py:85
IdDictFieldImplementation::set_bits
void set_bits(size_type bits, size_type bits_offset)
Definition: IdDictFieldImplementation.h:278
AtlasDetectorID::m_is_initialized_from_dict
bool m_is_initialized_from_dict
Definition: AtlasDetectorID.h:405
AtlasDetectorID::m_lar_part_impl
IdDictFieldImplementation m_lar_part_impl
Definition: AtlasDetectorID.h:453
AtlasDetectorID::indet_exp
ExpandedIdentifier indet_exp(void) const
Detector systems:
Definition: AtlasDetectorID.h:492
LArOnlineID_Base::m_calibChannelHashMax
size_type m_calibChannelHashMax
Definition: LArOnlineID_Base.h:507
LArOnlineID_Base::channelContext
IdContext channelContext() const
Define context for channel.
Definition: LArOnlineID_Base.cxx:269
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
LArOnlineID_Base::isEMECOW
virtual bool isEMECOW(const HWIdentifier id) const =0
LArOnlID_Exception
Exception class for LAr online Identifiers.
Definition: LArOnlID_Exception.h:16
AtlasDetectorID::m_muon_mdt_impl
IdDictFieldImplementation m_muon_mdt_impl
Definition: AtlasDetectorID.h:456
LArOnlineID_Base::isEMECPS
bool isEMECPS(const HWIdentifier id) const
Definition: LArOnlineID_Base.cxx:1671
AtlasDetectorID::m_lar_fcal_module_impl
IdDictFieldImplementation m_lar_fcal_module_impl
Definition: AtlasDetectorID.h:454
LArOnlineID_Base::get_expanded_id
int get_expanded_id(const HWIdentifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
create expanded HWIdentifier from HWIdentifier (return == 0 for OK)
Definition: LArOnlineID_Base.cxx:790
IdDictFieldImplementation::bits_offset
size_type bits_offset() const
Definition: IdDictFieldImplementation.h:208
AtlasDetectorID::is_tile_dm
bool is_tile_dm(Identifier id) const
Definition: AtlasDetectorID.h:755
AtlasDetectorID::m_LAR_EM_ID
int m_LAR_EM_ID
Definition: AtlasDetectorID.h:420
IdDictDictionary::m_regions
std::vector< IdDictRegion * > m_regions
Definition: IdDictDictionary.h:235
LArOnlineID_Base::channel_Id
HWIdentifier channel_Id(int barrel_ec, int pos_neg, int feedthrough, int slot, int channel) const
create channel identifier from fields
Definition: LArOnlineID_Base.cxx:1565
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:194
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
LArOnlineID_Base::pos_neg
int pos_neg(const HWIdentifier id) const
Return the side of a hardware cell identifier pos_neg = [0,1] positive-side or negative-side Barrel...
Definition: LArOnlineID_Base.cxx:1950
mc.group_name
group_name
Definition: mc.PhPy8EG_A14NNPDF23_NNLOPS_example.py:33
LArOnlineID_Base::initLevelsFromDict
int initLevelsFromDict(const std::string &group_name)
Definition: LArOnlineID_Base.cxx:843
AtlasDetectorID::m_fwd_dict
IdDictDictionary * m_fwd_dict
Definition: AtlasDetectorID.h:448
AtlasDetectorID::is_tile
bool is_tile(Identifier id) const
Definition: AtlasDetectorID.h:702
AtlasDetectorID::group
const std::string & group() const
Group name for this helper.
Definition: AtlasDetectorID.cxx:27
LArOnlineID_Base::m_channelHashMax
size_type m_channelHashMax
Definition: LArOnlineID_Base.h:497
AtlasDetectorID::m_TGC_ID
int m_TGC_ID
Definition: AtlasDetectorID.h:427
LArOnlineID_Base::m_full_calib_laronline_range
MultiRange m_full_calib_laronline_range
Definition: LArOnlineID_Base.h:504
AtlasDetectorID::m_CSC_ID
int m_CSC_ID
Definition: AtlasDetectorID.h:425
LArOnlineID_Base::febContext
IdContext febContext() const
Define context for feb.
Definition: LArOnlineID_Base.cxx:279
AtlasDetectorID::m_lvl1_onl_field
Range::field m_lvl1_onl_field
Definition: AtlasDetectorID.h:439
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:121
AtlasDetectorID::m_quiet
bool m_quiet
If true, suppress DEBUG/INFO messages.
Definition: AtlasDetectorID.h:378
AtlasDetectorID::m_LAR_HEC_ID
int m_LAR_HEC_ID
Definition: AtlasDetectorID.h:421
LArOnlineID_Base::m_lar_index
size_type m_lar_index
Definition: LArOnlineID_Base.h:481
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
IdentifierField::isEnumerated
bool isEnumerated() const
Definition: IdentifierField.h:185
AtlasDetectorID::HelperType::Unimplemented
@ Unimplemented
LArOnlineID_Base::feb_Id
HWIdentifier feb_Id(int barrel_ec, int pos_neg, int feedthrough, int slot) const
Create feb_Id from fields.
Definition: LArOnlineID_Base.cxx:1479
SCT
Definition: SCT_ChipUtils.h:14
AtlasDetectorID::m_muon_rpc_impl
IdDictFieldImplementation m_muon_rpc_impl
Definition: AtlasDetectorID.h:457
AtlasDetDescr::fAtlasMM
@ fAtlasMM
Definition: AtlasDetTechnology.h:54
LArOnlineID_Base::m_feedthrough_index
size_type m_feedthrough_index
Definition: LArOnlineID_Base.h:485
AtlasDetectorID::m_SCT_ID
int m_SCT_ID
Definition: AtlasDetectorID.h:415
LArOnlineID_Base::m_bec_index
size_type m_bec_index
Definition: LArOnlineID_Base.h:483
AtlasDetDescr::fAtlasSTGC
@ fAtlasSTGC
Definition: AtlasDetTechnology.h:53
LArOnlineID_Base::channel_Hash_binary_search
IdentifierHash channel_Hash_binary_search(HWIdentifier channelId) const
Definition: LArOnlineID_Base.h:562
AtlasDetectorID::register_dict_tag
int register_dict_tag(const IdDictMgr &dict_mgr, const std::string &dict_name)
Register the file and tag names for a particular IdDict dictionary.
Definition: AtlasDetectorID.cxx:196
AtlasDetectorID::m_LAR_FCAL_ID
int m_LAR_FCAL_ID
Definition: AtlasDetectorID.h:422
AtlasDetectorID::is_calo
bool is_calo(Identifier id) const
Definition: AtlasDetectorID.h:714
AtlasDetectorID::m_MM_ID
int m_MM_ID
Definition: AtlasDetectorID.h:429
IdDictDictionary::file_name
const std::string & file_name(void) const
Access to file name.
Definition: IdDictDictionary.h:255
AtlasDetectorID::m_DET_INDEX
size_type m_DET_INDEX
Definition: AtlasDetectorID.h:406
AtlasDetectorID::tile_field_value
int tile_field_value() const
Definition: AtlasDetectorID.h:624
LArOnlineID_Base::feb_end
id_iterator feb_end() const
Definition: LArOnlineID_Base.cxx:1911
IdDictDictionary::get_label_value
int get_label_value(const std::string &field, const std::string &label, int &value) const
Definition: IdDictDictionary.cxx:64
LArOnlineID_Base::m_feedthrough_vec
std::vector< HWIdentifier > m_feedthrough_vec
Definition: LArOnlineID_Base.h:499
LArOnlineID_Base::m_lar_impl
IdDictFieldImplementation m_lar_impl
Field Implementation.
Definition: LArOnlineID_Base.h:512
grepfile.sep
sep
Definition: grepfile.py:38
AtlasDetectorID::print_to_string
std::string print_to_string(Identifier id, const IdContext *context=0) const
or provide the printout in string form
Definition: AtlasDetectorID.cxx:418
LArOnlineID_Base::feb_Hash_binary_search
IdentifierHash feb_Hash_binary_search(HWIdentifier channelId) const
Definition: LArOnlineID_Base.h:551
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:239
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
LArOnlineID_Base::isEMECchannel
virtual bool isEMECchannel(const HWIdentifier id) const =0
python.subdetectors.mmg.ids
ids
Definition: mmg.py:8
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
AtlasDetectorID::m_indet_dict
IdDictDictionary * m_indet_dict
Definition: AtlasDetectorID.h:443
AtlasDetectorID::AtlasDetectorID
AtlasDetectorID(const std::string &name="AtlasDetectorID", const std::string &group="")
Definition: AtlasDetectorID.cxx:17
AtlasDetectorID::m_calo_side_impl
IdDictFieldImplementation m_calo_side_impl
Definition: AtlasDetectorID.h:452
AtlasDetectorID::is_indet
bool is_indet(Identifier id) const
Definition: AtlasDetectorID.h:690
AtlasDetectorID::m_dict_names
std::vector< std::string > m_dict_names
List of dictionary names used by this helper.
Definition: AtlasDetectorID.h:382
AtlasDetectorID::m_lar_dm_field
Range::field m_lar_dm_field
Definition: AtlasDetectorID.h:440
LArOnlineID_Base::calib_channel_end
id_iterator calib_channel_end() const
Definition: LArOnlineID_Base.h:718
AtlasDetectorID::setDictVersion
virtual void setDictVersion(const IdDictMgr &dict_mgr, const std::string &name) override
Definition: AtlasDetectorID.cxx:490
Range
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
Definition: DetectorDescription/Identifier/Identifier/Range.h:29
LArOnlineID_Base::calib_channel_begin
id_iterator calib_channel_begin() const
Return an iterator pointing to a collection of calibration channel identifiers.
Definition: LArOnlineID_Base.h:713
AtlasDetectorID::fwd_exp
ExpandedIdentifier fwd_exp(void) const
Definition: AtlasDetectorID.h:527
AtlasDetectorID::m_muon_station_name_impl
IdDictFieldImplementation m_muon_station_name_impl
Definition: AtlasDetectorID.h:455
AtlasDetectorID::m_MDT_ID
int m_MDT_ID
Definition: AtlasDetectorID.h:424
LArOnlineID_Base::isEMBchannel
bool isEMBchannel(const HWIdentifier id) const
Definition: LArOnlineID_Base.cxx:1648
LArOnlineID_Base::m_chan_hash_calcs
std::vector< HashCalc > m_chan_hash_calcs
Definition: LArOnlineID_Base.h:540
IdDictDictionary
Definition: IdDictDictionary.h:30
LArOnlineID_Base::m_bec_impl
IdDictFieldImplementation m_bec_impl
Definition: LArOnlineID_Base.h:514
AtlasDetectorID::m_RPC_ID
int m_RPC_ID
Definition: AtlasDetectorID.h:426
IdentifierField::isBounded
bool isBounded() const
Definition: IdentifierField.h:184
LArOnlineID_Base::channel_Id_checks
void channel_Id_checks(int barrel_ec, int pos_neg, int feedthrough, int slot, int channel) const
Definition: LArOnlineID_Base.cxx:683
MultiRange::match
int match(const ExpandedIdentifier &id) const
Match an identifier.
Definition: MultiRange.cxx:57
AtlasDetDescr::fAtlasRPC
@ fAtlasRPC
Definition: AtlasDetTechnology.h:51
LArOnlineID_Base::feedthrough
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
Definition: LArOnlineID_Base.cxx:1944
AtlasDetectorID::is_lumi
bool is_lumi(Identifier id) const
Definition: AtlasDetectorID.h:813
LArOnlineID_Base::feedthrough_Id_checks
void feedthrough_Id_checks(int barrel_ec, int pos_neg, int feedthrough) const
Definition: LArOnlineID_Base.cxx:771
AtlasDetectorID::reinitialize
bool reinitialize(const IdDictMgr &dict_mgr)
Test whether an idhelper should be reinitialized based on the change of tags.
Definition: AtlasDetectorID.cxx:216
LArOnlineID_Base::m_full_feb_range
MultiRange m_full_feb_range
Definition: LArOnlineID_Base.h:493
AtlasDetectorID::is_lar_dm
bool is_lar_dm(Identifier id) const
LAr/Tile dead material:
Definition: AtlasDetectorID.h:743
AtlasDetectorID::is_muon
bool is_muon(Identifier id) const
Definition: AtlasDetectorID.h:708
python.CaloAddPedShiftConfig.int
int
Definition: CaloAddPedShiftConfig.py:45
IdDictDictionary::m_name
std::string m_name
Definition: IdDictDictionary.h:216
AtlasDetectorID::m_det_impl
IdDictFieldImplementation m_det_impl
Definition: AtlasDetectorID.h:450
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
AtlasDetectorID::show_to_string
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
Definition: AtlasDetectorID.cxx:360
LArOnlineID_Base::m_feb_vec
std::vector< HWIdentifier > m_feb_vec
Definition: LArOnlineID_Base.h:500
AtlasDetectorID::lar_exp
ExpandedIdentifier lar_exp(void) const
Definition: AtlasDetectorID.h:499
AtlasDetectorID::m_file_names
std::vector< std::string > m_file_names
List of dictionary file names used by this helper.
Definition: AtlasDetectorID.h:385
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
python.Constants.INFO
int INFO
Definition: Control/AthenaCommon/python/Constants.py:15
AtlasDetDescr::fAtlasCSC
@ fAtlasCSC
Definition: AtlasDetTechnology.h:50
LArOnlineID_Base::feedthrough_end
id_iterator feedthrough_end() const
Definition: LArOnlineID_Base.cxx:1437
LArOnlineID_Base::calib_module_begin
id_iterator calib_module_begin() const
Return an iterator pointing to a calibFeb identifier 's collection.
Definition: LArOnlineID_Base.h:697
LArOnlineID_Base::m_full_laronline_range
MultiRange m_full_laronline_range
Definition: LArOnlineID_Base.h:491
AthMessaging::m_nm
std::string m_nm
Message source name.
Definition: AthMessaging.h:129
MultiRange::size
size_type size() const
Definition: MultiRange.cxx:70
DeMoScan.first
bool first
Definition: DeMoScan.py:534
LArOnlineID_Base::isEMBPS
bool isEMBPS(const HWIdentifier id) const
Definition: LArOnlineID_Base.cxx:1661
AtlasDetDescr::fAtlasMDT
@ fAtlasMDT
Definition: AtlasDetTechnology.h:49
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
IdentifierField
This is the individual specification for the range of one ExpandedIdentifier IdentifierField.
Definition: IdentifierField.h:83
AtlasDetectorID::m_CALO_ID
int m_CALO_ID
Definition: AtlasDetectorID.h:413
LArOnlineID_Base::NOT_VALID_HASH
@ NOT_VALID_HASH
Definition: LArOnlineID_Base.h:444
AtlasDetectorID::m_ALFA_ID
int m_ALFA_ID
Definition: AtlasDetectorID.h:431
ExpandedIdentifier::clear
void clear()
Erase all fields.
AtlasDetectorID::m_MUON_ID
int m_MUON_ID
Definition: AtlasDetectorID.h:412
AtlasDetectorID::m_lar_dict
IdDictDictionary * m_lar_dict
Definition: AtlasDetectorID.h:444
Identifier::value_type
unsigned long long value_type
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:27
AtlasDetectorID::m_PIXEL_ID
int m_PIXEL_ID
Definition: AtlasDetectorID.h:414
AtlasDetectorID::is_lvl1_online
bool is_lvl1_online(Identifier id) const
Definition: AtlasDetectorID.h:731
LArOnlineID_Base::m_full_calib_module_range
MultiRange m_full_calib_module_range
Definition: LArOnlineID_Base.h:505
LArOnlineID_Base::m_slot_index
size_type m_slot_index
Definition: LArOnlineID_Base.h:486
LArOnlineID_Base::calib_module_end
id_iterator calib_module_end() const
Definition: LArOnlineID_Base.h:702
AtlasDetDescr::fAtlasTGC
@ fAtlasTGC
Definition: AtlasDetTechnology.h:52
CaloCondBlobAlgs_fillNoiseFromASCII.fields
fields
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:105
AthMessaging::initMessaging
void initMessaging() const
Initialize our message level and MessageSvc.
Definition: AthMessaging.cxx:39
IdDictField
Definition: IdDictField.h:15
MultiRange::cardinality
size_type cardinality() const
Computes a possible cardinality from all ranges.
Definition: MultiRange.cxx:82
LArOnlineID_Base::m_channel_in_slot_index
size_type m_channel_in_slot_index
Definition: LArOnlineID_Base.h:487
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
AtlasDetectorID::m_BCM_ID
int m_BCM_ID
Definition: AtlasDetectorID.h:432
Analysis::TT
@ TT
Definition: JpsiFinder.h:34
AthMessaging::m_msg_tls
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
Definition: AthMessaging.h:132
LArOnlineID_Base::channel_name
std::string channel_name(const HWIdentifier id) const
Return a string corresponding to a feedthrough name given an identifier.
Definition: LArOnlineID_Base.cxx:221
LArOnlineID_Base::m_calib_module_vec
std::vector< HWIdentifier > m_calib_module_vec
Definition: LArOnlineID_Base.h:508
AtlasDetectorID::do_checks
virtual bool do_checks(void) const override
Checks are performed by default in debug compilation and NOT in optimized compilation.
Definition: AtlasDetectorID.cxx:467
LArOnlineID_Base::m_laronlineRegion_index
size_type m_laronlineRegion_index
Definition: LArOnlineID_Base.h:480
IdContext
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
Definition: IdContext.h:26
AtlasDetectorID::m_dict_tags
std::vector< std::string > m_dict_tags
List of dictionary versions used by this helper.
Definition: AtlasDetectorID.h:388
LArOnlineID_Base::calib_channel_Id
HWIdentifier calib_channel_Id(int barrel_ec, int pos_neg, int feedthrough, int slot, int channel) const
create calibration channel identifiers from fields
Definition: LArOnlineID_Base.h:624
AtlasDetectorID::m_SUBDET_INDEX
size_type m_SUBDET_INDEX
Definition: AtlasDetectorID.h:407
IdDictRegion::m_implementation
std::vector< IdDictFieldImplementation > m_implementation
Definition: IdDictRegion.h:42
LArOnlineID_Base::m_bec_ft_impl
IdDictFieldImplementation m_bec_ft_impl
Definition: LArOnlineID_Base.h:519
LArOnlineID_Base::channel_begin
id_iterator channel_begin() const
Returns an iterator pointing to a channel identifier collection.
Definition: LArOnlineID_Base.cxx:1922
LArOnlineID_Base::feb_Hash
IdentifierHash feb_Hash(HWIdentifier febId) const
Create feb hash identifiers from feb identifiers.
Definition: LArOnlineID_Base.cxx:1512
AtlasDetectorID::m_FWD_ID
int m_FWD_ID
Definition: AtlasDetectorID.h:430
match
bool match(std::string s1, std::string s2)
match the individual directories of two strings
Definition: hcg.cxx:356
LArOnlineID_Base::feedthrough_Id
HWIdentifier feedthrough_Id(int barrel_ec, int pos_neg, int feedthrough) const
Create a feedthrough identifier from fields.
Definition: LArOnlineID_Base.cxx:1400
LArOnlineID_Base::m_this_is_slar
bool m_this_is_slar
Definition: LArOnlineID_Base.h:445
AtlasDetectorID::m_lvl1_field
Range::field m_lvl1_field
Definition: AtlasDetectorID.h:438
IdDictFieldImplementation::size_type
Identifier::size_type size_type
Definition: IdDictFieldImplementation.h:62
AtlasDetectorID::m_LUCID_ID
int m_LUCID_ID
Definition: AtlasDetectorID.h:433
LArOnlineID_Base::init_hashes
int init_hashes()
Definition: LArOnlineID_Base.cxx:1126
IdDictFieldImplementation::bits
size_type bits() const
Definition: IdDictFieldImplementation.h:202
python.SystemOfUnits.ms
float ms
Definition: SystemOfUnits.py:148
Identifier
Definition: IdentifierFieldParser.cxx:14