ATLAS Offline Software
Loading...
Searching...
No Matches
CaloCell_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
8
9#include <set>
10#include <iostream>
11#include <stdexcept>
12
14 const LArHEC_ID* hec_id,
15 const LArFCAL_ID* fcal_id,
16 const LArMiniFCAL_ID* minifcal_id,
17 const TileID* tile_id) :
18 CaloCell_Base_ID ("CaloCell_Base_ID",
19 em_id, hec_id, fcal_id, minifcal_id, tile_id, false)
20{
21}
22
23
25
26
27int
29{
30 ATH_MSG_DEBUG("Initialize");
31
32 // Check whether this helper should be reinitialized
33 if (!reinitialize(dict_mgr)) {
34 ATH_MSG_DEBUG("Request to reinitialize not satisfied - tags have not changed");
35 return (0);
36 }
37 else {
38 ATH_MSG_DEBUG("(Re)initialize");
39 }
40
41 // init base object
42 if(CaloCell_Base_ID::initialize_from_dictionary(dict_mgr)) return (1);
43
44 return (0);
45}
46
#define ATH_MSG_DEBUG(x)
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
bool reinitialize(const IdDictMgr &dict_mgr)
Test whether an idhelper should be reinitialized based on the change of tags.
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
CaloCell_Base_ID(const std::string &name, const LArEM_Base_ID *em_id, const LArHEC_Base_ID *hec_id, const LArFCAL_Base_ID *fcal_id, const LArMiniFCAL_ID *minifcal_id, const Tile_Base_ID *tile_id, bool supercell)
enumeration of samplings (i.e.layers) separately for various sub calorimeters
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr)
Initialization from the identifier dictionary.
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.
Helper class for LArEM offline identifiers.
Definition LArEM_ID.h:111
Helper class for LArFCAL offline identifiers.
Definition LArFCAL_ID.h:49
Helper class for LArHEC offline identifiers.
Definition LArHEC_ID.h:76
Helper class for LArMiniFCAL offline identifiers.
Helper class for TileCal offline identifiers.
Definition TileID.h:67