ATLAS Offline Software
LArEM_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 
9 #include "GaudiKernel/MsgStream.h"
10 
11 #include <cmath>
12 #include <iostream>
13 #include <set>
14 #include <string>
15 
16 
17 
19  LArEM_Base_ID("LArEM_ID", "lar_em", 0)
20 {
21 }
22 
23 LArEM_ID::~LArEM_ID() = default;
24 
26 /*=================================================================*/
27 {
28  MsgStream log(m_msgSvc, "LArEM_ID" );
29 
30  log << MSG::DEBUG << "initialize_from_dictionary" << endmsg;
31 
32  // Check whether this helper should be reinitialized
33  if (!reinitialize(dict_mgr)) {
34  log << MSG::DEBUG << "Request to reinitialize not satisfied - tags have not changed" << endmsg;
35  return (0);
36  }
37  else {
38  if(m_msgSvc)log << MSG::DEBUG << "(Re)initialize" << endmsg;
39  }
40 
41  // init base object
43  return (1);
44 
45 
46  return 0;
47 }
48 
49 
LArEM_ID.h
LArEM_Base_ID
This class factors out code common between LArEM_ID and LArEM_SuperCell_ID.
Definition: LArEM_Base_ID.h:36
AtlasDetectorID::m_msgSvc
IMessageSvc * m_msgSvc
pointer to the message service
Definition: AtlasDetectorID.h:369
LArEM_ID::initialize_from_dictionary
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr)
initialization from the identifier dictionary
Definition: LArEM_ID.cxx:25
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
AtlasDetectorID::group
const std::string & group() const
Group name for this helper.
Definition: AtlasDetectorID.cxx:32
IdentifierHash.h
AtlasDetectorID::reinitialize
bool reinitialize(const IdDictMgr &dict_mgr)
Test whether an idhelper should be reinitialized based on the change of tags.
Definition: AtlasDetectorID.cxx:221
LArEM_ID::~LArEM_ID
virtual ~LArEM_ID()
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
LArEM_ID::LArEM_ID
LArEM_ID()
Definition: LArEM_ID.cxx:18
LArEM_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: LArEM_Base_ID.cxx:444