ATLAS Offline Software
Tile_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 */
13 #include "IdDict/IdDictDefs.h"
16 
17 #include "GaudiKernel/MsgStream.h"
18 
19 #include <algorithm>
20 #include <cassert>
21 #include <cstdio>
22 #include <iostream>
23 #include <stdexcept>
24 
25 
27  : Tile_Base_ID ("Tile_SuperCell_ID", "tile_supercell", true)
28 {
29 }
30 
32 {
33  MsgStream log(m_msgSvc, "Tile_SuperCell_ID" );
34 
35  std::string strg = "initialize_from_dictionary";
36  log << MSG::DEBUG << strg << endmsg;
37 
38  // Check whether this helper should be reinitialized
39  if (!reinitialize(dict_mgr)) {
40  log << MSG::DEBUG << "Request to reinitialize not satisfied - tags have not changed" << endmsg;
41  return (0);
42  }
43  else {
44  log << MSG::DEBUG << "(Re)initialize" << endmsg;
45  }
46 
47  // init base object
49  return (1);
50 
51  return 0;
52 }
Tile_SuperCell_ID::Tile_SuperCell_ID
Tile_SuperCell_ID()
Definition: Tile_SuperCell_ID.cxx:26
AtlasDetectorID::m_msgSvc
IMessageSvc * m_msgSvc
pointer to the message service
Definition: AtlasDetectorID.h:375
Tile_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: Tile_Base_ID.cxx:1181
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
Tile_Base_ID
This class factors out code common between TileID and Tile_SuperCell_ID.
Definition: Tile_Base_ID.h:36
AtlasDetectorID::group
const std::string & group() const
Group name for this helper.
Definition: AtlasDetectorID.cxx:27
IdentifierHash.h
Tile_SuperCell_ID::initialize_from_dictionary
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr)
initialization from the identifier dictionary
Definition: Tile_SuperCell_ID.cxx:31
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
Tile_SuperCell_ID.h
Helper class for Tile offline identifiers for supercells.