ATLAS Offline Software
Tile_SuperCell_ID.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 // $Id$
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 ("Tile_SuperCell_ID", true)
30 {
31 }
32 
34 {
35  MsgStream log(m_msgSvc, "Tile_SuperCell_ID" );
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
50  if (Tile_Base_ID::initialize_base_from_dictionary(dict_mgr, "tile_supercell"))
51  return (1);
52 
53  return 0;
54 }
Tile_SuperCell_ID::Tile_SuperCell_ID
Tile_SuperCell_ID()
Definition: Tile_SuperCell_ID.cxx:28
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
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
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:33
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
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.