ATLAS Offline Software
LArEM_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 */
15 #include "IdDict/IdDictDefs.h"
16 #include "LArEM_region.h"
17 
18 #include "GaudiKernel/MsgStream.h"
19 
20 #include <cmath>
21 #include <iostream>
22 #include <set>
23 #include <string>
24 
25 
26 
28  LArEM_Base_ID("LArEM_SuperCell_ID", "slar_em", 1)
29 {
30 }
31 
33 
35 /*=================================================================*/
36 {
37  MsgStream log(m_msgSvc, "LArEM_SuperCell_ID" );
38 
39  log << MSG::DEBUG << "initialize_from_dictionary" << endmsg;
40 
41  // Check whether this helper should be reinitialized
42  if (!reinitialize(dict_mgr)) {
43  log << MSG::DEBUG << "Request to reinitialize not satisfied - tags have not changed" << endmsg;
44  return (0);
45  }
46  else {
47  if(m_msgSvc)log << MSG::DEBUG << "(Re)initialize" << endmsg;
48  }
49 
50  // init base object
52  return (1);
53 
54  return 0;
55 }
56 
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:375
LArEM_SuperCell_ID.h
Helper class for LArEM offline identifiers for supercells.
LArEM_SuperCell_ID::initialize_from_dictionary
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr)
initialization from the identifier dictionary
Definition: LArEM_SuperCell_ID.cxx:34
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
LArEM_SuperCell_ID::~LArEM_SuperCell_ID
~LArEM_SuperCell_ID()
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
AtlasDetectorID::group
const std::string & group() const
Group name for this helper.
Definition: AtlasDetectorID.cxx:27
LArEM_region.h
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
LArEM_SuperCell_ID::LArEM_SuperCell_ID
LArEM_SuperCell_ID()
Definition: LArEM_SuperCell_ID.cxx:27
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:440