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

This class provides an interface to generate or decode an identifier for the upper levels of the detector element hierarchy, i.e. Atlas, the detector systems and detector subsystems. As well general "print out" methods are provide for all detector systems. All id helper classes derive from this class. This class also provides access to the version tags of the id dictionaries used by the helper. More...

#include <AtlasDetectorID.h>

Inherits IdHelper, and AthMessaging.

Inherited by CaloCell_Base_ID, CaloDM_ID, CaloIDHelper, CaloLVL1_ID, HGTD_ID, JGTowerBase_ID, LArElectrodeID, LArHVLineID, LArOnlineID_Base, LUCID_HardwareID, LUCID_ID, MuonIdHelper, PixelID, SCT_ID, SiliconID, TileHWID, TileTBID, TRT_ID, TTOnlineID, ZdcHardwareID, and ZdcID.

Collaboration diagram for AtlasDetectorID:

Public Types

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

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

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

strutors

 AtlasDetectorID (const std::string &name, const std::string &group)
 
virtual ~AtlasDetectorID ()
 
 AtlasDetectorID (const AtlasDetectorID &other)=delete
 
AtlasDetectorIDoperator= (const AtlasDetectorID &other)=delete
 
virtual HelperType helper () const
 Type of helper, defaulted to 'Unimplemented'. More...
 
const std::string & group () const
 Group name for this helper. More...
 

Initialization and version name

virtual int initialize_from_dictionary (const IdDictMgr &dict_mgr) override
 Initialization from the identifier dictionary. More...
 
virtual std::string dictionaryVersion (void) const override
 

setting pointer to the MessageService

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 }
 
typedef Identifier::size_type size_type
 
class AtlasDetectorIDHelper
 
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...
 
std::string m_dict_version
 
bool m_is_initialized_from_dict {}
 
size_type m_DET_INDEX {999}
 
size_type m_SUBDET_INDEX {999}
 
size_type m_MUON_SUBDET_INDEX {999}
 
int m_INDET_ID {2}
 
int m_LAR_ID {4}
 
int m_TILE_ID {5}
 
int m_MUON_ID {7}
 
int m_CALO_ID {10}
 
int m_PIXEL_ID {1}
 
int m_SCT_ID {2}
 
int m_TRT_ID {3}
 
int m_HGTD_ID {4}
 
int m_LUMI_ID {3}
 
int m_LUMI_PLR_ID {1}
 
int m_LAR_EM_ID {1}
 
int m_LAR_HEC_ID {2}
 
int m_LAR_FCAL_ID {3}
 
int m_LAR_FCAL_MODULE_INDEX {999}
 
int m_MDT_ID {0}
 
int m_CSC_ID {1}
 
int m_RPC_ID {2}
 
int m_TGC_ID {3}
 
int m_STGC_ID {4}
 
int m_MM_ID {5}
 
int m_FWD_ID {13}
 
int m_ALFA_ID {1}
 
int m_BCM_ID {3}
 
int m_LUCID_ID {5}
 
int m_ZDC_ID {7}
 
bool m_isHighLuminosityLHC {}
 
Range::field m_lvl1_field
 
Range::field m_lvl1_onl_field
 
Range::field m_lar_dm_field
 
Range::field m_tile_dm_field
 
IdDictDictionarym_atlas_dict {}
 
IdDictDictionarym_indet_dict {}
 
IdDictDictionarym_lar_dict {}
 
IdDictDictionarym_tile_dict {}
 
IdDictDictionarym_muon_dict {}
 
IdDictDictionarym_calo_dict {}
 
IdDictDictionarym_fwd_dict {}
 
AtlasDetectorIDHelperm_helper {}
 
IdDictFieldImplementation m_det_impl
 
IdDictFieldImplementation m_indet_part_impl
 
IdDictFieldImplementation m_calo_side_impl
 
IdDictFieldImplementation m_lar_part_impl
 
IdDictFieldImplementation m_lar_fcal_module_impl
 
IdDictFieldImplementation m_muon_station_name_impl
 
IdDictFieldImplementation m_muon_mdt_impl
 
IdDictFieldImplementation m_muon_rpc_impl
 
IdDictFieldImplementation m_fwd_part_impl
 
std::vector< unsigned int > m_muon_tech_bits
 
virtual void 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...
 
int initLevelsFromDict (const IdDictMgr &dict_mgr)
 

Detailed Description

This class provides an interface to generate or decode an identifier for the upper levels of the detector element hierarchy, i.e. Atlas, the detector systems and detector subsystems. As well general "print out" methods are provide for all detector systems. All id helper classes derive from this class. This class also provides access to the version tags of the id dictionaries used by the helper.

Definition at line 51 of file AtlasDetectorID.h.

Member Typedef Documentation

◆ size_type

Definition at line 385 of file AtlasDetectorID.h.

Member Enumeration Documentation

◆ HelperType

enum class for eventual final derived types of this class

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

Definition at line 55 of file AtlasDetectorID.h.

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

◆ ID

enum AtlasDetectorID::ID
private
Enumerator
ATLAS_ID 
MAX_BIT 
PIXEL_MASK 
ALL_BITS 

Definition at line 389 of file AtlasDetectorID.h.

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

Constructor & Destructor Documentation

◆ AtlasDetectorID() [1/2]

AtlasDetectorID::AtlasDetectorID ( const std::string &  name,
const std::string &  group 
)

Definition at line 17 of file AtlasDetectorID.cxx.

19  : AthMessaging(name),
20  m_group (group)
21 {
22 }

◆ ~AtlasDetectorID()

AtlasDetectorID::~AtlasDetectorID ( )
virtual

Definition at line 23 of file AtlasDetectorID.cxx.

23  {
24  if(m_helper) delete m_helper;
25 }

◆ AtlasDetectorID() [2/2]

AtlasDetectorID::AtlasDetectorID ( const AtlasDetectorID other)
delete

Member Function Documentation

◆ alfa_exp()

ExpandedIdentifier AtlasDetectorID::alfa_exp ( void  ) const
inlineprotected

Forward.

Definition at line 578 of file AtlasDetectorID.h.

579 {
581  return (result << m_ALFA_ID);
582 }

◆ alfa_field_value()

int AtlasDetectorID::alfa_field_value ( ) const
inlineprotected

Definition at line 668 of file AtlasDetectorID.h.

668 {return (m_ALFA_ID);}

◆ bcm_exp()

ExpandedIdentifier AtlasDetectorID::bcm_exp ( void  ) const
inlineprotected

Definition at line 585 of file AtlasDetectorID.h.

586 {
588  return (result << m_BCM_ID);
589 }

◆ bcm_field_value()

int AtlasDetectorID::bcm_field_value ( ) const
inlineprotected

Definition at line 670 of file AtlasDetectorID.h.

670 {return (m_BCM_ID);}

◆ calo()

Identifier AtlasDetectorID::calo ( void  ) const

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
inlineprotected

Definition at line 508 of file AtlasDetectorID.h.

509 {
511  return (result << m_CALO_ID);
512 }

◆ calo_field_value()

int AtlasDetectorID::calo_field_value ( ) const
inlineprotected

Definition at line 618 of file AtlasDetectorID.h.

618 {return (m_CALO_ID);}

◆ csc()

Identifier AtlasDetectorID::csc ( void  ) const

Definition at line 35 of file AtlasDetectorID.cxx.

35  {
36  return Identifier{};
37 }

◆ csc_field_value()

int AtlasDetectorID::csc_field_value ( ) const
inlineprotected

Definition at line 651 of file AtlasDetectorID.h.

651 {return (m_CSC_ID);}

◆ detsystem_context()

IdContext AtlasDetectorID::detsystem_context ( void  ) const

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

Dictionary names.

Definition at line 462 of file AtlasDetectorID.cxx.

462  {
463  return m_dict_names;
464 }

◆ dict_tags()

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

Version tags for subdet dictionaries.

Definition at line 468 of file AtlasDetectorID.cxx.

468  {
469  return m_dict_tags;
470 }

◆ dictionaryVersion()

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

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
overridevirtual

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

471  {
472  return m_do_checks;
473 }

◆ do_neighbours()

bool AtlasDetectorID::do_neighbours ( void  ) const
overridevirtual

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

478  {
479  return m_do_neighbours;
480 }

◆ file_names()

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

File names for subdet dictionaries.

Definition at line 465 of file AtlasDetectorID.cxx.

465  {
466  return m_file_names;
467 }

◆ fix_barrel_ec()

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

◆ forward_field_value()

int AtlasDetectorID::forward_field_value ( ) const
inlineprotected

Definition at line 666 of file AtlasDetectorID.h.

666 {return (m_FWD_ID);}

◆ fwd_exp()

ExpandedIdentifier AtlasDetectorID::fwd_exp ( void  ) const
inlineprotected

Definition at line 515 of file AtlasDetectorID.h.

516 {
518  return (result << m_FWD_ID);
519 }

◆ get_hash()

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

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
overridevirtual

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

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
inlinevirtual

Type of helper, defaulted to 'Unimplemented'.

Reimplemented in SCT_ID, PLR_ID, and PixelID.

Definition at line 90 of file AtlasDetectorID.h.

90  {
92  }

◆ hgtd()

Identifier AtlasDetectorID::hgtd ( void  ) const

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
inlineprotected

Definition at line 543 of file AtlasDetectorID.h.

544 {
546  return (result << m_HGTD_ID);
547 }

◆ hgtd_field_value()

int AtlasDetectorID::hgtd_field_value ( ) const
inlineprotected

Definition at line 630 of file AtlasDetectorID.h.

630 {return (m_HGTD_ID);}

◆ indet()

Identifier AtlasDetectorID::indet ( void  ) const

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
inlineprotected

Detector systems:

Definition at line 480 of file AtlasDetectorID.h.

481 {
483  return (result << m_INDET_ID);
484 }

◆ indet_field_value()

int AtlasDetectorID::indet_field_value ( ) const
inlineprotected

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

Definition at line 606 of file AtlasDetectorID.h.

606 {return (m_INDET_ID);}

◆ initialize_from_dictionary()

int AtlasDetectorID::initialize_from_dictionary ( const IdDictMgr dict_mgr)
overridevirtual

Initialization from the identifier dictionary.

Implements IdHelper.

Reimplemented in SCT_ID, TRT_ID, SiliconID, LArOnline_SuperCellID, PixelID, MuonIdHelper, MdtIdHelper, CaloCell_Base_ID, sTgcIdHelper, CscIdHelper, MmIdHelper, TgcIdHelper, RpcIdHelper, PLR_ID, LArOnlineID_Base, CaloDM_ID, TileHWID, TileTBID, HGTD_ID, LArMiniFCAL_ID, LArElectrodeID, CaloLVL1_ID, LArEM_ID, LArEM_SuperCell_ID, TTOnlineID, LArHEC_ID, ZdcID, LArHVLineID, TileID, LArFCAL_ID, Tile_SuperCell_ID, LArHEC_SuperCell_ID, CaloCell_ID, LArFCAL_SuperCell_ID, GTower_ID, JTower_ID, and LArOnlineID.

Definition at line 250 of file AtlasDetectorID.cxx.

250  {
251 
252  // Register version of ATLAS dictionary
253  if (register_dict_tag(dict_mgr, "ATLAS")){
254  ATH_MSG_ERROR(__func__<<":"<<__LINE__<<" - Failed to register dict tag");
255  return 1;
256  }
257  // Initialize helper, needed for init of AtlasDetectorID
258  if (!m_helper) {
259  m_helper = std::make_unique<AtlasDetectorIDHelper>().release();
260  }
261 
262  if (m_helper->initialize_from_dictionary(dict_mgr)){
263  ATH_MSG_ERROR(__func__<<":"<<__LINE__<<" - Initialization from dictionary failed.");
264  return 1;
265  }
266  // Initialize level indices and id values from dicts
267  if (initLevelsFromDict(dict_mgr)) {
268  ATH_MSG_ERROR(__func__<<":"<<__LINE__<<" - Level initialization from dictionary failed.");
269  return 1;
270  }
272  ATH_MSG_DEBUG("initialize_from_dictionary - OK");
273  return 0;
274 }

◆ initLevelsFromDict()

int AtlasDetectorID::initLevelsFromDict ( const IdDictMgr dict_mgr)
private

Definition at line 513 of file AtlasDetectorID.cxx.

513  {
514 
515  // Set do_checks flag
516  if (dict_mgr.do_checks())
517  m_do_checks = true;
518  // Set do_neighbours flag
519  if (!dict_mgr.do_neighbours())
520  m_do_neighbours = false;
521 
522 
523  IdDictField *field{nullptr};
524 
525  // Find out from the dictionary the detector and subdetector
526  // levels and id values
527  m_DET_INDEX = 999;
528  m_SUBDET_INDEX = 999;
529  m_MUON_SUBDET_INDEX = 999;
530  m_INDET_ID = -1;
531  m_LAR_ID = -1;
532  m_TILE_ID = -1;
533  m_MUON_ID = -1;
534  m_PIXEL_ID = -1;
535  m_SCT_ID = -1;
536  m_TRT_ID = -1;
537  m_HGTD_ID = -1;
538  m_FWD_ID = -1;
539  m_ALFA_ID = -1;
540  m_BCM_ID = -1;
541  m_LUCID_ID = -1;
542  m_ZDC_ID = -1;
543  m_LAR_EM_ID = -1;
544  m_LAR_HEC_ID = -1;
545  m_LAR_FCAL_ID = -1;
547  m_MDT_ID = -1;
548  m_CSC_ID = -1;
549  m_RPC_ID = -1;
550  m_TGC_ID = -1;
551  m_STGC_ID = -1;
552  m_MM_ID = -1;
553 
554  // Save generic dict for top levels
555  IdDictDictionary *top_dict {nullptr};
556 
557  auto assignSystemId = [this, &field](const std::string& systemName,
558  int& idToAssign,
559  bool mandatory = true) ->bool {
560  IdDictLabel *label = field->find_label(systemName);
561  if (label && label->valued()){
562  idToAssign = label->value();
563  ATH_MSG_VERBOSE("Assign system "<<systemName<<" to "<<idToAssign<<".");
564  return true;
565  } else if (label) {
566  ATH_MSG_ERROR("initLevelsFromDict - label "<<systemName<<" does NOT have a value ");
567  return false;
568  }
569  if (mandatory) {
570  ATH_MSG_ERROR("initLevelsFromDict - unable to find '"<<systemName<<"' label");
571  return false;
572  }
573  ATH_MSG_DEBUG("initLevelsFromDict - unable to find '"<<systemName<<"' label");
574  return true;
575  };
576  // Get det ids
577 
578  // Initialize ids for InDet subdet
579  m_indet_dict = dict_mgr.find_dictionary("InnerDetector");
580  if (!m_indet_dict) {
581  ATH_MSG_WARNING("initLevelsFromDict - cannot access InnerDetector dictionary");
582  } else {
583  // Found InDet dict
584  top_dict = m_indet_dict; // save as top_dict
585  // Check if this is High Luminosity LHC layout
586  // should just use std::string::contains once that is available... (C++23)
587  std::string versionString = m_indet_dict->version();
588  m_isHighLuminosityLHC = (versionString.find("ITk") != std::string::npos || versionString.find("P2-RUN4") != std::string::npos);
589 
590  // Get InDet subdets
591  field = m_indet_dict->find_field("part");
592  if (!field) {
593  ATH_MSG_ERROR("initLevelsFromDict - unable to find 'part' field for InnerDetector dictionary");
594  return 1;
595  }
596 
597  if (!assignSystemId("Pixel", m_PIXEL_ID)) {
598  return 1;
599  }
600  if (!assignSystemId("SCT", m_SCT_ID)) {
601  return 1;
602  }
603  if (!assignSystemId("TRT", m_TRT_ID, !m_isHighLuminosityLHC)) {
604  return 1;
605  }
606  if (m_isHighLuminosityLHC) {
607  if (!assignSystemId("LuminosityDetectors", m_LUMI_ID, versionString.find("PLR") != std::string::npos ||
608  versionString.find("P2-RUN4") != std::string::npos)) {
609  return 1;
610  }
611  if (!assignSystemId("HGTD", m_HGTD_ID)){
612  return 1;
613  }
614  }
615  }
616  // Initialize ids for Forward dets
617  m_fwd_dict = dict_mgr.find_dictionary("ForwardDetectors");
618  if (!m_fwd_dict) {
619  ATH_MSG_WARNING("initLevelsFromDict - cannot access ForwardDetectors dictionary");
620  } else {
621 
622  // Found ForwardDetectors dict
623 
624  if (!top_dict){
625  top_dict = m_fwd_dict; // save as top_dict
626  }
627  // Get Forward subdets
628 
629  field = m_fwd_dict->find_field("part");
630  if (!field) {
631  ATH_MSG_ERROR("initLevelsFromDict - unable to find 'part' field for ForwardDetectors dictionary");
632  return 1;
633  }
634  if (!assignSystemId("ALFA", m_ALFA_ID)) {
635  return 1;
636  }
637  if (!assignSystemId("BCM", m_BCM_ID)) {
638  return 1;
639  }
640  if (!assignSystemId("LUCID", m_LUCID_ID)) {
641  return 1;
642  }
643  if (!assignSystemId("ZDC", m_ZDC_ID)) {
644  return 1;
645  }
646  }
647 
648  // Initialize ids for LAr detectors
649  m_lar_dict = dict_mgr.find_dictionary("LArCalorimeter");
650  if (!m_lar_dict) {
651  ATH_MSG_WARNING("initLevelsFromDict - cannot access LArCalorimeter dictionary");
652  } else {
653  // Found LAr dict
654 
655  if (!top_dict) {
656  top_dict = m_lar_dict; // save as top_dict
657  }
658  field = m_lar_dict->find_field("part");
659  if (!field) {
660  ATH_MSG_ERROR("initLevelsFromDict - unable to find 'part' field for LArCalorimeter dictionary");
661  return 1;
662  }
663  if (!assignSystemId("LArEM", m_LAR_EM_ID)) {
664  return 1;
665  }
666  if (!assignSystemId("LArHEC", m_LAR_HEC_ID)) {
667  return 1;
668  }
669  if (!assignSystemId("LArFCAL", m_LAR_FCAL_ID)) {
670  return 1;
671  }
672  field = m_lar_dict->find_field("module");
673  if (field) {
674  m_LAR_FCAL_MODULE_INDEX = field->index();
675  } else {
676  ATH_MSG_DEBUG("initLevelsFromDict - unable to find 'module' field for miniFCAL");
677  }
678  }
679 
680  // Initialize ids for Tile calo
681  m_tile_dict = dict_mgr.find_dictionary("TileCalorimeter");
682  if (!m_tile_dict) {
683  ATH_MSG_WARNING("initLevelsFromDict - cannot access TileCalorimeter dictionary");
684  } else {
685  // File Tile
686  if (!top_dict)
687  top_dict = m_tile_dict; // save as top_dict
688  }
689 
690  // Initialize ids for Muon detectors
691  m_muon_dict = dict_mgr.find_dictionary("MuonSpectrometer");
692  if (!m_muon_dict) {
693  ATH_MSG_WARNING("initLevelsFromDict - cannot access MuonSpectrometer dictionary");
694  } else {
695  // Found muon dict
696  if (!top_dict){
697  top_dict = m_muon_dict; // save as top_dict
698  }
699  /*
700  During initialisation from the dictionary we parse the
701  information which muon stationName belongs to which muon
702  subsystem. This information is not entirely encoded in the
703  identifiers however it is frequently tested during
704  reconstruction. In order to speed up these checks this info
705  is now stored locally into m_muon_tech_bits.
706  P.Fleischmann 04.04.2013
707  */
708  if (m_muon_tech_bits.empty()) {
709  // we only need to load this once
710  field = m_muon_dict->find_field("stationName");
711  if (!field) {
712  ATH_MSG_ERROR("initLevelsFromDict - unable to find 'stationName' field for MuonSpectrometer dictionary");
713  return 1;
714  }
715 
716  size_type nStationNames = field->get_label_number();
717  std::string stationNameString{};
718 
719  // first check for the maximum value assigned to any stationName
720  int stationNameIndex{};
721  int maxStationNameIndex{-1};
722  for (size_type i = 0; i < nStationNames; ++i) {
723  // in case no individual values are given,
724  // the order inside the dictionary is used
725  const IdDictLabel& label = field->label(i);
726  stationNameIndex = label.valued() ? label.value() : i;
727 
728  maxStationNameIndex = std::max(maxStationNameIndex, stationNameIndex);
729  }
730 
731  // the vector may contain gaps (value=0) in case of jumps
732  // in the values
733  m_muon_tech_bits.resize(maxStationNameIndex + 1);
734 
735  // loop over all stationNames and search for associations
736  // to technology
737  for (size_type i = 0; i < nStationNames; ++i) {
738  const IdDictLabel& label = field->label(i);
739  stationNameString = label.name();
740  // in case no individual values are given,
741  // the order inside the dictionary is used
742  stationNameIndex = label.valued() ? label.value() : i;
743  // next loop over all regions to look for
744  // stationName <-> technology associations
745  bool found{false}, stationNameFound{false}, technologyFound{false};
746  std::string techLabel{};
747  size_t nregions = m_muon_dict->n_regions();
748  for (size_type j = 0; j < nregions; ++j) {
749  const IdDictRegion& region = m_muon_dict->region(j);
750  // loop over all entries of a region to look for
751  // stationName and technology information
752  stationNameFound = technologyFound = false;
753  size_t nentries = region.n_entries();
754  for (size_type k = 0; k < nentries; ++k) {
755  const IdDictRange *range =
756  dynamic_cast<const IdDictRange *>(&region.entry(k));
757  if (!range) {
758  continue;
759  }
760 
761  if (range->field_name() == "stationName") {
762 
763  if (range->label() == stationNameString) {
764  // we found a region containing the current stationName
765  stationNameFound = true;
766  continue;
767  } else {
768  // we found a region containing a different stationName,
769  // let's skip
770  break;
771  }
772  } else if (range->field_name() == "technology") {
773  technologyFound = true;
774  techLabel = range->label();
775  }
776 
777  if (!stationNameFound || !technologyFound) {
778  continue;
779  }
780 
781  // we found a stationName <-> technology association
782  if (techLabel == "MDT") {
783  m_muon_tech_bits[stationNameIndex] = AtlasDetDescr::fAtlasMDT;
784  } else if (techLabel == "RPC") {
785  m_muon_tech_bits[stationNameIndex] = AtlasDetDescr::fAtlasRPC;
786  } else if (techLabel == "CSC") {
787  m_muon_tech_bits[stationNameIndex] = AtlasDetDescr::fAtlasCSC;
788  } else if (techLabel == "TGC"){
789  m_muon_tech_bits[stationNameIndex] = AtlasDetDescr::fAtlasTGC;
790  } else if (techLabel == "MM") {
791  m_muon_tech_bits[stationNameIndex] = AtlasDetDescr::fAtlasMM;
792  } else if (techLabel == "STGC") {
793  m_muon_tech_bits[stationNameIndex] = AtlasDetDescr::fAtlasSTGC;
794  } else {
795  m_muon_tech_bits[stationNameIndex] = AtlasDetDescr::fUndefined;
796  }
797  found = true;
798  break;
799  } // end of loop overregion entries
800 
801  if (found) {
802  // no need to continue to look for this stationName,
803  // since each stationName must be uniquely associated
804  // to a technology, except for MDT/PRC
805  break;
806  }
807 
808  } // end of loop over regions
809 
810  } // end of loop over stationNames
811  }
812  // end of filling stationName <-> technology associations
813 
814  field = m_muon_dict->find_field("technology");
815  if (field) {
816  m_MUON_SUBDET_INDEX = field->index();
817  }
818  else {
819  ATH_MSG_ERROR("initLevelsFromDict - unable to find 'technology' field for MuonSpectrometer dictionary");
820  return 1;
821  }
822 
823  if (!assignSystemId("MDT", m_MDT_ID)) {
824  return 1;
825  }
826  if (!assignSystemId("RPC", m_RPC_ID)) {
827  return 1;
828  }
829  if (!assignSystemId("TGC", m_TGC_ID)) {
830  return 1;
831  }
832  if (!assignSystemId("STGC", m_STGC_ID, false)) {
833  return 1;
834  }
835  if (!assignSystemId("MM", m_MM_ID, false)) {
836  return 1;
837  }
838  if (!assignSystemId("CSC", m_CSC_ID, false)) {
839  return 1;
840  }
841  }
842 
843  // Initialize id for Calo and fields for lvl1 and dead material
844  m_calo_dict = dict_mgr.find_dictionary("Calorimeter");
845  if (!m_calo_dict) {
846  ATH_MSG_WARNING("initLevelsFromDict - Warning cannot access Calorimeter dictionary");
847  } else {
848  // Found calo dict
849  if (!top_dict) {
850  top_dict = m_calo_dict; // save as top_dict
851  }
852  // Set lvl1 field for is_lvl1_trig_towers
853  int value{0};
855  // negative half
856  if (m_calo_dict->get_label_value("DetZside", "negative_lvl1_side", value)) {
857  ATH_MSG_ERROR("initLevelsFromDict - Could not get value for label 'negative_lvl1_side' of field 'DetZside' in dictionary " << m_calo_dict->name());
858  return 1;
859  }
861  // positive half
862  if (m_calo_dict->get_label_value("DetZside", "positive_lvl1_side", value)) {
863  ATH_MSG_ERROR("initLevelsFromDict - Could not get value for label 'positive_lvl1_side' of field 'DetZside' in dictionary " << m_calo_dict->name());
864  return 1;
865  }
867  // Set lar dead material field for is_lar_dm
869  // negative half
870  if (m_calo_dict->get_label_value("DetZside", "negative_DMLar_side", value)) {
871  ATH_MSG_ERROR("initLevelsFromDict - Could not get value for label 'negative_DMLar_side' of field 'DetZside' in dictionary " << m_calo_dict->name());
872  return 1;
873  }
875  // positive half
876  if (m_calo_dict->get_label_value("DetZside", "positive_DMLar_side", value)) {
877  ATH_MSG_ERROR("initLevelsFromDict - Could not get value for label 'positive_DMLar_side' of field 'DetZside' in dictionary " << m_calo_dict->name());
878  return 1;
879  }
881 
882  // Set tile dead material field for is_tile_dm
884  // negative half
885  if (m_calo_dict->get_label_value("DetZside", "negative_DMTile_side", value)) {
886  ATH_MSG_ERROR("initLevelsFromDict - Could not get value for label 'negative_DMTile_side' of field 'DetZside' in dictionary " << m_calo_dict->name());
887  return 1;
888  }
890  // positive half
891  if (m_calo_dict->get_label_value("DetZside", "positive_DMTile_side", value)) {
892  ATH_MSG_ERROR("initLevelsFromDict - Could not get value for label 'positive_DMTile_side' of field 'DetZside' in dictionary " << m_calo_dict->name());
893  return 1;
894  }
896 
897  // Set lvl1 field for is_lvl1_online
899  if (m_calo_dict->get_label_value("DetZside", "no_side", value)) {
900  ATH_MSG_DEBUG("initLevelsFromDict - Could not get value for label 'no_side' of field 'DetZside' in dictionary " << m_calo_dict->name());
901  } else {
903  }
904  }
905 
906  // set det/subdet indices
907  if (top_dict){
908 
909  field = top_dict->find_field("subdet");
910  if (field) {
911  m_DET_INDEX = field->index();
912  } else {
913  ATH_MSG_ERROR("initLevelsFromDict - - unable to find 'subdet' field from dict "
914  << top_dict->name());
915  return 1;
916  }
917 
918  if (!assignSystemId("InnerDetector", m_INDET_ID)) {
919  return 1;
920  }
921  if (!assignSystemId("ForwardDetectors", m_FWD_ID)) {
922  return 1;
923  }
924  if (!assignSystemId("LArCalorimeter", m_LAR_ID)) {
925  return 1;
926  }
927  if (!assignSystemId("TileCalorimeter", m_TILE_ID)) {
928  return 1;
929  }
930 
931  if (!assignSystemId("MuonSpectrometer", m_MUON_ID)) {
932  return 1;
933  }
934  if (!assignSystemId("Calorimeter", m_CALO_ID)) {
935  return 1;
936  }
937  // Get name of next level
938  std::string name{};
939  if (top_dict->name() == "InnerDetector") {
940  name = "part";
941  } else if (top_dict->name() == "Calorimeter") {
942  name = "DetZside";
943  } else if (top_dict->name() == "LArCalorimeter") {
944  name = "part";
945  } else if (top_dict->name() == "MuonSpectrometer") {
946  name = "stationName";
947  } else if (top_dict->name() == "TileCalorimeter") {
948  name = "section";
949  } else if (top_dict->name() == "ForwardDetectors") {
950  name = "part";
951  }
952  // While we're here, save the index to the sub-detector level
953  // ("part" for InDet)
954  field = top_dict->find_field(name);
955  if (field) {
956  m_SUBDET_INDEX = field->index();
957  }
958  else {
959  ATH_MSG_ERROR("initLevelsFromDict - unable to find field " << name << " from dict "<< top_dict->name());
960  return 1;
961  }
962  } else {
963  ATH_MSG_ERROR("initLevelsFromDict - no top dictionary defined");
964  return 1;
965  }
966 
967  // Set the field implementations
968 
969  size_type region_index = m_helper->pixel_region_index();
970  if (m_indet_dict && AtlasDetectorIDHelper::UNDEFINED != region_index) {
971 
972  const IdDictRegion& region = m_indet_dict->region(region_index);
973 
974  // Detector
976 
977  // Add on extra values to assure that one has a value per
978  // bit. This is needed to avoid an overflow decoding error
979  // when a pixel channel id is decoded
980  if (not m_det_impl.ored_field().isEnumerated()) {
981  ATH_MSG_ERROR("initLevelsFromDict - ERROR det implementation is not enumerated: "
983  return 1;
984  }
985 
986  size_type bits = m_det_impl.bits();
987  size_type nvalues = static_cast<size_type>(1) << bits;
989  size_type max = det.get_maximum();
990  for (size_type i = det.get_values().size(); i < nvalues; ++i) {
991  ++max;
992  det.add_value(max);
993  }
994  // Replace ored field with modified one
996  ATH_MSG_VERBOSE("set extra bits "<< m_det_impl.show_to_string());
997 
998  // InDet part
1000  }
1001 
1002  // Calo side: LVL1, LAr & Tile DeadMat
1003  region_index = m_helper->lvl1_region_index();
1004  if (m_calo_dict && AtlasDetectorIDHelper::UNDEFINED != region_index) {
1005  const IdDictRegion& region = m_calo_dict->region(region_index);
1007  }
1008 
1009  // LAr part
1010  region_index = m_helper->lar_em_region_index();
1011  if (m_lar_dict && AtlasDetectorIDHelper::UNDEFINED != region_index) {
1012  const IdDictRegion& region = m_lar_dict->region(region_index);
1014  }
1015 
1016  // LAr part
1017  region_index = m_helper->lar_fcal_region_index();
1018  if (m_lar_dict && AtlasDetectorIDHelper::UNDEFINED != region_index &&
1019  m_LAR_FCAL_MODULE_INDEX != 999) {
1020  const IdDictRegion& region = m_lar_dict->region(region_index);
1022  }
1023 
1024  // Muon station name
1025  region_index = m_helper->mdt_region_index();
1026  if (m_muon_dict && AtlasDetectorIDHelper::UNDEFINED != region_index) {
1027  const IdDictRegion& region = m_muon_dict->region(region_index);
1029  // Muon MDT
1031  // Muon RPC
1032  region_index = m_helper->rpc_region_index();
1033  if (AtlasDetectorIDHelper::UNDEFINED != region_index) {
1034  const IdDictRegion& rpc_region = m_muon_dict->region(region_index);
1036  }
1037  }
1038  return 0;
1039 }

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

Definition at line 936 of file AtlasDetectorID.h.

937 {
938  bool result = false;
939  if(is_forward(id)) {
940  result = (abs(m_lar_part_impl.unpack(id)) == m_ALFA_ID);
941  }
942  return result;
943 }

◆ is_bcm()

bool AtlasDetectorID::is_bcm ( Identifier  id) const
inline

Definition at line 946 of file AtlasDetectorID.h.

947 {
948  bool result = false;
949  if(is_forward(id)) {
950  result = (abs(m_lar_part_impl.unpack(id)) == m_BCM_ID);
951  }
952  return result;
953 }

◆ is_calo() [1/2]

bool AtlasDetectorID::is_calo ( const ExpandedIdentifier id) const

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
inline

Definition at line 702 of file AtlasDetectorID.h.

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

◆ is_csc() [1/2]

bool AtlasDetectorID::is_csc ( const ExpandedIdentifier id) const

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
inline

Definition at line 886 of file AtlasDetectorID.h.

887 {
888  bool result = false;
889  if (!is_muon(id)) return false;
890  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
891  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
892  result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasCSC));
893  return result;
894 }

◆ is_forward()

bool AtlasDetectorID::is_forward ( Identifier  id) const
inline

Definition at line 930 of file AtlasDetectorID.h.

931 {
932  return (m_det_impl.unpack(id) == m_FWD_ID);
933 }

◆ is_hgtd() [1/2]

bool AtlasDetectorID::is_hgtd ( const ExpandedIdentifier id) const

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
inline

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_indet() [1/2]

bool AtlasDetectorID::is_indet ( const ExpandedIdentifier id) const

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
inline

Definition at line 678 of file AtlasDetectorID.h.

679 {
680  return (m_det_impl.unpack(id) == m_INDET_ID);
681 }

◆ is_lar() [1/2]

bool AtlasDetectorID::is_lar ( const ExpandedIdentifier id) const

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
inline

Definition at line 684 of file AtlasDetectorID.h.

685 {
686  return (m_det_impl.unpack(id) == m_LAR_ID);
687 }

◆ is_lar_dm()

bool AtlasDetectorID::is_lar_dm ( Identifier  id) const
inline

LAr/Tile dead material:

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_lar_dm_field.match(temp));
737  }
738  return result;
739 }

◆ is_lar_em() [1/2]

bool AtlasDetectorID::is_lar_em ( const ExpandedIdentifier id) const

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
inline

Definition at line 813 of file AtlasDetectorID.h.

814 {
815  bool result = false;
816  if(is_lar(id)) {
817  result = (abs(m_lar_part_impl.unpack(id)) == m_LAR_EM_ID);
818  }
819  return result;
820 }

◆ is_lar_fcal() [1/2]

bool AtlasDetectorID::is_lar_fcal ( const ExpandedIdentifier id) const

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
inline

Definition at line 834 of file AtlasDetectorID.h.

835 {
836  bool result = false;
837  if(is_lar(id)) {
838  result = (abs(m_lar_part_impl.unpack(id)) == m_LAR_FCAL_ID);
839  }
840  return result;
841 }

◆ is_lar_hec() [1/2]

bool AtlasDetectorID::is_lar_hec ( const ExpandedIdentifier id) const

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
inline

Definition at line 824 of file AtlasDetectorID.h.

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

◆ is_lar_minifcal() [1/2]

bool AtlasDetectorID::is_lar_minifcal ( const ExpandedIdentifier id) const

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
inline

Definition at line 844 of file AtlasDetectorID.h.

845 {
846  bool result = false;
847  if(is_lar_fcal(id)) {
848  result = (m_lar_fcal_module_impl.unpack(id) == 0);
849  }
850  return result;
851 }

◆ is_lucid()

bool AtlasDetectorID::is_lucid ( Identifier  id) const
inline

Definition at line 956 of file AtlasDetectorID.h.

957 {
958  bool result = false;
959  if(is_forward(id)) {
960  result = (abs(m_lar_part_impl.unpack(id)) == m_LUCID_ID);
961  }
962  return result;
963 }

◆ is_lumi() [1/2]

bool AtlasDetectorID::is_lumi ( const ExpandedIdentifier id) const

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
inline

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

bool AtlasDetectorID::is_lvl1_online ( Identifier  id) const
inline

Definition at line 719 of file AtlasDetectorID.h.

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

◆ is_lvl1_trig_towers()

bool AtlasDetectorID::is_lvl1_trig_towers ( Identifier  id) const
inline

Definition at line 708 of file AtlasDetectorID.h.

709 {
710  bool result = false;
711  if (is_calo(id)) {
712  int temp = m_calo_side_impl.unpack(id);
713  result = (m_lvl1_field.match(temp));
714  }
715  return result;
716 }

◆ is_mdt() [1/2]

bool AtlasDetectorID::is_mdt ( const ExpandedIdentifier id) const

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
inline

Definition at line 854 of file AtlasDetectorID.h.

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

◆ is_mm() [1/2]

bool AtlasDetectorID::is_mm ( const ExpandedIdentifier id) const

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
inline

Definition at line 908 of file AtlasDetectorID.h.

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

◆ is_muon() [1/2]

bool AtlasDetectorID::is_muon ( const ExpandedIdentifier id) const

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
inline

Definition at line 696 of file AtlasDetectorID.h.

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

◆ is_pixel() [1/2]

bool AtlasDetectorID::is_pixel ( const ExpandedIdentifier id) const

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
inline

Definition at line 755 of file AtlasDetectorID.h.

756 {
757  bool result = false;
758  if(is_indet(id)) {
760  }
761  return result;
762 }

◆ is_plr() [1/2]

bool AtlasDetectorID::is_plr ( const ExpandedIdentifier id) const

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

◆ is_rpc() [1/2]

bool AtlasDetectorID::is_rpc ( const ExpandedIdentifier id) const

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
inline

Definition at line 870 of file AtlasDetectorID.h.

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

◆ is_sct() [1/2]

bool AtlasDetectorID::is_sct ( const ExpandedIdentifier id) const

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
inline

Definition at line 765 of file AtlasDetectorID.h.

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

◆ is_stgc() [1/2]

bool AtlasDetectorID::is_stgc ( const ExpandedIdentifier id) const

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
inline

Definition at line 919 of file AtlasDetectorID.h.

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

◆ is_tgc() [1/2]

bool AtlasDetectorID::is_tgc ( const ExpandedIdentifier id) const

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
inline

Definition at line 897 of file AtlasDetectorID.h.

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

◆ is_tile() [1/2]

bool AtlasDetectorID::is_tile ( const ExpandedIdentifier id) const

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
inline

Definition at line 690 of file AtlasDetectorID.h.

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

◆ is_tile_dm()

bool AtlasDetectorID::is_tile_dm ( Identifier  id) const
inline

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_tile_dm_field.match(temp));
749  }
750  return result;
751 }

◆ is_trt() [1/2]

bool AtlasDetectorID::is_trt ( const ExpandedIdentifier id) const

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
inline

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

bool AtlasDetectorID::is_zdc ( Identifier  id) const
inline

Definition at line 966 of file AtlasDetectorID.h.

967 {
968  bool result = false;
969  if(is_forward(id)) {
970  result = (abs(m_lar_part_impl.unpack(id)) == m_ZDC_ID);
971  }
972  return result;
973 }

◆ lar()

Identifier AtlasDetectorID::lar ( void  ) const

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

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

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
inlineprotected

LAr.

Definition at line 557 of file AtlasDetectorID.h.

558 {
560  return (result << m_LAR_EM_ID);
561 }

◆ lar_em_field_value()

int AtlasDetectorID::lar_em_field_value ( ) const
inlineprotected

Definition at line 639 of file AtlasDetectorID.h.

639 {return (m_LAR_EM_ID);}

◆ lar_exp()

ExpandedIdentifier AtlasDetectorID::lar_exp ( void  ) const
inlineprotected

Definition at line 487 of file AtlasDetectorID.h.

488 {
490  return (result << m_LAR_ID);
491 }

◆ lar_fcal()

Identifier AtlasDetectorID::lar_fcal ( void  ) const

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
inlineprotected

Definition at line 571 of file AtlasDetectorID.h.

572 {
574  return (result << m_LAR_FCAL_ID);
575 }

◆ lar_fcal_field_value()

int AtlasDetectorID::lar_fcal_field_value ( ) const
inlineprotected

Definition at line 645 of file AtlasDetectorID.h.

645 {return (m_LAR_FCAL_ID);}

◆ lar_field_value()

int AtlasDetectorID::lar_field_value ( ) const
inlineprotected

Definition at line 609 of file AtlasDetectorID.h.

609 {return (m_LAR_ID);}

◆ lar_hec()

Identifier AtlasDetectorID::lar_hec ( void  ) const

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
inlineprotected

Definition at line 564 of file AtlasDetectorID.h.

565 {
567  return (result << m_LAR_HEC_ID);
568 }

◆ lar_hec_field_value()

int AtlasDetectorID::lar_hec_field_value ( ) const
inlineprotected

Definition at line 642 of file AtlasDetectorID.h.

642 {return (m_LAR_HEC_ID);}

◆ lar_lvl1()

Identifier AtlasDetectorID::lar_lvl1 ( void  ) const

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
inlineprotected

Definition at line 592 of file AtlasDetectorID.h.

593 {
595  return (result << m_LUCID_ID);
596 }

◆ lucid_field_value()

int AtlasDetectorID::lucid_field_value ( ) const
inlineprotected

Definition at line 672 of file AtlasDetectorID.h.

672 {return (m_LUCID_ID);}

◆ lumi()

Identifier AtlasDetectorID::lumi ( void  ) const

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
inlineprotected

Definition at line 550 of file AtlasDetectorID.h.

551 {
553  return (result << m_LUMI_ID);
554 }

◆ lumi_field_value()

int AtlasDetectorID::lumi_field_value ( ) const
inlineprotected

Definition at line 633 of file AtlasDetectorID.h.

633 {return (m_LUMI_ID);}

◆ mdt()

Identifier AtlasDetectorID::mdt ( void  ) const

Definition at line 32 of file AtlasDetectorID.cxx.

32  {
33  return Identifier{};
34 }

◆ mdt_field_value()

int AtlasDetectorID::mdt_field_value ( ) const
inlineprotected

Definition at line 648 of file AtlasDetectorID.h.

648 {return (m_MDT_ID);}

◆ mm()

Identifier AtlasDetectorID::mm ( void  ) const

Definition at line 47 of file AtlasDetectorID.cxx.

47  {
48  return Identifier{};
49 }

◆ mm_field_value()

int AtlasDetectorID::mm_field_value ( ) const
inlineprotected

Definition at line 663 of file AtlasDetectorID.h.

663 {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

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
inlineprotected

Definition at line 501 of file AtlasDetectorID.h.

502 {
504  return (result << m_MUON_ID);
505 }

◆ muon_field_value()

int AtlasDetectorID::muon_field_value ( ) const
inlineprotected

Definition at line 615 of file AtlasDetectorID.h.

615 {return (m_MUON_ID);}

◆ operator=()

AtlasDetectorID& AtlasDetectorID::operator= ( const AtlasDetectorID other)
delete

◆ pixel()

Identifier AtlasDetectorID::pixel ( void  ) const

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
inlineprotected

Inner Detector:

Definition at line 522 of file AtlasDetectorID.h.

523 {
525  return (result << m_PIXEL_ID);
526 }

◆ pixel_field_value()

int AtlasDetectorID::pixel_field_value ( ) const
inlineprotected

Definition at line 621 of file AtlasDetectorID.h.

621 {return (m_PIXEL_ID);}

◆ plr_field_value()

int AtlasDetectorID::plr_field_value ( ) const
inlineprotected

Definition at line 636 of file AtlasDetectorID.h.

636 {return (m_LUMI_PLR_ID);}

◆ print()

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

Expanded print out of any identifier.

Definition at line 418 of file AtlasDetectorID.cxx.

418  {
419  ATH_MSG_INFO(print_to_string(id, context));
420 }

◆ print_to_string()

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

or provide the printout in string form

Definition at line 422 of file AtlasDetectorID.cxx.

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

◆ register_dict_tag()

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

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)
protected

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

Definition at line 38 of file AtlasDetectorID.cxx.

38  {
39  return Identifier{};
40 }

◆ rpc_field_value()

int AtlasDetectorID::rpc_field_value ( ) const
inlineprotected

Definition at line 654 of file AtlasDetectorID.h.

654 {return (m_RPC_ID);}

◆ sct()

Identifier AtlasDetectorID::sct ( void  ) const

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
inlineprotected

Definition at line 529 of file AtlasDetectorID.h.

530 {
532  return (result << m_SCT_ID);
533 }

◆ sct_field_value()

int AtlasDetectorID::sct_field_value ( ) const
inlineprotected

Definition at line 624 of file AtlasDetectorID.h.

624 {return (m_SCT_ID);}

◆ set_do_checks()

void AtlasDetectorID::set_do_checks ( bool  do_checks)
overridevirtual

Implements IdHelper.

Definition at line 474 of file AtlasDetectorID.cxx.

474  {
476 }

◆ set_do_neighbours()

void AtlasDetectorID::set_do_neighbours ( bool  do_neighbours)
overridevirtual

Implements IdHelper.

Definition at line 482 of file AtlasDetectorID.cxx.

482  {
484 }

◆ set_quiet()

void AtlasDetectorID::set_quiet ( bool  quiet)

Set flag for suppressing informational output.

Definition at line 490 of file AtlasDetectorID.cxx.

490  {
491  m_quiet = quiet;
492 }

◆ setDictVersion()

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

Implements IdHelper.

Definition at line 494 of file AtlasDetectorID.cxx.

494  {
495  const IdDictDictionary *dict = dict_mgr.find_dictionary(name);
496  m_dict_version = dict->version();
497 }

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

Implements IdHelper.

Definition at line 486 of file AtlasDetectorID.cxx.

486  {
487  m_msgSvc = msgSvc;
488 }

◆ show()

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

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

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

◆ stgc()

Identifier AtlasDetectorID::stgc ( void  ) const

Definition at line 44 of file AtlasDetectorID.cxx.

44  {
45  return Identifier{};
46 }

◆ stgc_field_value()

int AtlasDetectorID::stgc_field_value ( ) const
inlineprotected

Definition at line 660 of file AtlasDetectorID.h.

660 {return (m_STGC_ID);}

◆ subdet_context()

IdContext AtlasDetectorID::subdet_context ( void  ) const

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

Definition at line 41 of file AtlasDetectorID.cxx.

41  {
42  return Identifier{};
43 }

◆ tgc_field_value()

int AtlasDetectorID::tgc_field_value ( ) const
inlineprotected

Definition at line 657 of file AtlasDetectorID.h.

657 {return (m_TGC_ID);}

◆ tile()

Identifier AtlasDetectorID::tile ( void  ) const

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

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
inlineprotected

Definition at line 494 of file AtlasDetectorID.h.

495 {
497  return (result << m_TILE_ID);
498 }

◆ tile_field_value()

int AtlasDetectorID::tile_field_value ( ) const
inlineprotected

Definition at line 612 of file AtlasDetectorID.h.

612 {return (m_TILE_ID);}

◆ to_range()

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

Definition at line 499 of file AtlasDetectorID.cxx.

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

◆ trt()

Identifier AtlasDetectorID::trt ( void  ) const

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
inlineprotected

Definition at line 536 of file AtlasDetectorID.h.

537 {
539  return (result << m_TRT_ID);
540 }

◆ trt_field_value()

int AtlasDetectorID::trt_field_value ( ) const
inlineprotected

Definition at line 627 of file AtlasDetectorID.h.

627 {return (m_TRT_ID);}

◆ zdc_exp()

ExpandedIdentifier AtlasDetectorID::zdc_exp ( void  ) const
inlineprotected

Definition at line 599 of file AtlasDetectorID.h.

600 {
602  return (result << m_ZDC_ID);
603 }

◆ zdc_field_value()

int AtlasDetectorID::zdc_field_value ( ) const
inlineprotected

Definition at line 674 of file AtlasDetectorID.h.

674 {return (m_ZDC_ID);}

Friends And Related Function Documentation

◆ AtlasDetectorIDHelper

friend class AtlasDetectorIDHelper
friend

Definition at line 287 of file AtlasDetectorID.h.

Member Data Documentation

◆ ATLAS_THREAD_SAFE

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

Messaging initialized (initMessaging)

Definition at line 141 of file AthMessaging.h.

◆ m_ALFA_ID

int AtlasDetectorID::m_ALFA_ID {1}
private

Definition at line 425 of file AtlasDetectorID.h.

◆ m_atlas_dict

IdDictDictionary* AtlasDetectorID::m_atlas_dict {}
private

Definition at line 436 of file AtlasDetectorID.h.

◆ m_BCM_ID

int AtlasDetectorID::m_BCM_ID {3}
private

Definition at line 426 of file AtlasDetectorID.h.

◆ m_calo_dict

IdDictDictionary* AtlasDetectorID::m_calo_dict {}
private

Definition at line 441 of file AtlasDetectorID.h.

◆ m_CALO_ID

int AtlasDetectorID::m_CALO_ID {10}
private

Definition at line 407 of file AtlasDetectorID.h.

◆ m_calo_side_impl

IdDictFieldImplementation AtlasDetectorID::m_calo_side_impl
private

Definition at line 446 of file AtlasDetectorID.h.

◆ m_CSC_ID

int AtlasDetectorID::m_CSC_ID {1}
private

Definition at line 419 of file AtlasDetectorID.h.

◆ m_det_impl

IdDictFieldImplementation AtlasDetectorID::m_det_impl
private

Definition at line 444 of file AtlasDetectorID.h.

◆ m_DET_INDEX

size_type AtlasDetectorID::m_DET_INDEX {999}
private

Definition at line 400 of file AtlasDetectorID.h.

◆ m_dict_names

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

List of dictionary names used by this helper.

Definition at line 376 of file AtlasDetectorID.h.

◆ m_dict_tags

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

List of dictionary versions used by this helper.

Definition at line 382 of file AtlasDetectorID.h.

◆ m_dict_version

std::string AtlasDetectorID::m_dict_version
private

Definition at line 398 of file AtlasDetectorID.h.

◆ m_do_checks

bool AtlasDetectorID::m_do_checks {}
protected

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

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

Definition at line 363 of file AtlasDetectorID.h.

◆ m_do_neighbours

bool AtlasDetectorID::m_do_neighbours {true}
protected

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

Definition at line 366 of file AtlasDetectorID.h.

◆ m_file_names

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

List of dictionary file names used by this helper.

Definition at line 379 of file AtlasDetectorID.h.

◆ m_fwd_dict

IdDictDictionary* AtlasDetectorID::m_fwd_dict {}
private

Definition at line 442 of file AtlasDetectorID.h.

◆ m_FWD_ID

int AtlasDetectorID::m_FWD_ID {13}
private

Definition at line 424 of file AtlasDetectorID.h.

◆ m_fwd_part_impl

IdDictFieldImplementation AtlasDetectorID::m_fwd_part_impl
private

Definition at line 452 of file AtlasDetectorID.h.

◆ m_group

std::string AtlasDetectorID::m_group
protected

Group name.

Definition at line 359 of file AtlasDetectorID.h.

◆ m_helper

AtlasDetectorIDHelper* AtlasDetectorID::m_helper {}
private

Definition at line 443 of file AtlasDetectorID.h.

◆ m_HGTD_ID

int AtlasDetectorID::m_HGTD_ID {4}
private

Definition at line 411 of file AtlasDetectorID.h.

◆ m_imsg

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

MessageSvc pointer.

Definition at line 135 of file AthMessaging.h.

◆ m_indet_dict

IdDictDictionary* AtlasDetectorID::m_indet_dict {}
private

Definition at line 437 of file AtlasDetectorID.h.

◆ m_INDET_ID

int AtlasDetectorID::m_INDET_ID {2}
private

Definition at line 403 of file AtlasDetectorID.h.

◆ m_indet_part_impl

IdDictFieldImplementation AtlasDetectorID::m_indet_part_impl
private

Definition at line 445 of file AtlasDetectorID.h.

◆ m_is_initialized_from_dict

bool AtlasDetectorID::m_is_initialized_from_dict {}
private

Definition at line 399 of file AtlasDetectorID.h.

◆ m_isHighLuminosityLHC

bool AtlasDetectorID::m_isHighLuminosityLHC {}
private

Definition at line 430 of file AtlasDetectorID.h.

◆ m_lar_dict

IdDictDictionary* AtlasDetectorID::m_lar_dict {}
private

Definition at line 438 of file AtlasDetectorID.h.

◆ m_lar_dm_field

Range::field AtlasDetectorID::m_lar_dm_field
private

Definition at line 434 of file AtlasDetectorID.h.

◆ m_LAR_EM_ID

int AtlasDetectorID::m_LAR_EM_ID {1}
private

Definition at line 414 of file AtlasDetectorID.h.

◆ m_LAR_FCAL_ID

int AtlasDetectorID::m_LAR_FCAL_ID {3}
private

Definition at line 416 of file AtlasDetectorID.h.

◆ m_lar_fcal_module_impl

IdDictFieldImplementation AtlasDetectorID::m_lar_fcal_module_impl
private

Definition at line 448 of file AtlasDetectorID.h.

◆ m_LAR_FCAL_MODULE_INDEX

int AtlasDetectorID::m_LAR_FCAL_MODULE_INDEX {999}
private

Definition at line 417 of file AtlasDetectorID.h.

◆ m_LAR_HEC_ID

int AtlasDetectorID::m_LAR_HEC_ID {2}
private

Definition at line 415 of file AtlasDetectorID.h.

◆ m_LAR_ID

int AtlasDetectorID::m_LAR_ID {4}
private

Definition at line 404 of file AtlasDetectorID.h.

◆ m_lar_part_impl

IdDictFieldImplementation AtlasDetectorID::m_lar_part_impl
private

Definition at line 447 of file AtlasDetectorID.h.

◆ m_LUCID_ID

int AtlasDetectorID::m_LUCID_ID {5}
private

Definition at line 427 of file AtlasDetectorID.h.

◆ m_LUMI_ID

int AtlasDetectorID::m_LUMI_ID {3}
private

Definition at line 412 of file AtlasDetectorID.h.

◆ m_LUMI_PLR_ID

int AtlasDetectorID::m_LUMI_PLR_ID {1}
private

Definition at line 413 of file AtlasDetectorID.h.

◆ m_lvl

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

Current logging level.

Definition at line 138 of file AthMessaging.h.

◆ m_lvl1_field

Range::field AtlasDetectorID::m_lvl1_field
private

Definition at line 432 of file AtlasDetectorID.h.

◆ m_lvl1_onl_field

Range::field AtlasDetectorID::m_lvl1_onl_field
private

Definition at line 433 of file AtlasDetectorID.h.

◆ m_MDT_ID

int AtlasDetectorID::m_MDT_ID {0}
private

Definition at line 418 of file AtlasDetectorID.h.

◆ m_MM_ID

int AtlasDetectorID::m_MM_ID {5}
private

Definition at line 423 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 {}
protected

pointer to the message service

Definition at line 369 of file AtlasDetectorID.h.

◆ m_muon_dict

IdDictDictionary* AtlasDetectorID::m_muon_dict {}
private

Definition at line 440 of file AtlasDetectorID.h.

◆ m_MUON_ID

int AtlasDetectorID::m_MUON_ID {7}
private

Definition at line 406 of file AtlasDetectorID.h.

◆ m_muon_mdt_impl

IdDictFieldImplementation AtlasDetectorID::m_muon_mdt_impl
private

Definition at line 450 of file AtlasDetectorID.h.

◆ m_muon_rpc_impl

IdDictFieldImplementation AtlasDetectorID::m_muon_rpc_impl
private

Definition at line 451 of file AtlasDetectorID.h.

◆ m_muon_station_name_impl

IdDictFieldImplementation AtlasDetectorID::m_muon_station_name_impl
private

Definition at line 449 of file AtlasDetectorID.h.

◆ m_MUON_SUBDET_INDEX

size_type AtlasDetectorID::m_MUON_SUBDET_INDEX {999}
private

Definition at line 402 of file AtlasDetectorID.h.

◆ m_muon_tech_bits

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

Definition at line 455 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}
private

Definition at line 408 of file AtlasDetectorID.h.

◆ m_quiet

bool AtlasDetectorID::m_quiet {}
protected

If true, suppress DEBUG/INFO messages.

Definition at line 372 of file AtlasDetectorID.h.

◆ m_RPC_ID

int AtlasDetectorID::m_RPC_ID {2}
private

Definition at line 420 of file AtlasDetectorID.h.

◆ m_SCT_ID

int AtlasDetectorID::m_SCT_ID {2}
private

Definition at line 409 of file AtlasDetectorID.h.

◆ m_STGC_ID

int AtlasDetectorID::m_STGC_ID {4}
private

Definition at line 422 of file AtlasDetectorID.h.

◆ m_SUBDET_INDEX

size_type AtlasDetectorID::m_SUBDET_INDEX {999}
private

Definition at line 401 of file AtlasDetectorID.h.

◆ m_TGC_ID

int AtlasDetectorID::m_TGC_ID {3}
private

Definition at line 421 of file AtlasDetectorID.h.

◆ m_tile_dict

IdDictDictionary* AtlasDetectorID::m_tile_dict {}
private

Definition at line 439 of file AtlasDetectorID.h.

◆ m_tile_dm_field

Range::field AtlasDetectorID::m_tile_dm_field
private

Definition at line 435 of file AtlasDetectorID.h.

◆ m_TILE_ID

int AtlasDetectorID::m_TILE_ID {5}
private

Definition at line 405 of file AtlasDetectorID.h.

◆ m_TRT_ID

int AtlasDetectorID::m_TRT_ID {3}
private

Definition at line 410 of file AtlasDetectorID.h.

◆ m_ZDC_ID

int AtlasDetectorID::m_ZDC_ID {7}
private

Definition at line 428 of file AtlasDetectorID.h.


The documentation for this class was generated from the following files:
AtlasDetectorID::is_pixel
bool is_pixel(Identifier id) const
Definition: AtlasDetectorID.h:755
AthMessaging::m_lvl
std::atomic< MSG::Level > m_lvl
Current logging level.
Definition: AthMessaging.h:138
AtlasDetectorID::m_muon_dict
IdDictDictionary * m_muon_dict
Definition: AtlasDetectorID.h:440
AtlasDetectorID::indet_field_value
int indet_field_value() const
Provide efficient access to individual field values, for subclass idhelpers.
Definition: AtlasDetectorID.h:606
AtlasDetectorID::is_forward
bool is_forward(Identifier id) const
Definition: AtlasDetectorID.h:930
TRT
@ TRT
Definition: RegSelEnums.h:26
AtlasDetectorID::m_muon_tech_bits
std::vector< unsigned int > m_muon_tech_bits
Definition: AtlasDetectorID.h:455
AtlasDetectorID::MAX_BIT
@ MAX_BIT
Definition: AtlasDetectorID.h:390
AtlasDetectorID::m_LUMI_ID
int m_LUMI_ID
Definition: AtlasDetectorID.h:412
AtlasDetectorIDHelper::lar_fcal_region_index
size_type lar_fcal_region_index() const
Definition: AtlasDetectorIDHelper.h:47
get_generator_info.result
result
Definition: get_generator_info.py:21
AtlasDetectorID::m_indet_part_impl
IdDictFieldImplementation m_indet_part_impl
Definition: AtlasDetectorID.h:445
InDetDD::PLR
@ PLR
Definition: DetectorDesign.h:46
AtlasDetectorID::m_helper
AtlasDetectorIDHelper * m_helper
Definition: AtlasDetectorID.h:443
vtune_athena.format
format
Definition: vtune_athena.py:14
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
IdDictDictionary::version
const std::string & version() const
Dictionary version.
Definition: IdDictDictionary.h:332
AtlasDetectorID::is_lar_fcal
bool is_lar_fcal(Identifier id) const
Definition: AtlasDetectorID.h:834
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:684
AtlasDetDescr::fUndefined
@ fUndefined
Definition: AtlasDetTechnology.h:30
AtlasDetectorID::muon_field_value
int muon_field_value() const
Definition: AtlasDetectorID.h:615
TRTCalib_Extractor.det
det
Definition: TRTCalib_Extractor.py:36
AtlasDetectorID::m_TRT_ID
int m_TRT_ID
Definition: AtlasDetectorID.h:410
quiet
bool quiet
Definition: TrigGlobEffCorrValidation.cxx:190
IdDictDictionary::region
const IdDictRegion & region(size_t i) const
Region at index i.
Definition: IdDictDictionary.h:341
AtlasDetectorIDHelper::lvl1_region_index
size_type lvl1_region_index() const
Definition: AtlasDetectorIDHelper.h:50
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
AtlasDetectorID::m_HGTD_ID
int m_HGTD_ID
Definition: AtlasDetectorID.h:411
IdContext::end_index
size_type end_index() const
Definition: IdContext.h:46
AtlasDetectorID::calo_field_value
int calo_field_value() const
Definition: AtlasDetectorID.h:618
IdentifierField::clear
void clear()
Set methods.
Definition: IdentifierField.cxx:224
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:439
AtlasDetectorIDHelper::pixel_region_index
size_type pixel_region_index() const
Definition: AtlasDetectorIDHelper.h:32
athena.value
value
Definition: athena.py:124
AtlasDetectorID::m_msgSvc
IMessageSvc * m_msgSvc
pointer to the message service
Definition: AtlasDetectorID.h:369
AtlasDetectorID::m_dict_version
std::string m_dict_version
Definition: AtlasDetectorID.h:398
AtlasDetectorID::m_do_checks
bool m_do_checks
Flag for subclasses to know whether or not to perform checks.
Definition: AtlasDetectorID.h:363
Identifier::MAX_BIT
static constexpr value_type MAX_BIT
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
ReadOfcFromCool.field
field
Definition: ReadOfcFromCool.py:48
AtlasDetectorID::m_MUON_SUBDET_INDEX
size_type m_MUON_SUBDET_INDEX
Definition: AtlasDetectorID.h:402
IdDictDictionary::name
const std::string & name() const
Dictionary name.
Definition: IdDictDictionary.h:323
AtlasDetectorID::m_LAR_FCAL_MODULE_INDEX
int m_LAR_FCAL_MODULE_INDEX
Definition: AtlasDetectorID.h:417
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
AtlasDetectorID::m_ZDC_ID
int m_ZDC_ID
Definition: AtlasDetectorID.h:428
AtlasDetectorID::m_STGC_ID
int m_STGC_ID
Definition: AtlasDetectorID.h:422
AtlasDetectorID::lar_field_value
int lar_field_value() const
Definition: AtlasDetectorID.h:609
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
IdDictDictionary::file_name
const std::string & file_name() const
Access to file name.
Definition: IdDictDictionary.h:358
AtlasDetectorID::ALL_BITS
@ ALL_BITS
Definition: AtlasDetectorID.h:393
AtlasDetectorID::do_neighbours
virtual bool do_neighbours(void) const override
Neighbour initialization is performed by default One can switch or query this mode for any idHelper w...
Definition: AtlasDetectorID.cxx:478
AtlasDetectorIDHelper::UNDEFINED
@ UNDEFINED
Definition: AtlasDetectorIDHelper.h:20
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
AtlasDetectorIDHelper::mdt_region_index
size_type mdt_region_index() const
Definition: AtlasDetectorIDHelper.h:59
AtlasDetectorID::is_lvl1_trig_towers
bool is_lvl1_trig_towers(Identifier id) const
Definition: AtlasDetectorID.h:708
IdDictRegion
Definition: IdDictRegion.h:20
AtlasDetectorID::m_LAR_ID
int m_LAR_ID
Definition: AtlasDetectorID.h:404
AtlasDetectorID::m_do_neighbours
bool m_do_neighbours
Flag for subclasses to know whether or not to perform neighbour initialization.
Definition: AtlasDetectorID.h:366
AtlasDetectorID::m_INDET_ID
int m_INDET_ID
Definition: AtlasDetectorID.h:403
AtlasDetectorID::size_type
Identifier::size_type size_type
Definition: AtlasDetectorID.h:385
Trk::DetectorElemType::Silicon
@ Silicon
AtlasDetectorID::m_LUMI_PLR_ID
int m_LUMI_PLR_ID
Definition: AtlasDetectorID.h:413
IdDictRegion::implementation
const IdDictFieldImplementation & implementation(size_t i) const
Definition: IdDictRegion.cxx:17
IdentifierField::match
bool match(element_type value) const
The basic match operation Given a value, test to see if it satisfies the constraints for this field.
Definition: IdentifierField.cxx:71
AtlasDetectorID::PIXEL_MASK
@ PIXEL_MASK
Definition: AtlasDetectorID.h:392
AthMessaging::AthMessaging
AthMessaging()
Default constructor:
AtlasDetectorID::m_tile_dm_field
Range::field m_tile_dm_field
Definition: AtlasDetectorID.h:435
PlotCalibFromCool.nentries
nentries
Definition: PlotCalibFromCool.py:798
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
AtlasDetectorID::ATLAS_ID
@ ATLAS_ID
Definition: AtlasDetectorID.h:389
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AtlasDetectorID::m_TILE_ID
int m_TILE_ID
Definition: AtlasDetectorID.h:405
DetType::Pixel
@ Pixel
Definition: DetType.h:13
IdDictFieldImplementation::set_ored_field
void set_ored_field(const Range::field &ored_field)
Definition: IdDictFieldImplementation.h:259
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
AtlasDetectorID::m_group
std::string m_group
Group name.
Definition: AtlasDetectorID.h:359
AtlasDetectorID::m_calo_dict
IdDictDictionary * m_calo_dict
Definition: AtlasDetectorID.h:441
lumiFormat.i
int i
Definition: lumiFormat.py:85
AtlasDetectorID::m_is_initialized_from_dict
bool m_is_initialized_from_dict
Definition: AtlasDetectorID.h:399
AtlasDetectorID::m_lar_part_impl
IdDictFieldImplementation m_lar_part_impl
Definition: AtlasDetectorID.h:447
AtlasDetectorID::indet_exp
ExpandedIdentifier indet_exp(void) const
Detector systems:
Definition: AtlasDetectorID.h:480
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AtlasDetectorID::m_muon_mdt_impl
IdDictFieldImplementation m_muon_mdt_impl
Definition: AtlasDetectorID.h:450
AtlasDetectorID::m_lar_fcal_module_impl
IdDictFieldImplementation m_lar_fcal_module_impl
Definition: AtlasDetectorID.h:448
add-xsec-uncert-quadrature-N.label
label
Definition: add-xsec-uncert-quadrature-N.py:104
AtlasDetectorID::is_tile_dm
bool is_tile_dm(Identifier id) const
Definition: AtlasDetectorID.h:743
AtlasDetectorID::m_LAR_EM_ID
int m_LAR_EM_ID
Definition: AtlasDetectorID.h:414
AtlasDetectorID::m_isHighLuminosityLHC
bool m_isHighLuminosityLHC
Definition: AtlasDetectorID.h:430
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:194
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
AtlasDetectorID::m_fwd_dict
IdDictDictionary * m_fwd_dict
Definition: AtlasDetectorID.h:442
IdDictLabel
Definition: IdDictLabel.h:10
AtlasDetectorID::is_tile
bool is_tile(Identifier id) const
Definition: AtlasDetectorID.h:690
AtlasDetectorID::group
const std::string & group() const
Group name for this helper.
Definition: AtlasDetectorID.cxx:27
AtlasDetectorID::m_TGC_ID
int m_TGC_ID
Definition: AtlasDetectorID.h:421
AtlasDetectorIDHelper::initialize_from_dictionary
int initialize_from_dictionary(const IdDictMgr &dict_mgr)
Initialization from the identifier dictionary.
Definition: AtlasDetectorIDHelper.cxx:15
AtlasDetectorID::m_CSC_ID
int m_CSC_ID
Definition: AtlasDetectorID.h:419
IdDictFieldImplementation::ored_field
const Range::field & ored_field() const
Definition: IdDictFieldImplementation.h:196
AtlasDetectorID::m_lvl1_onl_field
Range::field m_lvl1_onl_field
Definition: AtlasDetectorID.h:433
IdDictMgr::do_neighbours
bool do_neighbours() const
Check whether or not to init neighbours.
Definition: IdDictMgr.cxx:78
AtlasDetectorID::m_quiet
bool m_quiet
If true, suppress DEBUG/INFO messages.
Definition: AtlasDetectorID.h:372
AtlasDetectorID::m_LAR_HEC_ID
int m_LAR_HEC_ID
Definition: AtlasDetectorID.h:415
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
AtlasDetectorID::m_muon_rpc_impl
IdDictFieldImplementation m_muon_rpc_impl
Definition: AtlasDetectorID.h:451
AtlasDetDescr::fAtlasMM
@ fAtlasMM
Definition: AtlasDetTechnology.h:54
AtlasDetectorID::m_SCT_ID
int m_SCT_ID
Definition: AtlasDetectorID.h:409
AtlasDetDescr::fAtlasSTGC
@ fAtlasSTGC
Definition: AtlasDetTechnology.h:53
AtlasDetectorID::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:416
AtlasDetectorID::is_calo
bool is_calo(Identifier id) const
Definition: AtlasDetectorID.h:702
AtlasDetectorID::m_MM_ID
int m_MM_ID
Definition: AtlasDetectorID.h:423
AtlasDetectorID::m_DET_INDEX
size_type m_DET_INDEX
Definition: AtlasDetectorID.h:400
AtlasDetectorID::tile_field_value
int tile_field_value() const
Definition: AtlasDetectorID.h:612
IdDictDictionary::get_label_value
int get_label_value(const std::string &field, const std::string &label, int &value) const
Definition: IdDictDictionary.cxx:64
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:422
IdDictRegion::entry
const IdDictRegionEntry & entry(size_t i) const
Definition: IdDictRegion.h:203
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:239
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
AtlasDetectorID::m_indet_dict
IdDictDictionary * m_indet_dict
Definition: AtlasDetectorID.h:437
AtlasDetectorID::m_calo_side_impl
IdDictFieldImplementation m_calo_side_impl
Definition: AtlasDetectorID.h:446
AtlasDetectorID::is_indet
bool is_indet(Identifier id) const
Definition: AtlasDetectorID.h:678
AtlasDetectorID::m_dict_names
std::vector< std::string > m_dict_names
List of dictionary names used by this helper.
Definition: AtlasDetectorID.h:376
AtlasDetectorID::m_lar_dm_field
Range::field m_lar_dm_field
Definition: AtlasDetectorID.h:434
checkTriggerxAOD.found
found
Definition: checkTriggerxAOD.py:328
AtlasDetectorIDHelper::lar_em_region_index
size_type lar_em_region_index() const
Definition: AtlasDetectorIDHelper.h:41
AtlasDetectorID::fwd_exp
ExpandedIdentifier fwd_exp(void) const
Definition: AtlasDetectorID.h:515
AtlasDetectorID::m_muon_station_name_impl
IdDictFieldImplementation m_muon_station_name_impl
Definition: AtlasDetectorID.h:449
AtlasDetectorID::m_MDT_ID
int m_MDT_ID
Definition: AtlasDetectorID.h:418
IdDictDictionary
Definition: IdDictDictionary.h:30
AtlasDetectorID::m_RPC_ID
int m_RPC_ID
Definition: AtlasDetectorID.h:420
Muon
struct TBPatternUnitContext Muon
IdDictRange
Definition: IdDictRange.h:18
AtlasDetDescr::fAtlasRPC
@ fAtlasRPC
Definition: AtlasDetTechnology.h:51
AtlasDetectorID::is_lumi
bool is_lumi(Identifier id) const
Definition: AtlasDetectorID.h:801
AtlasDetectorID::is_lar_dm
bool is_lar_dm(Identifier id) const
LAr/Tile dead material:
Definition: AtlasDetectorID.h:731
AtlasDetectorID::is_muon
bool is_muon(Identifier id) const
Definition: AtlasDetectorID.h:696
AtlasDetectorID::m_det_impl
IdDictFieldImplementation m_det_impl
Definition: AtlasDetectorID.h:444
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
AtlasDetectorIDHelper::rpc_region_index
size_type rpc_region_index() const
Definition: AtlasDetectorIDHelper.h:65
IdDictDictionary::dict_tag
const std::string & dict_tag() const
Access to the dictionary tag.
Definition: IdDictDictionary.h:365
AtlasDetectorID::lar_exp
ExpandedIdentifier lar_exp(void) const
Definition: AtlasDetectorID.h:487
AtlasDetectorID::m_file_names
std::vector< std::string > m_file_names
List of dictionary file names used by this helper.
Definition: AtlasDetectorID.h:379
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
AthMessaging::m_nm
std::string m_nm
Message source name.
Definition: AthMessaging.h:129
DeMoScan.first
bool first
Definition: DeMoScan.py:534
AtlasDetDescr::fAtlasMDT
@ fAtlasMDT
Definition: AtlasDetTechnology.h:49
IdentifierField
This is the individual specification for the range of one ExpandedIdentifier IdentifierField.
Definition: IdentifierField.h:83
AtlasDetectorID::m_CALO_ID
int m_CALO_ID
Definition: AtlasDetectorID.h:407
AtlasDetectorID::m_ALFA_ID
int m_ALFA_ID
Definition: AtlasDetectorID.h:425
AtlasDetectorID::m_MUON_ID
int m_MUON_ID
Definition: AtlasDetectorID.h:406
IdDictMgr::do_checks
bool do_checks() const
Check whether or not to do checks for ids.
Definition: IdDictMgr.cxx:65
AtlasDetectorID::m_lar_dict
IdDictDictionary * m_lar_dict
Definition: AtlasDetectorID.h:438
IdDictRegion::n_entries
size_t n_entries() const
Definition: IdDictRegion.h:196
Identifier::value_type
unsigned long long value_type
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:27
AtlasDetectorID::m_PIXEL_ID
int m_PIXEL_ID
Definition: AtlasDetectorID.h:408
AtlasDetectorID::is_lvl1_online
bool is_lvl1_online(Identifier id) const
Definition: AtlasDetectorID.h:719
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
IdDictDictionary::n_regions
size_t n_regions() const
Number of contained regions.
Definition: IdDictDictionary.h:350
AtlasDetectorID::m_BCM_ID
int m_BCM_ID
Definition: AtlasDetectorID.h:426
AtlasDetectorID::initLevelsFromDict
int initLevelsFromDict(const IdDictMgr &dict_mgr)
Definition: AtlasDetectorID.cxx:513
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
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:471
IdContext
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
Definition: IdContext.h:26
AtlasDetectorID::m_dict_tags
std::vector< std::string > m_dict_tags
List of dictionary versions used by this helper.
Definition: AtlasDetectorID.h:382
AtlasDetectorID::m_SUBDET_INDEX
size_type m_SUBDET_INDEX
Definition: AtlasDetectorID.h:401
IdentifierField::add_value
void add_value(element_type value)
Definition: IdentifierField.cxx:250
AtlasDetectorID::m_FWD_ID
int m_FWD_ID
Definition: AtlasDetectorID.h:424
HI::SubCalo::Lists::Tile
constexpr std::initializer_list< int > Tile
Definition: HIEventDefs.h:70
AtlasDetectorID::m_lvl1_field
Range::field m_lvl1_field
Definition: AtlasDetectorID.h:432
fitman.k
k
Definition: fitman.py:528
AtlasDetectorID::m_LUCID_ID
int m_LUCID_ID
Definition: AtlasDetectorID.h:427
SCT
@ SCT
Definition: RegSelEnums.h:25
IdDictFieldImplementation::bits
size_type bits() const
Definition: IdDictFieldImplementation.h:202
python.SystemOfUnits.ms
float ms
Definition: SystemOfUnits.py:148
Identifier
Definition: IdentifierFieldParser.cxx:14