ATLAS Offline Software
LArEM_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 
5 // $Id$
17 #include "IdDict/IdDictDefs.h"
18 #include "LArEM_region.h"
19 
20 #include "GaudiKernel/MsgStream.h"
21 
22 #include <cmath>
23 #include <iostream>
24 #include <set>
25 #include <string>
26 
27 
28 
30  LArEM_Base_ID("LArEM_SuperCell_ID", 1)
31 {
32 }
33 
35 = default;
36 
38 /*=================================================================*/
39 {
40  MsgStream log(m_msgSvc, "LArEM_SuperCell_ID" );
41 
42  log << MSG::DEBUG << "initialize_from_dictionary" << endmsg;
43 
44  // Check whether this helper should be reinitialized
45  if (!reinitialize(dict_mgr)) {
46  log << MSG::DEBUG << "Request to reinitialize not satisfied - tags have not changed" << endmsg;
47  return (0);
48  }
49  else {
50  if(m_msgSvc)log << MSG::DEBUG << "(Re)initialize" << endmsg;
51  }
52 
53  // init base object
55  "slar_em"))
56  return (1);
57 
58  return 0;
59 }
60 
LArEM_Base_ID
This class factors out code common between LArEM_ID and LArEM_SuperCell_ID.
Definition: LArEM_Base_ID.h:38
AtlasDetectorID::m_msgSvc
IMessageSvc * m_msgSvc
pointer to the message service
Definition: AtlasDetectorID.h:368
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:37
IdDictDefs.h
AtlasDetectorID.h
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
IdDictMgr
Definition: IdDictDefs.h:32
LArEM_SuperCell_ID::~LArEM_SuperCell_ID
~LArEM_SuperCell_ID(void)
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
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:284
LArEM_SuperCell_ID::LArEM_SuperCell_ID
LArEM_SuperCell_ID(void)
Definition: LArEM_SuperCell_ID.cxx:29
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
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:448