ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloIdentifier
src
LArFCAL_ID.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 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 "
LArFCAL_region.h
"
9
#include "
PathResolver/PathResolver.h
"
10
11
#include <cmath>
12
#include <fstream>
13
#include <iostream>
14
#include <set>
15
#include <sstream>
16
#include <stdexcept>
17
#include <string>
18
19
#define MAX_BUFFER_LEN 1024
20
21
LArFCAL_ID::LArFCAL_ID
() :
22
LArFCAL_Base_ID
(
"LArFCAL_ID"
,
"lar_fcal"
, 0)
23
{
24
}
25
26
LArFCAL_ID::~LArFCAL_ID
() =
default
;
27
28
int
LArFCAL_ID::initialize_from_dictionary
(
const
IdDictMgr
& dict_mgr)
29
/*=================================================================*/
30
{
31
ATH_MSG_DEBUG
(
"initialize_from_dictionary"
);
32
33
// Check whether this helper should be reinitialized
34
if
(!
reinitialize
(dict_mgr)) {
35
ATH_MSG_DEBUG
(
"Request to reinitialize not satisfied - tags have not changed"
);
36
return
(0);
37
}
38
else
{
39
ATH_MSG_DEBUG
(
"(Re)initialize"
);
40
}
41
42
// init base object
43
if
(
LArFCAL_Base_ID::initialize_base_from_dictionary
(dict_mgr,
group
()))
44
{
45
if
(
dictionaryVersion
() ==
"H8TestBeam"
)
46
return
0;
47
return
(1);
48
}
49
50
return
0;
51
52
}
53
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x,...)
Definition
AthMsgStreamMacros.h:43
AtlasDetectorID.h
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
IdentifierHash.h
LArFCAL_ID.h
LArFCAL_region.h
PathResolver.h
AtlasDetectorID::dictionaryVersion
virtual std::string dictionaryVersion(void) const override
Definition
AtlasDetectorID.cxx:227
AtlasDetectorID::reinitialize
bool reinitialize(const IdDictMgr &dict_mgr)
Test whether an idhelper should be reinitialized based on the change of tags.
Definition
AtlasDetectorID.cxx:170
AtlasDetectorID::group
const std::string & group() const
Group name for this helper.
Definition
AtlasDetectorID.cxx:39
IdDictMgr
Definition
IdDictMgr.h:17
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:135
LArFCAL_Base_ID::LArFCAL_Base_ID
LArFCAL_Base_ID(const std::string &name, const std::string &group, bool supercell)
Definition
LArFCAL_Base_ID.cxx:21
LArFCAL_ID::~LArFCAL_ID
virtual ~LArFCAL_ID()
LArFCAL_ID::LArFCAL_ID
LArFCAL_ID()
Definition
LArFCAL_ID.cxx:21
LArFCAL_ID::initialize_from_dictionary
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr)
initialization from the identifier dictionary
Definition
LArFCAL_ID.cxx:28
Generated on
for ATLAS Offline Software by
1.17.0