ATLAS Offline Software
Calorimeter
CaloIdentifier
src
LArFCAL_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_ID.h
"
6
#include "
AtlasDetDescr/AtlasDetectorID.h
"
7
#include "
Identifier/IdentifierHash.h
"
8
#include "
IdDict/IdDictDefs.h
"
9
#include "
LArFCAL_region.h
"
10
#include "
PathResolver/PathResolver.h
"
11
12
#include "GaudiKernel/MsgStream.h"
13
14
#include <cmath>
15
#include <fstream>
16
#include <iostream>
17
#include <set>
18
#include <sstream>
19
#include <stdexcept>
20
#include <string>
21
22
#define MAX_BUFFER_LEN 1024
23
24
LArFCAL_ID::LArFCAL_ID
(
void
) :
25
LArFCAL_Base_ID
(
"LArFCAL_ID"
, 0)
26
{
27
}
28
29
LArFCAL_ID::~LArFCAL_ID
(
void
)
30
=
default
;
31
32
int
LArFCAL_ID::initialize_from_dictionary
(
const
IdDictMgr
& dict_mgr)
33
/*=================================================================*/
34
{
35
MsgStream
log
(
m_msgSvc
,
"LArFCAL_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
if
(
m_msgSvc
)
log
<<
MSG::DEBUG
<<
"(Re)initialize"
<<
endmsg
;
47
}
48
49
// init base object
50
if
(
LArFCAL_Base_ID::initialize_base_from_dictionary
(dict_mgr,
51
"lar_fcal"
))
52
{
53
if
(
dictionaryVersion
() ==
"H8TestBeam"
)
54
return
0;
55
return
(1);
56
}
57
58
return
0;
59
60
}
61
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:130
AtlasDetectorID::m_msgSvc
IMessageSvc * m_msgSvc
pointer to the message service
Definition:
AtlasDetectorID.h:368
AtlasDetectorID::dictionaryVersion
virtual std::string dictionaryVersion(void) const override
Definition:
AtlasDetectorID.cxx:266
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_ID::LArFCAL_ID
LArFCAL_ID(void)
Definition:
LArFCAL_ID.cxx:24
PathResolver.h
IdentifierHash.h
LArFCAL_ID.h
LArFCAL_ID::~LArFCAL_ID
~LArFCAL_ID(void)
AtlasDetectorID::reinitialize
bool reinitialize(const IdDictMgr &dict_mgr)
Test whether an idhelper should be reinitialized based on the change of tags.
Definition:
AtlasDetectorID.cxx:206
DEBUG
#define DEBUG
Definition:
page_access.h:11
python.CaloCondTools.log
log
Definition:
CaloCondTools.py:20
LArFCAL_ID::initialize_from_dictionary
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr)
initialization from the identifier dictionary
Definition:
LArFCAL_ID.cxx:32
LArFCAL_region.h
Generated on Wed Mar 12 2025 21:13:53 for ATLAS Offline Software by
1.8.18