ATLAS Offline Software
LArHEC_ID.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 #include "IdDict/IdDictDefs.h"
9 #include "LArHEC_region.h"
10 
11 #include "GaudiKernel/MsgStream.h"
12 
13 #include <cmath>
14 #include <iostream>
15 #include <set>
16 #include <string>
17 
18 
20  LArHEC_Base_ID ("LArHEC_ID", "lar_hec", false)
21 {
22 }
23 
24 LArHEC_ID::~LArHEC_ID() = default;
25 
27 /*===================================================================*/
28 {
29  MsgStream log(m_msgSvc, "LArHEC_ID" );
30 
31  std::string strg = "initialize_from_dictionary";
32  log << MSG::DEBUG << strg << endmsg;
33 
34  // Check whether this helper should be reinitialized
35  if (!reinitialize(dict_mgr)) {
36  log << MSG::DEBUG << "Request to reinitialize not satisfied - tags have not changed" << endmsg;
37  return (0);
38  }
39  else {
40  if(m_msgSvc)log << MSG::DEBUG << "(Re)initialize" << endmsg;
41  }
42 
43  // init base object
45  return (1);
46 
47 
48  return 0;
49 }
50 
51 
52 
LArHEC_Base_ID
This class factors out code common between LArEM_ID and LArEM_SuperCell_ID.
Definition: LArHEC_Base_ID.h:41
AtlasDetectorID::m_msgSvc
IMessageSvc * m_msgSvc
pointer to the message service
Definition: AtlasDetectorID.h:369
LArHEC_ID::initialize_from_dictionary
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr)
initialization from the identifier dictionary
Definition: LArHEC_ID.cxx:26
LArHEC_ID.h
LArHEC_ID::LArHEC_ID
LArHEC_ID()
Definition: LArHEC_ID.cxx:19
IdDictDefs.h
AtlasDetectorID.h
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
IdDictMgr
Definition: IdDictMgr.h:14
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
LArHEC_Base_ID::initialize_base_from_dictionary
int initialize_base_from_dictionary(const IdDictMgr &dict_mgr, const std::string &group_name)
initialization from the identifier dictionary
Definition: LArHEC_Base_ID.cxx:168
AtlasDetectorID::group
const std::string & group() const
Group name for this helper.
Definition: AtlasDetectorID.cxx:27
LArHEC_region.h
IdentifierHash.h
LArHEC_ID::~LArHEC_ID
~LArHEC_ID()
AtlasDetectorID::reinitialize
bool reinitialize(const IdDictMgr &dict_mgr)
Test whether an idhelper should be reinitialized based on the change of tags.
Definition: AtlasDetectorID.cxx:216
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20