ATLAS Offline Software
CaloCell_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 
8 
9 #include "GaudiKernel/MsgStream.h"
10 
11 #include <set>
12 #include <iostream>
13 #include <stdexcept>
14 
16  const LArHEC_ID* hec_id,
17  const LArFCAL_ID* fcal_id,
18  const LArMiniFCAL_ID* minifcal_id,
19  const TileID* tile_id) :
20  CaloCell_Base_ID (em_id, hec_id, fcal_id, minifcal_id, tile_id, false)
21 {
22 }
23 
24 
26 = default;
27 
28 
29 int
31 {
32 
33  MsgStream log(m_msgSvc, "CaloCell_ID");
34  if(m_msgSvc)log << MSG::DEBUG << "Initialize" << endmsg;
35 
36  // Check whether this helper should be reinitialized
37  if (!reinitialize(dict_mgr)) {
38  if(m_msgSvc)log << MSG::DEBUG << "Request to reinitialize not satisfied - tags have not changed" << endmsg;
39  return (0);
40  }
41  else {
42  if(m_msgSvc)log << MSG::DEBUG << "(Re)initialize" << endmsg;
43  }
44 
45  // init base object
46  if(CaloCell_Base_ID::initialize_from_dictionary(dict_mgr)) return (1);
47 
48  return (0);
49 }
50 
CaloCell_ID::initialize_from_dictionary
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr)
Initialization from the identifier dictionary.
Definition: CaloCell_ID.cxx:30
CaloCell_ID::CaloCell_ID
CaloCell_ID(const LArEM_ID *em_id, const LArHEC_ID *hec_id, const LArFCAL_ID *fcal_id, const LArMiniFCAL_ID *minifcal_id, const TileID *tile_id)
Constructor.
Definition: CaloCell_ID.cxx:15
CaloCell_ID::~CaloCell_ID
~CaloCell_ID(void)
LArHEC_ID
Helper class for LArHEC offline identifiers.
Definition: LArHEC_ID.h:85
AtlasDetectorID::m_msgSvc
IMessageSvc * m_msgSvc
pointer to the message service
Definition: AtlasDetectorID.h:368
CaloCell_ID.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
TileID
Helper class for TileCal offline identifiers.
Definition: TileID.h:68
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
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
LArMiniFCAL_ID
Helper class for LArMiniFCAL offline identifiers.
Definition: LArMiniFCAL_ID.h:57
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
LArEM_ID
Helper class for LArEM offline identifiers.
Definition: LArEM_ID.h:118
CaloCell_Base_ID::initialize_from_dictionary
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
Definition: CaloCell_Base_ID.cxx:80
LArFCAL_ID
Helper class for LArFCAL offline identifiers.
Definition: LArFCAL_ID.h:60
CaloCell_Base_ID
Helper base class for offline cell identifiers.
Definition: CaloCell_Base_ID.h:41