ATLAS Offline Software
TileID.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /***************************************************************************
6  Access to Tile Calorimeter raw data
7  -----------------------------------------
8  ***************************************************************************/
9 
10 
11 #include "CaloIdentifier/TileID.h"
12 #include "IdDict/IdDictDefs.h"
15 
16 #include "GaudiKernel/MsgStream.h"
17 
18 #include <algorithm>
19 #include <cassert>
20 #include <cstdio>
21 #include <iostream>
22 #include <stdexcept>
23 
24 
26  : Tile_Base_ID ("TileID", "tile", false)
27 {
28 }
29 
31 {
32  MsgStream log(m_msgSvc, "TileID" );
33 
34  std::string strg = "initialize_from_dictionary";
35  log << MSG::DEBUG << strg << endmsg;
36 
37  // Check whether this helper should be reinitialized
38  if (!reinitialize(dict_mgr)) {
39  log << MSG::DEBUG << "Request to reinitialize not satisfied - tags have not changed" << endmsg;
40  return (0);
41  }
42  else {
43  log << MSG::DEBUG << "(Re)initialize" << endmsg;
44  }
45 
46  // init base object
48  return (1);
49 
50  return 0;
51 }
52 
53 
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
TileID.h
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
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
TileID::initialize_from_dictionary
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr)
initialization from the identifier dictionary
Definition: TileID.cxx:30
TileID::TileID
TileID()
Definition: TileID.cxx:25
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20