ATLAS Offline Software
LArFCAL_SuperCell_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 
10 #include "GaudiKernel/MsgStream.h"
11 
12 #include <cmath>
13 #include <iostream>
14 #include <set>
15 #include <string>
16 
18  LArFCAL_Base_ID("LArFCAL_SuperCell_ID", "slar_fcal", 1)
19 {
20 }
21 
23 
25 /*=================================================================*/
26 {
27  MsgStream log(m_msgSvc, "LArFCAL_SuperCell_ID" );
28 
29  log << MSG::DEBUG << "initialize_from_dictionary" << endmsg;
30 
31  // Check whether this helper should be reinitialized
32  if (!reinitialize(dict_mgr)) {
33  log << MSG::DEBUG << "Request to reinitialize not satisfied - tags have not changed" << endmsg;
34  return (0);
35  }
36  else {
37  if(m_msgSvc)log << MSG::DEBUG << "(Re)initialize" << endmsg;
38  }
39 
40  // init base object
42  return (1);
43 
44  return 0;
45 }
46 
LArFCAL_Base_ID
Definition: LArFCAL_Base_ID.h:19
LArFCAL_Base_ID::initialize_base_from_dictionary
virtual int initialize_base_from_dictionary(const IdDictMgr &dict_mgr, const std::string &group_name)
initialization from the identifier dictionary
Definition: LArFCAL_Base_ID.cxx:132
LArFCAL_SuperCell_ID.h
AtlasDetectorID::m_msgSvc
IMessageSvc * m_msgSvc
pointer to the message service
Definition: AtlasDetectorID.h:369
LArFCAL_SuperCell_ID::~LArFCAL_SuperCell_ID
~LArFCAL_SuperCell_ID()
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
AtlasDetectorID::group
const std::string & group() const
Group name for this helper.
Definition: AtlasDetectorID.cxx:27
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:216
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
LArFCAL_SuperCell_ID::initialize_from_dictionary
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr)
initialization from the identifier dictionary
Definition: LArFCAL_SuperCell_ID.cxx:24
LArFCAL_SuperCell_ID::LArFCAL_SuperCell_ID
LArFCAL_SuperCell_ID()
Definition: LArFCAL_SuperCell_ID.cxx:17