ATLAS Offline Software
LArFCAL_SuperCell_ID.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 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", 1)
19 {
20 }
21 
23 = default;
24 
26 /*=================================================================*/
27 {
28  MsgStream log(m_msgSvc, "LArFCAL_SuperCell_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  "slar_fcal"))
44  return (1);
45 
46  return 0;
47 }
48 
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:139
LArFCAL_SuperCell_ID.h
AtlasDetectorID::m_msgSvc
IMessageSvc * m_msgSvc
pointer to the message service
Definition: AtlasDetectorID.h:368
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
LArFCAL_SuperCell_ID::~LArFCAL_SuperCell_ID
~LArFCAL_SuperCell_ID(void)
LArFCAL_SuperCell_ID::LArFCAL_SuperCell_ID
LArFCAL_SuperCell_ID(void)
Definition: LArFCAL_SuperCell_ID.cxx:17
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:284
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:25