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