ATLAS Offline Software
Calorimeter
CaloIdentifier
src
LArFCAL_SuperCell_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
5
#include "
CaloIdentifier/LArFCAL_SuperCell_ID.h
"
6
#include "
AtlasDetDescr/AtlasDetectorID.h
"
7
#include "
Identifier/IdentifierHash.h
"
8
#include "
IdDict/IdDictDefs.h
"
9
10
#include "GaudiKernel/MsgStream.h"
11
12
#include <cmath>
13
#include <iostream>
14
#include <set>
15
#include <string>
16
17
LArFCAL_SuperCell_ID::LArFCAL_SuperCell_ID
(
void
) :
18
LArFCAL_Base_ID
(
"LArFCAL_SuperCell_ID"
, 1)
19
{
20
}
21
22
LArFCAL_SuperCell_ID::~LArFCAL_SuperCell_ID
(
void
)
23
=
default
;
24
25
int
LArFCAL_SuperCell_ID::initialize_from_dictionary
(
const
IdDictMgr
& dict_mgr)
26
/*=================================================================*/
27
{
28
MsgStream
log
(
m_msgSvc
,
"LArFCAL_SuperCell_ID"
);
29
30
log
<<
MSG::DEBUG
<<
"initialize_from_dictionary"
<<
endmsg
;
31
32
// Check whether this helper should be reinitialized
33
if
(!
reinitialize
(dict_mgr)) {
34
log
<<
MSG::DEBUG
<<
"Request to reinitialize not satisfied - tags have not changed"
<<
endmsg
;
35
return
(0);
36
}
37
else
{
38
if
(
m_msgSvc
)
log
<<
MSG::DEBUG
<<
"(Re)initialize"
<<
endmsg
;
39
}
40
41
// init base object
42
if
(
LArFCAL_Base_ID::initialize_base_from_dictionary
(dict_mgr,
43
"slar_fcal"
))
44
return
(1);
45
46
return
0;
47
}
48
LArFCAL_Base_ID
Definition:
LArFCAL_Base_ID.h:19
LArFCAL_Base_ID::initialize_base_from_dictionary
virtual int initialize_base_from_dictionary(const IdDictMgr &dict_mgr, const std::string &group_name)
initialization from the identifier dictionary
Definition:
LArFCAL_Base_ID.cxx:139
LArFCAL_SuperCell_ID.h
AtlasDetectorID::m_msgSvc
IMessageSvc * m_msgSvc
pointer to the message service
Definition:
AtlasDetectorID.h:368
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
LArFCAL_SuperCell_ID::~LArFCAL_SuperCell_ID
~LArFCAL_SuperCell_ID(void)
LArFCAL_SuperCell_ID::LArFCAL_SuperCell_ID
LArFCAL_SuperCell_ID(void)
Definition:
LArFCAL_SuperCell_ID.cxx:17
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
DEBUG
#define DEBUG
Definition:
page_access.h:11
python.CaloCondTools.log
log
Definition:
CaloCondTools.py:20
LArFCAL_SuperCell_ID::initialize_from_dictionary
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr)
initialization from the identifier dictionary
Definition:
LArFCAL_SuperCell_ID.cxx:25
Generated on Sun Dec 22 2024 21:13:27 for ATLAS Offline Software by
1.8.18